|
12 | 12 |
|
13 | 13 | /* Button */ |
14 | 14 | .DocSearch-Button { |
15 | | - @apply flex h-6 w-6 items-center justify-center sm:justify-start md:h-auto md:w-64 md:flex-none md:rounded-full md:py-2 md:pl-4 md:pr-3.5 md:text-sm md:ring-1 md:ring-merino md:hover:ring-gray-300 dark:md:bg-dolphin/10 dark:md:ring-inset dark:md:ring-white/5 dark:md:hover:bg-gray-700/40 dark:md:hover:ring-gray-500; |
| 15 | + @reference md:ring-merino dark:md:bg-dolphin/10 flex h-6 w-6 items-center justify-center sm:justify-start md:h-auto md:w-64 md:flex-none md:rounded-full md:py-2 md:pr-3.5 md:pl-4 md:text-sm md:ring-1 md:hover:ring-gray-300 dark:md:ring-white/5 dark:md:ring-inset dark:md:hover:bg-gray-700/40 dark:md:hover:ring-gray-500; |
16 | 16 | } |
17 | 17 |
|
18 | 18 | .DocSearch-Button:active, |
19 | 19 | .DocSearch-Button:focus, |
20 | 20 | .DocSearch-Button:hover { |
21 | | - @apply border-gray-300; |
| 21 | + @reference border-gray-300; |
22 | 22 | } |
23 | 23 |
|
24 | 24 | .DocSearch-Button-Container { |
25 | | - @apply flex items-center; |
| 25 | + @reference flex items-center; |
26 | 26 | } |
27 | 27 |
|
28 | 28 | .DocSearch-Search-Icon { |
29 | | - @apply h-4 w-4; |
| 29 | + @reference h-4 w-4; |
30 | 30 | stroke-width: 2.5; |
31 | 31 | } |
32 | 32 |
|
33 | 33 | .DocSearch-Button .DocSearch-Search-Icon { |
34 | | - @apply text-hurricane/40 dark:text-white/30; |
| 34 | + @reference text-hurricane/40 dark:text-white/30; |
35 | 35 | } |
36 | 36 |
|
37 | 37 | .DocSearch-Button-Placeholder { |
38 | | - @apply ml-2 text-sm text-hurricane/80 dark:text-white/40; |
| 38 | + @reference text-hurricane/80 ml-2 text-sm dark:text-white/40; |
39 | 39 | } |
40 | 40 |
|
41 | 41 | .DocSearch-Button-Keys { |
42 | | - @apply ml-auto flex items-center; |
| 42 | + @reference ml-auto flex items-center; |
43 | 43 | } |
44 | 44 |
|
45 | 45 | .DocSearch-Button-Key { |
46 | | - @apply text-gray-400; |
| 46 | + @reference text-gray-400; |
47 | 47 | } |
48 | 48 |
|
49 | 49 | @media (max-width: 768px) { |
|
59 | 59 | } |
60 | 60 |
|
61 | 61 | .DocSearch-Container { |
62 | | - @apply fixed left-0 top-0 cursor-auto; |
| 62 | + @reference fixed top-0 left-0 cursor-auto; |
63 | 63 | z-index: 200; |
64 | 64 | width: 100vw; |
65 | 65 | height: 100vh; |
|
74 | 74 | } |
75 | 75 |
|
76 | 76 | .DocSearch-Link { |
77 | | - @apply m-0 cursor-pointer appearance-none border-none bg-none p-0 text-amber-500; |
| 77 | + @reference m-0 cursor-pointer appearance-none border-none bg-none p-0 text-amber-500; |
78 | 78 | } |
79 | 79 |
|
80 | 80 | .DocSearch-Modal { |
81 | | - @apply relative m-auto mt-16 flex max-w-xl flex-col rounded-xl bg-white shadow-lg dark:bg-gray-800; |
| 81 | + @reference relative m-auto mt-16 flex max-w-xl flex-col rounded-xl bg-white shadow-lg dark:bg-gray-800; |
82 | 82 | } |
83 | 83 |
|
84 | 84 | .DocSearch-SearchBar { |
85 | | - @apply flex items-center border-b border-gray-200 dark:border-gray-700; |
| 85 | + @reference flex items-center border-b border-gray-200 dark:border-gray-700; |
86 | 86 | height: var(--docsearch-searchbox-height); |
87 | 87 | } |
88 | 88 |
|
89 | 89 | .DocSearch-Form { |
90 | | - @apply relative flex w-full items-center px-4; |
| 90 | + @reference relative flex w-full items-center px-4; |
91 | 91 | } |
92 | 92 |
|
93 | 93 | .DocSearch-Input, |
94 | 94 | .DocSearch-Input:focus { |
95 | | - @apply flex-1 appearance-none border-none bg-transparent px-3 py-0 text-sm text-gray-900 outline-none ring-0 dark:text-gray-100; |
| 95 | + @reference flex-1 appearance-none border-none bg-transparent px-3 py-0 text-sm text-gray-900 ring-0 outline-none dark:text-gray-100; |
96 | 96 | } |
97 | 97 |
|
98 | 98 | .DocSearch-Input::placeholder { |
99 | | - @apply text-gray-400 opacity-100; |
| 99 | + @reference text-gray-400 opacity-100; |
100 | 100 | } |
101 | 101 |
|
102 | 102 | .DocSearch-Input::-webkit-search-cancel-button, |
|
115 | 115 |
|
116 | 116 | .DocSearch-MagnifierLabel, |
117 | 117 | .DocSearch-Reset { |
118 | | - @apply flex items-center justify-center; |
| 118 | + @reference flex items-center justify-center; |
119 | 119 | } |
120 | 120 |
|
121 | 121 | .DocSearch-Container--Stalled .DocSearch-MagnifierLabel, |
|
124 | 124 | } |
125 | 125 |
|
126 | 126 | .DocSearch-VisuallyHiddenForAccessibility { |
127 | | - @apply sr-only; |
| 127 | + @reference sr-only; |
128 | 128 | } |
129 | 129 |
|
130 | 130 | .DocSearch-Container--Stalled .DocSearch-MagnifierLabel, |
|
145 | 145 | } |
146 | 146 |
|
147 | 147 | .DocSearch-LoadingIndicator svg { |
148 | | - @apply h-4 w-4 overflow-visible; |
| 148 | + @reference h-4 w-4 overflow-visible; |
149 | 149 | } |
150 | 150 |
|
151 | 151 | .DocSearch-LoadingIndicator path, |
|
154 | 154 | } |
155 | 155 |
|
156 | 156 | .DocSearch-LoadingIndicator circle { |
157 | | - @apply stroke-gray-300; |
| 157 | + @reference stroke-gray-300; |
158 | 158 | stroke-opacity: 1; |
159 | 159 | } |
160 | 160 |
|
161 | 161 | .DocSearch-LoadingIndicator path { |
162 | | - @apply stroke-amber-500; |
| 162 | + @reference stroke-amber-500; |
163 | 163 | stroke-opacity: 1; |
164 | 164 | } |
165 | 165 |
|
166 | 166 | .DocSearch-LoadingIndicator, |
167 | 167 | .DocSearch-MagnifierLabel { |
168 | | - @apply pointer-events-none h-4 w-4; |
| 168 | + @reference pointer-events-none h-4 w-4; |
169 | 169 | } |
170 | 170 |
|
171 | 171 | .DocSearch-LoadingIndicator svg, |
172 | 172 | .DocSearch-MagnifierLabel svg { |
173 | | - @apply text-gray-400; |
| 173 | + @reference text-gray-400; |
174 | 174 | } |
175 | 175 |
|
176 | 176 | @media screen and (prefers-reduced-motion: reduce) { |
177 | 177 | .DocSearch-Reset { |
178 | | - @apply animate-none cursor-pointer appearance-none rounded-full border-none bg-none text-gray-400; |
| 178 | + @reference animate-none cursor-pointer appearance-none rounded-full border-none bg-none text-gray-400; |
179 | 179 | } |
180 | 180 | } |
181 | 181 |
|
182 | 182 | .DocSearch-Reset { |
183 | | - @apply cursor-pointer appearance-none border-none bg-none stroke-2 p-0 text-gray-400; |
| 183 | + @reference cursor-pointer appearance-none border-none bg-none stroke-2 p-0 text-gray-400; |
184 | 184 | animation: fade-in 0.1s ease-in forwards; |
185 | 185 | } |
186 | 186 |
|
|
189 | 189 | } |
190 | 190 |
|
191 | 191 | .DocSearch-Reset:hover { |
192 | | - @apply text-amber-500; |
| 192 | + @reference text-amber-500; |
193 | 193 | } |
194 | 194 |
|
195 | 195 | .DocSearch-Cancel { |
|
225 | 225 | } |
226 | 226 |
|
227 | 227 | .DocSearch-Dropdown ul { |
228 | | - @apply m-0 list-none p-0; |
| 228 | + @reference m-0 list-none p-0; |
229 | 229 | } |
230 | 230 |
|
231 | 231 | .DocSearch-Label { |
|
235 | 235 |
|
236 | 236 | .DocSearch-Help, |
237 | 237 | .DocSearch-Label { |
238 | | - @apply text-gray-500 dark:text-gray-400; |
| 238 | + @reference text-gray-500 dark:text-gray-400; |
239 | 239 | } |
240 | 240 |
|
241 | 241 | .DocSearch-Help { |
242 | | - @apply m-0 select-none text-sm; |
| 242 | + @reference m-0 text-sm select-none; |
243 | 243 | } |
244 | 244 |
|
245 | 245 | .DocSearch-Title { |
246 | | - @apply text-xl; |
| 246 | + @reference text-xl; |
247 | 247 | } |
248 | 248 |
|
249 | 249 | .DocSearch-Logo a { |
250 | | - @apply flex items-center gap-2; |
| 250 | + @reference flex items-center gap-2; |
251 | 251 | } |
252 | 252 |
|
253 | 253 | .DocSearch-Hits:last-of-type { |
254 | | - @apply mb-6; |
| 254 | + @reference mb-6; |
255 | 255 | } |
256 | 256 |
|
257 | 257 | .DocSearch-Hits mark { |
258 | | - @apply bg-transparent text-amber-500; |
| 258 | + @reference bg-transparent text-amber-500; |
259 | 259 | } |
260 | 260 |
|
261 | 261 | .DocSearch-HitsFooter { |
262 | | - @apply flex justify-center text-sm text-gray-500; |
| 262 | + @reference flex justify-center text-sm text-gray-500; |
263 | 263 | margin-bottom: var(--docsearch-spacing); |
264 | 264 | padding: var(--docsearch-spacing); |
265 | 265 | } |
266 | 266 |
|
267 | 267 | .DocSearch-HitsFooter a { |
268 | | - @apply border-b text-inherit; |
| 268 | + @reference border-b text-inherit; |
269 | 269 | } |
270 | 270 |
|
271 | 271 | .DocSearch-Hit { |
272 | | - @apply relative flex; |
| 272 | + @reference relative flex; |
273 | 273 | } |
274 | 274 |
|
275 | 275 | @media screen and (prefers-reduced-motion: reduce) { |
|
297 | 297 | } |
298 | 298 |
|
299 | 299 | .DocSearch-Hit a { |
300 | | - @apply block w-full rounded-md p-2 dark:text-gray-100; |
| 300 | + @reference block w-full rounded-md p-2 dark:text-gray-100; |
301 | 301 | } |
302 | 302 |
|
303 | 303 | .DocSearch-Hit-source { |
304 | | - @apply sticky top-0 z-10 bg-white px-1 pb-0 pt-2 text-sm font-medium leading-8 dark:bg-gray-800 dark:text-gray-100; |
| 304 | + @reference sticky top-0 z-10 bg-white px-1 pt-2 pb-0 text-sm leading-8 font-medium dark:bg-gray-800 dark:text-gray-100; |
305 | 305 | } |
306 | 306 |
|
307 | 307 | .DocSearch-Hit-Tree { |
308 | | - @apply w-6 stroke-2 text-gray-500 opacity-50; |
| 308 | + @reference w-6 stroke-2 text-gray-500 opacity-50; |
309 | 309 | } |
310 | 310 |
|
311 | 311 | .DocSearch-Hit[aria-selected='true'] a { |
312 | | - @apply bg-gray-100 text-amber-500 dark:bg-gray-700; |
| 312 | + @reference bg-gray-100 text-amber-500 dark:bg-gray-700; |
313 | 313 | } |
314 | 314 |
|
315 | 315 | .DocSearch-Hit[aria-selected='true'] mark { |
316 | 316 | text-decoration: underline; |
317 | 317 | } |
318 | 318 |
|
319 | 319 | .DocSearch-Hit-Container { |
320 | | - @apply flex items-center; |
| 320 | + @reference flex items-center; |
321 | 321 | } |
322 | 322 |
|
323 | 323 | .DocSearch-Hit-icon { |
324 | | - @apply hidden; |
| 324 | + @reference hidden; |
325 | 325 | } |
326 | 326 |
|
327 | 327 | .DocSearch-Hit-action { |
328 | | - @apply flex h-5 w-5 items-center; |
| 328 | + @reference flex h-5 w-5 items-center; |
329 | 329 | } |
330 | 330 |
|
331 | 331 | .DocSearch-Hit-action svg { |
332 | | - @apply block h-4 w-4 stroke-2 text-gray-500; |
| 332 | + @reference block h-4 w-4 stroke-2 text-gray-500; |
333 | 333 | } |
334 | 334 |
|
335 | 335 | .DocSearch-Hit-action + .DocSearch-Hit-action { |
336 | | - @apply mr-4; |
| 336 | + @reference mr-4; |
337 | 337 | } |
338 | 338 |
|
339 | 339 | .DocSearch-Hit-action-button { |
340 | | - @apply cursor-pointer appearance-none rounded-full border-none bg-none p-1 text-gray-400 text-inherit; |
| 340 | + @reference cursor-pointer appearance-none rounded-full border-none bg-none p-1 text-gray-400 text-inherit; |
341 | 341 | } |
342 | 342 |
|
343 | 343 | svg.DocSearch-Hit-Select-Icon { |
@@ -367,15 +367,15 @@ svg.DocSearch-Hit-Select-Icon { |
367 | 367 | } |
368 | 368 |
|
369 | 369 | .DocSearch-Hit-content-wrapper { |
370 | | - @apply relative flex flex-1 flex-col justify-center overflow-x-hidden text-ellipsis whitespace-nowrap; |
| 370 | + @reference relative flex flex-1 flex-col justify-center overflow-x-hidden text-ellipsis whitespace-nowrap; |
371 | 371 | } |
372 | 372 |
|
373 | 373 | .DocSearch-Hit-title { |
374 | 374 | font-size: 0.9em; |
375 | 375 | } |
376 | 376 |
|
377 | 377 | .DocSearch-Hit-path { |
378 | | - @apply text-gray-500 dark:text-gray-400; |
| 378 | + @reference text-gray-500 dark:text-gray-400; |
379 | 379 | font-size: 0.75em; |
380 | 380 | } |
381 | 381 |
|
@@ -410,53 +410,53 @@ svg.DocSearch-Hit-Select-Icon { |
410 | 410 | } |
411 | 411 |
|
412 | 412 | .DocSearch-NoResults .DocSearch-Title { |
413 | | - @apply px-4 py-12 text-center text-sm text-gray-500 dark:text-gray-400; |
| 413 | + @reference px-4 py-12 text-center text-sm text-gray-500 dark:text-gray-400; |
414 | 414 | } |
415 | 415 |
|
416 | 416 | .DocSearch-Prefill { |
417 | | - @apply w-full rounded-lg; |
| 417 | + @reference w-full rounded-lg; |
418 | 418 | } |
419 | 419 |
|
420 | 420 | .DocSearch-NoResults-Prefill-List { |
421 | | - @apply -mx-3 block border-t px-4 pb-6 pt-4 text-left dark:border-gray-700; |
| 421 | + @reference -mx-3 block border-t px-4 pt-4 pb-6 text-left dark:border-gray-700; |
422 | 422 | } |
423 | 423 |
|
424 | 424 | .DocSearch-NoResults-Prefill-List ul { |
425 | | - @apply m-0 list-none p-0; |
| 425 | + @reference m-0 list-none p-0; |
426 | 426 | } |
427 | 427 |
|
428 | 428 | .DocSearch-NoResults-Prefill-List li { |
429 | | - @apply -mx-2; |
| 429 | + @reference -mx-2; |
430 | 430 | } |
431 | 431 |
|
432 | 432 | .DocSearch-Prefill { |
433 | | - @apply inline-block cursor-pointer appearance-none rounded-md border-none bg-none p-2 text-left text-sm text-gray-900 dark:text-gray-100; |
| 433 | + @reference inline-block cursor-pointer appearance-none rounded-md border-none bg-none p-2 text-left text-sm text-gray-900 dark:text-gray-100; |
434 | 434 | } |
435 | 435 |
|
436 | 436 | .DocSearch-Prefill:focus, |
437 | 437 | .DocSearch-Prefill:hover { |
438 | | - @apply bg-gray-100 text-amber-500 outline-none dark:bg-gray-700; |
| 438 | + @reference bg-gray-100 text-amber-500 outline-none dark:bg-gray-700; |
439 | 439 | } |
440 | 440 |
|
441 | 441 | .DocSearch-Footer { |
442 | | - @apply relative z-30 flex w-full select-none flex-row-reverse items-center border-t border-gray-200 px-4 py-2 dark:border-gray-700; |
| 442 | + @reference relative z-30 flex w-full flex-row-reverse items-center border-t border-gray-200 px-4 py-2 select-none dark:border-gray-700; |
443 | 443 | height: var(--docsearch-footer-height); |
444 | 444 | } |
445 | 445 |
|
446 | 446 | .DocSearch-Commands { |
447 | | - @apply m-0 mr-auto flex list-none p-0 text-gray-500 dark:text-gray-400; |
| 447 | + @reference m-0 mr-auto flex list-none p-0 text-gray-500 dark:text-gray-400; |
448 | 448 | } |
449 | 449 |
|
450 | 450 | .DocSearch-Commands li { |
451 | | - @apply flex items-center; |
| 451 | + @reference flex items-center; |
452 | 452 | } |
453 | 453 |
|
454 | 454 | .DocSearch-Commands li:not(:last-of-type) { |
455 | 455 | margin-right: 0.8em; |
456 | 456 | } |
457 | 457 |
|
458 | 458 | .DocSearch-Commands-Key { |
459 | | - @apply mr-1 flex items-center justify-center rounded border-none bg-gray-100 p-1 dark:bg-gray-700; |
| 459 | + @reference mr-1 flex items-center justify-center rounded border-none bg-gray-100 p-1 dark:bg-gray-700; |
460 | 460 | } |
461 | 461 |
|
462 | 462 | .dark .DocSearch-Logo svg .cls-1, |
@@ -511,7 +511,7 @@ svg.DocSearch-Hit-Select-Icon { |
511 | 511 | } |
512 | 512 |
|
513 | 513 | .DocSearch-Cancel { |
514 | | - @apply mr-3 inline-block cursor-pointer appearance-none rounded-md border-none bg-gray-100 bg-none px-2 py-1.5 text-xs leading-none dark:bg-gray-700 dark:text-gray-400; |
| 514 | + @reference mr-3 inline-block cursor-pointer appearance-none rounded-md border-none bg-gray-100 bg-none px-2 py-1.5 text-xs leading-none dark:bg-gray-700 dark:text-gray-400; |
515 | 515 | } |
516 | 516 |
|
517 | 517 | .DocSearch-Commands, |
|
0 commit comments