|
1 | 1 | @import "@mayank1513/fork-me/index.css";
|
2 | 2 |
|
| 3 | +* { |
| 4 | + box-sizing: border-box; |
| 5 | +} |
| 6 | + |
| 7 | +:root { |
| 8 | + /* colors */ |
| 9 | + --bg-light: #fff; |
| 10 | + --color-light: #000; |
| 11 | + --bg-dark: #000; |
| 12 | + --color-dark: #fff; |
| 13 | + |
| 14 | + --th1-bg-light: #aaf; |
| 15 | + --th1-color-light: #00f; |
| 16 | + --th1-bg-dark: #008; |
| 17 | + --th1-color-dark: #aaf; |
| 18 | + |
| 19 | + --th2-bg-light: #faa; |
| 20 | + --th2-color-light: #f00; |
| 21 | + --th2-bg-dark: #800; |
| 22 | + --th2-color-dark: #fbb; |
| 23 | + |
| 24 | + /* root style variables */ |
| 25 | + --max-width: 1100px; |
| 26 | + --border-radius: 12px; |
| 27 | + --font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", |
| 28 | + "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro", "Fira Mono", "Droid Sans Mono", |
| 29 | + "Courier New", monospace; |
| 30 | + --bg-color: var(--bg-light); |
| 31 | + --text-color: var(--color-light); |
| 32 | + |
| 33 | + --primary-glow: conic-gradient( |
| 34 | + from 180deg at 50% 50%, |
| 35 | + #16abff33 0deg, |
| 36 | + #0885ff33 55deg, |
| 37 | + #54d6ff33 120deg, |
| 38 | + #0071ff33 160deg, |
| 39 | + transparent 360deg |
| 40 | + ); |
| 41 | + --secondary-glow: radial-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)); |
| 42 | + |
| 43 | + --callout-rgb: 238, 240, 241; |
| 44 | + --callout-border-rgb: 172, 175, 176; |
| 45 | + --card-rgb: 180, 185, 188; |
| 46 | + --card-border-rgb: 131, 134, 135; |
| 47 | + --tile-border: conic-gradient( |
| 48 | + #00000080, |
| 49 | + #00000040, |
| 50 | + #00000030, |
| 51 | + #00000020, |
| 52 | + #00000010, |
| 53 | + #00000010, |
| 54 | + #00000080 |
| 55 | + ); |
| 56 | +} |
| 57 | + |
| 58 | +.dark, |
| 59 | +.dark ~ * { |
| 60 | + --primary-glow: radial-gradient(rgba(1, 65, 255, 0.4), rgba(1, 65, 255, 0)); |
| 61 | + --secondary-glow: linear-gradient( |
| 62 | + to bottom right, |
| 63 | + rgba(1, 65, 255, 0), |
| 64 | + rgba(1, 65, 255, 0), |
| 65 | + rgba(1, 65, 255, 0.3) |
| 66 | + ); |
| 67 | + |
| 68 | + --callout-rgb: 20, 20, 20; |
| 69 | + --callout-border-rgb: 108, 108, 108; |
| 70 | + --card-rgb: 100, 100, 100; |
| 71 | + --card-border-rgb: 200, 200, 200; |
| 72 | + --tile-border: conic-gradient( |
| 73 | + #ffffff80, |
| 74 | + #ffffff40, |
| 75 | + #ffffff30, |
| 76 | + #ffffff20, |
| 77 | + #ffffff10, |
| 78 | + #ffffff10, |
| 79 | + #ffffff80 |
| 80 | + ); |
| 81 | +} |
| 82 | + |
| 83 | +/* dark themes */ |
| 84 | +.th-.dark, |
| 85 | +.th-.dark *, |
| 86 | +.th-.dark ~ *, |
| 87 | +.th-.dark ~ * *, |
| 88 | +/* for increased specificity of localized themes */ |
| 89 | +.nth-scoped.th-.dark, |
| 90 | +.nth-scoped.th-.dark *, |
| 91 | +.nth-scoped.th-.dark ~ *, |
| 92 | +.nth-scoped.th-.dark ~ * * { |
| 93 | + --bg-color: var(--bg-dark); |
| 94 | + --text-color: var(--color-dark); |
| 95 | +} |
| 96 | + |
| 97 | +/* light themes */ |
| 98 | +.th-.light, |
| 99 | +.th-.light *, |
| 100 | +.th-.light ~ *, |
| 101 | +.th-.light ~ * *, |
| 102 | +/* for increased specificity of localized themes */ |
| 103 | +.nth-scoped.th-.light, |
| 104 | +.nth-scoped.th-.light *, |
| 105 | +.nth-scoped.th-.light ~ *, |
| 106 | +.nth-scoped.th-.light ~ * * { |
| 107 | + --bg-color: var(--bg-light); |
| 108 | + --text-color: var(--color-light); |
| 109 | +} |
| 110 | + |
| 111 | +.th-theme1.light ~ *, |
| 112 | +.th-theme1.light ~ * *, |
| 113 | +/* for increased specificity of localized themes */ |
| 114 | +.nth-scoped.th-theme1.light ~ *, |
| 115 | +.nth-scoped.th-theme1.light ~ * * { |
| 116 | + --bg-color: var(--th1-bg-light); |
| 117 | + --text-color: var(--th1-color-light); |
| 118 | +} |
| 119 | + |
| 120 | +.th-theme1.dark ~ *, |
| 121 | +.th-theme1.dark ~ * * , |
| 122 | +/* for increased specificity of localized themes */ |
| 123 | +.nth-scoped.th-theme1.dark ~ *, |
| 124 | +.nth-scoped.th-theme1.dark ~ * * { |
| 125 | + --bg-color: var(--th1-bg-dark); |
| 126 | + --text-color: var(--th1-color-dark); |
| 127 | +} |
| 128 | + |
| 129 | +.th-theme2.light ~ *, |
| 130 | +.th-theme2.light ~ * *, |
| 131 | +/* for increased specificity of localized themes */ |
| 132 | +.nth-scoped.th-theme2.light ~ *, |
| 133 | +.nth-scoped.th-theme2.light ~ * * { |
| 134 | + --bg-color: var(--th2-bg-light); |
| 135 | + --text-color: var(--th2-color-light); |
| 136 | +} |
| 137 | + |
| 138 | +.th-theme2.dark ~ *, |
| 139 | +.th-theme2.dark ~ * *, |
| 140 | +/* for increased specificity of localized themes */ |
| 141 | +.nth-scoped.th-theme2.dark ~ *, |
| 142 | +.nth-scoped.th-theme2.dark ~ * * { |
| 143 | + --bg-color: var(--th2-bg-dark); |
| 144 | + --text-color: var(--th2-color-dark); |
| 145 | +} |
| 146 | + |
| 147 | +html { |
| 148 | + padding: 0; |
| 149 | + margin: 0; |
| 150 | +} |
| 151 | + |
| 152 | +body, |
| 153 | +#root { |
| 154 | + padding: 0; |
| 155 | + margin: 0; |
| 156 | + min-height: 100vh; |
| 157 | + display: flex; |
| 158 | + flex-direction: column; |
| 159 | +} |
| 160 | + |
| 161 | +main, |
| 162 | +footer { |
| 163 | + background: var(--bg-color); |
| 164 | + color: var(--text-color); |
| 165 | +} |
| 166 | + |
| 167 | +main { |
| 168 | + flex-grow: 1; |
| 169 | +} |
| 170 | + |
| 171 | +footer { |
| 172 | + text-align: center; |
| 173 | + padding: 10px; |
| 174 | +} |
| 175 | + |
| 176 | +a { |
| 177 | + color: inherit; |
| 178 | + text-decoration: none; |
| 179 | +} |
| 180 | + |
| 181 | +.grow { |
| 182 | + flex-grow: 1; |
| 183 | +} |
| 184 | + |
3 | 185 | * {
|
4 | 186 | box-sizing: border-box;
|
5 | 187 | transition: all 0.3s;
|
|
0 commit comments