|
1 | | -@reference "tailwindcss"; |
2 | | -@reference "./theme.css"; |
| 1 | +main { |
| 2 | + @apply flex |
| 3 | + w-full |
| 4 | + flex-col |
| 5 | + gap-6; |
| 6 | + |
| 7 | + hr { |
| 8 | + @apply w-full |
| 9 | + border-t |
| 10 | + border-t-neutral-200 |
| 11 | + bg-white |
| 12 | + dark:border-t-neutral-900 |
| 13 | + dark:bg-neutral-950; |
| 14 | + } |
3 | 15 |
|
4 | | -@layer utilities { |
5 | | - main { |
6 | | - @apply flex |
7 | | - w-full |
8 | | - flex-col |
9 | | - gap-6; |
10 | | - |
11 | | - hr { |
12 | | - @apply w-full |
13 | | - border-t |
14 | | - border-t-neutral-200 |
15 | | - bg-white |
16 | | - dark:border-t-neutral-900 |
17 | | - dark:bg-neutral-950; |
18 | | - } |
| 16 | + h1 { |
| 17 | + @apply text-3xl; |
| 18 | + } |
19 | 19 |
|
20 | | - h1 { |
21 | | - @apply text-3xl; |
22 | | - } |
| 20 | + h2 { |
| 21 | + @apply text-2xl; |
| 22 | + } |
23 | 23 |
|
24 | | - h2 { |
25 | | - @apply text-2xl; |
26 | | - } |
| 24 | + h3 { |
| 25 | + @apply text-xl; |
| 26 | + } |
27 | 27 |
|
28 | | - h3 { |
29 | | - @apply text-xl; |
30 | | - } |
| 28 | + h4 { |
| 29 | + @apply text-lg; |
| 30 | + } |
31 | 31 |
|
32 | | - h4 { |
33 | | - @apply text-lg; |
34 | | - } |
| 32 | + h5, |
| 33 | + h6 { |
| 34 | + @apply text-base; |
| 35 | + } |
35 | 36 |
|
36 | | - h5, |
37 | | - h6 { |
38 | | - @apply text-base; |
| 37 | + h1, |
| 38 | + h2, |
| 39 | + h3, |
| 40 | + h4, |
| 41 | + h5, |
| 42 | + h6 { |
| 43 | + @apply font-semibold |
| 44 | + text-neutral-900 |
| 45 | + dark:text-white; |
| 46 | + |
| 47 | + &[id] a { |
| 48 | + @apply text-neutral-900 |
| 49 | + dark:text-white; |
39 | 50 | } |
| 51 | + } |
40 | 52 |
|
41 | | - h1, |
42 | | - h2, |
43 | | - h3, |
44 | | - h4, |
45 | | - h5, |
46 | | - h6 { |
47 | | - @apply font-semibold |
48 | | - text-neutral-900 |
49 | | - dark:text-white; |
| 53 | + strong { |
| 54 | + @apply font-semibold; |
| 55 | + } |
50 | 56 |
|
51 | | - &[id] a { |
52 | | - @apply text-neutral-900 |
53 | | - dark:text-white; |
54 | | - } |
55 | | - } |
| 57 | + code { |
| 58 | + @apply font-ibm-plex-mono |
| 59 | + rounded-xs |
| 60 | + bg-neutral-100 |
| 61 | + px-1 |
| 62 | + text-base |
| 63 | + font-semibold |
| 64 | + text-neutral-900 |
| 65 | + dark:bg-neutral-900 |
| 66 | + dark:text-white; |
| 67 | + } |
56 | 68 |
|
57 | | - strong { |
58 | | - @apply font-semibold; |
59 | | - } |
| 69 | + p { |
| 70 | + @apply text-neutral-900 |
| 71 | + dark:text-white; |
| 72 | + } |
60 | 73 |
|
61 | | - code { |
62 | | - @apply font-ibm-plex-mono |
63 | | - rounded-xs |
64 | | - bg-neutral-100 |
65 | | - px-1 |
66 | | - text-base |
67 | | - font-semibold |
68 | | - text-neutral-900 |
69 | | - dark:bg-neutral-900 |
70 | | - dark:text-white; |
| 74 | + /* link that isn't inside a heading */ |
| 75 | + a:not(h1 > a):not(h2 > a):not(h3 > a):not(h4 > a):not(h5 > a):not(h6 > a), |
| 76 | + .anchor { |
| 77 | + @apply max-xs:font-semibold |
| 78 | + text-green-600 |
| 79 | + dark:text-green-400; |
| 80 | + |
| 81 | + &:hover { |
| 82 | + @apply text-green-900 |
| 83 | + dark:text-green-300; |
71 | 84 | } |
72 | 85 |
|
73 | | - p { |
74 | | - @apply text-neutral-900 |
75 | | - dark:text-white; |
| 86 | + &[role='button'] { |
| 87 | + @apply max-xs:font-regular; |
76 | 88 | } |
77 | 89 |
|
78 | | - /* link that isn't inside a heading */ |
79 | | - a:not(h1 > a):not(h2 > a):not(h3 > a):not(h4 > a):not(h5 > a):not(h6 > a), |
80 | | - .anchor { |
81 | | - @apply max-xs:font-semibold |
82 | | - text-green-600 |
83 | | - dark:text-green-400; |
| 90 | + &:has(code) { |
| 91 | + @apply max-xs:decoration-neutral-800 |
| 92 | + dark:max-xs:decoration-neutral-200; |
84 | 93 |
|
85 | | - &:hover { |
86 | | - @apply text-green-900 |
87 | | - dark:text-green-300; |
88 | | - } |
89 | | - |
90 | | - &[role='button'] { |
91 | | - @apply max-xs:font-regular; |
| 94 | + code { |
| 95 | + @apply text-inherit; |
92 | 96 | } |
| 97 | + } |
| 98 | + } |
93 | 99 |
|
94 | | - &:has(code) { |
95 | | - @apply max-xs:decoration-neutral-800 |
96 | | - dark:max-xs:decoration-neutral-200; |
| 100 | + ul { |
| 101 | + @apply list-disc |
| 102 | + pl-9 |
| 103 | + pr-5 |
| 104 | + leading-6 |
| 105 | + text-neutral-900 |
| 106 | + dark:text-white; |
97 | 107 |
|
98 | | - code { |
99 | | - @apply text-inherit; |
100 | | - } |
101 | | - } |
| 108 | + li div:has(> pre) { |
| 109 | + @apply my-1!; |
102 | 110 | } |
| 111 | + } |
103 | 112 |
|
104 | | - ul { |
105 | | - @apply list-disc |
106 | | - pl-9 |
107 | | - pr-5 |
108 | | - leading-6 |
109 | | - text-neutral-900 |
110 | | - dark:text-white; |
| 113 | + ol { |
| 114 | + @apply list-decimal |
| 115 | + px-5 |
| 116 | + leading-6 |
| 117 | + text-neutral-900 |
| 118 | + dark:text-white; |
111 | 119 |
|
112 | | - li div:has(> pre) { |
113 | | - @apply my-1!; |
114 | | - } |
| 120 | + li div:has(> pre) { |
| 121 | + @apply my-1!; |
115 | 122 | } |
| 123 | + } |
116 | 124 |
|
117 | | - ol { |
118 | | - @apply list-decimal |
119 | | - px-5 |
120 | | - leading-6 |
| 125 | + table { |
| 126 | + @apply rounded-xs |
| 127 | + mb-1 |
| 128 | + w-full |
| 129 | + border-separate |
| 130 | + border-spacing-0 |
| 131 | + border |
| 132 | + border-neutral-200 |
| 133 | + text-left |
| 134 | + text-sm |
| 135 | + dark:border-neutral-800; |
| 136 | + |
| 137 | + th, |
| 138 | + td { |
| 139 | + @apply max-xs:block |
| 140 | + max-xs:border-l-0 |
| 141 | + border |
| 142 | + border-r-0 |
| 143 | + border-t-0 |
| 144 | + border-neutral-200 |
| 145 | + px-4 |
| 146 | + py-2 |
121 | 147 | text-neutral-900 |
| 148 | + dark:border-neutral-800 |
122 | 149 | dark:text-white; |
123 | 150 |
|
124 | | - li div:has(> pre) { |
125 | | - @apply my-1!; |
| 151 | + > a { |
| 152 | + @apply pr-2; |
126 | 153 | } |
127 | 154 | } |
128 | 155 |
|
129 | | - table { |
130 | | - @apply rounded-xs |
131 | | - mb-1 |
132 | | - w-full |
133 | | - border-separate |
134 | | - border-spacing-0 |
135 | | - border |
136 | | - border-neutral-200 |
137 | | - text-left |
138 | | - text-sm |
139 | | - dark:border-neutral-800; |
140 | | - |
141 | | - th, |
142 | | - td { |
143 | | - @apply max-xs:block |
144 | | - max-xs:border-l-0 |
145 | | - border |
146 | | - border-r-0 |
147 | | - border-t-0 |
148 | | - border-neutral-200 |
149 | | - px-4 |
150 | | - py-2 |
151 | | - text-neutral-900 |
152 | | - dark:border-neutral-800 |
153 | | - dark:text-white; |
154 | | - |
155 | | - > a { |
156 | | - @apply pr-2; |
157 | | - } |
158 | | - } |
159 | | - |
160 | | - th { |
161 | | - @apply font-semibold; |
162 | | - } |
| 156 | + th { |
| 157 | + @apply font-semibold; |
| 158 | + } |
163 | 159 |
|
164 | | - tr:last-child > td { |
165 | | - @apply sm:border-b-0; |
| 160 | + tr:last-child > td { |
| 161 | + @apply sm:border-b-0; |
166 | 162 |
|
167 | | - &:last-child { |
168 | | - @apply max-xs:border-b-0; |
169 | | - } |
| 163 | + &:last-child { |
| 164 | + @apply max-xs:border-b-0; |
170 | 165 | } |
| 166 | + } |
171 | 167 |
|
172 | | - td:first-child, |
173 | | - th:first-child { |
174 | | - @apply sm:border-l-0; |
175 | | - } |
| 168 | + td:first-child, |
| 169 | + th:first-child { |
| 170 | + @apply sm:border-l-0; |
176 | 171 | } |
177 | 172 | } |
178 | 173 | } |
0 commit comments