@slotted/styles 0.1.0-beta.2 → 0.1.0-beta.20
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/package.json +1 -1
- package/src/accordion/accordion.css +10 -10
- package/src/action-bar/action-bar.css +45 -42
- package/src/action-bar/action-bar.tokens.json +1 -0
- package/src/action-sheet/action-sheet.css +36 -36
- package/src/alert/alert.css +68 -67
- package/src/alert/alert.tokens.json +5 -0
- package/src/app-shell/app-shell.css +452 -314
- package/src/app-shell/app-shell.tokens.json +5 -2
- package/src/aspect-ratio/aspect-ratio.css +9 -9
- package/src/attachment/attachment.css +91 -99
- package/src/avatar/avatar.css +71 -41
- package/src/avatar/avatar.tokens.json +7 -0
- package/src/avatar-group/avatar-group.css +21 -22
- package/src/badge/badge.css +45 -37
- package/src/badge/badge.tokens.json +5 -0
- package/src/breadcrumb/breadcrumb.css +37 -37
- package/src/button/button.css +149 -68
- package/src/button/button.tokens.json +10 -0
- package/src/button-group/button-group.css +79 -74
- package/src/button-group/button-group.tokens.json +2 -0
- package/src/calendar/calendar.css +133 -103
- package/src/calendar/calendar.tokens.json +5 -1
- package/src/card/card.css +54 -61
- package/src/carousel/carousel.css +150 -161
- package/src/cascader/cascader.css +152 -153
- package/src/cascader/cascader.tokens.json +1 -0
- package/src/chart/chart.css +258 -248
- package/src/chart/chart.tokens.json +1 -0
- package/src/checkbox/checkbox.css +119 -124
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/code-block/code-block.css +81 -85
- package/src/collapsible/collapsible.css +72 -76
- package/src/color-picker/color-picker.css +83 -91
- package/src/column-manager/column-manager.css +106 -114
- package/src/combobox/combobox.css +155 -124
- package/src/combobox/combobox.tokens.json +2 -0
- package/src/command-palette/command-palette.css +103 -90
- package/src/command-palette/command-palette.tokens.json +1 -0
- package/src/container/container.css +24 -24
- package/src/context-menu/context-menu.css +8 -8
- package/src/currency-field/currency-field.css +210 -88
- package/src/currency-field/currency-field.tokens.json +13 -0
- package/src/dashboard-grid/dashboard-grid.css +184 -114
- package/src/data-grid/data-grid.css +535 -470
- package/src/data-grid/data-grid.tokens.json +4 -0
- package/src/data-list/data-list.css +81 -70
- package/src/data-list/data-list.tokens.json +2 -1
- package/src/date-field/date-field.css +55 -52
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +75 -59
- package/src/date-picker/date-picker.tokens.json +1 -0
- package/src/date-range-picker/date-range-picker.css +114 -118
- package/src/datetime-field/datetime-field.css +78 -80
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +61 -63
- package/src/datetime-range-picker/datetime-range-picker.css +149 -156
- package/src/description-list/description-list.css +80 -65
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +376 -153
- package/src/dialog/dialog.tokens.json +6 -0
- package/src/divider/divider.css +18 -18
- package/src/drawer/drawer.css +513 -217
- package/src/drawer/drawer.tokens.json +6 -0
- package/src/entity-picker/entity-picker.css +271 -256
- package/src/entity-picker/entity-picker.tokens.json +2 -0
- package/src/event-calendar/event-calendar.css +343 -385
- package/src/field/field.css +74 -78
- package/src/field-group/field-group.css +22 -25
- package/src/filter-bar/filter-bar.css +193 -209
- package/src/form/form.css +34 -24
- package/src/form/form.tokens.json +1 -0
- package/src/fullscreen/fullscreen.css +24 -25
- package/src/grid/grid.css +28 -28
- package/src/highlight/highlight.css +6 -6
- package/src/hover-card/hover-card.css +6 -6
- package/src/icon/icon.css +62 -15
- package/src/icon/icon.tokens.json +1 -0
- package/src/image/image.css +39 -39
- package/src/import-export-center/import-export-center.css +135 -156
- package/src/inline/inline.css +27 -27
- package/src/inline-message/inline-message.css +153 -77
- package/src/inline-message/inline-message.tokens.json +4 -0
- package/src/kbd/kbd.css +48 -36
- package/src/kbd/kbd.tokens.json +3 -0
- package/src/link/link.css +36 -15
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +44 -17
- package/src/list/list.tokens.json +4 -0
- package/src/list-item/list-item.css +80 -66
- package/src/list-item/list-item.tokens.json +7 -0
- package/src/listbox/listbox.css +56 -59
- package/src/loading-overlay/loading-overlay.css +75 -92
- package/src/markdown/markdown.css +17 -17
- package/src/menu/menu.css +117 -74
- package/src/menu/menu.tokens.json +1 -0
- package/src/menubar/menubar.css +13 -13
- package/src/message/message.css +192 -202
- package/src/message/message.tokens.json +5 -0
- package/src/message-scroller/message-scroller.css +41 -42
- package/src/multi-select/multi-select.css +175 -160
- package/src/multi-select/multi-select.tokens.json +1 -0
- package/src/navigation-menu/navigation-menu.css +167 -188
- package/src/notification-center/notification-center.css +140 -148
- package/src/notification-center/notification-center.tokens.json +3 -0
- package/src/number-field/number-field.css +81 -83
- package/src/number-field/number-field.tokens.json +1 -0
- package/src/otp-input/otp-input.css +67 -57
- package/src/otp-input/otp-input.tokens.json +1 -0
- package/src/page/page.css +39 -23
- package/src/page/page.tokens.json +1 -0
- package/src/page-header/page-header.css +339 -284
- package/src/page-header/page-header.tokens.json +5 -0
- package/src/pagination/pagination.css +68 -72
- package/src/popover/popover.css +73 -61
- package/src/popover/popover.tokens.json +1 -0
- package/src/progress-indicator/progress-indicator.css +169 -113
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +251 -104
- package/src/prompt-composer/prompt-composer.tokens.json +15 -0
- package/src/prose/prose.css +71 -75
- package/src/radio-group/radio-group.css +98 -103
- package/src/rating/rating.css +136 -132
- package/src/rating/rating.tokens.json +1 -0
- package/src/result-state/result-state.css +74 -77
- package/src/runtime-properties.mjs +2 -0
- package/src/saved-views/saved-views.css +41 -47
- package/src/scroll-area/scroll-area.css +39 -32
- package/src/section/section.css +178 -43
- package/src/section/section.tokens.json +8 -2
- package/src/segmented-control/segmented-control.css +254 -97
- package/src/segmented-control/segmented-control.tokens.json +15 -11
- package/src/select/select.css +154 -133
- package/src/select/select.tokens.json +2 -0
- package/src/side-navigation/side-navigation.css +179 -182
- package/src/side-navigation/side-navigation.tokens.json +1 -0
- package/src/skeleton/skeleton.css +47 -48
- package/src/slider/slider.css +86 -88
- package/src/sparkline/sparkline.css +62 -40
- package/src/sparkline/sparkline.tokens.json +2 -0
- package/src/spinner/spinner.css +83 -180
- package/src/spinner/spinner.tokens.json +0 -1
- package/src/split-button/split-button.css +30 -31
- package/src/split-button/split-button.tokens.json +1 -0
- package/src/splitter/splitter.css +35 -35
- package/src/stack/stack.css +24 -24
- package/src/stat-card/stat-card.css +380 -241
- package/src/stat-card/stat-card.tokens.json +5 -0
- package/src/status-indicator/status-indicator.css +107 -82
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +58 -62
- package/src/switch/switch.css +86 -92
- package/src/table/table.css +340 -175
- package/src/table/table.tokens.json +6 -0
- package/src/table-of-contents/table-of-contents.css +57 -56
- package/src/table-of-contents/table-of-contents.tokens.json +1 -0
- package/src/tabs/tabs.css +322 -289
- package/src/tabs/tabs.tokens.json +7 -1
- package/src/tag/tag.css +79 -71
- package/src/tag/tag.tokens.json +9 -0
- package/src/tags-input/tags-input.css +145 -82
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +132 -136
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +31 -28
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +72 -69
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +56 -58
- package/src/time-range-picker/time-range-picker.css +126 -133
- package/src/timeline/timeline.css +254 -266
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +115 -98
- package/src/toast/toast.tokens.json +6 -0
- package/src/toggle/toggle.css +62 -25
- package/src/toggle/toggle.tokens.json +8 -0
- package/src/toggle-group/toggle-group.css +106 -60
- package/src/toggle-group/toggle-group.tokens.json +10 -0
- package/src/toolbar/toolbar.css +30 -35
- package/src/tooltip/tooltip.css +59 -38
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +243 -259
- package/src/tour/tour.css +51 -60
- package/src/transfer/transfer.css +160 -164
- package/src/tree/tree.css +103 -111
- package/src/typography/typography.css +40 -36
- package/src/typography/typography.tokens.json +1 -0
- package/src/upload/upload.css +224 -224
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +185 -197
package/src/stepper/stepper.css
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* that retunes the control scale moves the whole stepper together instead of
|
|
12
12
|
* leaving the connector behind.
|
|
13
13
|
*/
|
|
14
|
-
[data-ui
|
|
14
|
+
[data-ui-stepper] {
|
|
15
15
|
--_marker: var(--slotted-stepper-marker-size, var(--slotted-control-height-md, 34px));
|
|
16
16
|
--_gap: var(--slotted-stepper-gap, var(--slotted-control-gap-md, 8px));
|
|
17
17
|
--_rule: var(--slotted-stepper-connector-thickness, var(--slotted-border-width-thick, 2px));
|
|
@@ -74,34 +74,34 @@
|
|
|
74
74
|
* line rather than beside it.
|
|
75
75
|
*/
|
|
76
76
|
|
|
77
|
-
[data-ui
|
|
77
|
+
[data-ui-stepper] [data-part-list] {
|
|
78
78
|
display: flex;
|
|
79
79
|
list-style: none;
|
|
80
80
|
margin: 0;
|
|
81
81
|
padding: 0;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
[data-ui
|
|
84
|
+
[data-ui-stepper][data-orientation='horizontal'] [data-part-list] {
|
|
85
85
|
align-items: flex-start;
|
|
86
86
|
flex-direction: row;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
[data-ui
|
|
89
|
+
[data-ui-stepper][data-orientation='vertical'] [data-part-list] {
|
|
90
90
|
flex-direction: column;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
[data-ui
|
|
93
|
+
[data-ui-stepper] [data-part-item] {
|
|
94
94
|
display: flex;
|
|
95
95
|
position: relative;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
[data-ui
|
|
98
|
+
[data-ui-stepper][data-orientation='horizontal'] [data-part-item] {
|
|
99
99
|
flex: 1 1 0;
|
|
100
100
|
/* A label longer than its column wraps instead of widening the column. */
|
|
101
101
|
min-inline-size: 0;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
[data-ui
|
|
104
|
+
[data-ui-stepper][data-orientation='vertical'] [data-part-item] {
|
|
105
105
|
flex-direction: column;
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
* component.
|
|
115
115
|
*/
|
|
116
116
|
|
|
117
|
-
[data-ui
|
|
117
|
+
[data-ui-stepper] [data-part-trigger] {
|
|
118
118
|
align-items: center;
|
|
119
119
|
appearance: none;
|
|
120
120
|
background: none;
|
|
@@ -131,8 +131,8 @@
|
|
|
131
131
|
var(--slotted-control-transition-easing);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
[data-ui
|
|
135
|
-
[data-ui
|
|
134
|
+
[data-ui-stepper] button[data-part-trigger],
|
|
135
|
+
[data-ui-stepper] a[data-part-trigger] {
|
|
136
136
|
cursor: pointer;
|
|
137
137
|
}
|
|
138
138
|
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
* The stack is centred so the marker sits over the middle of its own label
|
|
143
143
|
* rather than over the middle of the column.
|
|
144
144
|
*/
|
|
145
|
-
[data-ui
|
|
145
|
+
[data-ui-stepper][data-label-placement='bottom'] [data-part-trigger] {
|
|
146
146
|
align-items: center;
|
|
147
147
|
flex-direction: column;
|
|
148
148
|
/**
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
text-align: center;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
[data-ui
|
|
159
|
+
[data-ui-stepper] [data-part-trigger]:focus-visible {
|
|
160
160
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
161
161
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
162
162
|
}
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
* progress that does not depend on colour.
|
|
173
173
|
*/
|
|
174
174
|
|
|
175
|
-
[data-ui
|
|
175
|
+
[data-ui-stepper] [data-part-marker] {
|
|
176
176
|
/**
|
|
177
177
|
* The colour of the glyph drawn over the number, held on the marker rather
|
|
178
178
|
* than stated on the glyph's box. Reading it through one custom property
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
* takes the accent's text colour: it is where they are, not where they have
|
|
225
225
|
* been, so it stays an outline and does not fill.
|
|
226
226
|
*/
|
|
227
|
-
[data-ui
|
|
227
|
+
[data-ui-stepper] [data-current] [data-part-marker] {
|
|
228
228
|
border-color: var(--slotted-stepper-marker-border-current, var(--_done-line));
|
|
229
229
|
color: var(--slotted-stepper-marker-color-current, var(--slotted-tone-accent-text, Highlight));
|
|
230
230
|
}
|
|
@@ -234,12 +234,12 @@
|
|
|
234
234
|
* check, because a reader scanning the row counts filled discs rather than
|
|
235
235
|
* reading five numbers.
|
|
236
236
|
*/
|
|
237
|
-
[data-ui
|
|
237
|
+
[data-ui-stepper] [data-complete]:not([data-current], [data-invalid]) [data-part-marker] {
|
|
238
238
|
background-color: var(--slotted-stepper-marker-surface-complete, var(--_done-line));
|
|
239
239
|
border-color: var(--slotted-stepper-marker-surface-complete, var(--_done-line));
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
[data-ui
|
|
242
|
+
[data-ui-stepper] [data-invalid] [data-part-marker] {
|
|
243
243
|
--_mark: var(
|
|
244
244
|
--slotted-stepper-marker-color-invalid,
|
|
245
245
|
var(--slotted-tone-danger-on-solid, MarkText)
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
);
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
-
[data-ui
|
|
258
|
+
[data-ui-stepper] [data-disabled]:not([data-invalid]) [data-part-marker] {
|
|
259
259
|
background-color: transparent;
|
|
260
260
|
border-color: var(--slotted-disabled-border, GrayText);
|
|
261
261
|
color: var(--slotted-disabled-foreground, GrayText);
|
|
@@ -284,11 +284,11 @@
|
|
|
284
284
|
* each other. The capture is what said so — the two marks overlap into a
|
|
285
285
|
* shape that is neither.
|
|
286
286
|
*/
|
|
287
|
-
[data-ui
|
|
287
|
+
[data-ui-stepper] :is([data-complete], [data-invalid]) [data-part-marker] {
|
|
288
288
|
color: transparent;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
[data-ui
|
|
291
|
+
[data-ui-stepper] [data-part-marker] > [data-ui-icon] {
|
|
292
292
|
--slotted-icon-size: var(--_mark-size);
|
|
293
293
|
|
|
294
294
|
color: var(--_mark);
|
|
@@ -310,7 +310,7 @@
|
|
|
310
310
|
* complete, because the number is what says where the reader is in a
|
|
311
311
|
* sequence and a check would say they had left it.
|
|
312
312
|
*/
|
|
313
|
-
[data-ui
|
|
313
|
+
[data-ui-stepper] [data-current]:not([data-invalid]) [data-part-marker] {
|
|
314
314
|
color: var(--slotted-stepper-marker-color-current, var(--slotted-tone-accent-text, Highlight));
|
|
315
315
|
}
|
|
316
316
|
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
* where it was.
|
|
322
322
|
*/
|
|
323
323
|
|
|
324
|
-
[data-ui
|
|
324
|
+
[data-ui-stepper] [data-part-label] {
|
|
325
325
|
color: var(--_muted);
|
|
326
326
|
font-weight: var(--slotted-stepper-label-weight, var(--slotted-font-weight-medium, 500));
|
|
327
327
|
line-height: var(--slotted-stepper-line-height, var(--slotted-line-height-sm, 1.45));
|
|
@@ -329,19 +329,19 @@
|
|
|
329
329
|
overflow-wrap: anywhere;
|
|
330
330
|
}
|
|
331
331
|
|
|
332
|
-
[data-ui
|
|
332
|
+
[data-ui-stepper] :is([data-current], [data-complete]) [data-part-label] {
|
|
333
333
|
color: var(--_strong);
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
[data-ui
|
|
336
|
+
[data-ui-stepper] [data-invalid] [data-part-label] {
|
|
337
337
|
color: var(--slotted-stepper-label-color-invalid, var(--slotted-tone-danger-text, MarkText));
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
-
[data-ui
|
|
340
|
+
[data-ui-stepper] [data-disabled]:not([data-invalid]) [data-part-label] {
|
|
341
341
|
color: var(--slotted-disabled-foreground, GrayText);
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
-
[data-ui
|
|
344
|
+
[data-ui-stepper] [data-part-description] {
|
|
345
345
|
color: var(--_muted);
|
|
346
346
|
display: block;
|
|
347
347
|
font-size: var(--slotted-stepper-description-font-size, var(--slotted-font-size-xs, 0.75rem));
|
|
@@ -354,10 +354,10 @@
|
|
|
354
354
|
* on the label rather than on the whole column: the column is mostly empty
|
|
355
355
|
* space, and a fill across it would read as a selected row.
|
|
356
356
|
*/
|
|
357
|
-
[data-ui
|
|
358
|
-
[data-part
|
|
359
|
-
:is(button, a)[data-part
|
|
360
|
-
[data-part
|
|
357
|
+
[data-ui-stepper]
|
|
358
|
+
[data-part-item]:not([data-disabled], [data-loading])
|
|
359
|
+
:is(button, a)[data-part-trigger]:hover
|
|
360
|
+
[data-part-label] {
|
|
361
361
|
color: var(--_strong);
|
|
362
362
|
text-decoration-color: currentColor;
|
|
363
363
|
text-decoration-line: underline;
|
|
@@ -378,10 +378,10 @@
|
|
|
378
378
|
* the danger tone, and a press that replaced either would be a press that
|
|
379
379
|
* also changed what the step is.
|
|
380
380
|
*/
|
|
381
|
-
[data-ui
|
|
382
|
-
[data-part
|
|
383
|
-
:is(button, a)[data-part
|
|
384
|
-
[data-part
|
|
381
|
+
[data-ui-stepper]
|
|
382
|
+
[data-part-item]:not([data-disabled], [data-loading])
|
|
383
|
+
:is(button, a)[data-part-trigger]:active
|
|
384
|
+
[data-part-marker] {
|
|
385
385
|
box-shadow: inset 0 0 0 var(--_marker) var(--_state-press);
|
|
386
386
|
}
|
|
387
387
|
|
|
@@ -399,7 +399,7 @@
|
|
|
399
399
|
* centre at every density.
|
|
400
400
|
*/
|
|
401
401
|
|
|
402
|
-
[data-ui
|
|
402
|
+
[data-ui-stepper] [data-part-separator] {
|
|
403
403
|
background-color: var(--_pending-line);
|
|
404
404
|
display: block;
|
|
405
405
|
flex: none;
|
|
@@ -415,7 +415,7 @@
|
|
|
415
415
|
* consumer marked completion would stay grey through every flow that never
|
|
416
416
|
* claims it.
|
|
417
417
|
*/
|
|
418
|
-
[data-ui
|
|
418
|
+
[data-ui-stepper] [data-part-separator][data-complete] {
|
|
419
419
|
background-color: var(--_done-line);
|
|
420
420
|
}
|
|
421
421
|
|
|
@@ -427,8 +427,8 @@
|
|
|
427
427
|
* knows how wide a label is, so nothing can position around it — but a flex
|
|
428
428
|
* item can be told to take the rest.
|
|
429
429
|
*/
|
|
430
|
-
[data-ui
|
|
431
|
-
[data-part
|
|
430
|
+
[data-ui-stepper][data-orientation='horizontal'][data-label-placement='end']
|
|
431
|
+
[data-part-separator] {
|
|
432
432
|
align-self: center;
|
|
433
433
|
block-size: var(--_rule);
|
|
434
434
|
flex: 1 1 auto;
|
|
@@ -437,8 +437,7 @@
|
|
|
437
437
|
position: static;
|
|
438
438
|
}
|
|
439
439
|
|
|
440
|
-
[data-ui
|
|
441
|
-
[data-part='trigger'] {
|
|
440
|
+
[data-ui-stepper][data-orientation='horizontal'][data-label-placement='end'] [data-part-trigger] {
|
|
442
441
|
flex: 0 1 auto;
|
|
443
442
|
min-inline-size: 0;
|
|
444
443
|
}
|
|
@@ -448,8 +447,8 @@
|
|
|
448
447
|
* centres. The columns are equal, so the next centre is exactly one column
|
|
449
448
|
* away, and both ends are derived from the marker rather than stated.
|
|
450
449
|
*/
|
|
451
|
-
[data-ui
|
|
452
|
-
[data-part
|
|
450
|
+
[data-ui-stepper][data-orientation='horizontal'][data-label-placement='bottom']
|
|
451
|
+
[data-part-separator] {
|
|
453
452
|
block-size: var(--_rule);
|
|
454
453
|
inset-block-start: calc(0.5 * (var(--_marker) - var(--_rule)));
|
|
455
454
|
inset-inline-end: calc(-50% + 0.5 * var(--_marker) + var(--_gap));
|
|
@@ -469,7 +468,7 @@
|
|
|
469
468
|
* tall, and `--_gap` at both ends of a step gap of one rem left a rule of
|
|
470
469
|
* no length at all; a quarter rem leaves half the step gap drawn.
|
|
471
470
|
*/
|
|
472
|
-
[data-ui
|
|
471
|
+
[data-ui-stepper][data-orientation='vertical'] [data-part-separator] {
|
|
473
472
|
--_rule-room: var(--slotted-stepper-connector-gap, var(--slotted-space-2, 0.25rem));
|
|
474
473
|
|
|
475
474
|
inline-size: var(--_rule);
|
|
@@ -484,7 +483,7 @@
|
|
|
484
483
|
* binding does not render the element at all; this is what a consumer who
|
|
485
484
|
* renders one anyway gets, and it is nothing.
|
|
486
485
|
*/
|
|
487
|
-
[data-ui
|
|
486
|
+
[data-ui-stepper] [data-part-item]:last-child [data-part-separator] {
|
|
488
487
|
display: none;
|
|
489
488
|
}
|
|
490
489
|
|
|
@@ -494,8 +493,8 @@
|
|
|
494
493
|
* centres over the column and the connector runs between two centres.
|
|
495
494
|
*/
|
|
496
495
|
|
|
497
|
-
[data-ui
|
|
498
|
-
[data-part
|
|
496
|
+
[data-ui-stepper][data-orientation='horizontal'][data-label-placement='bottom']
|
|
497
|
+
[data-part-trigger] {
|
|
499
498
|
inline-size: 100%;
|
|
500
499
|
}
|
|
501
500
|
|
|
@@ -505,24 +504,24 @@
|
|
|
505
504
|
* step lines up with its name rather than with its number.
|
|
506
505
|
*/
|
|
507
506
|
|
|
508
|
-
[data-ui
|
|
507
|
+
[data-ui-stepper][data-orientation='vertical'] [data-part-item] {
|
|
509
508
|
padding-block-end: var(--slotted-stepper-step-gap, var(--slotted-space-6, 1rem));
|
|
510
509
|
}
|
|
511
510
|
|
|
512
|
-
[data-ui
|
|
511
|
+
[data-ui-stepper][data-orientation='vertical'] [data-part-item]:last-child {
|
|
513
512
|
padding-block-end: 0;
|
|
514
513
|
}
|
|
515
514
|
|
|
516
|
-
[data-ui
|
|
515
|
+
[data-ui-stepper][data-orientation='vertical'] [data-part-panel] {
|
|
517
516
|
margin-inline-start: calc(var(--_marker) + var(--_gap));
|
|
518
517
|
padding-block-start: var(--slotted-stepper-panel-gap, var(--slotted-space-4, 0.5rem));
|
|
519
518
|
}
|
|
520
519
|
|
|
521
|
-
[data-ui
|
|
520
|
+
[data-ui-stepper][data-orientation='horizontal'] [data-part-panel] {
|
|
522
521
|
padding-block-start: var(--slotted-stepper-panel-gap, var(--slotted-space-6, 1rem));
|
|
523
522
|
}
|
|
524
523
|
|
|
525
|
-
[data-ui
|
|
524
|
+
[data-ui-stepper] [data-part-panel]:focus-visible {
|
|
526
525
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
527
526
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
528
527
|
}
|
|
@@ -540,23 +539,23 @@
|
|
|
540
539
|
*/
|
|
541
540
|
|
|
542
541
|
@container slotted-stepper (max-width: 30rem) {
|
|
543
|
-
[data-ui
|
|
542
|
+
[data-ui-stepper][data-orientation='horizontal'] [data-part-list] {
|
|
544
543
|
align-items: stretch;
|
|
545
544
|
flex-direction: column;
|
|
546
545
|
}
|
|
547
546
|
|
|
548
|
-
[data-ui
|
|
547
|
+
[data-ui-stepper][data-orientation='horizontal'] [data-part-item] {
|
|
549
548
|
flex: none;
|
|
550
549
|
flex-direction: column;
|
|
551
550
|
padding-block-end: var(--slotted-stepper-step-gap, var(--slotted-space-6, 1rem));
|
|
552
551
|
padding-inline-end: 0;
|
|
553
552
|
}
|
|
554
553
|
|
|
555
|
-
[data-ui
|
|
554
|
+
[data-ui-stepper][data-orientation='horizontal'] [data-part-item]:last-child {
|
|
556
555
|
padding-block-end: 0;
|
|
557
556
|
}
|
|
558
557
|
|
|
559
|
-
[data-ui
|
|
558
|
+
[data-ui-stepper][data-orientation='horizontal'][data-label-placement] [data-part-trigger] {
|
|
560
559
|
align-items: center;
|
|
561
560
|
flex-direction: row;
|
|
562
561
|
inline-size: auto;
|
|
@@ -578,8 +577,7 @@
|
|
|
578
577
|
* adds no weight of its own. Without it the row's own connector geometry
|
|
579
578
|
* survived the reflow and the column drew four-pixel dots down its side.
|
|
580
579
|
*/
|
|
581
|
-
[data-ui
|
|
582
|
-
[data-part='separator'] {
|
|
580
|
+
[data-ui-stepper][data-orientation='horizontal'][data-label-placement] [data-part-separator] {
|
|
583
581
|
block-size: auto;
|
|
584
582
|
flex: none;
|
|
585
583
|
inline-size: var(--_rule);
|
|
@@ -592,7 +590,7 @@
|
|
|
592
590
|
position: absolute;
|
|
593
591
|
}
|
|
594
592
|
|
|
595
|
-
[data-ui
|
|
593
|
+
[data-ui-stepper][data-orientation='horizontal'][data-label-placement] [data-part-panel] {
|
|
596
594
|
margin-inline-start: calc(var(--_marker) + var(--_gap));
|
|
597
595
|
padding-block-start: var(--slotted-stepper-panel-gap, var(--slotted-space-4, 0.5rem));
|
|
598
596
|
}
|
|
@@ -609,17 +607,15 @@
|
|
|
609
607
|
*/
|
|
610
608
|
|
|
611
609
|
@media (forced-colors: active) {
|
|
612
|
-
[data-ui
|
|
610
|
+
[data-ui-stepper] [data-part-separator] {
|
|
613
611
|
background-color: GrayText;
|
|
614
612
|
}
|
|
615
613
|
|
|
616
|
-
[data-ui
|
|
614
|
+
[data-ui-stepper] [data-part-separator][data-complete] {
|
|
617
615
|
background-color: Highlight;
|
|
618
616
|
}
|
|
619
617
|
|
|
620
|
-
[data-ui
|
|
621
|
-
:is([data-complete], [data-invalid]):not([data-current])
|
|
622
|
-
[data-part='marker'] {
|
|
618
|
+
[data-ui-stepper] :is([data-complete], [data-invalid]):not([data-current]) [data-part-marker] {
|
|
623
619
|
background-color: Highlight;
|
|
624
620
|
border-color: Highlight;
|
|
625
621
|
color: HighlightText;
|