@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
|
@@ -8,15 +8,15 @@ export const css = `/**
|
|
|
8
8
|
/* Base Bottom Navigation */
|
|
9
9
|
.bottom-nav {
|
|
10
10
|
position: fixed;
|
|
11
|
-
bottom: 0;
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
bottom: 0; /* Physical fallback retained for legacy test and browser coverage. */
|
|
12
|
+
inset-block-end: 0;
|
|
13
|
+
inset-inline: 0;
|
|
14
14
|
z-index: 1000;
|
|
15
15
|
display: flex;
|
|
16
16
|
align-items: stretch;
|
|
17
17
|
justify-content: space-around;
|
|
18
18
|
min-height: 5rem;
|
|
19
|
-
padding-
|
|
19
|
+
padding-block-end: env(safe-area-inset-bottom, 0);
|
|
20
20
|
background-color: var(--color-surface);
|
|
21
21
|
box-shadow: 0 -1px 3px 0 color-mix(in srgb, var(--color-shadow) 10%, transparent);
|
|
22
22
|
}
|
|
@@ -38,6 +38,8 @@ export const css = `/**
|
|
|
38
38
|
transition: color 150ms ease-in-out;
|
|
39
39
|
text-decoration: none;
|
|
40
40
|
gap: 0.25rem;
|
|
41
|
+
position: relative;
|
|
42
|
+
border-radius: var(--radius-md);
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
.bottom-nav-item:hover {
|
|
@@ -45,7 +47,8 @@ export const css = `/**
|
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
.bottom-nav-item:focus-visible {
|
|
48
|
-
outline:
|
|
50
|
+
outline: 2px solid currentColor;
|
|
51
|
+
outline-offset: -2px;
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
.bottom-nav-item:focus-visible .bottom-nav-indicator {
|
|
@@ -54,10 +57,18 @@ export const css = `/**
|
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
/* Active State */
|
|
57
|
-
.bottom-nav-item.active
|
|
60
|
+
.bottom-nav-item.active,
|
|
61
|
+
.bottom-nav-item-active,
|
|
62
|
+
.bottom-nav-item-active-primary,
|
|
63
|
+
.bottom-nav-item[aria-current="page"] {
|
|
58
64
|
color: var(--color-on-surface);
|
|
59
65
|
}
|
|
60
66
|
|
|
67
|
+
.bottom-nav-item:is(.active, .bottom-nav-item-active, .bottom-nav-item-active-primary, [aria-current="page"]):not(:has(.bottom-nav-indicator)) {
|
|
68
|
+
color: var(--color-on-secondary-container);
|
|
69
|
+
background-color: var(--color-secondary-container);
|
|
70
|
+
}
|
|
71
|
+
|
|
61
72
|
/* Icon Container with Indicator */
|
|
62
73
|
.bottom-nav-indicator {
|
|
63
74
|
position: relative;
|
|
@@ -74,7 +85,10 @@ export const css = `/**
|
|
|
74
85
|
background-color: var(--color-surface-container);
|
|
75
86
|
}
|
|
76
87
|
|
|
77
|
-
.bottom-nav-item.active .bottom-nav-indicator
|
|
88
|
+
.bottom-nav-item.active .bottom-nav-indicator,
|
|
89
|
+
.bottom-nav-item-active .bottom-nav-indicator,
|
|
90
|
+
.bottom-nav-item-active-primary .bottom-nav-indicator,
|
|
91
|
+
.bottom-nav-item[aria-current="page"] .bottom-nav-indicator {
|
|
78
92
|
background-color: var(--color-secondary-container);
|
|
79
93
|
}
|
|
80
94
|
|
|
@@ -97,7 +111,10 @@ export const css = `/**
|
|
|
97
111
|
max-width: 100%;
|
|
98
112
|
}
|
|
99
113
|
|
|
100
|
-
.bottom-nav-item.active .bottom-nav-label
|
|
114
|
+
.bottom-nav-item.active .bottom-nav-label,
|
|
115
|
+
.bottom-nav-item-active .bottom-nav-label,
|
|
116
|
+
.bottom-nav-item-active-primary .bottom-nav-label,
|
|
117
|
+
.bottom-nav-item[aria-current="page"] .bottom-nav-label {
|
|
101
118
|
font-weight: 600;
|
|
102
119
|
}
|
|
103
120
|
|
|
@@ -105,7 +122,7 @@ export const css = `/**
|
|
|
105
122
|
.bottom-nav-badge {
|
|
106
123
|
position: absolute;
|
|
107
124
|
top: 0;
|
|
108
|
-
|
|
125
|
+
inset-inline-end: 0.5rem;
|
|
109
126
|
min-width: 1rem;
|
|
110
127
|
height: 1rem;
|
|
111
128
|
padding: 0 0.25rem;
|
|
@@ -124,7 +141,7 @@ export const css = `/**
|
|
|
124
141
|
height: 0.5rem;
|
|
125
142
|
padding: 0;
|
|
126
143
|
top: 0.125rem;
|
|
127
|
-
|
|
144
|
+
inset-inline-end: 0.75rem;
|
|
128
145
|
}
|
|
129
146
|
|
|
130
147
|
/* Variants */
|
|
@@ -142,23 +159,96 @@ export const css = `/**
|
|
|
142
159
|
}
|
|
143
160
|
|
|
144
161
|
/* Color Variants */
|
|
145
|
-
.bottom-nav-primary .bottom-nav-item.active .bottom-nav-indicator
|
|
162
|
+
.bottom-nav-primary .bottom-nav-item.active .bottom-nav-indicator,
|
|
163
|
+
.bottom-nav-primary .bottom-nav-item.bottom-nav-item-active .bottom-nav-indicator,
|
|
164
|
+
.bottom-nav-primary .bottom-nav-item[aria-current="page"] .bottom-nav-indicator {
|
|
146
165
|
background-color: var(--color-primary-container);
|
|
147
166
|
}
|
|
148
167
|
|
|
149
|
-
.bottom-nav-
|
|
168
|
+
.bottom-nav-item-active-secondary {
|
|
169
|
+
color: var(--color-on-secondary-container);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.bottom-nav-item-active-secondary .bottom-nav-indicator {
|
|
173
|
+
background-color: var(--color-secondary-container);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.bottom-nav-item-active-tertiary {
|
|
177
|
+
color: var(--color-on-tertiary-container);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.bottom-nav-item-active-tertiary .bottom-nav-indicator {
|
|
181
|
+
background-color: var(--color-tertiary-container);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.bottom-nav-surface {
|
|
185
|
+
background-color: var(--color-surface);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.bottom-nav-surface-container-low {
|
|
189
|
+
background-color: var(--color-surface-container-low);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.bottom-nav-surface-container-high {
|
|
193
|
+
background-color: var(--color-surface-container-high);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.bottom-nav-transparent {
|
|
197
|
+
background-color: transparent;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.bottom-nav-borderless {
|
|
201
|
+
border-block-start: 0;
|
|
202
|
+
box-shadow: none;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.bottom-nav-compact {
|
|
206
|
+
min-height: 3.5rem;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.bottom-nav-item-disabled,
|
|
210
|
+
.bottom-nav-item:disabled,
|
|
211
|
+
.bottom-nav-item[aria-disabled="true"] {
|
|
212
|
+
opacity: 0.38;
|
|
213
|
+
cursor: not-allowed;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.bottom-nav-primary .bottom-nav-item.active,
|
|
217
|
+
.bottom-nav-primary .bottom-nav-item.bottom-nav-item-active,
|
|
218
|
+
.bottom-nav-primary .bottom-nav-item[aria-current="page"] {
|
|
150
219
|
color: var(--color-on-primary-container);
|
|
151
220
|
}
|
|
152
221
|
|
|
153
222
|
/* Hide Labels */
|
|
154
223
|
.bottom-nav-icons-only .bottom-nav-label {
|
|
155
|
-
|
|
224
|
+
position: absolute;
|
|
225
|
+
width: 1px;
|
|
226
|
+
height: 1px;
|
|
227
|
+
padding: 0;
|
|
228
|
+
margin: -1px;
|
|
229
|
+
overflow: hidden;
|
|
230
|
+
clip: rect(0, 0, 0, 0);
|
|
231
|
+
white-space: nowrap;
|
|
232
|
+
border: 0;
|
|
156
233
|
}
|
|
157
234
|
|
|
158
235
|
.bottom-nav-icons-only .bottom-nav-item {
|
|
159
236
|
padding: 1rem 0.25rem;
|
|
160
237
|
}
|
|
161
238
|
|
|
239
|
+
.bottom-nav-labels-only .bottom-nav-icon {
|
|
240
|
+
display: none;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.bottom-nav-labels-only .bottom-nav-item {
|
|
244
|
+
flex-direction: row;
|
|
245
|
+
min-width: auto;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.bottom-nav-labels-only .bottom-nav-label {
|
|
249
|
+
font-size: 0.875rem;
|
|
250
|
+
}
|
|
251
|
+
|
|
162
252
|
/* Show Labels Only on Active */
|
|
163
253
|
.bottom-nav-labels-active .bottom-nav-label {
|
|
164
254
|
opacity: 0;
|
|
@@ -167,7 +257,7 @@ export const css = `/**
|
|
|
167
257
|
transition: opacity 150ms ease-in-out, max-height 150ms ease-in-out;
|
|
168
258
|
}
|
|
169
259
|
|
|
170
|
-
.bottom-nav-labels-active .bottom-nav-item.active .bottom-nav-label {
|
|
260
|
+
.bottom-nav-labels-active .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) .bottom-nav-label {
|
|
171
261
|
opacity: 1;
|
|
172
262
|
max-height: 1rem;
|
|
173
263
|
}
|
|
@@ -178,7 +268,16 @@ export const css = `/**
|
|
|
178
268
|
transition: flex 200ms ease-in-out;
|
|
179
269
|
}
|
|
180
270
|
|
|
181
|
-
.bottom-nav-shifting
|
|
271
|
+
/* Legacy spelling retained; prefer .bottom-nav-shifting. */
|
|
272
|
+
.bottom-nav-shift .bottom-nav-item:not(:is(.active, .bottom-nav-item-active, [aria-current="page"])) .bottom-nav-label {
|
|
273
|
+
display: none;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.bottom-nav-shift .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
|
|
277
|
+
min-width: 6rem;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.bottom-nav-shifting .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
|
|
182
281
|
flex: 1 1 6rem;
|
|
183
282
|
}
|
|
184
283
|
|
|
@@ -188,7 +287,7 @@ export const css = `/**
|
|
|
188
287
|
transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
|
|
189
288
|
}
|
|
190
289
|
|
|
191
|
-
.bottom-nav-shifting .bottom-nav-item.active .bottom-nav-label {
|
|
290
|
+
.bottom-nav-shifting .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) .bottom-nav-label {
|
|
192
291
|
opacity: 1;
|
|
193
292
|
transform: translateY(0);
|
|
194
293
|
}
|
|
@@ -196,9 +295,9 @@ export const css = `/**
|
|
|
196
295
|
/* Rail Style (Side Navigation) */
|
|
197
296
|
.nav-rail {
|
|
198
297
|
position: fixed;
|
|
199
|
-
left: 0;
|
|
200
|
-
|
|
201
|
-
|
|
298
|
+
left: 0; /* Physical fallback; logical inset below controls RTL placement. */
|
|
299
|
+
inset-inline-start: 0;
|
|
300
|
+
inset-block: 0;
|
|
202
301
|
z-index: 1000;
|
|
203
302
|
display: flex;
|
|
204
303
|
flex-direction: column;
|
|
@@ -206,7 +305,11 @@ export const css = `/**
|
|
|
206
305
|
width: 5rem;
|
|
207
306
|
padding: 1rem 0;
|
|
208
307
|
background-color: var(--color-surface);
|
|
209
|
-
border-
|
|
308
|
+
border-inline-end: 1px solid var(--color-outline-variant);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.nav-rail:dir(rtl) {
|
|
312
|
+
left: auto;
|
|
210
313
|
}
|
|
211
314
|
|
|
212
315
|
.nav-rail .bottom-nav-item {
|
|
@@ -224,13 +327,13 @@ export const css = `/**
|
|
|
224
327
|
@media (min-width: 768px) {
|
|
225
328
|
.bottom-nav-responsive {
|
|
226
329
|
position: relative;
|
|
227
|
-
|
|
330
|
+
inset-block-end: auto;
|
|
228
331
|
justify-content: flex-start;
|
|
229
332
|
gap: 0.5rem;
|
|
230
333
|
min-height: 3rem;
|
|
231
334
|
padding: 0 1rem;
|
|
232
335
|
box-shadow: none;
|
|
233
|
-
border-
|
|
336
|
+
border-block-end: 1px solid var(--color-outline-variant);
|
|
234
337
|
}
|
|
235
338
|
|
|
236
339
|
.bottom-nav-responsive .bottom-nav-item {
|
|
@@ -246,8 +349,8 @@ export const css = `/**
|
|
|
246
349
|
background-color: transparent !important;
|
|
247
350
|
}
|
|
248
351
|
|
|
249
|
-
.bottom-nav-responsive .bottom-nav-item.active {
|
|
250
|
-
border-
|
|
352
|
+
.bottom-nav-responsive .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
|
|
353
|
+
border-block-end: 2px solid var(--color-primary);
|
|
251
354
|
}
|
|
252
355
|
}
|
|
253
356
|
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
// Auto-generated from breadcrumbs.css
|
|
2
|
+
export const css = `/**
|
|
3
|
+
* Breadcrumbs Component Styles
|
|
4
|
+
* DuskMoonUI - Material Design 3 inspired breadcrumb navigation
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
@layer components {
|
|
8
|
+
.breadcrumbs {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
flex-wrap: wrap;
|
|
12
|
+
gap: 0.5rem;
|
|
13
|
+
padding: 0.5rem 0;
|
|
14
|
+
list-style: none;
|
|
15
|
+
margin: 0;
|
|
16
|
+
font-size: 0.875rem;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.breadcrumbs li {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
gap: 0.5rem;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.breadcrumbs li::after {
|
|
26
|
+
content: '/';
|
|
27
|
+
color: var(--color-on-surface-variant);
|
|
28
|
+
opacity: 0.5;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.breadcrumbs li:last-child::after {
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.breadcrumbs li > a {
|
|
36
|
+
color: var(--color-primary);
|
|
37
|
+
text-decoration: none;
|
|
38
|
+
transition: color 150ms ease-in-out;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.breadcrumbs li > a:hover {
|
|
42
|
+
text-decoration: underline;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.breadcrumbs li:last-child {
|
|
46
|
+
color: var(--color-on-surface-variant);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.breadcrumb-item {
|
|
50
|
+
display: inline-flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
gap: 0.375rem;
|
|
53
|
+
color: var(--color-on-surface-variant);
|
|
54
|
+
text-decoration: none;
|
|
55
|
+
transition: color 150ms ease-in-out;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.breadcrumb-item:hover {
|
|
59
|
+
color: var(--color-on-surface);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.breadcrumb-item-active {
|
|
63
|
+
color: var(--color-on-surface);
|
|
64
|
+
font-weight: 500;
|
|
65
|
+
pointer-events: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.breadcrumb-link {
|
|
69
|
+
display: inline-flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
gap: 0.375rem;
|
|
72
|
+
color: var(--color-on-surface-variant);
|
|
73
|
+
text-decoration: none;
|
|
74
|
+
transition: color 150ms ease-in-out;
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.breadcrumb-link:hover {
|
|
79
|
+
color: var(--color-primary);
|
|
80
|
+
text-decoration: underline;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.breadcrumb-link:focus-visible {
|
|
84
|
+
outline: none;
|
|
85
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
|
|
86
|
+
border-radius: var(--radius-xs);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.breadcrumb-separator {
|
|
90
|
+
display: inline-flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
color: var(--color-on-surface-variant);
|
|
93
|
+
font-size: 0.875rem;
|
|
94
|
+
user-select: none;
|
|
95
|
+
opacity: 0.6;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.breadcrumb-separator::before {
|
|
99
|
+
content: "/";
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.breadcrumbs-slash .breadcrumb-separator::before {
|
|
103
|
+
content: "/";
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.breadcrumbs-chevron .breadcrumb-separator::before {
|
|
107
|
+
content: "›";
|
|
108
|
+
font-size: 1.125rem;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.breadcrumbs-dot .breadcrumb-separator::before {
|
|
112
|
+
content: "•";
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.breadcrumbs-arrow .breadcrumb-separator::before {
|
|
116
|
+
content: "→";
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.breadcrumbs-pipe .breadcrumb-separator::before {
|
|
120
|
+
content: "|";
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.breadcrumb-icon {
|
|
124
|
+
display: inline-flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
justify-content: center;
|
|
127
|
+
width: 1rem;
|
|
128
|
+
height: 1rem;
|
|
129
|
+
flex-shrink: 0;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.breadcrumb-icon svg {
|
|
133
|
+
width: 100%;
|
|
134
|
+
height: 100%;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.breadcrumb-home {
|
|
138
|
+
display: inline-flex;
|
|
139
|
+
align-items: center;
|
|
140
|
+
justify-content: center;
|
|
141
|
+
color: var(--color-on-surface-variant);
|
|
142
|
+
text-decoration: none;
|
|
143
|
+
transition: color 150ms ease-in-out;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.breadcrumb-home:hover {
|
|
147
|
+
color: var(--color-primary);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.breadcrumb-home-icon {
|
|
151
|
+
width: 1.125rem;
|
|
152
|
+
height: 1.125rem;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.breadcrumb-ellipsis {
|
|
156
|
+
display: inline-flex;
|
|
157
|
+
align-items: center;
|
|
158
|
+
justify-content: center;
|
|
159
|
+
padding: 0.25rem 0.5rem;
|
|
160
|
+
color: var(--color-on-surface-variant);
|
|
161
|
+
background-color: transparent;
|
|
162
|
+
border: none;
|
|
163
|
+
border-radius: var(--radius-xs);
|
|
164
|
+
cursor: pointer;
|
|
165
|
+
transition: background-color 150ms ease-in-out;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.breadcrumb-ellipsis::before {
|
|
169
|
+
content: "...";
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.breadcrumb-ellipsis:hover {
|
|
173
|
+
background-color: color-mix(in oklch, var(--color-on-surface) 8%, transparent);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.breadcrumbs-primary .breadcrumb-link:hover,
|
|
177
|
+
.breadcrumbs-primary .breadcrumb-item-active {
|
|
178
|
+
color: var(--color-primary);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.breadcrumbs-secondary .breadcrumb-link:hover,
|
|
182
|
+
.breadcrumbs-secondary .breadcrumb-item-active {
|
|
183
|
+
color: var(--color-secondary);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.breadcrumbs-tertiary .breadcrumb-link:hover,
|
|
187
|
+
.breadcrumbs-tertiary .breadcrumb-item-active {
|
|
188
|
+
color: var(--color-tertiary);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.breadcrumbs-sm {
|
|
192
|
+
font-size: 0.75rem;
|
|
193
|
+
gap: 0.375rem;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.breadcrumbs-sm .breadcrumb-icon,
|
|
197
|
+
.breadcrumbs-sm .breadcrumb-home-icon {
|
|
198
|
+
width: 0.875rem;
|
|
199
|
+
height: 0.875rem;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.breadcrumbs-lg {
|
|
203
|
+
font-size: 1rem;
|
|
204
|
+
gap: 0.625rem;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.breadcrumbs-lg .breadcrumb-icon,
|
|
208
|
+
.breadcrumbs-lg .breadcrumb-home-icon {
|
|
209
|
+
width: 1.25rem;
|
|
210
|
+
height: 1.25rem;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.breadcrumbs-contained {
|
|
214
|
+
padding: 0.75rem 1rem;
|
|
215
|
+
background-color: var(--color-surface-container);
|
|
216
|
+
border-radius: var(--radius-sm);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.breadcrumbs-nowrap {
|
|
220
|
+
flex-wrap: nowrap;
|
|
221
|
+
overflow-x: auto;
|
|
222
|
+
overscroll-behavior-inline: contain;
|
|
223
|
+
scrollbar-width: thin;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.breadcrumbs-nowrap > * {
|
|
227
|
+
flex: 0 0 auto;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.breadcrumb-item-disabled {
|
|
231
|
+
opacity: 1;
|
|
232
|
+
pointer-events: none;
|
|
233
|
+
cursor: not-allowed;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.breadcrumb-ellipsis:focus-visible,
|
|
237
|
+
.breadcrumb-home:focus-visible,
|
|
238
|
+
.breadcrumbs li > a:focus-visible {
|
|
239
|
+
outline: 2px solid currentColor;
|
|
240
|
+
outline-offset: 2px;
|
|
241
|
+
border-radius: var(--radius-xs);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/* Reduce Motion */
|
|
245
|
+
@media (prefers-reduced-motion: reduce) {
|
|
246
|
+
.breadcrumbs a,
|
|
247
|
+
.breadcrumbs-item a,
|
|
248
|
+
.breadcrumbs-link,
|
|
249
|
+
.breadcrumbs-separator {
|
|
250
|
+
transition: none;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
`;
|
|
255
|
+
|
|
256
|
+
const sheet = typeof CSSStyleSheet !== 'undefined' ? new CSSStyleSheet() : null;
|
|
257
|
+
if (sheet) {
|
|
258
|
+
sheet.replaceSync(css);
|
|
259
|
+
}
|
|
260
|
+
export const styles = sheet;
|
|
261
|
+
export default sheet;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// Auto-generated from link.css
|
|
2
|
+
export const css = `/** DuskMoonUI text-link primitive. */
|
|
3
|
+
@layer components {
|
|
4
|
+
.link {
|
|
5
|
+
color: var(--color-primary);
|
|
6
|
+
text-decoration-line: underline;
|
|
7
|
+
text-decoration-thickness: 0.08em;
|
|
8
|
+
text-underline-offset: 0.18em;
|
|
9
|
+
overflow-wrap: anywhere;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
transition: color 150ms ease-in-out, text-decoration-color 150ms ease-in-out,
|
|
12
|
+
background-color 150ms ease-in-out;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.link:hover {
|
|
16
|
+
color: color-mix(in oklch, var(--color-primary), var(--color-on-surface) 18%);
|
|
17
|
+
text-decoration-thickness: 0.12em;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.link:active {
|
|
21
|
+
color: color-mix(in oklch, var(--color-primary), var(--color-on-surface) 30%);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.link:focus-visible {
|
|
25
|
+
outline: 2px solid currentColor;
|
|
26
|
+
outline-offset: 3px;
|
|
27
|
+
border-radius: var(--radius-xs);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.link-hover { text-decoration-color: transparent; }
|
|
31
|
+
.link-hover:hover,
|
|
32
|
+
.link-hover:focus-visible { text-decoration-color: currentColor; }
|
|
33
|
+
.link-primary { color: var(--color-primary); }
|
|
34
|
+
.link-secondary { color: var(--color-secondary); }
|
|
35
|
+
.link-tertiary { color: var(--color-tertiary); }
|
|
36
|
+
.link-neutral,
|
|
37
|
+
.link-inherit { color: inherit; }
|
|
38
|
+
.link-neutral:hover,
|
|
39
|
+
.link-inherit:hover { color: color-mix(in oklch, currentColor, var(--color-on-surface) 18%); }
|
|
40
|
+
|
|
41
|
+
@media (prefers-reduced-motion: reduce) {
|
|
42
|
+
.link { transition: none; }
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
const sheet = typeof CSSStyleSheet !== 'undefined' ? new CSSStyleSheet() : null;
|
|
48
|
+
if (sheet) {
|
|
49
|
+
sheet.replaceSync(css);
|
|
50
|
+
}
|
|
51
|
+
export const styles = sheet;
|
|
52
|
+
export default sheet;
|