@duskmoon-dev/core 1.19.5 → 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/dialog.css +29 -3
- package/dist/components/dropdown.css +91 -0
- package/dist/components/fab.css +182 -0
- package/dist/components/index.css +1167 -302
- package/dist/components/link.css +43 -0
- package/dist/components/megamenu.css +298 -0
- package/dist/components/menu.css +175 -0
- package/dist/components/modal.css +4 -3
- package/dist/components/navbar.css +283 -0
- package/dist/components/navigation.css +606 -202
- 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/swap.css +116 -0
- 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/dialog.js +29 -3
- package/dist/esm/components/dropdown.d.ts +5 -0
- package/dist/esm/components/dropdown.js +100 -0
- package/dist/esm/components/fab.d.ts +5 -0
- package/dist/esm/components/fab.js +191 -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/modal.js +4 -3
- package/dist/esm/components/navbar.d.ts +5 -0
- package/dist/esm/components/navbar.js +292 -0
- package/dist/esm/components/navigation.js +606 -202
- 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/swap.d.ts +5 -0
- package/dist/esm/components/swap.js +125 -0
- package/dist/esm/components/tabs.d.ts +5 -0
- package/dist/esm/components/tabs.js +110 -0
- package/dist/index.css +1167 -302
- package/dist/index.min.css +1 -1
- package/dist/standalone/duskmoonui-themes.css +1 -1
- package/dist/standalone/duskmoonui.css +1168 -303
- package/dist/standalone/duskmoonui.js +23 -7
- package/dist/standalone/duskmoonui.mjs +23 -7
- package/package.json +61 -1
|
@@ -1,10 +1,109 @@
|
|
|
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.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/* Keep the historical Dropdown coverage and cascade order. */
|
|
9
|
+
/**
|
|
10
|
+
* Dropdown Component Styles
|
|
11
|
+
* Native Popover disclosure with logical CSS anchor positioning.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
@layer components {
|
|
15
|
+
.dropdown {
|
|
16
|
+
position: relative;
|
|
17
|
+
display: inline-block;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.dropdown > .dropdown-content[popover] {
|
|
21
|
+
display: none;
|
|
22
|
+
position: fixed;
|
|
23
|
+
inset-block-start: auto;
|
|
24
|
+
inset-block-end: max(0.5rem, env(safe-area-inset-bottom, 0px));
|
|
25
|
+
inset-inline-start: auto;
|
|
26
|
+
inset-inline-end: max(
|
|
27
|
+
0.5rem,
|
|
28
|
+
env(safe-area-inset-left, 0px),
|
|
29
|
+
env(safe-area-inset-right, 0px)
|
|
30
|
+
);
|
|
31
|
+
z-index: 50;
|
|
32
|
+
min-inline-size: 12rem;
|
|
33
|
+
max-inline-size: min(24rem, calc(100dvw - 1rem));
|
|
34
|
+
max-block-size: calc(100dvh - 1rem);
|
|
35
|
+
margin: 0;
|
|
36
|
+
padding: 0.5rem;
|
|
37
|
+
overflow: auto;
|
|
38
|
+
color: var(--color-on-surface);
|
|
39
|
+
background-color: var(--color-surface);
|
|
40
|
+
border: 1px solid var(--color-outline);
|
|
41
|
+
border-radius: var(--radius-sm);
|
|
42
|
+
box-shadow: var(--shadow-lg);
|
|
43
|
+
opacity: 0;
|
|
44
|
+
visibility: hidden;
|
|
45
|
+
pointer-events: none;
|
|
46
|
+
transform: translateY(-0.5rem);
|
|
47
|
+
transition:
|
|
48
|
+
opacity 150ms ease-out,
|
|
49
|
+
transform 150ms ease-out,
|
|
50
|
+
overlay 150ms ease-out allow-discrete,
|
|
51
|
+
display 150ms ease-out allow-discrete;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.dropdown > .dropdown-content[popover]:popover-open {
|
|
55
|
+
display: block;
|
|
56
|
+
opacity: 1;
|
|
57
|
+
visibility: visible;
|
|
58
|
+
pointer-events: auto;
|
|
59
|
+
transform: translateY(0);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@starting-style {
|
|
63
|
+
.dropdown > .dropdown-content[popover]:popover-open {
|
|
64
|
+
opacity: 0;
|
|
65
|
+
transform: translateY(-0.5rem);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@supports (position-area: block-end) {
|
|
70
|
+
.dropdown > .dropdown-content[popover] {
|
|
71
|
+
inset: auto;
|
|
72
|
+
margin: 0.25rem;
|
|
73
|
+
position-area: block-end span-inline-end;
|
|
74
|
+
position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.dropdown.dropdown-block-start > .dropdown-content[popover] {
|
|
78
|
+
position-area: block-start span-inline-end;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.dropdown.dropdown-block-end > .dropdown-content[popover] {
|
|
82
|
+
position-area: block-end span-inline-end;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.dropdown.dropdown-inline-start > .dropdown-content[popover] {
|
|
86
|
+
position-area: inline-start span-block-end;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.dropdown.dropdown-inline-end > .dropdown-content[popover] {
|
|
90
|
+
position-area: inline-end span-block-end;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@media (prefers-reduced-motion: reduce) {
|
|
95
|
+
.dropdown > .dropdown-content[popover] {
|
|
96
|
+
transition: none;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Navbar Component Styles
|
|
103
|
+
* DuskMoonUI - Material Design 3 inspired navigation bar
|
|
4
104
|
*/
|
|
5
105
|
|
|
6
106
|
@layer components {
|
|
7
|
-
/* Navbar Base */
|
|
8
107
|
.navbar {
|
|
9
108
|
display: flex;
|
|
10
109
|
align-items: center;
|
|
@@ -13,6 +112,9 @@
|
|
|
13
112
|
padding: 0.5rem 1rem;
|
|
14
113
|
background-color: var(--color-surface);
|
|
15
114
|
color: var(--color-on-surface);
|
|
115
|
+
gap: 1rem;
|
|
116
|
+
border-block-end: 1px solid var(--color-outline-variant);
|
|
117
|
+
min-width: 0;
|
|
16
118
|
}
|
|
17
119
|
|
|
18
120
|
.navbar-primary {
|
|
@@ -75,6 +177,7 @@
|
|
|
75
177
|
flex: 1;
|
|
76
178
|
justify-content: flex-start;
|
|
77
179
|
gap: 0.5rem;
|
|
180
|
+
min-width: 0;
|
|
78
181
|
}
|
|
79
182
|
|
|
80
183
|
.navbar-center {
|
|
@@ -83,6 +186,10 @@
|
|
|
83
186
|
justify-content: center;
|
|
84
187
|
flex-shrink: 0;
|
|
85
188
|
gap: 0.5rem;
|
|
189
|
+
min-width: 0;
|
|
190
|
+
overflow-x: auto;
|
|
191
|
+
overscroll-behavior-inline: contain;
|
|
192
|
+
scrollbar-width: thin;
|
|
86
193
|
}
|
|
87
194
|
|
|
88
195
|
.navbar-end {
|
|
@@ -91,9 +198,196 @@
|
|
|
91
198
|
flex: 1;
|
|
92
199
|
justify-content: flex-end;
|
|
93
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;
|
|
94
244
|
}
|
|
95
245
|
|
|
96
|
-
|
|
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);
|
|
300
|
+
}
|
|
301
|
+
|
|
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 {
|
|
97
391
|
.menu {
|
|
98
392
|
display: flex;
|
|
99
393
|
flex-wrap: wrap;
|
|
@@ -162,13 +456,13 @@
|
|
|
162
456
|
position-area: right;
|
|
163
457
|
}
|
|
164
458
|
|
|
165
|
-
.menu li {
|
|
459
|
+
.menu > li {
|
|
166
460
|
display: flex;
|
|
167
461
|
flex-shrink: 0;
|
|
168
462
|
}
|
|
169
463
|
|
|
170
|
-
.menu li > a,
|
|
171
|
-
.menu li > button,
|
|
464
|
+
.menu > li > a,
|
|
465
|
+
.menu > li > button,
|
|
172
466
|
.menu-item {
|
|
173
467
|
display: flex;
|
|
174
468
|
align-items: center;
|
|
@@ -183,41 +477,46 @@
|
|
|
183
477
|
white-space: nowrap;
|
|
184
478
|
}
|
|
185
479
|
|
|
186
|
-
.menu li > a:hover,
|
|
187
|
-
.menu li > button:hover,
|
|
480
|
+
.menu > li > a:hover,
|
|
481
|
+
.menu > li > button:hover,
|
|
188
482
|
.menu-item:hover {
|
|
189
483
|
background-color: var(--color-surface-container);
|
|
190
484
|
}
|
|
191
485
|
|
|
192
|
-
.menu li > a:focus-visible,
|
|
193
|
-
.menu li > button:focus-visible,
|
|
486
|
+
.menu > li > a:focus-visible,
|
|
487
|
+
.menu > li > button:focus-visible,
|
|
194
488
|
.menu-item:focus-visible {
|
|
195
489
|
outline: none;
|
|
196
490
|
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
|
|
197
491
|
}
|
|
198
492
|
|
|
199
|
-
.menu li > a.active,
|
|
200
|
-
.menu li > button.active,
|
|
493
|
+
.menu > li > a.active,
|
|
494
|
+
.menu > li > button.active,
|
|
201
495
|
.menu-item.active,
|
|
202
|
-
.menu li > a[aria-current="page"],
|
|
203
|
-
.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"] {
|
|
204
503
|
background-color: var(--color-primary-container);
|
|
205
504
|
color: var(--color-on-primary-container);
|
|
206
505
|
}
|
|
207
506
|
|
|
208
|
-
.menu li.disabled > a,
|
|
209
|
-
.menu li.disabled > button,
|
|
210
|
-
.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"] {
|
|
211
512
|
opacity: 0.5;
|
|
212
|
-
|
|
513
|
+
cursor: not-allowed;
|
|
213
514
|
}
|
|
214
515
|
|
|
215
|
-
/* Menu Horizontal */
|
|
216
516
|
.menu-horizontal {
|
|
217
517
|
flex-direction: row;
|
|
218
518
|
}
|
|
219
519
|
|
|
220
|
-
/* Menu Vertical */
|
|
221
520
|
.menu-vertical {
|
|
222
521
|
flex-direction: column;
|
|
223
522
|
}
|
|
@@ -232,7 +531,6 @@
|
|
|
232
531
|
width: 100%;
|
|
233
532
|
}
|
|
234
533
|
|
|
235
|
-
/* Menu Compact */
|
|
236
534
|
.menu-compact li > a,
|
|
237
535
|
.menu-compact li > button,
|
|
238
536
|
.menu-compact .menu-item {
|
|
@@ -240,7 +538,6 @@
|
|
|
240
538
|
font-size: 0.8125rem;
|
|
241
539
|
}
|
|
242
540
|
|
|
243
|
-
/* Menu Title */
|
|
244
541
|
.menu-title {
|
|
245
542
|
padding: 0.5rem 1rem;
|
|
246
543
|
font-size: 0.75rem;
|
|
@@ -250,7 +547,23 @@
|
|
|
250
547
|
color: var(--color-on-surface-variant);
|
|
251
548
|
}
|
|
252
549
|
|
|
253
|
-
/*
|
|
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 {
|
|
254
567
|
.breadcrumbs {
|
|
255
568
|
display: flex;
|
|
256
569
|
align-items: center;
|
|
@@ -262,7 +575,6 @@
|
|
|
262
575
|
font-size: 0.875rem;
|
|
263
576
|
}
|
|
264
577
|
|
|
265
|
-
/* List-based breadcrumbs (legacy) */
|
|
266
578
|
.breadcrumbs li {
|
|
267
579
|
display: flex;
|
|
268
580
|
align-items: center;
|
|
@@ -293,7 +605,6 @@
|
|
|
293
605
|
color: var(--color-on-surface-variant);
|
|
294
606
|
}
|
|
295
607
|
|
|
296
|
-
/* Span-based breadcrumbs */
|
|
297
608
|
.breadcrumb-item {
|
|
298
609
|
display: inline-flex;
|
|
299
610
|
align-items: center;
|
|
@@ -334,7 +645,6 @@
|
|
|
334
645
|
border-radius: var(--radius-xs);
|
|
335
646
|
}
|
|
336
647
|
|
|
337
|
-
/* Separator - Default shows "/" */
|
|
338
648
|
.breadcrumb-separator {
|
|
339
649
|
display: inline-flex;
|
|
340
650
|
align-items: center;
|
|
@@ -348,7 +658,6 @@
|
|
|
348
658
|
content: "/";
|
|
349
659
|
}
|
|
350
660
|
|
|
351
|
-
/* Separator Variants */
|
|
352
661
|
.breadcrumbs-slash .breadcrumb-separator::before {
|
|
353
662
|
content: "/";
|
|
354
663
|
}
|
|
@@ -370,7 +679,6 @@
|
|
|
370
679
|
content: "|";
|
|
371
680
|
}
|
|
372
681
|
|
|
373
|
-
/* Breadcrumb Icon */
|
|
374
682
|
.breadcrumb-icon {
|
|
375
683
|
display: inline-flex;
|
|
376
684
|
align-items: center;
|
|
@@ -385,7 +693,6 @@
|
|
|
385
693
|
height: 100%;
|
|
386
694
|
}
|
|
387
695
|
|
|
388
|
-
/* Home Icon Link */
|
|
389
696
|
.breadcrumb-home {
|
|
390
697
|
display: inline-flex;
|
|
391
698
|
align-items: center;
|
|
@@ -404,7 +711,6 @@
|
|
|
404
711
|
height: 1.125rem;
|
|
405
712
|
}
|
|
406
713
|
|
|
407
|
-
/* Collapsed Breadcrumbs (with ellipsis) */
|
|
408
714
|
.breadcrumb-ellipsis {
|
|
409
715
|
display: inline-flex;
|
|
410
716
|
align-items: center;
|
|
@@ -426,7 +732,6 @@
|
|
|
426
732
|
background-color: color-mix(in oklch, var(--color-on-surface) 8%, transparent);
|
|
427
733
|
}
|
|
428
734
|
|
|
429
|
-
/* Color Variants */
|
|
430
735
|
.breadcrumbs-primary .breadcrumb-link:hover,
|
|
431
736
|
.breadcrumbs-primary .breadcrumb-item-active {
|
|
432
737
|
color: var(--color-primary);
|
|
@@ -442,7 +747,6 @@
|
|
|
442
747
|
color: var(--color-tertiary);
|
|
443
748
|
}
|
|
444
749
|
|
|
445
|
-
/* Size Variants */
|
|
446
750
|
.breadcrumbs-sm {
|
|
447
751
|
font-size: 0.75rem;
|
|
448
752
|
gap: 0.375rem;
|
|
@@ -465,185 +769,156 @@
|
|
|
465
769
|
height: 1.25rem;
|
|
466
770
|
}
|
|
467
771
|
|
|
468
|
-
/* Contained Variant (with background) */
|
|
469
772
|
.breadcrumbs-contained {
|
|
470
773
|
padding: 0.75rem 1rem;
|
|
471
774
|
background-color: var(--color-surface-container);
|
|
472
775
|
border-radius: var(--radius-sm);
|
|
473
776
|
}
|
|
474
777
|
|
|
475
|
-
/* No Wrap Variant */
|
|
476
778
|
.breadcrumbs-nowrap {
|
|
477
779
|
flex-wrap: nowrap;
|
|
478
780
|
overflow-x: auto;
|
|
781
|
+
overscroll-behavior-inline: contain;
|
|
782
|
+
scrollbar-width: thin;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
.breadcrumbs-nowrap > * {
|
|
786
|
+
flex: 0 0 auto;
|
|
479
787
|
}
|
|
480
788
|
|
|
481
|
-
/* Disabled Breadcrumb Item */
|
|
482
789
|
.breadcrumb-item-disabled {
|
|
483
790
|
opacity: 1;
|
|
484
791
|
pointer-events: none;
|
|
485
792
|
cursor: not-allowed;
|
|
486
793
|
}
|
|
487
794
|
|
|
488
|
-
|
|
489
|
-
.
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
border-bottom: 1px solid var(--color-outline);
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
.tab {
|
|
497
|
-
display: inline-flex;
|
|
498
|
-
align-items: center;
|
|
499
|
-
justify-content: center;
|
|
500
|
-
gap: 0.5rem;
|
|
501
|
-
padding: 0.75rem 1.25rem;
|
|
502
|
-
font-size: 0.875rem;
|
|
503
|
-
font-weight: 500;
|
|
504
|
-
color: var(--color-on-surface-variant);
|
|
505
|
-
text-decoration: none;
|
|
506
|
-
background-color: transparent;
|
|
507
|
-
border: none;
|
|
508
|
-
border-bottom: 2px solid transparent;
|
|
509
|
-
cursor: pointer;
|
|
510
|
-
transition: all 150ms ease-in-out;
|
|
511
|
-
position: relative;
|
|
512
|
-
margin-bottom: -1px;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
.tab:hover {
|
|
516
|
-
color: var(--color-on-surface);
|
|
517
|
-
background-color: var(--color-surface-container);
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
.tab:focus-visible {
|
|
521
|
-
outline: none;
|
|
522
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
.tab.tab-active,
|
|
526
|
-
.tab[aria-selected="true"] {
|
|
527
|
-
color: var(--color-primary);
|
|
528
|
-
border-bottom-color: var(--color-primary);
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
.tab:disabled {
|
|
532
|
-
opacity: 0.5;
|
|
533
|
-
cursor: not-allowed;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
/* Tabs Boxed */
|
|
537
|
-
.tabs-boxed {
|
|
538
|
-
background-color: var(--color-surface-container);
|
|
539
|
-
border-radius: var(--radius-sm);
|
|
540
|
-
padding: 0.25rem;
|
|
541
|
-
border: none;
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
.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;
|
|
545
800
|
border-radius: var(--radius-xs);
|
|
546
|
-
border-bottom: none;
|
|
547
|
-
margin-bottom: 0;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
.tabs-boxed .tab.tab-active,
|
|
551
|
-
.tabs-boxed .tab[aria-selected="true"] {
|
|
552
|
-
background-color: var(--color-surface);
|
|
553
|
-
color: var(--color-on-surface);
|
|
554
|
-
box-shadow: var(--shadow-xs);
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
/* Tabs Lifted */
|
|
558
|
-
.tabs-lifted {
|
|
559
|
-
border: none;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
.tabs-lifted .tab {
|
|
563
|
-
border: 1px solid transparent;
|
|
564
|
-
border-bottom: none;
|
|
565
|
-
border-radius: var(--radius-sm) var(--radius-sm) 0 0;
|
|
566
|
-
margin-bottom: -1px;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
.tabs-lifted .tab.tab-active,
|
|
570
|
-
.tabs-lifted .tab[aria-selected="true"] {
|
|
571
|
-
background-color: var(--color-surface);
|
|
572
|
-
border-color: var(--color-outline);
|
|
573
|
-
border-bottom-color: var(--color-surface);
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
/* Tab Sizes */
|
|
577
|
-
.tab-xs {
|
|
578
|
-
padding: 0.375rem 0.625rem;
|
|
579
|
-
font-size: 0.75rem;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
.tab-sm {
|
|
583
|
-
padding: 0.5rem 0.875rem;
|
|
584
|
-
font-size: 0.8125rem;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
.tab-lg {
|
|
588
|
-
padding: 1rem 1.5rem;
|
|
589
|
-
font-size: 1rem;
|
|
590
801
|
}
|
|
591
802
|
|
|
592
|
-
/*
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
z-index: 50;
|
|
601
|
-
min-width: 12rem;
|
|
602
|
-
padding: 0.5rem;
|
|
603
|
-
background-color: var(--color-surface);
|
|
604
|
-
border: 1px solid var(--color-outline);
|
|
605
|
-
border-radius: var(--radius-sm);
|
|
606
|
-
box-shadow: var(--shadow-lg);
|
|
607
|
-
opacity: 0;
|
|
608
|
-
visibility: hidden;
|
|
609
|
-
transform: translateY(-0.5rem);
|
|
610
|
-
transition: all 150ms ease-in-out;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
.dropdown:hover .dropdown-content,
|
|
614
|
-
.dropdown:focus-within .dropdown-content,
|
|
615
|
-
.dropdown.dropdown-open .dropdown-content {
|
|
616
|
-
opacity: 1;
|
|
617
|
-
visibility: visible;
|
|
618
|
-
transform: translateY(0);
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
/* Dropdown Positions */
|
|
622
|
-
.dropdown-end .dropdown-content {
|
|
623
|
-
right: 0;
|
|
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
|
+
}
|
|
624
811
|
}
|
|
812
|
+
}
|
|
625
813
|
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
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);
|
|
630
819
|
}
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
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);
|
|
637
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
|
+
}
|
|
638
915
|
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
margin-left: 0.25rem;
|
|
644
|
-
}
|
|
916
|
+
/**
|
|
917
|
+
* Pagination Component Styles
|
|
918
|
+
* DuskMoonUI - Material Design 3 inspired pagination
|
|
919
|
+
*/
|
|
645
920
|
|
|
646
|
-
|
|
921
|
+
@layer components {
|
|
647
922
|
.pagination {
|
|
648
923
|
display: flex;
|
|
649
924
|
align-items: center;
|
|
@@ -685,6 +960,7 @@
|
|
|
685
960
|
|
|
686
961
|
.pagination-item-active,
|
|
687
962
|
.pagination-item-active-primary,
|
|
963
|
+
.pagination-item[aria-current="page"],
|
|
688
964
|
.pagination li > a.active,
|
|
689
965
|
.pagination li > button.active,
|
|
690
966
|
.pagination li > a[aria-current="page"],
|
|
@@ -706,6 +982,14 @@
|
|
|
706
982
|
border-color: var(--color-tertiary);
|
|
707
983
|
}
|
|
708
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
|
+
|
|
709
993
|
.pagination-item:focus-visible,
|
|
710
994
|
.pagination-prev:focus-visible,
|
|
711
995
|
.pagination-next:focus-visible,
|
|
@@ -720,13 +1004,12 @@
|
|
|
720
1004
|
.pagination-prev:disabled,
|
|
721
1005
|
.pagination-next:disabled,
|
|
722
1006
|
.pagination li > a:disabled,
|
|
723
|
-
.pagination li > button:disabled
|
|
1007
|
+
.pagination li > button:disabled,
|
|
1008
|
+
.pagination a[aria-disabled="true"] {
|
|
724
1009
|
opacity: 0.5;
|
|
725
1010
|
cursor: not-allowed;
|
|
726
|
-
pointer-events: none;
|
|
727
1011
|
}
|
|
728
1012
|
|
|
729
|
-
/* Pagination Ellipsis */
|
|
730
1013
|
.pagination-ellipsis {
|
|
731
1014
|
display: inline-flex;
|
|
732
1015
|
align-items: center;
|
|
@@ -740,7 +1023,6 @@
|
|
|
740
1023
|
content: '…';
|
|
741
1024
|
}
|
|
742
1025
|
|
|
743
|
-
/* Pagination Info */
|
|
744
1026
|
.pagination-info {
|
|
745
1027
|
display: flex;
|
|
746
1028
|
flex-direction: row;
|
|
@@ -753,7 +1035,6 @@
|
|
|
753
1035
|
color: var(--color-on-surface-variant);
|
|
754
1036
|
}
|
|
755
1037
|
|
|
756
|
-
/* Pagination Input */
|
|
757
1038
|
.pagination-input {
|
|
758
1039
|
display: inline-flex;
|
|
759
1040
|
align-items: center;
|
|
@@ -775,10 +1056,13 @@
|
|
|
775
1056
|
|
|
776
1057
|
.pagination-input input:focus {
|
|
777
1058
|
outline: none;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
.pagination-input input:focus-visible {
|
|
778
1062
|
border-color: var(--color-primary);
|
|
1063
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
|
|
779
1064
|
}
|
|
780
1065
|
|
|
781
|
-
/* Pagination Variants */
|
|
782
1066
|
.pagination-outlined .pagination-item,
|
|
783
1067
|
.pagination-outlined .pagination-prev,
|
|
784
1068
|
.pagination-outlined .pagination-next {
|
|
@@ -792,7 +1076,6 @@
|
|
|
792
1076
|
border-color: var(--color-primary-container);
|
|
793
1077
|
}
|
|
794
1078
|
|
|
795
|
-
/* Pagination Sizes */
|
|
796
1079
|
.pagination-sm .pagination-item,
|
|
797
1080
|
.pagination-sm .pagination-prev,
|
|
798
1081
|
.pagination-sm .pagination-next {
|
|
@@ -811,7 +1094,6 @@
|
|
|
811
1094
|
font-size: 1rem;
|
|
812
1095
|
}
|
|
813
1096
|
|
|
814
|
-
/* Pagination Compact */
|
|
815
1097
|
.pagination-compact {
|
|
816
1098
|
gap: 0;
|
|
817
1099
|
}
|
|
@@ -824,26 +1106,22 @@
|
|
|
824
1106
|
|
|
825
1107
|
.pagination-compact .pagination-item:first-child,
|
|
826
1108
|
.pagination-compact .pagination-prev {
|
|
827
|
-
border-radius: var(--radius-sm)
|
|
1109
|
+
border-start-start-radius: var(--radius-sm);
|
|
1110
|
+
border-end-start-radius: var(--radius-sm);
|
|
828
1111
|
}
|
|
829
1112
|
|
|
830
1113
|
.pagination-compact .pagination-item:last-child,
|
|
831
1114
|
.pagination-compact .pagination-next {
|
|
832
|
-
border-radius:
|
|
1115
|
+
border-start-end-radius: var(--radius-sm);
|
|
1116
|
+
border-end-end-radius: var(--radius-sm);
|
|
833
1117
|
}
|
|
834
1118
|
|
|
835
|
-
/* Pagination Responsive */
|
|
836
1119
|
.pagination-responsive {
|
|
837
1120
|
flex-wrap: wrap;
|
|
838
1121
|
justify-content: center;
|
|
839
1122
|
}
|
|
840
1123
|
|
|
841
|
-
/* Reduce Motion */
|
|
842
1124
|
@media (prefers-reduced-motion: reduce) {
|
|
843
|
-
.menu li > a,
|
|
844
|
-
.menu li > button,
|
|
845
|
-
.menu-item,
|
|
846
|
-
.menu[popover],
|
|
847
1125
|
.pagination-item,
|
|
848
1126
|
.pagination-prev,
|
|
849
1127
|
.pagination-next {
|
|
@@ -851,3 +1129,129 @@
|
|
|
851
1129
|
}
|
|
852
1130
|
}
|
|
853
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
|
+
|