@parallelogram-js/dashboard 0.0.0-stage → 0.1.1
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/CHANGELOG.md +113 -0
- package/LICENSE +21 -0
- package/README.md +1390 -2
- package/dist/parallelogram-dashboard.css +9401 -0
- package/dist/parallelogram-dashboard.css.map +1 -0
- package/dist/parallelogram-dashboard.min.css +1 -0
- package/package.json +72 -4
- package/scss/_base.scss +403 -0
- package/scss/_datetime.scss +50 -0
- package/scss/_icon.scss +40 -0
- package/scss/_index.scss +60 -0
- package/scss/_mixins.scss +396 -0
- package/scss/_tokens.scss +340 -0
- package/scss/_utilities.scss +464 -0
- package/scss/_variables.scss +219 -0
- package/scss/components/_accordion.scss +297 -0
- package/scss/components/_actionbar.scss +333 -0
- package/scss/components/_alert.scss +183 -0
- package/scss/components/_avatar.scss +203 -0
- package/scss/components/_badge.scss +176 -0
- package/scss/components/_banner.scss +344 -0
- package/scss/components/_breadcrumb.scss +220 -0
- package/scss/components/_button.scss +264 -0
- package/scss/components/_card.scss +256 -0
- package/scss/components/_chart.scss +246 -0
- package/scss/components/_command.scss +267 -0
- package/scss/components/_dashboard.scss +681 -0
- package/scss/components/_data-list.scss +280 -0
- package/scss/components/_dropdown.scss +318 -0
- package/scss/components/_empty.scss +226 -0
- package/scss/components/_filebrowser.scss +906 -0
- package/scss/components/_form-layout.scss +332 -0
- package/scss/components/_input.scss +310 -0
- package/scss/components/_list.scss +130 -0
- package/scss/components/_media.scss +239 -0
- package/scss/components/_modal.scss +298 -0
- package/scss/components/_navbar.scss +312 -0
- package/scss/components/_notification.scss +59 -0
- package/scss/components/_pageheader.scss +99 -0
- package/scss/components/_pagination.scss +165 -0
- package/scss/components/_progress.scss +333 -0
- package/scss/components/_separator.scss +129 -0
- package/scss/components/_sheet.scss +286 -0
- package/scss/components/_sidebar.scss +324 -0
- package/scss/components/_skeleton.scss +246 -0
- package/scss/components/_stat.scss +218 -0
- package/scss/components/_table.scss +589 -0
- package/scss/components/_tabs.scss +266 -0
- package/scss/components/_timeline.scss +339 -0
- package/scss/components/_toast.scss +259 -0
- package/scss/components/_toolbar.scss +301 -0
- package/scss/components/_tooltip.scss +250 -0
- package/scss/main.scss +6 -0
- package/src/js/behaviours/accordion.js +58 -0
- package/src/js/behaviours/action-bar-list.js +406 -0
- package/src/js/behaviours/action-bar.js +29 -0
- package/src/js/behaviours/chart.js +339 -0
- package/src/js/behaviours/collapsible.js +34 -0
- package/src/js/behaviours/editable-table.js +91 -0
- package/src/js/behaviours/expandable.js +80 -0
- package/src/js/behaviours/overflow-actions.js +137 -0
- package/src/js/behaviours/publish-schedule.js +91 -0
- package/src/js/behaviours/search-clear.js +19 -0
- package/src/js/behaviours/segmented-control.js +43 -0
- package/src/js/behaviours/submenu.js +73 -0
- package/src/js/behaviours/table-columns.js +77 -0
- package/src/js/behaviours/table-paste.js +305 -0
- package/src/js/behaviours/table-reorder.js +252 -0
- package/src/js/behaviours/table-sort.js +101 -0
- package/src/js/behaviours/tabs.js +148 -0
- package/src/js/behaviours/toast-manager.js +106 -0
- package/src/js/behaviours/toggle.js +186 -0
- package/src/js/behaviours/unsaved-guard.js +88 -0
- package/src/js/core-loader.js +26 -0
- package/src/js/index.js +85 -0
- package/src/js/polyfills/dialog-commands.js +20 -0
- package/src/js/util/dom.js +39 -0
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
// ==========================================================================
|
|
2
|
+
// Banner Component
|
|
3
|
+
// ==========================================================================
|
|
4
|
+
|
|
5
|
+
@use "../variables" as *;
|
|
6
|
+
@use "../mixins" as *;
|
|
7
|
+
|
|
8
|
+
// --------------------------------------------------------------------------
|
|
9
|
+
// Banner Base
|
|
10
|
+
// --------------------------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
.banner {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: $spacing-sm;
|
|
16
|
+
padding: $spacing-xs $spacing-sm;
|
|
17
|
+
background-color: var(--bg-muted);
|
|
18
|
+
border-bottom: 1px solid var(--border);
|
|
19
|
+
|
|
20
|
+
&__icon {
|
|
21
|
+
flex-shrink: 0;
|
|
22
|
+
width: $icon-size-md;
|
|
23
|
+
height: $icon-size-md;
|
|
24
|
+
color: var(--fg-muted);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__content {
|
|
28
|
+
flex: 1;
|
|
29
|
+
min-width: 0;
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: $spacing-2xs;
|
|
33
|
+
flex-wrap: wrap;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&__text {
|
|
37
|
+
font-size: $font-size-sm;
|
|
38
|
+
color: var(--fg);
|
|
39
|
+
|
|
40
|
+
strong {
|
|
41
|
+
font-weight: $font-weight-semibold;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
a {
|
|
45
|
+
color: inherit;
|
|
46
|
+
text-decoration: underline;
|
|
47
|
+
text-underline-offset: 2px;
|
|
48
|
+
|
|
49
|
+
&:hover {
|
|
50
|
+
text-decoration-thickness: 2px;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&__actions {
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
gap: $spacing-2xs;
|
|
59
|
+
flex-shrink: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&__dismiss {
|
|
63
|
+
flex-shrink: 0;
|
|
64
|
+
@include flex-center;
|
|
65
|
+
width: 1.5rem;
|
|
66
|
+
height: 1.5rem;
|
|
67
|
+
padding: 0;
|
|
68
|
+
background: transparent;
|
|
69
|
+
border: none;
|
|
70
|
+
border-radius: $radius-sm;
|
|
71
|
+
color: var(--fg-muted);
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
@include transition-colors;
|
|
74
|
+
|
|
75
|
+
&:hover {
|
|
76
|
+
color: var(--fg);
|
|
77
|
+
background-color: rgba(0, 0, 0, 0.1);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
svg {
|
|
81
|
+
width: 1rem;
|
|
82
|
+
height: 1rem;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// --------------------------------------------------------------------------
|
|
87
|
+
// Color Variants
|
|
88
|
+
// --------------------------------------------------------------------------
|
|
89
|
+
|
|
90
|
+
&--info {
|
|
91
|
+
background-color: var(--info-muted);
|
|
92
|
+
border-color: var(--info);
|
|
93
|
+
|
|
94
|
+
.banner__icon {
|
|
95
|
+
color: var(--info);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&--success {
|
|
100
|
+
background-color: var(--success-muted);
|
|
101
|
+
border-color: var(--success);
|
|
102
|
+
|
|
103
|
+
.banner__icon {
|
|
104
|
+
color: var(--success);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&--warning {
|
|
109
|
+
background-color: var(--warning-muted);
|
|
110
|
+
border-color: var(--warning);
|
|
111
|
+
|
|
112
|
+
.banner__icon {
|
|
113
|
+
color: var(--warning);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&--error {
|
|
118
|
+
background-color: var(--destructive-muted);
|
|
119
|
+
border-color: var(--destructive);
|
|
120
|
+
|
|
121
|
+
.banner__icon {
|
|
122
|
+
color: var(--destructive);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&--primary {
|
|
127
|
+
background-color: var(--primary);
|
|
128
|
+
border-color: var(--primary);
|
|
129
|
+
|
|
130
|
+
.banner__icon,
|
|
131
|
+
.banner__text {
|
|
132
|
+
color: var(--primary-fg);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.banner__dismiss {
|
|
136
|
+
color: var(--primary-fg);
|
|
137
|
+
opacity: 0.8;
|
|
138
|
+
|
|
139
|
+
&:hover {
|
|
140
|
+
opacity: 1;
|
|
141
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&--dark {
|
|
147
|
+
background-color: var(--fg);
|
|
148
|
+
border-color: var(--fg);
|
|
149
|
+
|
|
150
|
+
.banner__icon,
|
|
151
|
+
.banner__text {
|
|
152
|
+
color: var(--bg);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.banner__dismiss {
|
|
156
|
+
color: var(--bg);
|
|
157
|
+
opacity: 0.8;
|
|
158
|
+
|
|
159
|
+
&:hover {
|
|
160
|
+
opacity: 1;
|
|
161
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// --------------------------------------------------------------------------
|
|
167
|
+
// Layout Variants
|
|
168
|
+
// --------------------------------------------------------------------------
|
|
169
|
+
|
|
170
|
+
// Centered content
|
|
171
|
+
&--centered {
|
|
172
|
+
justify-content: center;
|
|
173
|
+
|
|
174
|
+
.banner__content {
|
|
175
|
+
flex: none;
|
|
176
|
+
justify-content: center;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// Sticky to top
|
|
181
|
+
&--sticky {
|
|
182
|
+
position: sticky;
|
|
183
|
+
top: 0;
|
|
184
|
+
z-index: $z-sticky;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// Fixed to top
|
|
188
|
+
&--fixed {
|
|
189
|
+
position: fixed;
|
|
190
|
+
top: 0;
|
|
191
|
+
left: 0;
|
|
192
|
+
right: 0;
|
|
193
|
+
z-index: $z-fixed;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// Compact
|
|
197
|
+
&--compact {
|
|
198
|
+
padding: $spacing-2xs $spacing-sm;
|
|
199
|
+
|
|
200
|
+
.banner__text {
|
|
201
|
+
font-size: $font-size-xs;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
// No border
|
|
206
|
+
&--borderless {
|
|
207
|
+
border: none;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// --------------------------------------------------------------------------
|
|
212
|
+
// Announcement Banner (more prominent)
|
|
213
|
+
// --------------------------------------------------------------------------
|
|
214
|
+
|
|
215
|
+
.announcement {
|
|
216
|
+
// Anchors the absolutely positioned dismiss button
|
|
217
|
+
position: relative;
|
|
218
|
+
display: flex;
|
|
219
|
+
align-items: center;
|
|
220
|
+
justify-content: center;
|
|
221
|
+
gap: $spacing-xs;
|
|
222
|
+
padding: $spacing-sm;
|
|
223
|
+
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
|
|
224
|
+
color: var(--primary-fg);
|
|
225
|
+
text-align: center;
|
|
226
|
+
|
|
227
|
+
// Keep centred text clear of the dismiss button
|
|
228
|
+
&:has(> .announcement__dismiss) {
|
|
229
|
+
padding-inline: calc(#{$spacing-sm} * 2 + 1.5rem);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
&__badge {
|
|
233
|
+
display: inline-flex;
|
|
234
|
+
align-items: center;
|
|
235
|
+
padding: $spacing-3xs $spacing-2xs;
|
|
236
|
+
font-size: $font-size-xs;
|
|
237
|
+
font-weight: $font-weight-semibold;
|
|
238
|
+
text-transform: uppercase;
|
|
239
|
+
letter-spacing: $letter-spacing-wide;
|
|
240
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
241
|
+
border-radius: $radius-full;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
&__text {
|
|
245
|
+
font-size: $font-size-sm;
|
|
246
|
+
font-weight: $font-weight-medium;
|
|
247
|
+
|
|
248
|
+
a {
|
|
249
|
+
color: inherit;
|
|
250
|
+
text-decoration: underline;
|
|
251
|
+
|
|
252
|
+
&:hover {
|
|
253
|
+
text-decoration-thickness: 2px;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&__arrow {
|
|
259
|
+
width: $icon-size-md;
|
|
260
|
+
height: $icon-size-md;
|
|
261
|
+
flex-shrink: 0;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
&__dismiss {
|
|
265
|
+
position: absolute;
|
|
266
|
+
right: $spacing-sm;
|
|
267
|
+
@include flex-center;
|
|
268
|
+
width: 1.5rem;
|
|
269
|
+
height: 1.5rem;
|
|
270
|
+
padding: 0;
|
|
271
|
+
background: transparent;
|
|
272
|
+
border: none;
|
|
273
|
+
border-radius: $radius-sm;
|
|
274
|
+
color: inherit;
|
|
275
|
+
opacity: 0.8;
|
|
276
|
+
cursor: pointer;
|
|
277
|
+
@include transition-opacity;
|
|
278
|
+
|
|
279
|
+
&:hover {
|
|
280
|
+
opacity: 1;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
svg {
|
|
284
|
+
width: 1rem;
|
|
285
|
+
height: 1rem;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
// --------------------------------------------------------------------------
|
|
291
|
+
// Cookie/Consent Banner
|
|
292
|
+
// --------------------------------------------------------------------------
|
|
293
|
+
|
|
294
|
+
.consent {
|
|
295
|
+
position: fixed;
|
|
296
|
+
bottom: 0;
|
|
297
|
+
left: 0;
|
|
298
|
+
right: 0;
|
|
299
|
+
z-index: $z-fixed;
|
|
300
|
+
display: flex;
|
|
301
|
+
align-items: center;
|
|
302
|
+
gap: $spacing-sm;
|
|
303
|
+
padding: $spacing-sm $spacing-lg;
|
|
304
|
+
background-color: var(--card);
|
|
305
|
+
border-top: 1px solid var(--border);
|
|
306
|
+
box-shadow: $shadow-lg;
|
|
307
|
+
|
|
308
|
+
&__content {
|
|
309
|
+
flex: 1;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
&__title {
|
|
313
|
+
font-size: $font-size-sm;
|
|
314
|
+
font-weight: $font-weight-semibold;
|
|
315
|
+
color: var(--fg);
|
|
316
|
+
margin-bottom: $spacing-3xs;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
&__text {
|
|
320
|
+
font-size: $font-size-sm;
|
|
321
|
+
color: var(--fg-muted);
|
|
322
|
+
|
|
323
|
+
a {
|
|
324
|
+
color: var(--primary);
|
|
325
|
+
text-decoration: underline;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
&__actions {
|
|
330
|
+
display: flex;
|
|
331
|
+
align-items: center;
|
|
332
|
+
gap: $spacing-xs;
|
|
333
|
+
flex-shrink: 0;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
@include max-md {
|
|
337
|
+
flex-direction: column;
|
|
338
|
+
align-items: stretch;
|
|
339
|
+
|
|
340
|
+
&__actions {
|
|
341
|
+
justify-content: flex-end;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
// ==========================================================================
|
|
2
|
+
// Breadcrumb Component
|
|
3
|
+
// ==========================================================================
|
|
4
|
+
|
|
5
|
+
@use "../variables" as *;
|
|
6
|
+
@use "../mixins" as *;
|
|
7
|
+
|
|
8
|
+
// --------------------------------------------------------------------------
|
|
9
|
+
// Base Breadcrumb
|
|
10
|
+
// --------------------------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
.breadcrumb {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
gap: $spacing-3xs;
|
|
17
|
+
|
|
18
|
+
// --------------------------------------------------------------------------
|
|
19
|
+
// Elements
|
|
20
|
+
// --------------------------------------------------------------------------
|
|
21
|
+
|
|
22
|
+
&__list {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
flex-wrap: wrap;
|
|
26
|
+
gap: $spacing-3xs;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&__item {
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: $spacing-3xs;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&__link {
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
gap: $spacing-3xs;
|
|
39
|
+
font-size: $font-size-sm;
|
|
40
|
+
color: var(--fg-muted);
|
|
41
|
+
@include transition-colors;
|
|
42
|
+
|
|
43
|
+
&:hover {
|
|
44
|
+
color: var(--fg);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:focus-visible {
|
|
48
|
+
@include focus-ring;
|
|
49
|
+
border-radius: $radius-sm;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&__page,
|
|
54
|
+
&__link[aria-current="page"] {
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
gap: $spacing-3xs;
|
|
58
|
+
font-size: $font-size-sm;
|
|
59
|
+
font-weight: $font-weight-medium;
|
|
60
|
+
color: var(--fg);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&__separator {
|
|
64
|
+
display: inline-flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
color: var(--fg-subtle);
|
|
68
|
+
|
|
69
|
+
svg {
|
|
70
|
+
width: $icon-size-sm;
|
|
71
|
+
height: $icon-size-sm;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&__icon {
|
|
76
|
+
width: $icon-size-sm;
|
|
77
|
+
height: $icon-size-sm;
|
|
78
|
+
flex-shrink: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Ellipsis for collapsed items
|
|
82
|
+
&__ellipsis {
|
|
83
|
+
display: inline-flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
width: 1.5rem;
|
|
87
|
+
height: 1.5rem;
|
|
88
|
+
font-size: $font-size-sm;
|
|
89
|
+
color: var(--fg-muted);
|
|
90
|
+
border-radius: $radius-sm;
|
|
91
|
+
@include interactive;
|
|
92
|
+
|
|
93
|
+
&:hover {
|
|
94
|
+
color: var(--fg);
|
|
95
|
+
background-color: var(--accent);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
svg {
|
|
99
|
+
width: $icon-size-sm;
|
|
100
|
+
height: $icon-size-sm;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// --------------------------------------------------------------------------
|
|
105
|
+
// Separator Variants
|
|
106
|
+
// --------------------------------------------------------------------------
|
|
107
|
+
|
|
108
|
+
// Chevron (default) - use an SVG icon in HTML
|
|
109
|
+
// Slash
|
|
110
|
+
&--slash &__separator::before {
|
|
111
|
+
content: "/";
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// Arrow
|
|
115
|
+
&--arrow &__separator::before {
|
|
116
|
+
content: "→";
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// Dot
|
|
120
|
+
&--dot &__separator::before {
|
|
121
|
+
content: "•";
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// --------------------------------------------------------------------------
|
|
125
|
+
// Size Variants
|
|
126
|
+
// --------------------------------------------------------------------------
|
|
127
|
+
|
|
128
|
+
&--sm {
|
|
129
|
+
.breadcrumb__link,
|
|
130
|
+
.breadcrumb__page {
|
|
131
|
+
font-size: $font-size-xs;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.breadcrumb__icon {
|
|
135
|
+
width: 0.75rem;
|
|
136
|
+
height: 0.75rem;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.breadcrumb__separator svg {
|
|
140
|
+
width: 0.75rem;
|
|
141
|
+
height: 0.75rem;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&--lg {
|
|
146
|
+
gap: $spacing-2xs;
|
|
147
|
+
|
|
148
|
+
.breadcrumb__list {
|
|
149
|
+
gap: $spacing-2xs;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.breadcrumb__link,
|
|
153
|
+
.breadcrumb__page {
|
|
154
|
+
font-size: $font-size-base;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.breadcrumb__icon {
|
|
158
|
+
width: $icon-size-md;
|
|
159
|
+
height: $icon-size-md;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// --------------------------------------------------------------------------
|
|
165
|
+
// Breadcrumb with Dropdown
|
|
166
|
+
// --------------------------------------------------------------------------
|
|
167
|
+
|
|
168
|
+
.breadcrumb__dropdown {
|
|
169
|
+
position: relative;
|
|
170
|
+
display: inline-flex;
|
|
171
|
+
|
|
172
|
+
&-trigger {
|
|
173
|
+
@extend .breadcrumb__link;
|
|
174
|
+
cursor: pointer;
|
|
175
|
+
|
|
176
|
+
svg {
|
|
177
|
+
width: $icon-size-sm;
|
|
178
|
+
height: $icon-size-sm;
|
|
179
|
+
margin-left: $spacing-3xs;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&-menu {
|
|
184
|
+
position: absolute;
|
|
185
|
+
top: 100%;
|
|
186
|
+
left: 0;
|
|
187
|
+
z-index: $z-dropdown;
|
|
188
|
+
min-width: 10rem;
|
|
189
|
+
padding: $spacing-3xs;
|
|
190
|
+
margin-top: $spacing-3xs;
|
|
191
|
+
background-color: var(--popover);
|
|
192
|
+
border: 1px solid var(--border);
|
|
193
|
+
border-radius: $radius-md;
|
|
194
|
+
box-shadow: $shadow-md;
|
|
195
|
+
opacity: 0;
|
|
196
|
+
visibility: hidden;
|
|
197
|
+
@include transition-default;
|
|
198
|
+
|
|
199
|
+
[aria-expanded="true"] + &,
|
|
200
|
+
&--open {
|
|
201
|
+
opacity: 1;
|
|
202
|
+
visibility: visible;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&-item {
|
|
207
|
+
display: flex;
|
|
208
|
+
align-items: center;
|
|
209
|
+
gap: $spacing-2xs;
|
|
210
|
+
padding: $spacing-2xs;
|
|
211
|
+
font-size: $font-size-sm;
|
|
212
|
+
color: var(--popover-fg);
|
|
213
|
+
border-radius: $radius-sm;
|
|
214
|
+
@include interactive;
|
|
215
|
+
|
|
216
|
+
&:hover {
|
|
217
|
+
background-color: var(--accent);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|