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