@slotted/styles 0.1.0-beta.3 → 0.1.0-beta.30
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 +13 -1
- package/src/accordion/accordion.css +11 -11
- 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 +96 -96
- package/src/alert/alert.tokens.json +5 -0
- package/src/app-shell/app-shell.css +455 -328
- package/src/app-shell/app-shell.tokens.json +5 -2
- package/src/aspect-ratio/aspect-ratio.css +9 -9
- package/src/attachment/attachment.css +118 -114
- package/src/avatar/avatar.css +96 -66
- package/src/avatar/avatar.tokens.json +7 -0
- package/src/avatar-group/avatar-group.css +22 -23
- package/src/badge/badge.css +54 -46
- package/src/badge/badge.tokens.json +5 -0
- package/src/breadcrumb/breadcrumb.css +52 -52
- package/src/button/button.css +137 -89
- package/src/button/button.tokens.json +5 -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 +139 -109
- package/src/calendar/calendar.tokens.json +5 -1
- package/src/card/card.css +68 -65
- package/src/carousel/carousel.css +158 -169
- package/src/cascader/cascader.css +158 -157
- package/src/cascader/cascader.tokens.json +1 -0
- package/src/chart/chart.css +288 -267
- package/src/chart/chart.tokens.json +4 -0
- package/src/checkbox/checkbox.css +143 -148
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/code-block/code-block.css +85 -89
- package/src/collapsible/collapsible.css +76 -80
- package/src/color-picker/color-picker.css +106 -114
- package/src/column-manager/column-manager.css +111 -119
- package/src/combobox/combobox.css +203 -130
- package/src/combobox/combobox.tokens.json +3 -0
- package/src/command-palette/command-palette.css +155 -102
- package/src/command-palette/command-palette.tokens.json +2 -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 +185 -115
- package/src/data-grid/data-grid.css +598 -496
- package/src/data-grid/data-grid.tokens.json +5 -1
- package/src/data-list/data-list.css +82 -71
- 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 +117 -58
- package/src/date-picker/date-picker.tokens.json +5 -0
- package/src/date-range-picker/date-range-picker.css +157 -127
- package/src/date-range-picker/date-range-picker.tokens.json +4 -0
- 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 +123 -70
- package/src/datetime-picker/datetime-picker.tokens.json +4 -1
- package/src/datetime-range-picker/datetime-range-picker.css +191 -163
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
- package/src/description-list/description-list.css +105 -75
- 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 +434 -198
- package/src/dialog/dialog.tokens.json +7 -0
- package/src/divider/divider.css +20 -20
- package/src/drawer/drawer.css +597 -236
- package/src/drawer/drawer.tokens.json +13 -0
- package/src/entity-picker/entity-picker.css +323 -270
- package/src/entity-picker/entity-picker.tokens.json +3 -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 +43 -33
- package/src/field-group/field-group.tokens.json +3 -0
- package/src/filter-bar/filter-bar.css +200 -216
- package/src/form/form.css +99 -25
- package/src/form/form.tokens.json +5 -0
- package/src/fullscreen/fullscreen.css +26 -27
- package/src/grid/grid.css +29 -29
- 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 +144 -165
- package/src/inline/inline.css +28 -28
- package/src/inline-message/inline-message.css +162 -86
- package/src/inline-message/inline-message.tokens.json +4 -0
- package/src/kbd/kbd.css +62 -50
- package/src/kbd/kbd.tokens.json +3 -0
- package/src/link/link.css +54 -33
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +23 -23
- package/src/list-item/list-item.css +89 -75
- package/src/list-item/list-item.tokens.json +7 -0
- package/src/listbox/listbox.css +71 -70
- package/src/listbox/listbox.tokens.json +0 -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 +162 -82
- package/src/menu/menu.tokens.json +2 -1
- package/src/menubar/menubar.css +16 -16
- package/src/message/message.css +1250 -1253
- package/src/message/message.tokens.json +5 -0
- package/src/message-scroller/message-scroller.css +323 -320
- package/src/multi-select/multi-select.css +230 -172
- package/src/multi-select/multi-select.tokens.json +2 -0
- package/src/navigation-menu/navigation-menu.css +169 -190
- package/src/notification-center/notification-center.css +153 -161
- package/src/notification-center/notification-center.tokens.json +3 -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 +41 -27
- package/src/page/page.tokens.json +1 -0
- package/src/page-header/page-header.css +341 -286
- package/src/page-header/page-header.tokens.json +5 -0
- package/src/pagination/pagination.css +75 -79
- package/src/popover/popover.css +81 -64
- package/src/popover/popover.tokens.json +1 -0
- package/src/progress-indicator/progress-indicator.css +192 -136
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +260 -113
- 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 +146 -142
- package/src/rating/rating.tokens.json +1 -0
- package/src/result-state/result-state.css +94 -101
- package/src/runtime-properties.mjs +19 -6
- package/src/saved-views/saved-views.css +43 -49
- package/src/scroll-area/scroll-area.css +44 -37
- package/src/section/section.css +178 -43
- package/src/section/section.tokens.json +8 -2
- package/src/segmented-control/segmented-control.css +210 -133
- package/src/segmented-control/segmented-control.tokens.json +7 -11
- package/src/select/select.css +210 -147
- package/src/select/select.tokens.json +3 -0
- package/src/side-navigation/side-navigation.css +193 -196
- package/src/side-navigation/side-navigation.tokens.json +1 -0
- package/src/skeleton/skeleton.css +57 -58
- package/src/slider/slider.css +101 -103
- 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 +25 -25
- package/src/stat-card/stat-card.css +415 -245
- package/src/stat-card/stat-card.tokens.json +8 -0
- package/src/status-indicator/status-indicator.css +124 -100
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +78 -82
- package/src/switch/switch.css +100 -106
- package/src/table/table.css +270 -198
- package/src/table/table.tokens.json +2 -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 +109 -88
- package/src/tag/tag.tokens.json +10 -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 +116 -64
- package/src/time-picker/time-picker.tokens.json +4 -1
- package/src/time-range-picker/time-range-picker.css +168 -140
- package/src/time-range-picker/time-range-picker.tokens.json +4 -0
- package/src/timeline/timeline.css +280 -292
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +138 -121
- package/src/toast/toast.tokens.json +6 -0
- package/src/toggle/toggle.css +34 -38
- package/src/toggle-group/toggle-group.css +73 -77
- package/src/toolbar/toolbar.css +33 -38
- package/src/tooltip/tooltip.css +65 -39
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +252 -268
- package/src/tour/tour.css +64 -73
- package/src/transfer/transfer.css +164 -168
- package/src/tree/tree.css +113 -121
- package/src/typography/typography.css +42 -38
- package/src/typography/typography.tokens.json +1 -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,7 +311,7 @@
|
|
|
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;
|
|
@@ -336,11 +336,11 @@
|
|
|
336
336
|
outline: none;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
-
[data-ui
|
|
339
|
+
[data-ui-tour] > [data-part-surface][data-placement='centered'] > [data-part-content] {
|
|
340
340
|
max-block-size: calc(100vh - 2 * var(--_gap));
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
-
[data-ui
|
|
343
|
+
[data-ui-tour] > [data-part-surface] > [data-part-content]:focus-visible {
|
|
344
344
|
outline: var(--slotted-focus-ring-width, 2px) solid
|
|
345
345
|
var(--slotted-focus-ring-color, currentColor);
|
|
346
346
|
outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
* top rather than as an image placed inside it; its height is its own, and
|
|
352
352
|
* a consumer who wants a fixed frame writes `aspect-ratio` on it.
|
|
353
353
|
*/
|
|
354
|
-
[data-ui
|
|
354
|
+
[data-ui-tour] [data-part-content] > [data-part-media] {
|
|
355
355
|
display: block;
|
|
356
356
|
flex: none;
|
|
357
357
|
inline-size: 100%;
|
|
@@ -361,7 +361,7 @@
|
|
|
361
361
|
border-block-end: var(--_border-width) solid var(--_border-color);
|
|
362
362
|
}
|
|
363
363
|
|
|
364
|
-
[data-ui
|
|
364
|
+
[data-ui-tour] [data-part-content] > [data-part-media] > :is(img, video, svg) {
|
|
365
365
|
display: block;
|
|
366
366
|
inline-size: 100%;
|
|
367
367
|
block-size: auto;
|
|
@@ -370,13 +370,13 @@
|
|
|
370
370
|
/**
|
|
371
371
|
* Where the reader is, and the way out. The row is one control tall, so the
|
|
372
372
|
* close control sits in it without stretching it, and the progress text is
|
|
373
|
-
*
|
|
373
|
+
* centerd on the same line.
|
|
374
374
|
*/
|
|
375
|
-
[data-ui
|
|
375
|
+
[data-ui-tour] [data-part-content] > [data-part-header] {
|
|
376
376
|
display: flex;
|
|
377
377
|
flex: none;
|
|
378
378
|
/* `start`, so a progress text a translation wraps keeps the close control
|
|
379
|
-
level with its first line; the text's own inset
|
|
379
|
+
level with its first line; the text's own inset centers that line on
|
|
380
380
|
the control. */
|
|
381
381
|
align-items: flex-start;
|
|
382
382
|
gap: var(--_row-gap);
|
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
calc(var(--_inset-inline) - var(--slotted-space-3, 0.375rem));
|
|
387
387
|
}
|
|
388
388
|
|
|
389
|
-
[data-ui
|
|
389
|
+
[data-ui-tour] [data-part-content] > [data-part-header] > [data-part-progress] {
|
|
390
390
|
flex: 1 1 auto;
|
|
391
391
|
min-inline-size: 0;
|
|
392
392
|
margin: 0;
|
|
@@ -396,14 +396,14 @@
|
|
|
396
396
|
color: var(--slotted-text-muted, #5b6b7f);
|
|
397
397
|
font-variant-numeric: tabular-nums;
|
|
398
398
|
/* 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
|
|
399
|
+
above and below, so the first line sits on the control's center. */
|
|
400
400
|
padding-block: calc((var(--slotted-control-height-sm, 30px) - 1lh) / 2);
|
|
401
401
|
/* "2 of 5" in a right-to-left page reads "of 5 2" without it: the numbers
|
|
402
402
|
are weak characters and take the paragraph's direction. */
|
|
403
403
|
unicode-bidi: plaintext;
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
-
[data-ui
|
|
406
|
+
[data-ui-tour] [data-part-content] > [data-part-header] > [data-part-close] {
|
|
407
407
|
flex: none;
|
|
408
408
|
display: inline-flex;
|
|
409
409
|
align-items: center;
|
|
@@ -427,31 +427,22 @@
|
|
|
427
427
|
var(--slotted-control-transition-easing, var(--slotted-easing-standard));
|
|
428
428
|
}
|
|
429
429
|
|
|
430
|
-
[data-ui
|
|
431
|
-
[data-part='content']
|
|
432
|
-
> [data-part='header']
|
|
433
|
-
> [data-part='close']:enabled:hover {
|
|
430
|
+
[data-ui-tour] [data-part-content] > [data-part-header] > [data-part-close]:enabled:hover {
|
|
434
431
|
background: var(--slotted-tone-secondary-subtle-hover, rgb(15 23 42 / 0.06));
|
|
435
432
|
color: var(--_text);
|
|
436
433
|
}
|
|
437
434
|
|
|
438
|
-
[data-ui
|
|
439
|
-
[data-part='content']
|
|
440
|
-
> [data-part='header']
|
|
441
|
-
> [data-part='close']:enabled:active {
|
|
435
|
+
[data-ui-tour] [data-part-content] > [data-part-header] > [data-part-close]:enabled:active {
|
|
442
436
|
background: var(--slotted-tone-secondary-subtle-active, rgb(15 23 42 / 0.1));
|
|
443
437
|
}
|
|
444
438
|
|
|
445
|
-
[data-ui
|
|
446
|
-
[data-part='content']
|
|
447
|
-
> [data-part='header']
|
|
448
|
-
> [data-part='close']:focus-visible {
|
|
439
|
+
[data-ui-tour] [data-part-content] > [data-part-header] > [data-part-close]:focus-visible {
|
|
449
440
|
outline: var(--slotted-focus-ring-width, 2px) solid
|
|
450
441
|
var(--slotted-focus-ring-color, currentColor);
|
|
451
442
|
outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
|
|
452
443
|
}
|
|
453
444
|
|
|
454
|
-
[data-ui
|
|
445
|
+
[data-ui-tour] [data-part-content] > [data-part-title] {
|
|
455
446
|
flex: none;
|
|
456
447
|
margin: 0;
|
|
457
448
|
padding-inline: var(--_inset-inline);
|
|
@@ -470,12 +461,12 @@
|
|
|
470
461
|
|
|
471
462
|
/* A card with no header — the consumer composed their own — starts at the
|
|
472
463
|
title, and the title takes the header's inset. */
|
|
473
|
-
[data-ui
|
|
474
|
-
[data-ui
|
|
464
|
+
[data-ui-tour] [data-part-content] > [data-part-title]:first-child,
|
|
465
|
+
[data-ui-tour] [data-part-content] > [data-part-media] + [data-part-title] {
|
|
475
466
|
padding-block-start: var(--_inset-block);
|
|
476
467
|
}
|
|
477
468
|
|
|
478
|
-
[data-ui
|
|
469
|
+
[data-ui-tour] [data-part-content] > [data-part-description] {
|
|
479
470
|
flex: none;
|
|
480
471
|
margin: 0;
|
|
481
472
|
padding-inline: var(--_inset-inline);
|
|
@@ -489,7 +480,7 @@
|
|
|
489
480
|
* The step's own content, and the only part that scrolls. The shadow at each
|
|
490
481
|
* edge is popover's, for the reason recorded there.
|
|
491
482
|
*/
|
|
492
|
-
[data-ui
|
|
483
|
+
[data-ui-tour] [data-part-content] > [data-part-body] {
|
|
493
484
|
flex: 1 1 auto;
|
|
494
485
|
min-block-size: 0;
|
|
495
486
|
overflow-x: hidden;
|
|
@@ -534,7 +525,7 @@
|
|
|
534
525
|
* stacks the line skip was pushed onto above the pair. The document order,
|
|
535
526
|
* which is the tab order, is still skip, back, next, and so is the picture.
|
|
536
527
|
*/
|
|
537
|
-
[data-ui
|
|
528
|
+
[data-ui-tour] [data-part-content] > [data-part-footer] {
|
|
538
529
|
display: flex;
|
|
539
530
|
flex: none;
|
|
540
531
|
flex-direction: row-reverse;
|
|
@@ -546,15 +537,15 @@
|
|
|
546
537
|
padding-inline: var(--_inset-inline);
|
|
547
538
|
}
|
|
548
539
|
|
|
549
|
-
[data-ui
|
|
540
|
+
[data-ui-tour] [data-part-content] > [data-part-footer] > [data-part-next] {
|
|
550
541
|
order: 1;
|
|
551
542
|
}
|
|
552
543
|
|
|
553
|
-
[data-ui
|
|
544
|
+
[data-ui-tour] [data-part-content] > [data-part-footer] > [data-part-prev] {
|
|
554
545
|
order: 2;
|
|
555
546
|
}
|
|
556
547
|
|
|
557
|
-
[data-ui
|
|
548
|
+
[data-ui-tour] [data-part-content] > [data-part-footer] > [data-part-skip] {
|
|
558
549
|
order: 3;
|
|
559
550
|
margin-inline-end: auto;
|
|
560
551
|
/* A ghost button's label sits a button's padding in from its edge; pulled
|
|
@@ -568,7 +559,7 @@
|
|
|
568
559
|
* popover's, in physical properties and over the card, for the two reasons
|
|
569
560
|
* `tooltip.css` sets out.
|
|
570
561
|
*/
|
|
571
|
-
[data-ui
|
|
562
|
+
[data-ui-tour] > [data-part-surface] > [data-part-arrow] {
|
|
572
563
|
/**
|
|
573
564
|
* Where the arrow may stand: on the straight run of the card's edge. The
|
|
574
565
|
* positioner keeps it `arrowPadding` from the edge of the **layer**, and
|
|
@@ -578,7 +569,7 @@
|
|
|
578
569
|
* square that the card normally hides stood outside it: a whole diamond.
|
|
579
570
|
* Clamped here, the arrow always meets a straight edge, whatever padding,
|
|
580
571
|
* gap or radius a theme sets; it is the tip that may then be off the
|
|
581
|
-
* target's
|
|
572
|
+
* target's center by a few pixels, which reads, where a diamond does not.
|
|
582
573
|
*/
|
|
583
574
|
--_arrow-min: calc(var(--_gap) + var(--_radius));
|
|
584
575
|
--_arrow-max-x: calc(100% - var(--_gap) - var(--_radius) - var(--_arrow-size));
|
|
@@ -601,7 +592,7 @@
|
|
|
601
592
|
border: 0 solid var(--_border-color);
|
|
602
593
|
}
|
|
603
594
|
|
|
604
|
-
[data-ui
|
|
595
|
+
[data-ui-tour] > [data-part-surface][data-side='top'] > [data-part-arrow] {
|
|
605
596
|
left: var(--_arrow-x);
|
|
606
597
|
top: auto;
|
|
607
598
|
bottom: calc(var(--_gap) - var(--_arrow-size) / 2);
|
|
@@ -610,7 +601,7 @@
|
|
|
610
601
|
border-bottom-right-radius: var(--_arrow-tip-radius);
|
|
611
602
|
}
|
|
612
603
|
|
|
613
|
-
[data-ui
|
|
604
|
+
[data-ui-tour] > [data-part-surface][data-side='bottom'] > [data-part-arrow] {
|
|
614
605
|
left: var(--_arrow-x);
|
|
615
606
|
top: calc(var(--_gap) - var(--_arrow-size) / 2);
|
|
616
607
|
bottom: auto;
|
|
@@ -619,7 +610,7 @@
|
|
|
619
610
|
border-top-left-radius: var(--_arrow-tip-radius);
|
|
620
611
|
}
|
|
621
612
|
|
|
622
|
-
[data-ui
|
|
613
|
+
[data-ui-tour] > [data-part-surface][data-side='left'] > [data-part-arrow] {
|
|
623
614
|
top: var(--_arrow-y);
|
|
624
615
|
left: auto;
|
|
625
616
|
right: calc(var(--_gap) - var(--_arrow-size) / 2);
|
|
@@ -628,7 +619,7 @@
|
|
|
628
619
|
border-top-right-radius: var(--_arrow-tip-radius);
|
|
629
620
|
}
|
|
630
621
|
|
|
631
|
-
[data-ui
|
|
622
|
+
[data-ui-tour] > [data-part-surface][data-side='right'] > [data-part-arrow] {
|
|
632
623
|
top: var(--_arrow-y);
|
|
633
624
|
left: calc(var(--_gap) - var(--_arrow-size) / 2);
|
|
634
625
|
right: auto;
|
|
@@ -644,9 +635,9 @@
|
|
|
644
635
|
* card holds focus the arrow's two outer edges are drawn as the ring, and
|
|
645
636
|
* the ring runs round the point instead of stopping at it.
|
|
646
637
|
*/
|
|
647
|
-
[data-ui
|
|
648
|
-
> [data-part
|
|
649
|
-
> [data-part
|
|
638
|
+
[data-ui-tour]
|
|
639
|
+
> [data-part-surface]:has(> [data-part-content]:focus-visible)
|
|
640
|
+
> [data-part-arrow] {
|
|
650
641
|
--_border-width: var(--slotted-focus-ring-width, 2px);
|
|
651
642
|
border-color: var(--slotted-focus-ring-color, currentColor);
|
|
652
643
|
}
|
|
@@ -658,22 +649,22 @@
|
|
|
658
649
|
* sets its own `display`, which outranks the user agent's rule for the
|
|
659
650
|
* attribute, so the attribute is restated last.
|
|
660
651
|
*/
|
|
661
|
-
[data-ui
|
|
652
|
+
[data-ui-tour] [data-part-content] [data-part][hidden] {
|
|
662
653
|
display: none;
|
|
663
654
|
}
|
|
664
655
|
|
|
665
656
|
@media (forced-colors: active) {
|
|
666
657
|
/*
|
|
667
|
-
* Forced
|
|
658
|
+
* Forced colors drop every `box-shadow`, and the scrim is one: the page
|
|
668
659
|
* stays in full view and the cutout would mark nothing. The outline is
|
|
669
|
-
* what forced
|
|
660
|
+
* what forced colors keep, so the target is ringed in the system's
|
|
670
661
|
* highlight instead of being lit.
|
|
671
662
|
*/
|
|
672
|
-
[data-ui
|
|
663
|
+
[data-ui-tour] > [data-part-backdrop] > [data-part-spotlight] {
|
|
673
664
|
outline: var(--slotted-focus-ring-width, 2px) solid Highlight;
|
|
674
665
|
}
|
|
675
666
|
|
|
676
|
-
[data-ui
|
|
667
|
+
[data-ui-tour][data-spotlight] > [data-part-backdrop] {
|
|
677
668
|
background: transparent;
|
|
678
669
|
}
|
|
679
670
|
}
|