Skip to content

Commit 9cced2f

Browse files
🔥 Upgrade Tailwind CSS to v4
1 parent 41b7fb9 commit 9cced2f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1314
-2095
lines changed

‎docs/src/styles/docsearch.css‎

Lines changed: 59 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -12,38 +12,38 @@
1212

1313
/* Button */
1414
.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;
1616
}
1717

1818
.DocSearch-Button:active,
1919
.DocSearch-Button:focus,
2020
.DocSearch-Button:hover {
21-
@apply border-gray-300;
21+
@reference border-gray-300;
2222
}
2323

2424
.DocSearch-Button-Container {
25-
@apply flex items-center;
25+
@reference flex items-center;
2626
}
2727

2828
.DocSearch-Search-Icon {
29-
@apply h-4 w-4;
29+
@reference h-4 w-4;
3030
stroke-width: 2.5;
3131
}
3232

3333
.DocSearch-Button .DocSearch-Search-Icon {
34-
@apply text-hurricane/40 dark:text-white/30;
34+
@reference text-hurricane/40 dark:text-white/30;
3535
}
3636

3737
.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;
3939
}
4040

4141
.DocSearch-Button-Keys {
42-
@apply ml-auto flex items-center;
42+
@reference ml-auto flex items-center;
4343
}
4444

4545
.DocSearch-Button-Key {
46-
@apply text-gray-400;
46+
@reference text-gray-400;
4747
}
4848

4949
@media (max-width: 768px) {
@@ -59,7 +59,7 @@
5959
}
6060

6161
.DocSearch-Container {
62-
@apply fixed left-0 top-0 cursor-auto;
62+
@reference fixed top-0 left-0 cursor-auto;
6363
z-index: 200;
6464
width: 100vw;
6565
height: 100vh;
@@ -74,29 +74,29 @@
7474
}
7575

7676
.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;
7878
}
7979

8080
.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;
8282
}
8383

8484
.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;
8686
height: var(--docsearch-searchbox-height);
8787
}
8888

8989
.DocSearch-Form {
90-
@apply relative flex w-full items-center px-4;
90+
@reference relative flex w-full items-center px-4;
9191
}
9292

9393
.DocSearch-Input,
9494
.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;
9696
}
9797

9898
.DocSearch-Input::placeholder {
99-
@apply text-gray-400 opacity-100;
99+
@reference text-gray-400 opacity-100;
100100
}
101101

102102
.DocSearch-Input::-webkit-search-cancel-button,
@@ -115,7 +115,7 @@
115115

116116
.DocSearch-MagnifierLabel,
117117
.DocSearch-Reset {
118-
@apply flex items-center justify-center;
118+
@reference flex items-center justify-center;
119119
}
120120

121121
.DocSearch-Container--Stalled .DocSearch-MagnifierLabel,
@@ -124,7 +124,7 @@
124124
}
125125

126126
.DocSearch-VisuallyHiddenForAccessibility {
127-
@apply sr-only;
127+
@reference sr-only;
128128
}
129129

130130
.DocSearch-Container--Stalled .DocSearch-MagnifierLabel,
@@ -145,7 +145,7 @@
145145
}
146146

147147
.DocSearch-LoadingIndicator svg {
148-
@apply h-4 w-4 overflow-visible;
148+
@reference h-4 w-4 overflow-visible;
149149
}
150150

151151
.DocSearch-LoadingIndicator path,
@@ -154,33 +154,33 @@
154154
}
155155

156156
.DocSearch-LoadingIndicator circle {
157-
@apply stroke-gray-300;
157+
@reference stroke-gray-300;
158158
stroke-opacity: 1;
159159
}
160160

161161
.DocSearch-LoadingIndicator path {
162-
@apply stroke-amber-500;
162+
@reference stroke-amber-500;
163163
stroke-opacity: 1;
164164
}
165165

166166
.DocSearch-LoadingIndicator,
167167
.DocSearch-MagnifierLabel {
168-
@apply pointer-events-none h-4 w-4;
168+
@reference pointer-events-none h-4 w-4;
169169
}
170170

171171
.DocSearch-LoadingIndicator svg,
172172
.DocSearch-MagnifierLabel svg {
173-
@apply text-gray-400;
173+
@reference text-gray-400;
174174
}
175175

176176
@media screen and (prefers-reduced-motion: reduce) {
177177
.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;
179179
}
180180
}
181181

182182
.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;
184184
animation: fade-in 0.1s ease-in forwards;
185185
}
186186

@@ -189,7 +189,7 @@
189189
}
190190

191191
.DocSearch-Reset:hover {
192-
@apply text-amber-500;
192+
@reference text-amber-500;
193193
}
194194

195195
.DocSearch-Cancel {
@@ -225,7 +225,7 @@
225225
}
226226

