@slotted/styles 0.1.0-beta.4 → 0.1.0-beta.40
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 +21 -1
- package/src/accordion/accordion.css +31 -13
- package/src/accordion/accordion.tokens.json +2 -0
- package/src/action-bar/action-bar.css +47 -44
- package/src/action-bar/action-bar.tokens.json +1 -0
- package/src/action-sheet/action-sheet.css +39 -39
- package/src/alert/alert.css +97 -97
- package/src/alert/alert.tokens.json +6 -1
- package/src/app-shell/app-shell.css +472 -342
- package/src/app-shell/app-shell.tokens.json +6 -3
- package/src/aspect-ratio/aspect-ratio.css +24 -23
- package/src/attachment/attachment.css +118 -114
- package/src/avatar/avatar.css +97 -67
- package/src/avatar/avatar.tokens.json +8 -0
- package/src/avatar-group/avatar-group.css +22 -23
- package/src/badge/badge.css +58 -47
- package/src/badge/badge.tokens.json +6 -0
- package/src/breadcrumb/breadcrumb.css +52 -52
- package/src/button/button.css +408 -93
- package/src/button/button.tokens.json +13 -0
- package/src/button-group/button-group.css +80 -79
- package/src/button-group/button-group.tokens.json +1 -0
- package/src/calendar/calendar.css +594 -267
- package/src/calendar/calendar.tokens.json +35 -3
- package/src/card/card.css +133 -70
- package/src/card/card.tokens.json +1 -0
- package/src/carousel/carousel.css +158 -169
- package/src/cascader/cascader.css +174 -159
- package/src/cascader/cascader.tokens.json +2 -0
- package/src/chart/chart.css +300 -271
- package/src/chart/chart.tokens.json +5 -0
- package/src/checkbox/checkbox.css +190 -148
- package/src/checkbox/checkbox.tokens.json +4 -0
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/clock/clock.css +246 -0
- package/src/clock/clock.tokens.json +44 -0
- package/src/code-block/code-block.css +85 -89
- package/src/collapsible/collapsible.css +273 -85
- package/src/collapsible/collapsible.tokens.json +6 -0
- package/src/color-picker/color-picker.css +106 -114
- package/src/column-manager/column-manager.css +111 -119
- package/src/combobox/combobox.css +219 -132
- package/src/combobox/combobox.tokens.json +4 -0
- package/src/command-palette/command-palette.css +214 -102
- package/src/command-palette/command-palette.tokens.json +4 -0
- package/src/container/container.css +27 -27
- package/src/context-menu/context-menu.css +9 -9
- package/src/currency-field/currency-field.css +119 -119
- package/src/currency-field/currency-field.tokens.json +1 -0
- package/src/dashboard-grid/dashboard-grid.css +231 -115
- package/src/dashboard-grid/dashboard-grid.tokens.json +3 -1
- package/src/data-grid/data-grid.css +637 -496
- package/src/data-grid/data-grid.tokens.json +5 -1
- package/src/data-list/data-list.css +93 -76
- package/src/data-list/data-list.tokens.json +2 -1
- package/src/date-field/date-field.css +62 -57
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +31 -269
- package/src/date-picker/date-picker.tokens.json +1 -21
- package/src/date-range-picker/date-range-picker.css +72 -528
- package/src/date-range-picker/date-range-picker.tokens.json +1 -37
- package/src/datetime-field/datetime-field.css +90 -90
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +49 -711
- package/src/datetime-picker/datetime-picker.tokens.json +1 -50
- package/src/datetime-range-picker/datetime-range-picker.css +60 -985
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +1 -67
- package/src/description-list/description-list.css +120 -76
- package/src/description-list/description-list.tokens.json +1 -0
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +462 -199
- package/src/dialog/dialog.tokens.json +10 -0
- package/src/divider/divider.css +20 -20
- package/src/drawer/drawer.css +736 -237
- package/src/drawer/drawer.tokens.json +15 -0
- package/src/entity-picker/entity-picker.css +402 -272
- package/src/entity-picker/entity-picker.tokens.json +6 -0
- package/src/event-calendar/event-calendar.css +357 -399
- package/src/field/field.css +106 -93
- package/src/field/field.tokens.json +2 -0
- package/src/field-group/field-group.css +58 -38
- package/src/field-group/field-group.tokens.json +3 -0
- package/src/filter-bar/filter-bar.css +224 -216
- package/src/floating-panel/floating-panel.css +147 -0
- package/src/floating-panel/floating-panel.tokens.json +32 -0
- package/src/form/form.css +103 -26
- package/src/form/form.tokens.json +6 -1
- package/src/fullscreen/fullscreen.css +26 -27
- package/src/grid/grid.css +32 -31
- package/src/highlight/highlight.css +11 -11
- package/src/hover-card/hover-card.css +9 -9
- package/src/icon/icon.css +67 -20
- package/src/icon/icon.tokens.json +1 -0
- package/src/image/image.css +42 -42
- package/src/import-export-center/import-export-center.css +147 -168
- package/src/import-export-center/import-export-center.tokens.json +1 -0
- package/src/inline/inline.css +29 -29
- package/src/inline-message/inline-message.css +162 -86
- package/src/inline-message/inline-message.tokens.json +5 -0
- package/src/kbd/kbd.css +63 -51
- package/src/kbd/kbd.tokens.json +4 -0
- package/src/link/link.css +54 -33
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +55 -24
- package/src/list/list.tokens.json +2 -0
- package/src/list-item/list-item.css +195 -80
- package/src/list-item/list-item.tokens.json +10 -0
- package/src/listbox/listbox.css +121 -72
- package/src/listbox/listbox.tokens.json +6 -1
- package/src/loading-overlay/loading-overlay.css +86 -103
- package/src/markdown/markdown.css +20 -20
- package/src/media-viewer/media-viewer.css +790 -0
- package/src/media-viewer/media-viewer.tokens.json +53 -0
- package/src/menu/menu.css +166 -83
- package/src/menu/menu.tokens.json +3 -1
- package/src/menubar/menubar.css +16 -16
- package/src/message/message.css +1296 -1243
- package/src/message/message.tokens.json +14 -0
- package/src/message-scroller/message-scroller.css +323 -320
- package/src/meter/meter.css +136 -0
- package/src/meter/meter.tokens.json +23 -0
- package/src/multi-select/multi-select.css +246 -174
- package/src/multi-select/multi-select.tokens.json +3 -0
- package/src/navigation-menu/navigation-menu.css +170 -191
- package/src/navigation-menu/navigation-menu.tokens.json +1 -0
- package/src/notification-center/notification-center.css +155 -163
- package/src/notification-center/notification-center.tokens.json +4 -0
- package/src/number-field/number-field.css +93 -93
- package/src/number-field/number-field.tokens.json +1 -0
- package/src/otp-input/otp-input.css +74 -64
- package/src/otp-input/otp-input.tokens.json +1 -0
- package/src/page/page.css +109 -31
- package/src/page/page.tokens.json +8 -0
- package/src/page-header/page-header.css +342 -287
- package/src/page-header/page-header.tokens.json +6 -1
- package/src/pagination/pagination.css +75 -79
- package/src/picker-panel/picker-panel.css +1074 -0
- package/src/picker-panel/picker-panel.tokens.json +77 -0
- package/src/popover/popover.css +85 -65
- package/src/popover/popover.tokens.json +2 -0
- package/src/progress-indicator/progress-indicator.css +194 -137
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +274 -116
- package/src/prompt-composer/prompt-composer.tokens.json +15 -0
- package/src/prose/prose.css +77 -82
- package/src/radio-group/radio-group.css +107 -112
- package/src/rating/rating.css +147 -143
- package/src/rating/rating.tokens.json +2 -0
- package/src/result-state/result-state.css +95 -102
- package/src/result-state/result-state.tokens.json +1 -0
- package/src/runtime-properties.mjs +44 -6
- package/src/saved-views/saved-views.css +43 -49
- package/src/scroll-area/scroll-area.css +50 -37
- package/src/section/section.css +311 -46
- package/src/section/section.tokens.json +13 -1
- package/src/segmented-control/segmented-control.css +221 -133
- package/src/segmented-control/segmented-control.tokens.json +7 -11
- package/src/select/select.css +226 -149
- package/src/select/select.tokens.json +4 -0
- package/src/side-navigation/side-navigation.css +204 -201
- package/src/side-navigation/side-navigation.tokens.json +2 -0
- package/src/skeleton/skeleton.css +76 -58
- package/src/slider/slider.css +108 -104
- package/src/slider/slider.tokens.json +1 -0
- package/src/sparkline/sparkline.css +75 -53
- 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 +34 -35
- package/src/split-button/split-button.tokens.json +1 -0
- package/src/splitter/splitter.css +47 -48
- package/src/stack/stack.css +26 -26
- package/src/stat-card/stat-card.css +420 -245
- package/src/stat-card/stat-card.tokens.json +8 -0
- package/src/status-indicator/status-indicator.css +126 -101
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +78 -82
- package/src/switch/switch.css +143 -125
- package/src/switch/switch.tokens.json +4 -0
- package/src/table/table.css +653 -222
- package/src/table/table.tokens.json +10 -0
- package/src/table-of-contents/table-of-contents.css +60 -59
- package/src/table-of-contents/table-of-contents.tokens.json +1 -0
- package/src/tabs/tabs.css +327 -294
- package/src/tabs/tabs.tokens.json +7 -1
- package/src/tag/tag.css +113 -89
- package/src/tag/tag.tokens.json +11 -0
- package/src/tags-input/tags-input.css +152 -87
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +146 -148
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +38 -33
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +82 -77
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +30 -519
- package/src/time-picker/time-picker.tokens.json +1 -38
- package/src/time-range-picker/time-range-picker.css +53 -895
- package/src/time-range-picker/time-range-picker.tokens.json +1 -66
- package/src/timeline/timeline.css +280 -292
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +139 -122
- package/src/toast/toast.tokens.json +7 -0
- package/src/toggle/toggle.css +34 -38
- package/src/toggle-group/toggle-group.css +73 -77
- package/src/toolbar/toolbar.css +49 -40
- package/src/toolbar/toolbar.tokens.json +2 -1
- package/src/tooltip/tooltip.css +95 -39
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +253 -269
- package/src/top-navigation/top-navigation.tokens.json +1 -0
- package/src/tour/tour.css +68 -74
- package/src/tour/tour.tokens.json +1 -0
- package/src/transfer/transfer.css +164 -168
- package/src/tree/tree.css +118 -122
- package/src/typography/typography.css +67 -38
- package/src/typography/typography.tokens.json +2 -0
- package/src/upload/upload.css +256 -257
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +187 -199
package/src/tour/tour.css
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* └────────────────────────────────────────────────────────────────────┘
|
|
21
21
|
*
|
|
22
22
|
* The surface is popover's layer and the scrim is dialog's
|
|
23
|
-
|
|
23
|
+
*. The card's
|
|
24
24
|
* geometry, its arrow and its entrance repeat popover's for the reason that
|
|
25
25
|
* family records beside each of them.
|
|
26
26
|
*
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
* The backdrop holds it and fades it, so the scrim arrives and leaves the way
|
|
34
34
|
* `dialog`'s does (`scrim-motion.test.mjs`).
|
|
35
35
|
*/
|
|
36
|
-
[data-ui
|
|
36
|
+
[data-ui-tour] {
|
|
37
37
|
--_scrim: var(--slotted-tour-scrim, var(--slotted-scrim, Canvas));
|
|
38
38
|
--_spotlight-padding: var(--slotted-tour-spotlight-padding, var(--slotted-space-3, 0.375rem));
|
|
39
39
|
--_spotlight-radius: var(--slotted-tour-spotlight-radius, var(--slotted-radius-md, 6px));
|
|
@@ -83,12 +83,12 @@
|
|
|
83
83
|
|
|
84
84
|
/* Visible at once on the way in: a frame hidden until the end of a transition
|
|
85
85
|
cannot take focus in the frame it opens, and the card is focused then. */
|
|
86
|
-
[data-ui
|
|
86
|
+
[data-ui-tour][data-open] {
|
|
87
87
|
visibility: visible;
|
|
88
88
|
transition: none;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
[data-ui
|
|
91
|
+
[data-ui-tour][data-size='sm'] {
|
|
92
92
|
--_inset-block: var(--slotted-tour-padding-block-sm, var(--slotted-space-5, 0.75rem));
|
|
93
93
|
--_inset-inline: var(--slotted-tour-padding-inline-sm, var(--slotted-space-5, 0.75rem));
|
|
94
94
|
--_title-font-size: var(--slotted-font-size-md, 0.875rem);
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
--_measure: var(--slotted-tour-measure-sm, 16rem);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
[data-ui
|
|
99
|
+
[data-ui-tour][data-size='lg'] {
|
|
100
100
|
--_inset-block: var(--slotted-tour-padding-block-lg, var(--slotted-space-7, 1.25rem));
|
|
101
101
|
--_inset-inline: var(--slotted-tour-padding-inline-lg, var(--slotted-space-7, 1.25rem));
|
|
102
102
|
--_title-font-size: var(--slotted-font-size-xl, 1.125rem);
|
|
@@ -106,11 +106,11 @@
|
|
|
106
106
|
/* ── The scrim ────────────────────────────────────────────────────────── */
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
* With no spotlight — a
|
|
109
|
+
* With no spotlight — a centerd step, or `spotlight={false}` on a modal
|
|
110
110
|
* step — the backdrop paints the scrim itself, as `dialog`'s does. With one,
|
|
111
111
|
* the spotlight's shadow paints it and the backdrop only carries the fade.
|
|
112
112
|
*/
|
|
113
|
-
[data-ui
|
|
113
|
+
[data-ui-tour] > [data-part-backdrop] {
|
|
114
114
|
position: absolute;
|
|
115
115
|
inset: 0;
|
|
116
116
|
overflow: clip;
|
|
@@ -119,19 +119,19 @@
|
|
|
119
119
|
transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
[data-ui
|
|
122
|
+
[data-ui-tour][data-open] > [data-part-backdrop] {
|
|
123
123
|
opacity: 1;
|
|
124
124
|
transition: opacity var(--slotted-duration-long) var(--slotted-easing-standard);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
[data-ui
|
|
127
|
+
[data-ui-tour][data-spotlight] > [data-part-backdrop] {
|
|
128
128
|
background: transparent;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
/* A modal step takes every press outside the card, the target's included:
|
|
132
132
|
the page beneath is inert, and a press that reached it would do nothing
|
|
133
133
|
a reader could see. */
|
|
134
|
-
[data-ui
|
|
134
|
+
[data-ui-tour][data-modal] > [data-part-backdrop] {
|
|
135
135
|
pointer-events: auto;
|
|
136
136
|
}
|
|
137
137
|
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
* it from any position the cutout can take, a target half off screen
|
|
145
145
|
* included.
|
|
146
146
|
*/
|
|
147
|
-
[data-ui
|
|
147
|
+
[data-ui-tour] > [data-part-backdrop] > [data-part-spotlight] {
|
|
148
148
|
position: absolute;
|
|
149
149
|
left: calc(var(--slotted-tour-target-x, 0px) - var(--_spotlight-padding));
|
|
150
150
|
top: calc(var(--slotted-tour-target-y, 0px) - var(--_spotlight-padding));
|
|
@@ -173,23 +173,23 @@
|
|
|
173
173
|
* - `travel`: from one target to the next, so the reader sees where the
|
|
174
174
|
* tour went rather than a light going out in one place and on in another.
|
|
175
175
|
* - `light`: a cutout opening where there was none — the first step, or the
|
|
176
|
-
* step after a
|
|
176
|
+
* step after a centerd one. The hole starts in the scrim's ink and clears,
|
|
177
177
|
* so the target is lit rather than revealed by a cut.
|
|
178
|
-
* - `close`: the step after is
|
|
178
|
+
* - `close`: the step after is centerd. The hole fills back with the scrim
|
|
179
179
|
* before the cutout goes, and the backdrop, which paints the same ink,
|
|
180
180
|
* takes over without a seam.
|
|
181
181
|
*/
|
|
182
|
-
[data-ui
|
|
182
|
+
[data-ui-tour][data-spot='travel'] > [data-part-backdrop] > [data-part-spotlight] {
|
|
183
183
|
transition-property: left, top, width, height;
|
|
184
184
|
transition-duration: var(--slotted-duration-long);
|
|
185
185
|
transition-timing-function: var(--slotted-easing-standard);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
[data-ui
|
|
188
|
+
[data-ui-tour][data-spot='light'] > [data-part-backdrop] > [data-part-spotlight] {
|
|
189
189
|
animation: slotted-tour-light var(--slotted-duration-long) var(--slotted-easing-standard);
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
[data-ui
|
|
192
|
+
[data-ui-tour][data-spot='close'] > [data-part-backdrop] > [data-part-spotlight] {
|
|
193
193
|
background-color: var(--_scrim);
|
|
194
194
|
transition: background-color var(--slotted-duration-long) var(--slotted-easing-standard);
|
|
195
195
|
}
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
* positioner writes `left` and never `right`, and `inset-inline-start`
|
|
209
209
|
* resolves to `right` in a right-to-left document.
|
|
210
210
|
*/
|
|
211
|
-
[data-ui
|
|
211
|
+
[data-ui-tour] > [data-part-surface] {
|
|
212
212
|
position: absolute;
|
|
213
213
|
inset-block-start: 0;
|
|
214
214
|
|
|
@@ -239,26 +239,26 @@
|
|
|
239
239
|
|
|
240
240
|
/**
|
|
241
241
|
* `data-ready` is the binding's: the card of the step on screen has been
|
|
242
|
-
* placed — measured by the positioner, or
|
|
242
|
+
* placed — measured by the positioner, or centerd — and is not leaving. A
|
|
243
243
|
* card between two steps, still at the old target with the new words, is
|
|
244
244
|
* never drawn.
|
|
245
245
|
*/
|
|
246
|
-
[data-ui
|
|
246
|
+
[data-ui-tour][data-open] > [data-part-surface][data-ready]:not([data-leaving]) {
|
|
247
247
|
opacity: 1;
|
|
248
248
|
transition: opacity var(--slotted-duration-long) var(--slotted-easing-standard);
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
[data-ui
|
|
251
|
+
[data-ui-tour] > [data-part-surface][data-detached] {
|
|
252
252
|
visibility: hidden;
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
/**
|
|
256
256
|
* A step with no target, or one whose target could not be found, stands in
|
|
257
257
|
* the middle of the viewport as `dialog`'s panel does. Auto margins on an
|
|
258
|
-
* absolutely placed box with all four insets at zero
|
|
258
|
+
* absolutely placed box with all four insets at zero center it without a
|
|
259
259
|
* transform, which the entrance owns.
|
|
260
260
|
*/
|
|
261
|
-
[data-ui
|
|
261
|
+
[data-ui-tour] > [data-part-surface][data-placement='centered'] {
|
|
262
262
|
inset: 0;
|
|
263
263
|
margin: auto;
|
|
264
264
|
block-size: max-content;
|
|
@@ -268,11 +268,11 @@
|
|
|
268
268
|
|
|
269
269
|
/**
|
|
270
270
|
* A phone's notch, its rounded corners and its home indicator are outside
|
|
271
|
-
* the safe area, and a
|
|
271
|
+
* the safe area, and a centerd card must not stand under them. `env()`
|
|
272
272
|
* answers zero everywhere else.
|
|
273
273
|
*/
|
|
274
274
|
@supports (inset: env(safe-area-inset-top)) {
|
|
275
|
-
[data-ui
|
|
275
|
+
[data-ui-tour] > [data-part-surface][data-placement='centered'] {
|
|
276
276
|
inset: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
|
|
277
277
|
env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
|
|
278
278
|
}
|
|
@@ -286,7 +286,7 @@
|
|
|
286
286
|
* one narrower than the screen leaves a sliver of page on either side
|
|
287
287
|
* that nobody can use.
|
|
288
288
|
*/
|
|
289
|
-
[data-ui
|
|
289
|
+
[data-ui-tour][data-compact] > [data-part-surface][data-placement='anchored'] {
|
|
290
290
|
/* Capped, so layout="compact" forced on a wide screen is a wide card and
|
|
291
291
|
not a banner across the page. */
|
|
292
292
|
--_compact-measure: var(--slotted-tour-measure-compact, 32rem);
|
|
@@ -294,11 +294,11 @@
|
|
|
294
294
|
max-inline-size: min(var(--slotted-positioner-available-width, 100vw), var(--_compact-measure));
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
-
[data-ui
|
|
297
|
+
[data-ui-tour] > [data-part-surface][data-placement='centered'] > [data-part-arrow] {
|
|
298
298
|
display: none;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
[data-ui
|
|
301
|
+
[data-ui-tour] > [data-part-surface] > [data-part-focus-guard] {
|
|
302
302
|
position: absolute;
|
|
303
303
|
inline-size: 1px;
|
|
304
304
|
block-size: 1px;
|
|
@@ -311,12 +311,15 @@
|
|
|
311
311
|
|
|
312
312
|
/* ── The card ─────────────────────────────────────────────────────────── */
|
|
313
313
|
|
|
314
|
-
[data-ui
|
|
314
|
+
[data-ui-tour] > [data-part-surface] > [data-part-content] {
|
|
315
315
|
box-sizing: border-box;
|
|
316
316
|
display: flex;
|
|
317
317
|
flex-direction: column;
|
|
318
318
|
max-inline-size: 100%;
|
|
319
|
-
max-block-size:
|
|
319
|
+
max-block-size: min(
|
|
320
|
+
var(--slotted-overlay-max-block-size, 100vh),
|
|
321
|
+
calc(var(--slotted-positioner-available-height, 100vh) - 2 * var(--_gap))
|
|
322
|
+
);
|
|
320
323
|
|
|
321
324
|
border: var(--_border-width) solid var(--_border-color);
|
|
322
325
|
border-radius: var(--_radius);
|
|
@@ -336,11 +339,11 @@
|
|
|
336
339
|
outline: none;
|
|
337
340
|
}
|
|
338
341
|
|
|
339
|
-
[data-ui
|
|
342
|
+
[data-ui-tour] > [data-part-surface][data-placement='centered'] > [data-part-content] {
|
|
340
343
|
max-block-size: calc(100vh - 2 * var(--_gap));
|
|
341
344
|
}
|
|
342
345
|
|
|
343
|
-
[data-ui
|
|
346
|
+
[data-ui-tour] > [data-part-surface] > [data-part-content]:focus-visible {
|
|
344
347
|
outline: var(--slotted-focus-ring-width, 2px) solid
|
|
345
348
|
var(--slotted-focus-ring-color, currentColor);
|
|
346
349
|
outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
|
|
@@ -351,7 +354,7 @@
|
|
|
351
354
|
* top rather than as an image placed inside it; its height is its own, and
|
|
352
355
|
* a consumer who wants a fixed frame writes `aspect-ratio` on it.
|
|
353
356
|
*/
|
|
354
|
-
[data-ui
|
|
357
|
+
[data-ui-tour] [data-part-content] > [data-part-media] {
|
|
355
358
|
display: block;
|
|
356
359
|
flex: none;
|
|
357
360
|
inline-size: 100%;
|
|
@@ -361,7 +364,7 @@
|
|
|
361
364
|
border-block-end: var(--_border-width) solid var(--_border-color);
|
|
362
365
|
}
|
|
363
366
|
|
|
364
|
-
[data-ui
|
|
367
|
+
[data-ui-tour] [data-part-content] > [data-part-media] > :is(img, video, svg) {
|
|
365
368
|
display: block;
|
|
366
369
|
inline-size: 100%;
|
|
367
370
|
block-size: auto;
|
|
@@ -370,13 +373,13 @@
|
|
|
370
373
|
/**
|
|
371
374
|
* Where the reader is, and the way out. The row is one control tall, so the
|
|
372
375
|
* close control sits in it without stretching it, and the progress text is
|
|
373
|
-
*
|
|
376
|
+
* centerd on the same line.
|
|
374
377
|
*/
|
|
375
|
-
[data-ui
|
|
378
|
+
[data-ui-tour] [data-part-content] > [data-part-header] {
|
|
376
379
|
display: flex;
|
|
377
380
|
flex: none;
|
|
378
381
|
/* `start`, so a progress text a translation wraps keeps the close control
|
|
379
|
-
level with its first line; the text's own inset
|
|
382
|
+
level with its first line; the text's own inset centers that line on
|
|
380
383
|
the control. */
|
|
381
384
|
align-items: flex-start;
|
|
382
385
|
gap: var(--_row-gap);
|
|
@@ -386,7 +389,7 @@
|
|
|
386
389
|
calc(var(--_inset-inline) - var(--slotted-space-3, 0.375rem));
|
|
387
390
|
}
|
|
388
391
|
|
|
389
|
-
[data-ui
|
|
392
|
+
[data-ui-tour] [data-part-content] > [data-part-header] > [data-part-progress] {
|
|
390
393
|
flex: 1 1 auto;
|
|
391
394
|
min-inline-size: 0;
|
|
392
395
|
margin: 0;
|
|
@@ -396,14 +399,14 @@
|
|
|
396
399
|
color: var(--slotted-text-muted, #5b6b7f);
|
|
397
400
|
font-variant-numeric: tabular-nums;
|
|
398
401
|
/* Half of what the close control is taller than one line of this text,
|
|
399
|
-
above and below, so the first line sits on the control's
|
|
402
|
+
above and below, so the first line sits on the control's center. */
|
|
400
403
|
padding-block: calc((var(--slotted-control-height-sm, 30px) - 1lh) / 2);
|
|
401
404
|
/* "2 of 5" in a right-to-left page reads "of 5 2" without it: the numbers
|
|
402
405
|
are weak characters and take the paragraph's direction. */
|
|
403
406
|
unicode-bidi: plaintext;
|
|
404
407
|
}
|
|
405
408
|
|
|
406
|
-
[data-ui
|
|
409
|
+
[data-ui-tour] [data-part-content] > [data-part-header] > [data-part-close] {
|
|
407
410
|
flex: none;
|
|
408
411
|
display: inline-flex;
|
|
409
412
|
align-items: center;
|
|
@@ -427,31 +430,22 @@
|
|
|
427
430
|
var(--slotted-control-transition-easing, var(--slotted-easing-standard));
|
|
428
431
|
}
|
|
429
432
|
|
|
430
|
-
[data-ui
|
|
431
|
-
[data-part='content']
|
|
432
|
-
> [data-part='header']
|
|
433
|
-
> [data-part='close']:enabled:hover {
|
|
433
|
+
[data-ui-tour] [data-part-content] > [data-part-header] > [data-part-close]:enabled:hover {
|
|
434
434
|
background: var(--slotted-tone-secondary-subtle-hover, rgb(15 23 42 / 0.06));
|
|
435
435
|
color: var(--_text);
|
|
436
436
|
}
|
|
437
437
|
|
|
438
|
-
[data-ui
|
|
439
|
-
[data-part='content']
|
|
440
|
-
> [data-part='header']
|
|
441
|
-
> [data-part='close']:enabled:active {
|
|
438
|
+
[data-ui-tour] [data-part-content] > [data-part-header] > [data-part-close]:enabled:active {
|
|
442
439
|
background: var(--slotted-tone-secondary-subtle-active, rgb(15 23 42 / 0.1));
|
|
443
440
|
}
|
|
444
441
|
|
|
445
|
-
[data-ui
|
|
446
|
-
[data-part='content']
|
|
447
|
-
> [data-part='header']
|
|
448
|
-
> [data-part='close']:focus-visible {
|
|
442
|
+
[data-ui-tour] [data-part-content] > [data-part-header] > [data-part-close]:focus-visible {
|
|
449
443
|
outline: var(--slotted-focus-ring-width, 2px) solid
|
|
450
444
|
var(--slotted-focus-ring-color, currentColor);
|
|
451
445
|
outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
|
|
452
446
|
}
|
|
453
447
|
|
|
454
|
-
[data-ui
|
|
448
|
+
[data-ui-tour] [data-part-content] > [data-part-title] {
|
|
455
449
|
flex: none;
|
|
456
450
|
margin: 0;
|
|
457
451
|
padding-inline: var(--_inset-inline);
|
|
@@ -470,12 +464,12 @@
|
|
|
470
464
|
|
|
471
465
|
/* A card with no header — the consumer composed their own — starts at the
|
|
472
466
|
title, and the title takes the header's inset. */
|
|
473
|
-
[data-ui
|
|
474
|
-
[data-ui
|
|
467
|
+
[data-ui-tour] [data-part-content] > [data-part-title]:first-child,
|
|
468
|
+
[data-ui-tour] [data-part-content] > [data-part-media] + [data-part-title] {
|
|
475
469
|
padding-block-start: var(--_inset-block);
|
|
476
470
|
}
|
|
477
471
|
|
|
478
|
-
[data-ui
|
|
472
|
+
[data-ui-tour] [data-part-content] > [data-part-description] {
|
|
479
473
|
flex: none;
|
|
480
474
|
margin: 0;
|
|
481
475
|
padding-inline: var(--_inset-inline);
|
|
@@ -489,7 +483,7 @@
|
|
|
489
483
|
* The step's own content, and the only part that scrolls. The shadow at each
|
|
490
484
|
* edge is popover's, for the reason recorded there.
|
|
491
485
|
*/
|
|
492
|
-
[data-ui
|
|
486
|
+
[data-ui-tour] [data-part-content] > [data-part-body] {
|
|
493
487
|
flex: 1 1 auto;
|
|
494
488
|
min-block-size: 0;
|
|
495
489
|
overflow-x: hidden;
|
|
@@ -534,7 +528,7 @@
|
|
|
534
528
|
* stacks the line skip was pushed onto above the pair. The document order,
|
|
535
529
|
* which is the tab order, is still skip, back, next, and so is the picture.
|
|
536
530
|
*/
|
|
537
|
-
[data-ui
|
|
531
|
+
[data-ui-tour] [data-part-content] > [data-part-footer] {
|
|
538
532
|
display: flex;
|
|
539
533
|
flex: none;
|
|
540
534
|
flex-direction: row-reverse;
|
|
@@ -546,15 +540,15 @@
|
|
|
546
540
|
padding-inline: var(--_inset-inline);
|
|
547
541
|
}
|
|
548
542
|
|
|
549
|
-
[data-ui
|
|
543
|
+
[data-ui-tour] [data-part-content] > [data-part-footer] > [data-part-next] {
|
|
550
544
|
order: 1;
|
|
551
545
|
}
|
|
552
546
|
|
|
553
|
-
[data-ui
|
|
547
|
+
[data-ui-tour] [data-part-content] > [data-part-footer] > [data-part-prev] {
|
|
554
548
|
order: 2;
|
|
555
549
|
}
|
|
556
550
|
|
|
557
|
-
[data-ui
|
|
551
|
+
[data-ui-tour] [data-part-content] > [data-part-footer] > [data-part-skip] {
|
|
558
552
|
order: 3;
|
|
559
553
|
margin-inline-end: auto;
|
|
560
554
|
/* A ghost button's label sits a button's padding in from its edge; pulled
|
|
@@ -568,7 +562,7 @@
|
|
|
568
562
|
* popover's, in physical properties and over the card, for the two reasons
|
|
569
563
|
* `tooltip.css` sets out.
|
|
570
564
|
*/
|
|
571
|
-
[data-ui
|
|
565
|
+
[data-ui-tour] > [data-part-surface] > [data-part-arrow] {
|
|
572
566
|
/**
|
|
573
567
|
* Where the arrow may stand: on the straight run of the card's edge. The
|
|
574
568
|
* positioner keeps it `arrowPadding` from the edge of the **layer**, and
|
|
@@ -578,7 +572,7 @@
|
|
|
578
572
|
* square that the card normally hides stood outside it: a whole diamond.
|
|
579
573
|
* Clamped here, the arrow always meets a straight edge, whatever padding,
|
|
580
574
|
* gap or radius a theme sets; it is the tip that may then be off the
|
|
581
|
-
* target's
|
|
575
|
+
* target's center by a few pixels, which reads, where a diamond does not.
|
|
582
576
|
*/
|
|
583
577
|
--_arrow-min: calc(var(--_gap) + var(--_radius));
|
|
584
578
|
--_arrow-max-x: calc(100% - var(--_gap) - var(--_radius) - var(--_arrow-size));
|
|
@@ -601,7 +595,7 @@
|
|
|
601
595
|
border: 0 solid var(--_border-color);
|
|
602
596
|
}
|
|
603
597
|
|
|
604
|
-
[data-ui
|
|
598
|
+
[data-ui-tour] > [data-part-surface][data-side='top'] > [data-part-arrow] {
|
|
605
599
|
left: var(--_arrow-x);
|
|
606
600
|
top: auto;
|
|
607
601
|
bottom: calc(var(--_gap) - var(--_arrow-size) / 2);
|
|
@@ -610,7 +604,7 @@
|
|
|
610
604
|
border-bottom-right-radius: var(--_arrow-tip-radius);
|
|
611
605
|
}
|
|
612
606
|
|
|
613
|
-
[data-ui
|
|
607
|
+
[data-ui-tour] > [data-part-surface][data-side='bottom'] > [data-part-arrow] {
|
|
614
608
|
left: var(--_arrow-x);
|
|
615
609
|
top: calc(var(--_gap) - var(--_arrow-size) / 2);
|
|
616
610
|
bottom: auto;
|
|
@@ -619,7 +613,7 @@
|
|
|
619
613
|
border-top-left-radius: var(--_arrow-tip-radius);
|
|
620
614
|
}
|
|
621
615
|
|
|
622
|
-
[data-ui
|
|
616
|
+
[data-ui-tour] > [data-part-surface][data-side='left'] > [data-part-arrow] {
|
|
623
617
|
top: var(--_arrow-y);
|
|
624
618
|
left: auto;
|
|
625
619
|
right: calc(var(--_gap) - var(--_arrow-size) / 2);
|
|
@@ -628,7 +622,7 @@
|
|
|
628
622
|
border-top-right-radius: var(--_arrow-tip-radius);
|
|
629
623
|
}
|
|
630
624
|
|
|
631
|
-
[data-ui
|
|
625
|
+
[data-ui-tour] > [data-part-surface][data-side='right'] > [data-part-arrow] {
|
|
632
626
|
top: var(--_arrow-y);
|
|
633
627
|
left: calc(var(--_gap) - var(--_arrow-size) / 2);
|
|
634
628
|
right: auto;
|
|
@@ -644,9 +638,9 @@
|
|
|
644
638
|
* card holds focus the arrow's two outer edges are drawn as the ring, and
|
|
645
639
|
* the ring runs round the point instead of stopping at it.
|
|
646
640
|
*/
|
|
647
|
-
[data-ui
|
|
648
|
-
> [data-part
|
|
649
|
-
> [data-part
|
|
641
|
+
[data-ui-tour]
|
|
642
|
+
> [data-part-surface]:has(> [data-part-content]:focus-visible)
|
|
643
|
+
> [data-part-arrow] {
|
|
650
644
|
--_border-width: var(--slotted-focus-ring-width, 2px);
|
|
651
645
|
border-color: var(--slotted-focus-ring-color, currentColor);
|
|
652
646
|
}
|
|
@@ -658,22 +652,22 @@
|
|
|
658
652
|
* sets its own `display`, which outranks the user agent's rule for the
|
|
659
653
|
* attribute, so the attribute is restated last.
|
|
660
654
|
*/
|
|
661
|
-
[data-ui
|
|
655
|
+
[data-ui-tour] [data-part-content] [data-part][hidden] {
|
|
662
656
|
display: none;
|
|
663
657
|
}
|
|
664
658
|
|
|
665
659
|
@media (forced-colors: active) {
|
|
666
660
|
/*
|
|
667
|
-
* Forced
|
|
661
|
+
* Forced colors drop every `box-shadow`, and the scrim is one: the page
|
|
668
662
|
* stays in full view and the cutout would mark nothing. The outline is
|
|
669
|
-
* what forced
|
|
663
|
+
* what forced colors keep, so the target is ringed in the system's
|
|
670
664
|
* highlight instead of being lit.
|
|
671
665
|
*/
|
|
672
|
-
[data-ui
|
|
666
|
+
[data-ui-tour] > [data-part-backdrop] > [data-part-spotlight] {
|
|
673
667
|
outline: var(--slotted-focus-ring-width, 2px) solid Highlight;
|
|
674
668
|
}
|
|
675
669
|
|
|
676
|
-
[data-ui
|
|
670
|
+
[data-ui-tour][data-spotlight] > [data-part-backdrop] {
|
|
677
671
|
background: transparent;
|
|
678
672
|
}
|
|
679
673
|
}
|