@slotted/styles 0.1.0-beta.8 → 0.1.0-beta.9
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 +31 -32
- package/src/action-sheet/action-sheet.css +36 -36
- package/src/alert/alert.css +35 -35
- package/src/app-shell/app-shell.css +280 -299
- package/src/aspect-ratio/aspect-ratio.css +9 -9
- package/src/attachment/attachment.css +91 -99
- package/src/avatar/avatar.css +41 -41
- package/src/avatar-group/avatar-group.css +21 -22
- package/src/badge/badge.css +37 -37
- package/src/breadcrumb/breadcrumb.css +37 -37
- package/src/button/button.css +88 -69
- package/src/button-group/button-group.css +69 -73
- package/src/calendar/calendar.css +93 -103
- package/src/card/card.css +54 -61
- package/src/carousel/carousel.css +150 -161
- package/src/cascader/cascader.css +147 -151
- package/src/chart/chart.css +225 -240
- 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 +69 -76
- package/src/color-picker/color-picker.css +83 -91
- package/src/column-manager/column-manager.css +106 -114
- package/src/combobox/combobox.css +99 -101
- package/src/command-palette/command-palette.css +84 -90
- package/src/container/container.css +24 -24
- package/src/context-menu/context-menu.css +8 -8
- package/src/currency-field/currency-field.css +99 -104
- package/src/dashboard-grid/dashboard-grid.css +104 -107
- package/src/data-grid/data-grid.css +458 -456
- package/src/data-grid/data-grid.tokens.json +2 -0
- package/src/data-list/data-list.css +67 -69
- package/src/date-field/date-field.css +50 -50
- package/src/date-picker/date-picker.css +40 -42
- package/src/date-range-picker/date-range-picker.css +114 -118
- package/src/datetime-field/datetime-field.css +73 -78
- 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 +61 -64
- package/src/detail-panel/detail-panel.css +70 -70
- package/src/dialog/dialog.css +300 -148
- package/src/divider/divider.css +18 -18
- package/src/drawer/drawer.css +186 -209
- package/src/entity-picker/entity-picker.css +220 -239
- 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 +21 -24
- 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 +15 -15
- 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 +28 -28
- package/src/kbd/kbd.css +26 -26
- package/src/link/link.css +15 -15
- package/src/list/list.css +20 -20
- package/src/list-item/list-item.css +66 -66
- 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 +63 -65
- package/src/menubar/menubar.css +13 -13
- package/src/message/message.css +174 -202
- package/src/message-scroller/message-scroller.css +41 -42
- package/src/multi-select/multi-select.css +131 -137
- package/src/navigation-menu/navigation-menu.css +167 -188
- package/src/notification-center/notification-center.css +134 -148
- package/src/number-field/number-field.css +76 -81
- package/src/otp-input/otp-input.css +48 -48
- package/src/page/page.css +23 -23
- package/src/page-header/page-header.css +219 -280
- package/src/pagination/pagination.css +68 -72
- package/src/popover/popover.css +40 -49
- package/src/progress-indicator/progress-indicator.css +85 -90
- package/src/prompt-composer/prompt-composer.css +94 -99
- package/src/prose/prose.css +71 -75
- package/src/radio-group/radio-group.css +98 -103
- package/src/rating/rating.css +132 -132
- package/src/result-state/result-state.css +74 -77
- package/src/saved-views/saved-views.css +41 -47
- package/src/scroll-area/scroll-area.css +32 -35
- package/src/section/section.css +16 -16
- package/src/segmented-control/segmented-control.css +77 -79
- package/src/select/select.css +113 -115
- package/src/side-navigation/side-navigation.css +170 -180
- package/src/skeleton/skeleton.css +47 -48
- package/src/slider/slider.css +86 -88
- package/src/sparkline/sparkline.css +32 -32
- package/src/spinner/spinner.css +4 -4
- package/src/split-button/split-button.css +26 -31
- package/src/splitter/splitter.css +35 -35
- package/src/stack/stack.css +24 -24
- package/src/stat-card/stat-card.css +102 -103
- package/src/status-indicator/status-indicator.css +28 -28
- package/src/stepper/stepper.css +58 -62
- package/src/switch/switch.css +86 -92
- package/src/table/table.css +189 -198
- package/src/table-of-contents/table-of-contents.css +51 -54
- package/src/tabs/tabs.css +143 -162
- package/src/tag/tag.css +67 -71
- package/src/tags-input/tags-input.css +124 -74
- package/src/tags-input/tags-input.tokens.json +6 -1
- package/src/text-field/text-field.css +108 -126
- package/src/textarea/textarea.css +26 -26
- package/src/time-field/time-field.css +67 -67
- 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 +244 -266
- package/src/toast/toast.css +81 -90
- package/src/toggle/toggle.css +29 -33
- package/src/toggle-group/toggle-group.css +67 -71
- package/src/toolbar/toolbar.css +30 -35
- package/src/tooltip/tooltip.css +26 -26
- 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 +36 -36
- 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/tour/tour.css
CHANGED
|
@@ -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);
|
|
@@ -110,7 +110,7 @@
|
|
|
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));
|
|
@@ -179,17 +179,17 @@
|
|
|
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
|
|
|
@@ -243,12 +243,12 @@
|
|
|
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
|
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
* absolutely placed box with all four insets at zero centre 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;
|
|
@@ -272,7 +272,7 @@
|
|
|
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;
|
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
* close control sits in it without stretching it, and the progress text is
|
|
373
373
|
* centred 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
|
|
@@ -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;
|
|
@@ -403,7 +403,7 @@
|
|
|
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
|
|
@@ -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,7 +649,7 @@
|
|
|
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
|
|
|
@@ -669,11 +660,11 @@
|
|
|
669
660
|
* what forced colours 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
|
}
|