227227
.DocSearch-Dropdown ul {
228-
@apply m-0 list-none p-0;
228+
@reference m-0 list-none p-0;
229229
}
230230

231231
.DocSearch-Label {
@@ -235,41 +235,41 @@
235235

236236
.DocSearch-Help,
237237
.DocSearch-Label {
238-
@apply text-gray-500 dark:text-gray-400;
238+
@reference text-gray-500 dark:text-gray-400;
239239
}
240240

241241
.DocSearch-Help {
242-
@apply m-0 select-none text-sm;
242+
@reference m-0 text-sm select-none;
243243
}
244244

245245
.DocSearch-Title {
246-
@apply text-xl;
246+
@reference text-xl;
247247
}
248248

249249
.DocSearch-Logo a {
250-
@apply flex items-center gap-2;
250+
@reference flex items-center gap-2;
251251
}
252252

253253
.DocSearch-Hits:last-of-type {
254-
@apply mb-6;
254+
@reference mb-6;
255255
}
256256

257257
.DocSearch-Hits mark {
258-
@apply bg-transparent text-amber-500;
258+
@reference bg-transparent text-amber-500;
259259
}
260260

261261
.DocSearch-HitsFooter {
262-
@apply flex justify-center text-sm text-gray-500;
262+
@reference flex justify-center text-sm text-gray-500;
263263
margin-bottom: var(--docsearch-spacing);
264264
padding: var(--docsearch-spacing);
265265
}
266266

267267
.DocSearch-HitsFooter a {
268-
@apply border-b text-inherit;
268+
@reference border-b text-inherit;
269269
}
270270

271271
.DocSearch-Hit {
272-
@apply relative flex;
272+
@reference relative flex;
273273
}
274274

275275
@media screen and (prefers-reduced-motion: reduce) {
@@ -297,47 +297,47 @@
297297
}
298298

299299
.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;
301301
}
302302

303303
.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;
305305
}
306306

307307
.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;
309309
}
310310

311311
.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;
313313
}
314314

315315
.DocSearch-Hit[aria-selected='true'] mark {
316316
text-decoration: underline;
317317
}
318318

319319
.DocSearch-Hit-Container {
320-
@apply flex items-center;
320+
@reference flex items-center;
321321
}
322322

323323
.DocSearch-Hit-icon {
324-
@apply hidden;
324+
@reference hidden;
325325
}
326326

327327
.DocSearch-Hit-action {
328-
@apply flex h-5 w-5 items-center;
328+
@reference flex h-5 w-5 items-center;
329329
}
330330

331331
.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;
333333
}
334334

335335
.DocSearch-Hit-action + .DocSearch-Hit-action {
336-
@apply mr-4;
336+
@reference mr-4;
337337
}
338338

339339
.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;
341341
}
342342

343343
svg.DocSearch-Hit-Select-Icon {
@@ -367,15 +367,15 @@ svg.DocSearch-Hit-Select-Icon {
367367
}
368368

369369
.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;
371371
}
372372

373373
.DocSearch-Hit-title {
374374
font-size: 0.9em;
375375
}
376376

377377
.DocSearch-Hit-path {
378-
@apply text-gray-500 dark:text-gray-400;
378+
@reference text-gray-500 dark:text-gray-400;
379379
font-size: 0.75em;
380380
}
381381

@@ -410,53 +410,53 @@ svg.DocSearch-Hit-Select-Icon {
410410
}
411411

412412
.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;
414414
}
415415

416416
.DocSearch-Prefill {
417-
@apply w-full rounded-lg;
417+
@reference w-full rounded-lg;
418418
}
419419

420420
.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;
422422
}
423423

424424
.DocSearch-NoResults-Prefill-List ul {
425-
@apply m-0 list-none p-0;
425+
@reference m-0 list-none p-0;
426426
}
427427

428428
.DocSearch-NoResults-Prefill-List li {
429-
@apply -mx-2;
429+
@reference -mx-2;
430430
}
431431

432432
.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;
434434
}
435435

436436
.DocSearch-Prefill:focus,
437437
.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;
439439
}
440440

441441
.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;
443443
height: var(--docsearch-footer-height);
444444
}
445445

446446
.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;
448448
}
449449

450450
.DocSearch-Commands li {
451-
@apply flex items-center;
451+
@reference flex items-center;
452452
}
453453

454454
.DocSearch-Commands li:not(:last-of-type) {
455455
margin-right: 0.8em;
456456
}
457457

458458
.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;
460460
}
461461

462462
.dark .DocSearch-Logo svg .cls-1,
@@ -511,7 +511,7 @@ svg.DocSearch-Hit-Select-Icon {
511511
}
512512

513513
.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;
515515
}
516516

517517
.DocSearch-Commands,

0 commit comments

Comments
 (0)