|
2 | 2 | @import "./custom-media-query.css";
|
3 | 3 | @import "./reset.css";
|
4 | 4 |
|
5 |
| -/** |
| 5 | +/** |
6 | 6 | * Colors
|
7 | 7 | ------------------------------------------ */
|
8 | 8 |
|
|
41 | 41 | --color-alert: #db0000;
|
42 | 42 | }
|
43 | 43 |
|
44 |
| -/** |
| 44 | +/** |
45 | 45 | * Z-index layers
|
46 | 46 | ------------------------------------------ */
|
47 | 47 |
|
48 | 48 | :root {
|
49 | 49 | /* Background layers */
|
50 | 50 | --z-index-background: -1;
|
51 |
| - |
| 51 | + |
52 | 52 | /* Base content layers */
|
53 | 53 | --z-index-base: 1;
|
54 | 54 | --z-name-badge-highlight: 2;
|
55 |
| - |
| 55 | + |
56 | 56 | /* UI layers */
|
57 | 57 | --z-index-header: 100;
|
58 | 58 | --z-index-navigation: 200;
|
59 |
| - |
| 59 | + |
60 | 60 | /* Overlay layers */
|
61 | 61 | --z-index-overlay: 300;
|
62 | 62 | --z-index-modal: 400;
|
63 |
| - |
| 63 | + |
64 | 64 | /* Special layers */
|
65 | 65 | --z-index-focused-name-badge: 9999;
|
66 | 66 | }
|
|
82 | 82 | color: var(--color-base);
|
83 | 83 | }
|
84 | 84 |
|
85 |
| - h2, h3 { |
| 85 | + h2, |
| 86 | + h3 { |
86 | 87 | color: var(--color-text-default);
|
87 | 88 | margin-bottom: 0.5rem;
|
88 | 89 | }
|
@@ -135,103 +136,91 @@ body {
|
135 | 136 | }
|
136 | 137 | }
|
137 | 138 |
|
138 |
| -/** |
| 139 | +/** |
| 140 | + * Typography (token) |
| 141 | + ------------------------------------------ */ |
| 142 | +:root { |
| 143 | + --typography-h1-size: 20px; |
| 144 | + --typography-h1-line-height: 30px; |
| 145 | + --typography-h2-size: 18px; |
| 146 | + --typography-h2-line-height: 27px; |
| 147 | + --typography-h3-size: 16px; |
| 148 | + --typography-h3-line-height: 24px; |
| 149 | + --typography-body1-size: 16px; |
| 150 | + --typography-body1-line-height: 24px; |
| 151 | + --typography-body2-size: 14px; |
| 152 | + --typography-body2-line-height: 21px; |
| 153 | + --typography-body3-size: 13px; |
| 154 | + --typography-body3-line-height: 19.5px; |
| 155 | + --typography-caption-size: 11px; |
| 156 | + --typography-caption-line-height: 16.5px; |
| 157 | + |
| 158 | + @media (--mobile) { |
| 159 | + --typography-h1-size: 18px; |
| 160 | + --typography-h1-line-height: 27px; |
| 161 | + --typography-h2-size: 16px; |
| 162 | + --typography-h2-line-height: 24px; |
| 163 | + --typography-h3-size: 14px; |
| 164 | + --typography-h3-line-height: 21px; |
| 165 | + --typography-body1-size: 14px; |
| 166 | + --typography-body1-line-height: 21px; |
| 167 | + --typography-body2-size: 12px; |
| 168 | + --typography-body2-line-height: 18px; |
| 169 | + --typography-body3-size: 11px; |
| 170 | + --typography-body3-line-height: 15px; |
| 171 | + --typography-caption-size: 10px; |
| 172 | + --typography-caption-line-height: 15px; |
| 173 | + } |
| 174 | +} |
| 175 | + |
| 176 | +/** |
139 | 177 | * Typography
|
140 | 178 | ------------------------------------------ */
|
141 | 179 |
|
142 | 180 | :root {
|
143 | 181 | /* align to BODY1 */
|
144 | 182 | * {
|
145 |
| - font-size: 16px; |
146 |
| - line-height: 24px; |
| 183 | + font-size: var(--typography-body1-size); |
| 184 | + line-height: var(--typography-body1-line-height); |
147 | 185 | }
|
148 | 186 |
|
149 | 187 | h1 {
|
150 |
| - font-size: 20px; |
151 |
| - line-height: 30px; |
| 188 | + font-size: var(--typography-h1-size); |
| 189 | + line-height: var(--typography-h1-line-height); |
152 | 190 | }
|
153 | 191 |
|
154 | 192 | h2 {
|
155 |
| - font-size: 18px; |
156 |
| - line-height: 27px; |
| 193 | + font-size: var(--typography-h2-size); |
| 194 | + line-height: var(--typography-h2-line-height); |
157 | 195 | }
|
158 | 196 |
|
159 | 197 | h3 {
|
160 |
| - font-size: 16px; |
161 |
| - line-height: 24px; |
| 198 | + font-size: var(--typography-h3-size); |
| 199 | + line-height: var(--typography-h3-line-height); |
162 | 200 | }
|
163 | 201 |
|
164 | 202 | /**
|
165 |
| - * utilities |
| 203 | + * utilities |
166 | 204 | ------------------------------------------ */
|
167 | 205 |
|
168 | 206 | .text-body-1 {
|
169 |
| - font-size: 16px; |
170 |
| - line-height: 24px; |
| 207 | + font-size: var(--typography-body1-size); |
| 208 | + line-height: var(--typography-body1-line-height); |
171 | 209 | }
|
172 | 210 |
|
173 | 211 | .text-body-2 {
|
174 |
| - font-size: 14px; |
175 |
| - line-height: 21px; |
| 212 | + font-size: var(--typography-body2-size); |
| 213 | + line-height: var(--typography-body2-line-height); |
176 | 214 | }
|
177 | 215 |
|
178 | 216 | .text-body-3 {
|
179 |
| - font-size: 13px; |
180 |
| - line-height: 19.5px; |
| 217 | + font-size: var(--typography-body3-size); |
| 218 | + line-height: var(--typography-body3-line-height); |
181 | 219 | }
|
182 | 220 |
|
183 | 221 | .text-caption {
|
184 |
| - font-size: 11px; |
185 |
| - line-height: 16.5px; |
186 |
| - } |
187 |
| -} |
188 |
| - |
189 |
| -@media (--mobile) { |
190 |
| - :root { |
191 |
| - /* align to BODY1 */ |
192 |
| - * { |
193 |
| - font-size: 14px; |
194 |
| - line-height: 21px; |
195 |
| - } |
196 |
| - |
197 |
| - h1 { |
198 |
| - font-size: 18px; |
199 |
| - line-height: 27px; |
200 |
| - } |
201 |
| - |
202 |
| - h2 { |
203 |
| - font-size: 16px; |
204 |
| - line-height: 24px; |
205 |
| - } |
206 |
| - |
207 |
| - h3 { |
208 |
| - font-size: 14px; |
209 |
| - line-height: 21px; |
210 |
| - } |
211 |
| - |
212 |
| - /** |
213 |
| - * utilities |
214 |
| - ------------------------------------------ */ |
215 |
| - |
216 |
| - .text-body-1 { |
217 |
| - font-size: 14px; |
218 |
| - line-height: 21px; |
219 |
| - } |
220 |
| - |
221 |
| - .text-body-2 { |
222 |
| - font-size: 12px; |
223 |
| - line-height: 18px; |
224 |
| - } |
225 |
| - |
226 |
| - .text-body-3 { |
227 |
| - font-size: 11px; |
228 |
| - line-height: 15px; |
229 |
| - } |
230 |
| - |
231 |
| - .text-caption { |
232 |
| - font-size: 10px; |
233 |
| - line-height: 15px; |
234 |
| - } |
| 222 | + font-size: var(--typography-caption-size); |
| 223 | + line-height: var(--typography-caption-line-height); |
235 | 224 | }
|
236 | 225 | }
|
237 | 226 |
|
@@ -262,7 +251,7 @@ body {
|
262 | 251 | }
|
263 | 252 | }
|
264 | 253 |
|
265 |
| -/** |
| 254 | +/** |
266 | 255 | * Radius
|
267 | 256 | ------------------------------------------ */
|
268 | 257 |
|
|
283 | 272 | }
|
284 | 273 | }
|
285 | 274 |
|
286 |
| - |
287 | 275 | /**
|
288 | 276 | * Smooth Scroll
|
289 | 277 | ------------------------------------------ */
|
|
0 commit comments