|
1 |
| -@import url("./transitions.css"); |
| 1 | +@import url('./transitions.css'); |
2 | 2 |
|
3 |
| -*, *:before, *:after { |
4 |
| - box-sizing: border-box; |
| 3 | +*, |
| 4 | +*:before, |
| 5 | +*:after { |
| 6 | + box-sizing: border-box; |
5 | 7 | }
|
6 | 8 |
|
7 | 9 | :root {
|
8 |
| - --red: hsl(0, 74%, 67%); |
9 |
| - --green: hsl(100, 68%, 58%); |
10 |
| - --blue: oklch(59.12% 0.153 230.82); |
| 10 | + --red: hsl(0, 74%, 67%); |
| 11 | + --green: hsl(100, 68%, 58%); |
| 12 | + --blue: oklch(59.12% 0.153 230.82); |
11 | 13 | }
|
12 | 14 | body {
|
13 |
| - font-family: system-ui; |
14 |
| - padding: 1rem; |
15 |
| - max-width: 800px; |
16 |
| - margin: 5% auto; |
17 |
| - padding-bottom: 100vh; |
| 15 | + font-family: system-ui; |
| 16 | + padding: 1rem; |
| 17 | + max-width: 800px; |
| 18 | + margin: 5% auto; |
| 19 | + padding-bottom: 100vh; |
18 | 20 | }
|
19 | 21 |
|
20 |
| -h1, h2, ul { |
21 |
| - margin-bottom: 1rem; |
| 22 | +h1, |
| 23 | +h2, |
| 24 | +ul { |
| 25 | + margin-bottom: 1rem; |
22 | 26 | }
|
23 | 27 |
|
24 | 28 | :focus-visible {
|
25 |
| - box-shadow: 0 0 0 3px gold; |
26 |
| - outline: 0; |
| 29 | + box-shadow: 0 0 0 3px gold; |
| 30 | + outline: 0; |
27 | 31 | }
|
28 | 32 |
|
29 | 33 | /*
|
30 | 34 | * Lists
|
31 | 35 | */
|
32 | 36 | :where(ul[class]) {
|
33 |
| - list-style: none; |
34 |
| - padding: 0; |
| 37 | + list-style: none; |
| 38 | + padding: 0; |
35 | 39 | }
|
36 | 40 | :where(ul:not([class])) {
|
37 |
| - list-style-type: "> "; |
38 |
| - padding-left: 1rem; |
39 |
| - & li { |
40 |
| - padding-block: 0.2em; |
41 |
| - } |
| 41 | + list-style-type: '> '; |
| 42 | + padding-left: 1rem; |
| 43 | + & li { |
| 44 | + padding-block: 0.2em; |
| 45 | + } |
42 | 46 | }
|
43 | 47 | :where(a) {
|
44 |
| - color: var(--blue); |
45 |
| - text-decoration: none; |
| 48 | + color: var(--blue); |
| 49 | + text-decoration: none; |
46 | 50 | }
|
47 | 51 |
|
48 | 52 | /*
|
49 | 53 | * List
|
50 | 54 | */
|
51 | 55 | .filters {
|
52 |
| - display: flex; |
53 |
| - gap: 1rem; |
| 56 | + display: flex; |
| 57 | + gap: 1rem; |
54 | 58 | }
|
55 | 59 | .filters a,
|
56 | 60 | a.button {
|
57 |
| - padding: 0.2em 0.5em; |
58 |
| - border: 1px solid var(--blue); |
59 |
| - border-radius: 0.5em; |
60 |
| - &.is-active, |
61 |
| - &:hover { |
62 |
| - background: var(--blue); |
63 |
| - color: white; |
64 |
| - } |
| 61 | + padding: 0.2em 0.5em; |
| 62 | + border: 1px solid var(--blue); |
| 63 | + border-radius: 0.5em; |
| 64 | + &.is-active, |
| 65 | + &:hover { |
| 66 | + background: var(--blue); |
| 67 | + color: white; |
| 68 | + } |
65 | 69 | }
|
66 | 70 | .list {
|
67 |
| - display: grid; |
68 |
| - grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); |
69 |
| - gap: 1rem; |
| 71 | + display: grid; |
| 72 | + grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); |
| 73 | + gap: 1rem; |
70 | 74 | }
|
71 | 75 | .list_item {
|
72 |
| - border-radius: 100%; |
73 |
| - background: black; |
| 76 | + border-radius: 100%; |
| 77 | + background: black; |
74 | 78 | }
|
75 | 79 | .list_item--red {
|
76 |
| - background: var(--red); |
| 80 | + background: var(--red); |
77 | 81 | }
|
78 | 82 | .list_item--green {
|
79 |
| - background: var(--green); |
| 83 | + background: var(--green); |
80 | 84 | }
|
81 | 85 | .list_item_link {
|
82 |
| - display: flex; |
83 |
| - color: white; |
84 |
| - aspect-ratio: 1; |
85 |
| - display: flex; |
86 |
| - align-items: center; |
87 |
| - justify-content: center; |
88 |
| - border-radius: 100%; |
89 |
| - text-decoration: none; |
90 |
| - font-size: 2rem; |
| 86 | + display: flex; |
| 87 | + color: white; |
| 88 | + aspect-ratio: 1; |
| 89 | + display: flex; |
| 90 | + align-items: center; |
| 91 | + justify-content: center; |
| 92 | + border-radius: 100%; |
| 93 | + text-decoration: none; |
| 94 | + font-size: 2rem; |
91 | 95 | }
|
92 | 96 |
|
93 | 97 | /*
|
94 | 98 | * Modals
|
95 | 99 | */
|
96 | 100 | .modal {
|
97 |
| - max-width: 600px; |
98 |
| - padding: 1rem; |
| 101 | + max-width: 600px; |
| 102 | + padding: 1rem; |
99 | 103 | }
|
100 | 104 | .modal_close {
|
101 |
| - position: absolute; |
102 |
| - inset-block-start: 1rem; |
103 |
| - inset-inline-end: 1rem; |
| 105 | + position: absolute; |
| 106 | + inset-block-start: 1rem; |
| 107 | + inset-inline-end: 1rem; |
104 | 108 | }
|
105 |
| - |
|
0 commit comments