|
1 | 1 | /* https://www.joshwcomeau.com/css/custom-css-reset/ */ |
2 | 2 |
|
3 | | -/* |
4 | | - 1. Use a more-intuitive box-sizing model. |
5 | | -*/ |
6 | | -*, *::before, *::after { |
| 3 | +*, *::before, *::after { /* Use a more-intuitive box-sizing model. */ |
7 | 4 | box-sizing: border-box; |
8 | 5 | } |
9 | | -/* |
10 | | - 2. Remove default margin |
11 | | -*/ |
12 | | -* { |
| 6 | + |
| 7 | +* { /* Remove default margin */ |
13 | 8 | margin: 0; |
14 | 9 | } |
15 | | -/* |
16 | | - 3. Allow percentage-based heights in the application |
17 | | -*/ |
18 | | -html, body { |
| 10 | + |
| 11 | +html, body { /* Allow percentage-based heights in the application */ |
19 | 12 | height: 100%; |
20 | 13 | } |
21 | | -/* |
22 | | - Typographic tweaks! |
23 | | - 4. Add accessible line-height |
24 | | - 5. Improve text rendering |
25 | | -*/ |
26 | | -body { |
| 14 | + |
| 15 | +body { /* Add accessible line-height, improve text rendering */ |
27 | 16 | line-height: 1.5; |
28 | 17 | -webkit-font-smoothing: antialiased; |
29 | 18 | } |
30 | | -/* |
31 | | - 6. Improve media defaults |
32 | | -*/ |
33 | | -img, picture, video, canvas, svg { |
| 19 | + |
| 20 | +img, picture, video, canvas, svg { /* Improve media defaults */ |
34 | 21 | display: block; |
35 | 22 | max-width: 100%; |
36 | 23 | } |
37 | | -/* |
38 | | - 7. Remove built-in form typography styles |
39 | | -*/ |
40 | | -input, button, textarea, select { |
| 24 | + |
| 25 | +input, button, textarea, select { /* Remove built-in form typography styles */ |
41 | 26 | font: inherit; |
42 | 27 | } |
43 | | -/* |
44 | | - 8. Avoid text overflows |
45 | | -*/ |
46 | | -p, h1, h2, h3, h4, h5, h6 { |
| 28 | + |
| 29 | +p, h1, h2, h3, h4, h5, h6 { /* Avoid text overflows */ |
47 | 30 | overflow-wrap: break-word; |
48 | 31 | } |
49 | | -/* |
50 | | - 9. Create a root stacking context |
51 | | -*/ |
52 | | -#root, #__next { |
| 32 | + |
| 33 | +#root, #__next { /* Create a root stacking context */ |
53 | 34 | isolation: isolate; |
54 | 35 | } |
55 | 36 |
|
0 commit comments