@duskmoon-dev/core 1.19.6 → 1.19.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -6
- package/dist/components/bottom-navigation.css +127 -24
- package/dist/components/breadcrumbs.css +252 -0
- package/dist/components/cascader.css +28 -26
- package/dist/components/index.css +731 -234
- package/dist/components/link.css +43 -0
- package/dist/components/megamenu.css +298 -0
- package/dist/components/menu.css +175 -0
- package/dist/components/navbar.css +283 -0
- package/dist/components/navigation.css +513 -149
- package/dist/components/nested-menu.css +19 -4
- package/dist/components/pagination.css +216 -0
- package/dist/components/stepper.css +33 -19
- package/dist/components/tabs.css +101 -0
- package/dist/components/tree-select.css +12 -13
- package/dist/esm/components/bottom-navigation.js +127 -24
- package/dist/esm/components/breadcrumbs.d.ts +5 -0
- package/dist/esm/components/breadcrumbs.js +261 -0
- package/dist/esm/components/cascader.js +28 -26
- package/dist/esm/components/link.d.ts +5 -0
- package/dist/esm/components/link.js +52 -0
- package/dist/esm/components/megamenu.d.ts +5 -0
- package/dist/esm/components/megamenu.js +307 -0
- package/dist/esm/components/menu.d.ts +5 -0
- package/dist/esm/components/menu.js +184 -0
- package/dist/esm/components/navbar.d.ts +5 -0
- package/dist/esm/components/navbar.js +292 -0
- package/dist/esm/components/navigation.js +513 -149
- package/dist/esm/components/nested-menu.js +19 -4
- package/dist/esm/components/pagination.d.ts +5 -0
- package/dist/esm/components/pagination.js +225 -0
- package/dist/esm/components/stepper.js +33 -19
- package/dist/esm/components/tabs.d.ts +5 -0
- package/dist/esm/components/tabs.js +110 -0
- package/dist/esm/components/tree-select.js +12 -13
- package/dist/index.css +731 -234
- package/dist/index.min.css +1 -1
- package/dist/standalone/duskmoonui-themes.css +1 -1
- package/dist/standalone/duskmoonui.css +733 -236
- package/dist/standalone/duskmoonui.js +11 -8
- package/dist/standalone/duskmoonui.mjs +11 -8
- package/package.json +43 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
// Auto-generated from navigation.css
|
|
2
2
|
export const css = `/**
|
|
3
|
-
* Navigation
|
|
4
|
-
*
|
|
3
|
+
* Navigation compatibility aggregate.
|
|
4
|
+
*
|
|
5
|
+
* Component-specific CSS files are canonical. Imports are resolved by the build
|
|
6
|
+
* before CSS strings and constructable stylesheets are generated.
|
|
5
7
|
*/
|
|
6
8
|
|
|
7
|
-
/*
|
|
9
|
+
/* Keep the historical Dropdown coverage and cascade order. */
|
|
8
10
|
/**
|
|
9
11
|
* Dropdown Component Styles
|
|
10
12
|
* Native Popover disclosure with logical CSS anchor positioning.
|
|
@@ -97,9 +99,12 @@ export const css = `/**
|
|
|
97
99
|
}
|
|
98
100
|
}
|
|
99
101
|
|
|
102
|
+
/**
|
|
103
|
+
* Navbar Component Styles
|
|
104
|
+
* DuskMoonUI - Material Design 3 inspired navigation bar
|
|
105
|
+
*/
|
|
100
106
|
|
|
101
107
|
@layer components {
|
|
102
|
-
/* Navbar Base */
|
|
103
108
|
.navbar {
|
|
104
109
|
display: flex;
|
|
105
110
|
align-items: center;
|
|
@@ -108,6 +113,9 @@ export const css = `/**
|
|
|
108
113
|
padding: 0.5rem 1rem;
|
|
109
114
|
background-color: var(--color-surface);
|
|
110
115
|
color: var(--color-on-surface);
|
|
116
|
+
gap: 1rem;
|
|
117
|
+
border-block-end: 1px solid var(--color-outline-variant);
|
|
118
|
+
min-width: 0;
|
|
111
119
|
}
|
|
112
120
|
|
|
113
121
|
.navbar-primary {
|
|
@@ -170,6 +178,7 @@ export const css = `/**
|
|
|
170
178
|
flex: 1;
|
|
171
179
|
justify-content: flex-start;
|
|
172
180
|
gap: 0.5rem;
|
|
181
|
+
min-width: 0;
|
|
173
182
|
}
|
|
174
183
|
|
|
175
184
|
.navbar-center {
|
|
@@ -178,6 +187,10 @@ export const css = `/**
|
|
|
178
187
|
justify-content: center;
|
|
179
188
|
flex-shrink: 0;
|
|
180
189
|
gap: 0.5rem;
|
|
190
|
+
min-width: 0;
|
|
191
|
+
overflow-x: auto;
|
|
192
|
+
overscroll-behavior-inline: contain;
|
|
193
|
+
scrollbar-width: thin;
|
|
181
194
|
}
|
|
182
195
|
|
|
183
196
|
.navbar-end {
|
|
@@ -186,9 +199,196 @@ export const css = `/**
|
|
|
186
199
|
flex: 1;
|
|
187
200
|
justify-content: flex-end;
|
|
188
201
|
gap: 0.5rem;
|
|
202
|
+
min-width: 0;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.navbar-brand {
|
|
206
|
+
display: inline-flex;
|
|
207
|
+
align-items: center;
|
|
208
|
+
gap: 0.5rem;
|
|
209
|
+
min-width: 0;
|
|
210
|
+
color: inherit;
|
|
211
|
+
font-size: 1.25rem;
|
|
212
|
+
font-weight: 600;
|
|
213
|
+
line-height: 1.75rem;
|
|
214
|
+
text-decoration: none;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.navbar-item {
|
|
218
|
+
display: inline-flex;
|
|
219
|
+
align-items: center;
|
|
220
|
+
gap: 0.5rem;
|
|
221
|
+
padding: 0.5rem 0.75rem;
|
|
222
|
+
color: inherit;
|
|
223
|
+
font-size: 0.875rem;
|
|
224
|
+
font-weight: 500;
|
|
225
|
+
line-height: 1.25rem;
|
|
226
|
+
text-decoration: none;
|
|
227
|
+
background-color: transparent;
|
|
228
|
+
border: 0;
|
|
229
|
+
border-radius: var(--radius-sm);
|
|
230
|
+
cursor: pointer;
|
|
231
|
+
transition: background-color 150ms ease-in-out, color 150ms ease-in-out;
|
|
232
|
+
white-space: nowrap;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.navbar-item:hover,
|
|
236
|
+
.navbar-hamburger:hover {
|
|
237
|
+
background-color: color-mix(in oklch, currentColor 8%, transparent);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.navbar-item:focus-visible,
|
|
241
|
+
.navbar-brand:focus-visible,
|
|
242
|
+
.navbar-hamburger:focus-visible {
|
|
243
|
+
outline: 2px solid currentColor;
|
|
244
|
+
outline-offset: 2px;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.navbar-item-active,
|
|
248
|
+
.navbar-item[aria-current="page"] {
|
|
249
|
+
color: var(--color-primary);
|
|
250
|
+
background-color: color-mix(in oklch, var(--color-primary) 12%, transparent);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
:is(.navbar-primary, .navbar-secondary, .navbar-tertiary) :is(.navbar-item-active, .navbar-item[aria-current="page"]) {
|
|
254
|
+
color: inherit;
|
|
255
|
+
background-color: color-mix(in oklch, white 20%, transparent);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.navbar-hamburger {
|
|
259
|
+
display: inline-flex;
|
|
260
|
+
align-items: center;
|
|
261
|
+
justify-content: center;
|
|
262
|
+
inline-size: 2.5rem;
|
|
263
|
+
block-size: 2.5rem;
|
|
264
|
+
padding: 0.5rem;
|
|
265
|
+
color: inherit;
|
|
266
|
+
background-color: transparent;
|
|
267
|
+
border: 0;
|
|
268
|
+
border-radius: var(--radius-sm);
|
|
269
|
+
cursor: pointer;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.navbar-menu {
|
|
273
|
+
display: flex;
|
|
274
|
+
flex-direction: column;
|
|
275
|
+
gap: 0.25rem;
|
|
276
|
+
padding: 0.5rem;
|
|
277
|
+
color: var(--color-on-surface);
|
|
278
|
+
background-color: var(--color-surface-container);
|
|
279
|
+
border-radius: var(--radius-md);
|
|
280
|
+
box-shadow: var(--shadow-md);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.navbar-divider {
|
|
284
|
+
inline-size: 1px;
|
|
285
|
+
block-size: 1.5rem;
|
|
286
|
+
margin-inline: 0.25rem;
|
|
287
|
+
background-color: var(--color-outline-variant);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.navbar-surface {
|
|
291
|
+
background-color: var(--color-surface);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.navbar-surface-container {
|
|
295
|
+
background-color: var(--color-surface-container);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.navbar-surface-container-high {
|
|
299
|
+
background-color: var(--color-surface-container-high);
|
|
300
|
+
box-shadow: var(--shadow-xs);
|
|
189
301
|
}
|
|
190
302
|
|
|
191
|
-
|
|
303
|
+
.navbar-surface-container-highest {
|
|
304
|
+
background-color: var(--color-surface-container-highest);
|
|
305
|
+
box-shadow: var(--shadow-sm);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.navbar-transparent {
|
|
309
|
+
background-color: transparent;
|
|
310
|
+
border-block-end: 0;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.navbar-blur {
|
|
314
|
+
background-color: color-mix(in oklch, var(--color-surface) 80%, transparent);
|
|
315
|
+
backdrop-filter: blur(8px);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.navbar-fixed {
|
|
319
|
+
position: fixed;
|
|
320
|
+
inset-block-start: 0;
|
|
321
|
+
inset-inline: 0;
|
|
322
|
+
z-index: 50;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.navbar-sticky {
|
|
326
|
+
position: sticky;
|
|
327
|
+
inset-block-start: 0;
|
|
328
|
+
z-index: 50;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.navbar-static {
|
|
332
|
+
position: static;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.navbar-compact {
|
|
336
|
+
padding-block: 0.5rem;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.navbar-compact .navbar-item {
|
|
340
|
+
padding: 0.375rem 0.625rem;
|
|
341
|
+
font-size: 0.8125rem;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.navbar-comfortable {
|
|
345
|
+
padding: 1rem 1.5rem;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.navbar-comfortable .navbar-item {
|
|
349
|
+
padding: 0.625rem 1rem;
|
|
350
|
+
font-size: 1rem;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.navbar-borderless {
|
|
354
|
+
border-block-end: 0;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
@media (max-width: 47.999rem) {
|
|
358
|
+
.navbar-responsive .navbar-center {
|
|
359
|
+
display: none;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.navbar-responsive .navbar-start,
|
|
363
|
+
.navbar-responsive .navbar-end {
|
|
364
|
+
flex: 0 1 auto;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.navbar-responsive .navbar-end {
|
|
368
|
+
margin-inline-start: auto;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
@media (min-width: 48rem) {
|
|
373
|
+
.navbar-responsive .navbar-hamburger {
|
|
374
|
+
display: none;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
@media (prefers-reduced-motion: reduce) {
|
|
379
|
+
.navbar,
|
|
380
|
+
.navbar-item {
|
|
381
|
+
transition: none;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Menu Component Styles
|
|
388
|
+
* DuskMoonUI - Material Design 3 inspired dropdown menu
|
|
389
|
+
*/
|
|
390
|
+
|
|
391
|
+
@layer components {
|
|
192
392
|
.menu {
|
|
193
393
|
display: flex;
|
|
194
394
|
flex-wrap: wrap;
|
|
@@ -257,13 +457,13 @@ export const css = `/**
|
|
|
257
457
|
position-area: right;
|
|
258
458
|
}
|
|
259
459
|
|
|
260
|
-
.menu li {
|
|
460
|
+
.menu > li {
|
|
261
461
|
display: flex;
|
|
262
462
|
flex-shrink: 0;
|
|
263
463
|
}
|
|
264
464
|
|
|
265
|
-
.menu li > a,
|
|
266
|
-
.menu li > button,
|
|
465
|
+
.menu > li > a,
|
|
466
|
+
.menu > li > button,
|
|
267
467
|
.menu-item {
|
|
268
468
|
display: flex;
|
|
269
469
|
align-items: center;
|
|
@@ -278,41 +478,46 @@ export const css = `/**
|
|
|
278
478
|
white-space: nowrap;
|
|
279
479
|
}
|
|
280
480
|
|
|
281
|
-
.menu li > a:hover,
|
|
282
|
-
.menu li > button:hover,
|
|
481
|
+
.menu > li > a:hover,
|
|
482
|
+
.menu > li > button:hover,
|
|
283
483
|
.menu-item:hover {
|
|
284
484
|
background-color: var(--color-surface-container);
|
|
285
485
|
}
|
|
286
486
|
|
|
287
|
-
.menu li > a:focus-visible,
|
|
288
|
-
.menu li > button:focus-visible,
|
|
487
|
+
.menu > li > a:focus-visible,
|
|
488
|
+
.menu > li > button:focus-visible,
|
|
289
489
|
.menu-item:focus-visible {
|
|
290
490
|
outline: none;
|
|
291
491
|
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
|
|
292
492
|
}
|
|
293
493
|
|
|
294
|
-
.menu li > a.active,
|
|
295
|
-
.menu li > button.active,
|
|
494
|
+
.menu > li > a.active,
|
|
495
|
+
.menu > li > button.active,
|
|
296
496
|
.menu-item.active,
|
|
297
|
-
.menu li > a[aria-current="page"],
|
|
298
|
-
.menu li > button[aria-current="page"] {
|
|
497
|
+
.menu > li > a[aria-current="page"],
|
|
498
|
+
.menu > li > button[aria-current="page"] {
|
|
499
|
+
background-color: var(--color-primary-container);
|
|
500
|
+
color: var(--color-on-primary-container);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.menu-item[aria-current="page"] {
|
|
299
504
|
background-color: var(--color-primary-container);
|
|
300
505
|
color: var(--color-on-primary-container);
|
|
301
506
|
}
|
|
302
507
|
|
|
303
|
-
.menu li.disabled > a,
|
|
304
|
-
.menu li.disabled > button,
|
|
305
|
-
.menu-item:disabled
|
|
508
|
+
.menu > li.disabled > a,
|
|
509
|
+
.menu > li.disabled > button,
|
|
510
|
+
.menu-item:disabled,
|
|
511
|
+
.menu > li > button:disabled,
|
|
512
|
+
.menu-item[aria-disabled="true"] {
|
|
306
513
|
opacity: 0.5;
|
|
307
|
-
|
|
514
|
+
cursor: not-allowed;
|
|
308
515
|
}
|
|
309
516
|
|
|
310
|
-
/* Menu Horizontal */
|
|
311
517
|
.menu-horizontal {
|
|
312
518
|
flex-direction: row;
|
|
313
519
|
}
|
|
314
520
|
|
|
315
|
-
/* Menu Vertical */
|
|
316
521
|
.menu-vertical {
|
|
317
522
|
flex-direction: column;
|
|
318
523
|
}
|
|
@@ -327,7 +532,6 @@ export const css = `/**
|
|
|
327
532
|
width: 100%;
|
|
328
533
|
}
|
|
329
534
|
|
|
330
|
-
/* Menu Compact */
|
|
331
535
|
.menu-compact li > a,
|
|
332
536
|
.menu-compact li > button,
|
|
333
537
|
.menu-compact .menu-item {
|
|
@@ -335,7 +539,6 @@ export const css = `/**
|
|
|
335
539
|
font-size: 0.8125rem;
|
|
336
540
|
}
|
|
337
541
|
|
|
338
|
-
/* Menu Title */
|
|
339
542
|
.menu-title {
|
|
340
543
|
padding: 0.5rem 1rem;
|
|
341
544
|
font-size: 0.75rem;
|
|
@@ -345,7 +548,23 @@ export const css = `/**
|
|
|
345
548
|
color: var(--color-on-surface-variant);
|
|
346
549
|
}
|
|
347
550
|
|
|
348
|
-
/*
|
|
551
|
+
/* Reduce Motion */
|
|
552
|
+
@media (prefers-reduced-motion: reduce) {
|
|
553
|
+
.menu > li > a,
|
|
554
|
+
.menu > li > button,
|
|
555
|
+
.menu-item,
|
|
556
|
+
.menu[popover] {
|
|
557
|
+
transition: none;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* Breadcrumbs Component Styles
|
|
564
|
+
* DuskMoonUI - Material Design 3 inspired breadcrumb navigation
|
|
565
|
+
*/
|
|
566
|
+
|
|
567
|
+
@layer components {
|
|
349
568
|
.breadcrumbs {
|
|
350
569
|
display: flex;
|
|
351
570
|
align-items: center;
|
|
@@ -357,7 +576,6 @@ export const css = `/**
|
|
|
357
576
|
font-size: 0.875rem;
|
|
358
577
|
}
|
|
359
578
|
|
|
360
|
-
/* List-based breadcrumbs (legacy) */
|
|
361
579
|
.breadcrumbs li {
|
|
362
580
|
display: flex;
|
|
363
581
|
align-items: center;
|
|
@@ -388,7 +606,6 @@ export const css = `/**
|
|
|
388
606
|
color: var(--color-on-surface-variant);
|
|
389
607
|
}
|
|
390
608
|
|
|
391
|
-
/* Span-based breadcrumbs */
|
|
392
609
|
.breadcrumb-item {
|
|
393
610
|
display: inline-flex;
|
|
394
611
|
align-items: center;
|
|
@@ -429,7 +646,6 @@ export const css = `/**
|
|
|
429
646
|
border-radius: var(--radius-xs);
|
|
430
647
|
}
|
|
431
648
|
|
|
432
|
-
/* Separator - Default shows "/" */
|
|
433
649
|
.breadcrumb-separator {
|
|
434
650
|
display: inline-flex;
|
|
435
651
|
align-items: center;
|
|
@@ -443,7 +659,6 @@ export const css = `/**
|
|
|
443
659
|
content: "/";
|
|
444
660
|
}
|
|
445
661
|
|
|
446
|
-
/* Separator Variants */
|
|
447
662
|
.breadcrumbs-slash .breadcrumb-separator::before {
|
|
448
663
|
content: "/";
|
|
449
664
|
}
|
|
@@ -465,7 +680,6 @@ export const css = `/**
|
|
|
465
680
|
content: "|";
|
|
466
681
|
}
|
|
467
682
|
|
|
468
|
-
/* Breadcrumb Icon */
|
|
469
683
|
.breadcrumb-icon {
|
|
470
684
|
display: inline-flex;
|
|
471
685
|
align-items: center;
|
|
@@ -480,7 +694,6 @@ export const css = `/**
|
|
|
480
694
|
height: 100%;
|
|
481
695
|
}
|
|
482
696
|
|
|
483
|
-
/* Home Icon Link */
|
|
484
697
|
.breadcrumb-home {
|
|
485
698
|
display: inline-flex;
|
|
486
699
|
align-items: center;
|
|
@@ -499,7 +712,6 @@ export const css = `/**
|
|
|
499
712
|
height: 1.125rem;
|
|
500
713
|
}
|
|
501
714
|
|
|
502
|
-
/* Collapsed Breadcrumbs (with ellipsis) */
|
|
503
715
|
.breadcrumb-ellipsis {
|
|
504
716
|
display: inline-flex;
|
|
505
717
|
align-items: center;
|
|
@@ -521,7 +733,6 @@ export const css = `/**
|
|
|
521
733
|
background-color: color-mix(in oklch, var(--color-on-surface) 8%, transparent);
|
|
522
734
|
}
|
|
523
735
|
|
|
524
|
-
/* Color Variants */
|
|
525
736
|
.breadcrumbs-primary .breadcrumb-link:hover,
|
|
526
737
|
.breadcrumbs-primary .breadcrumb-item-active {
|
|
527
738
|
color: var(--color-primary);
|
|
@@ -537,7 +748,6 @@ export const css = `/**
|
|
|
537
748
|
color: var(--color-tertiary);
|
|
538
749
|
}
|
|
539
750
|
|
|
540
|
-
/* Size Variants */
|
|
541
751
|
.breadcrumbs-sm {
|
|
542
752
|
font-size: 0.75rem;
|
|
543
753
|
gap: 0.375rem;
|
|
@@ -560,131 +770,156 @@ export const css = `/**
|
|
|
560
770
|
height: 1.25rem;
|
|
561
771
|
}
|
|
562
772
|
|
|
563
|
-
/* Contained Variant (with background) */
|
|
564
773
|
.breadcrumbs-contained {
|
|
565
774
|
padding: 0.75rem 1rem;
|
|
566
775
|
background-color: var(--color-surface-container);
|
|
567
776
|
border-radius: var(--radius-sm);
|
|
568
777
|
}
|
|
569
778
|
|
|
570
|
-
/* No Wrap Variant */
|
|
571
779
|
.breadcrumbs-nowrap {
|
|
572
780
|
flex-wrap: nowrap;
|
|
573
781
|
overflow-x: auto;
|
|
782
|
+
overscroll-behavior-inline: contain;
|
|
783
|
+
scrollbar-width: thin;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
.breadcrumbs-nowrap > * {
|
|
787
|
+
flex: 0 0 auto;
|
|
574
788
|
}
|
|
575
789
|
|
|
576
|
-
/* Disabled Breadcrumb Item */
|
|
577
790
|
.breadcrumb-item-disabled {
|
|
578
791
|
opacity: 1;
|
|
579
792
|
pointer-events: none;
|
|
580
793
|
cursor: not-allowed;
|
|
581
794
|
}
|
|
582
795
|
|
|
583
|
-
|
|
584
|
-
.
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
border-bottom: 1px solid var(--color-outline);
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
.tab {
|
|
592
|
-
display: inline-flex;
|
|
593
|
-
align-items: center;
|
|
594
|
-
justify-content: center;
|
|
595
|
-
gap: 0.5rem;
|
|
596
|
-
padding: 0.75rem 1.25rem;
|
|
597
|
-
font-size: 0.875rem;
|
|
598
|
-
font-weight: 500;
|
|
599
|
-
color: var(--color-on-surface-variant);
|
|
600
|
-
text-decoration: none;
|
|
601
|
-
background-color: transparent;
|
|
602
|
-
border: none;
|
|
603
|
-
border-bottom: 2px solid transparent;
|
|
604
|
-
cursor: pointer;
|
|
605
|
-
transition: all 150ms ease-in-out;
|
|
606
|
-
position: relative;
|
|
607
|
-
margin-bottom: -1px;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
.tab:hover {
|
|
611
|
-
color: var(--color-on-surface);
|
|
612
|
-
background-color: var(--color-surface-container);
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
.tab:focus-visible {
|
|
616
|
-
outline: none;
|
|
617
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
.tab.tab-active,
|
|
621
|
-
.tab[aria-selected="true"] {
|
|
622
|
-
color: var(--color-primary);
|
|
623
|
-
border-bottom-color: var(--color-primary);
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
.tab:disabled {
|
|
627
|
-
opacity: 0.5;
|
|
628
|
-
cursor: not-allowed;
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
/* Tabs Boxed */
|
|
632
|
-
.tabs-boxed {
|
|
633
|
-
background-color: var(--color-surface-container);
|
|
634
|
-
border-radius: var(--radius-sm);
|
|
635
|
-
padding: 0.25rem;
|
|
636
|
-
border: none;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
.tabs-boxed .tab {
|
|
796
|
+
.breadcrumb-ellipsis:focus-visible,
|
|
797
|
+
.breadcrumb-home:focus-visible,
|
|
798
|
+
.breadcrumbs li > a:focus-visible {
|
|
799
|
+
outline: 2px solid currentColor;
|
|
800
|
+
outline-offset: 2px;
|
|
640
801
|
border-radius: var(--radius-xs);
|
|
641
|
-
border-bottom: none;
|
|
642
|
-
margin-bottom: 0;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
.tabs-boxed .tab.tab-active,
|
|
646
|
-
.tabs-boxed .tab[aria-selected="true"] {
|
|
647
|
-
background-color: var(--color-surface);
|
|
648
|
-
color: var(--color-on-surface);
|
|
649
|
-
box-shadow: var(--shadow-xs);
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
/* Tabs Lifted */
|
|
653
|
-
.tabs-lifted {
|
|
654
|
-
border: none;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
.tabs-lifted .tab {
|
|
658
|
-
border: 1px solid transparent;
|
|
659
|
-
border-bottom: none;
|
|
660
|
-
border-radius: var(--radius-sm) var(--radius-sm) 0 0;
|
|
661
|
-
margin-bottom: -1px;
|
|
662
802
|
}
|
|
663
803
|
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
804
|
+
/* Reduce Motion */
|
|
805
|
+
@media (prefers-reduced-motion: reduce) {
|
|
806
|
+
.breadcrumbs a,
|
|
807
|
+
.breadcrumbs-item a,
|
|
808
|
+
.breadcrumbs-link,
|
|
809
|
+
.breadcrumbs-separator {
|
|
810
|
+
transition: none;
|
|
811
|
+
}
|
|
669
812
|
}
|
|
813
|
+
}
|
|
670
814
|
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
815
|
+
/** DuskMoonUI tabs and tab-panel presentation. Interaction remains application-owned. */
|
|
816
|
+
@layer components {
|
|
817
|
+
.tabs {
|
|
818
|
+
display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.25rem;
|
|
819
|
+
border-block-end: 1px solid var(--color-outline); color: var(--color-on-surface);
|
|
675
820
|
}
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
padding: 0.
|
|
679
|
-
font-
|
|
821
|
+
.tab {
|
|
822
|
+
display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
|
|
823
|
+
min-width: 0; padding: 0.75rem 1.25rem; font: inherit; font-size: 0.875rem;
|
|
824
|
+
font-weight: 500; line-height: 1.25rem; color: var(--color-on-surface-variant);
|
|
825
|
+
text-decoration: none; white-space: nowrap; background-color: transparent;
|
|
826
|
+
border: none; border-block-end: 2px solid transparent; cursor: pointer;
|
|
827
|
+
transition: background-color 150ms ease-in-out, color 150ms ease-in-out,
|
|
828
|
+
border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
|
|
829
|
+
position: relative; margin-block-end: -1px;
|
|
830
|
+
}
|
|
831
|
+
.tab:hover:not(:disabled, [aria-disabled="true"]) {
|
|
832
|
+
color: var(--color-on-surface); background-color: var(--color-surface-container);
|
|
680
833
|
}
|
|
834
|
+
.tab:focus-visible {
|
|
835
|
+
outline: 2px solid currentColor; outline-offset: -2px;
|
|
836
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent); z-index: 1;
|
|
837
|
+
}
|
|
838
|
+
.tab:disabled,
|
|
839
|
+
.tab[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
|
|
840
|
+
.tab:is(.tab-active, .tab-active-primary, [aria-selected="true"], [aria-current="page"]) {
|
|
841
|
+
color: var(--color-primary); border-block-end-color: var(--color-primary);
|
|
842
|
+
}
|
|
843
|
+
.tab.tab-active-secondary { color: var(--color-secondary); border-block-end-color: var(--color-secondary); }
|
|
844
|
+
.tab.tab-active-tertiary { color: var(--color-tertiary); border-block-end-color: var(--color-tertiary); }
|
|
845
|
+
|
|
846
|
+
.tabs-pill,
|
|
847
|
+
.tabs-tonal,
|
|
848
|
+
.tabs-boxed { padding: 0.25rem; border: none; border-radius: var(--radius-lg); }
|
|
849
|
+
.tabs-pill .tab,
|
|
850
|
+
.tabs-tonal .tab,
|
|
851
|
+
.tabs-boxed .tab { margin-block-end: 0; border: none; border-radius: var(--radius-lg); }
|
|
852
|
+
.tabs-pill .tab:is(.tab-active, .tab-active-primary, [aria-selected="true"], [aria-current="page"]) {
|
|
853
|
+
color: var(--color-primary-content); background-color: var(--color-primary);
|
|
854
|
+
}
|
|
855
|
+
.tabs-pill .tab.tab-active-secondary { color: var(--color-secondary-content); background-color: var(--color-secondary); }
|
|
856
|
+
.tabs-pill .tab.tab-active-tertiary { color: var(--color-tertiary-content); background-color: var(--color-tertiary); }
|
|
857
|
+
.tabs-tonal .tab:is(.tab-active, .tab-active-primary, [aria-selected="true"], [aria-current="page"]) {
|
|
858
|
+
color: var(--color-on-primary-container); background-color: var(--color-primary-container);
|
|
859
|
+
}
|
|
860
|
+
.tabs-tonal .tab.tab-active-secondary { color: var(--color-on-secondary-container); background-color: var(--color-secondary-container); }
|
|
861
|
+
.tabs-tonal .tab.tab-active-tertiary { color: var(--color-on-tertiary-container); background-color: var(--color-tertiary-container); }
|
|
862
|
+
.tabs-boxed { background-color: var(--color-surface-container); border-radius: var(--radius-sm); }
|
|
863
|
+
.tabs-boxed .tab { border-radius: var(--radius-xs); }
|
|
864
|
+
.tabs-boxed .tab:is(.tab-active, .tab-active-primary, .tab-active-secondary, .tab-active-tertiary, [aria-selected="true"], [aria-current="page"]) {
|
|
865
|
+
color: var(--color-on-surface); background-color: var(--color-surface); box-shadow: var(--shadow-xs);
|
|
866
|
+
}
|
|
867
|
+
.tabs-lifted { border: none; }
|
|
868
|
+
.tabs-lifted .tab {
|
|
869
|
+
border: 1px solid transparent; border-block-end: none;
|
|
870
|
+
border-radius: var(--radius-sm) var(--radius-sm) 0 0; margin-block-end: -1px;
|
|
871
|
+
}
|
|
872
|
+
.tabs-lifted .tab:is(.tab-active, .tab-active-primary, .tab-active-secondary, .tab-active-tertiary, [aria-selected="true"], [aria-current="page"]) {
|
|
873
|
+
background-color: var(--color-surface); border-color: var(--color-outline);
|
|
874
|
+
border-block-end-color: var(--color-surface);
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
.tabs-vertical {
|
|
878
|
+
flex-direction: column; flex-wrap: nowrap; align-items: stretch;
|
|
879
|
+
border-block-end: none; border-inline-end: 1px solid var(--color-outline);
|
|
880
|
+
}
|
|
881
|
+
.tabs-vertical .tab {
|
|
882
|
+
justify-content: flex-start; width: 100%; margin: 0;
|
|
883
|
+
border-block-end: none; border-inline-end: 2px solid transparent;
|
|
884
|
+
}
|
|
885
|
+
.tabs-vertical .tab:is(.tab-active, .tab-active-primary, [aria-selected="true"], [aria-current="page"]) { border-inline-end-color: var(--color-primary); }
|
|
886
|
+
.tabs-vertical .tab.tab-active-secondary { border-inline-end-color: var(--color-secondary); }
|
|
887
|
+
.tabs-vertical .tab.tab-active-tertiary { border-inline-end-color: var(--color-tertiary); }
|
|
888
|
+
.tabs-scrollable {
|
|
889
|
+
flex-wrap: nowrap; max-width: 100%; overflow-x: auto; overflow-y: hidden;
|
|
890
|
+
overscroll-behavior-inline: contain; scrollbar-width: thin;
|
|
891
|
+
}
|
|
892
|
+
.tabs-full .tab { flex: 1 1 0; }
|
|
893
|
+
.tabs-center { justify-content: center; }
|
|
894
|
+
.tabs-end { justify-content: flex-end; }
|
|
895
|
+
|
|
896
|
+
.tabs-sm .tab,
|
|
897
|
+
.tab-sm { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
|
|
898
|
+
.tabs-md .tab { padding: 0.75rem 1.25rem; font-size: 0.875rem; }
|
|
899
|
+
.tabs-lg .tab,
|
|
900
|
+
.tab-lg { padding: 1rem 1.5rem; font-size: 1rem; }
|
|
901
|
+
.tab-xs { padding: 0.375rem 0.625rem; font-size: 0.75rem; }
|
|
902
|
+
.tab-icon { flex: 0 0 auto; font-size: 1.25em; }
|
|
903
|
+
.tab-icon-only { aspect-ratio: 1; padding-inline: 0.75rem; }
|
|
904
|
+
.tab-badge {
|
|
905
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
906
|
+
min-width: 1.25rem; min-height: 1.25rem; padding-inline: 0.375rem;
|
|
907
|
+
font-size: 0.6875rem; font-weight: 600; color: var(--color-error-content);
|
|
908
|
+
background-color: var(--color-error); border-radius: var(--radius-full);
|
|
909
|
+
}
|
|
910
|
+
.tab-panel { display: none; padding: 1rem; color: var(--color-on-surface); }
|
|
911
|
+
.tab-panel:is(.tab-panel-show, [data-active="true"]):not([hidden]) { display: block; }
|
|
912
|
+
.tab-panel[hidden] { display: none !important; }
|
|
913
|
+
|
|
914
|
+
@media (prefers-reduced-motion: reduce) { .tab { scroll-behavior: auto; transition: none; } }
|
|
915
|
+
}
|
|
681
916
|
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
917
|
+
/**
|
|
918
|
+
* Pagination Component Styles
|
|
919
|
+
* DuskMoonUI - Material Design 3 inspired pagination
|
|
920
|
+
*/
|
|
686
921
|
|
|
687
|
-
|
|
922
|
+
@layer components {
|
|
688
923
|
.pagination {
|
|
689
924
|
display: flex;
|
|
690
925
|
align-items: center;
|
|
@@ -726,6 +961,7 @@ export const css = `/**
|
|
|
726
961
|
|
|
727
962
|
.pagination-item-active,
|
|
728
963
|
.pagination-item-active-primary,
|
|
964
|
+
.pagination-item[aria-current="page"],
|
|
729
965
|
.pagination li > a.active,
|
|
730
966
|
.pagination li > button.active,
|
|
731
967
|
.pagination li > a[aria-current="page"],
|
|
@@ -747,6 +983,14 @@ export const css = `/**
|
|
|
747
983
|
border-color: var(--color-tertiary);
|
|
748
984
|
}
|
|
749
985
|
|
|
986
|
+
.pagination-item-active:hover,
|
|
987
|
+
.pagination-item-active-primary:hover,
|
|
988
|
+
.pagination-item[aria-current="page"]:hover,
|
|
989
|
+
.pagination li > a[aria-current="page"]:hover,
|
|
990
|
+
.pagination li > button[aria-current="page"]:hover {
|
|
991
|
+
background-color: color-mix(in oklch, var(--color-primary), black 10%);
|
|
992
|
+
}
|
|
993
|
+
|
|
750
994
|
.pagination-item:focus-visible,
|
|
751
995
|
.pagination-prev:focus-visible,
|
|
752
996
|
.pagination-next:focus-visible,
|
|
@@ -761,13 +1005,12 @@ export const css = `/**
|
|
|
761
1005
|
.pagination-prev:disabled,
|
|
762
1006
|
.pagination-next:disabled,
|
|
763
1007
|
.pagination li > a:disabled,
|
|
764
|
-
.pagination li > button:disabled
|
|
1008
|
+
.pagination li > button:disabled,
|
|
1009
|
+
.pagination a[aria-disabled="true"] {
|
|
765
1010
|
opacity: 0.5;
|
|
766
1011
|
cursor: not-allowed;
|
|
767
|
-
pointer-events: none;
|
|
768
1012
|
}
|
|
769
1013
|
|
|
770
|
-
/* Pagination Ellipsis */
|
|
771
1014
|
.pagination-ellipsis {
|
|
772
1015
|
display: inline-flex;
|
|
773
1016
|
align-items: center;
|
|
@@ -781,7 +1024,6 @@ export const css = `/**
|
|
|
781
1024
|
content: '…';
|
|
782
1025
|
}
|
|
783
1026
|
|
|
784
|
-
/* Pagination Info */
|
|
785
1027
|
.pagination-info {
|
|
786
1028
|
display: flex;
|
|
787
1029
|
flex-direction: row;
|
|
@@ -794,7 +1036,6 @@ export const css = `/**
|
|
|
794
1036
|
color: var(--color-on-surface-variant);
|
|
795
1037
|
}
|
|
796
1038
|
|
|
797
|
-
/* Pagination Input */
|
|
798
1039
|
.pagination-input {
|
|
799
1040
|
display: inline-flex;
|
|
800
1041
|
align-items: center;
|
|
@@ -816,10 +1057,13 @@ export const css = `/**
|
|
|
816
1057
|
|
|
817
1058
|
.pagination-input input:focus {
|
|
818
1059
|
outline: none;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
.pagination-input input:focus-visible {
|
|
819
1063
|
border-color: var(--color-primary);
|
|
1064
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
|
|
820
1065
|
}
|
|
821
1066
|
|
|
822
|
-
/* Pagination Variants */
|
|
823
1067
|
.pagination-outlined .pagination-item,
|
|
824
1068
|
.pagination-outlined .pagination-prev,
|
|
825
1069
|
.pagination-outlined .pagination-next {
|
|
@@ -833,7 +1077,6 @@ export const css = `/**
|
|
|
833
1077
|
border-color: var(--color-primary-container);
|
|
834
1078
|
}
|
|
835
1079
|
|
|
836
|
-
/* Pagination Sizes */
|
|
837
1080
|
.pagination-sm .pagination-item,
|
|
838
1081
|
.pagination-sm .pagination-prev,
|
|
839
1082
|
.pagination-sm .pagination-next {
|
|
@@ -852,7 +1095,6 @@ export const css = `/**
|
|
|
852
1095
|
font-size: 1rem;
|
|
853
1096
|
}
|
|
854
1097
|
|
|
855
|
-
/* Pagination Compact */
|
|
856
1098
|
.pagination-compact {
|
|
857
1099
|
gap: 0;
|
|
858
1100
|
}
|
|
@@ -865,26 +1107,22 @@ export const css = `/**
|
|
|
865
1107
|
|
|
866
1108
|
.pagination-compact .pagination-item:first-child,
|
|
867
1109
|
.pagination-compact .pagination-prev {
|
|
868
|
-
border-radius: var(--radius-sm)
|
|
1110
|
+
border-start-start-radius: var(--radius-sm);
|
|
1111
|
+
border-end-start-radius: var(--radius-sm);
|
|
869
1112
|
}
|
|
870
1113
|
|
|
871
1114
|
.pagination-compact .pagination-item:last-child,
|
|
872
1115
|
.pagination-compact .pagination-next {
|
|
873
|
-
border-radius:
|
|
1116
|
+
border-start-end-radius: var(--radius-sm);
|
|
1117
|
+
border-end-end-radius: var(--radius-sm);
|
|
874
1118
|
}
|
|
875
1119
|
|
|
876
|
-
/* Pagination Responsive */
|
|
877
1120
|
.pagination-responsive {
|
|
878
1121
|
flex-wrap: wrap;
|
|
879
1122
|
justify-content: center;
|
|
880
1123
|
}
|
|
881
1124
|
|
|
882
|
-
/* Reduce Motion */
|
|
883
1125
|
@media (prefers-reduced-motion: reduce) {
|
|
884
|
-
.menu li > a,
|
|
885
|
-
.menu li > button,
|
|
886
|
-
.menu-item,
|
|
887
|
-
.menu[popover],
|
|
888
1126
|
.pagination-item,
|
|
889
1127
|
.pagination-prev,
|
|
890
1128
|
.pagination-next {
|
|
@@ -892,6 +1130,132 @@ export const css = `/**
|
|
|
892
1130
|
}
|
|
893
1131
|
}
|
|
894
1132
|
}
|
|
1133
|
+
|
|
1134
|
+
/** DuskMoonUI text-link primitive. */
|
|
1135
|
+
@layer components {
|
|
1136
|
+
.link {
|
|
1137
|
+
color: var(--color-primary);
|
|
1138
|
+
text-decoration-line: underline;
|
|
1139
|
+
text-decoration-thickness: 0.08em;
|
|
1140
|
+
text-underline-offset: 0.18em;
|
|
1141
|
+
overflow-wrap: anywhere;
|
|
1142
|
+
cursor: pointer;
|
|
1143
|
+
transition: color 150ms ease-in-out, text-decoration-color 150ms ease-in-out,
|
|
1144
|
+
background-color 150ms ease-in-out;
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
.link:hover {
|
|
1148
|
+
color: color-mix(in oklch, var(--color-primary), var(--color-on-surface) 18%);
|
|
1149
|
+
text-decoration-thickness: 0.12em;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
.link:active {
|
|
1153
|
+
color: color-mix(in oklch, var(--color-primary), var(--color-on-surface) 30%);
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
.link:focus-visible {
|
|
1157
|
+
outline: 2px solid currentColor;
|
|
1158
|
+
outline-offset: 3px;
|
|
1159
|
+
border-radius: var(--radius-xs);
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
.link-hover { text-decoration-color: transparent; }
|
|
1163
|
+
.link-hover:hover,
|
|
1164
|
+
.link-hover:focus-visible { text-decoration-color: currentColor; }
|
|
1165
|
+
.link-primary { color: var(--color-primary); }
|
|
1166
|
+
.link-secondary { color: var(--color-secondary); }
|
|
1167
|
+
.link-tertiary { color: var(--color-tertiary); }
|
|
1168
|
+
.link-neutral,
|
|
1169
|
+
.link-inherit { color: inherit; }
|
|
1170
|
+
.link-neutral:hover,
|
|
1171
|
+
.link-inherit:hover { color: color-mix(in oklch, currentColor, var(--color-on-surface) 18%); }
|
|
1172
|
+
|
|
1173
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1174
|
+
.link { transition: none; }
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* Megamenu is a CSS composition layer over native popovers, Menu, and Link.
|
|
1180
|
+
* Give each trigger/panel pair a unique --megamenu-anchor custom identifier.
|
|
1181
|
+
*/
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
@layer components {
|
|
1186
|
+
.megamenu { position: relative; display: flex; align-items: center; max-width: 100%; }
|
|
1187
|
+
.megamenu-bar {
|
|
1188
|
+
display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem;
|
|
1189
|
+
margin: 0; padding: 0; list-style: none;
|
|
1190
|
+
}
|
|
1191
|
+
.megamenu-trigger {
|
|
1192
|
+
anchor-name: var(--megamenu-anchor);
|
|
1193
|
+
display: inline-flex; align-items: center; gap: 0.375rem;
|
|
1194
|
+
padding: 0.625rem 0.875rem; color: var(--color-on-surface);
|
|
1195
|
+
background: transparent; border: 0; border-radius: var(--radius-sm);
|
|
1196
|
+
font: inherit; cursor: pointer;
|
|
1197
|
+
}
|
|
1198
|
+
.megamenu-trigger:hover,
|
|
1199
|
+
.megamenu-trigger[aria-expanded="true"],
|
|
1200
|
+
.megamenu:has(.megamenu-panel:popover-open) .megamenu-trigger {
|
|
1201
|
+
color: var(--color-on-primary-container);
|
|
1202
|
+
background-color: var(--color-primary-container);
|
|
1203
|
+
}
|
|
1204
|
+
.megamenu-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
|
|
1205
|
+
.megamenu-panel[popover] {
|
|
1206
|
+
position-anchor: var(--megamenu-anchor);
|
|
1207
|
+
position-area: block-end span-inline-end;
|
|
1208
|
+
position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
|
|
1209
|
+
display: none; box-sizing: border-box;
|
|
1210
|
+
width: min(48rem, calc(100vw - 2rem)); max-width: calc(100vw - 2rem);
|
|
1211
|
+
max-height: min(36rem, calc(100dvh - 2rem)); margin: 0.5rem; padding: 1rem;
|
|
1212
|
+
overflow: auto; color: var(--color-on-surface);
|
|
1213
|
+
background-color: var(--color-surface-container);
|
|
1214
|
+
border: 1px solid var(--color-outline-variant); border-radius: var(--radius-lg);
|
|
1215
|
+
box-shadow: var(--shadow-lg); opacity: 0;
|
|
1216
|
+
transform: translateY(-0.25rem) scale(0.98);
|
|
1217
|
+
transition: opacity 150ms ease-out, transform 150ms ease-out,
|
|
1218
|
+
overlay 150ms ease-out allow-discrete, display 150ms ease-out allow-discrete;
|
|
1219
|
+
}
|
|
1220
|
+
.megamenu-panel[popover]:popover-open { display: block; opacity: 1; transform: translateY(0) scale(1); }
|
|
1221
|
+
.megamenu-panel-full[popover] { width: calc(100vw - 2rem); }
|
|
1222
|
+
.megamenu-grid {
|
|
1223
|
+
display: grid;
|
|
1224
|
+
grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
|
|
1225
|
+
gap: 1.25rem;
|
|
1226
|
+
}
|
|
1227
|
+
.megamenu-group { min-width: 0; }
|
|
1228
|
+
.megamenu-heading {
|
|
1229
|
+
margin: 0 0 0.5rem; color: var(--color-on-surface); font-size: 0.75rem;
|
|
1230
|
+
font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
|
|
1231
|
+
}
|
|
1232
|
+
.megamenu-panel .menu { flex-direction: column; padding: 0; }
|
|
1233
|
+
.megamenu-panel .menu > li,
|
|
1234
|
+
.megamenu-panel .menu > li > .link { width: 100%; }
|
|
1235
|
+
.megamenu-supporting { color: var(--color-on-surface-variant); font-size: 0.875rem; }
|
|
1236
|
+
|
|
1237
|
+
@starting-style {
|
|
1238
|
+
.megamenu-panel[popover]:popover-open { opacity: 0; transform: translateY(-0.25rem) scale(0.98); }
|
|
1239
|
+
}
|
|
1240
|
+
@supports not (position-area: bottom) {
|
|
1241
|
+
.megamenu-panel[popover] { position: fixed; inset: 4.5rem 1rem auto; margin-inline: auto; }
|
|
1242
|
+
}
|
|
1243
|
+
/* Baseline fallback: without Popover API support, links remain visible and reachable. */
|
|
1244
|
+
@supports not selector(:popover-open) {
|
|
1245
|
+
.megamenu { display: block; }
|
|
1246
|
+
.megamenu-panel[popover] {
|
|
1247
|
+
position: static; display: block; width: 100%; max-width: 100%; max-height: none;
|
|
1248
|
+
margin: 0.5rem 0 0; opacity: 1; transform: none;
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
@media (max-width: 47.999rem) {
|
|
1252
|
+
.megamenu-desktop { display: none; }
|
|
1253
|
+
.megamenu-mobile { display: block; }
|
|
1254
|
+
}
|
|
1255
|
+
@media (min-width: 48rem) { .megamenu-mobile { display: none; } }
|
|
1256
|
+
@media (prefers-reduced-motion: reduce) { .megamenu-panel[popover] { transition: none; } }
|
|
1257
|
+
}
|
|
1258
|
+
|
|
895
1259
|
`;
|
|
896
1260
|
|
|
897
1261
|
const sheet = typeof CSSStyleSheet !== 'undefined' ? new CSSStyleSheet() : null;
|