@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/toast/toast.css
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
* The stylesheet's part in it is that no rule assumes a role: the same
|
|
40
40
|
* picture is drawn whether a reader hears the words or reads them.
|
|
41
41
|
*/
|
|
42
|
-
[data-ui
|
|
42
|
+
[data-ui-toast][data-part-root] {
|
|
43
43
|
/**
|
|
44
44
|
* The distance from the edge of the screen, and the greatest width a
|
|
45
45
|
* message is allowed. The width is the smaller of the two, so at 320
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
* demonstrable on a documentation page: everything else about it is the
|
|
94
94
|
* same, including the placement, which now names the edges of the panel.
|
|
95
95
|
*/
|
|
96
|
-
[data-ui
|
|
96
|
+
[data-ui-toast][data-part-root][data-attach='inline'] {
|
|
97
97
|
position: absolute;
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -104,29 +104,29 @@
|
|
|
104
104
|
* an Arabic one. Sonner's `bottom-right` is `bottom-right` in both.
|
|
105
105
|
*/
|
|
106
106
|
|
|
107
|
-
[data-ui
|
|
107
|
+
[data-ui-toast][data-part-root][data-placement^='top'] {
|
|
108
108
|
inset-block-start: var(--_offset);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
[data-ui
|
|
111
|
+
[data-ui-toast][data-part-root][data-placement^='bottom'] {
|
|
112
112
|
inset-block-end: var(--_offset);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
[data-ui
|
|
115
|
+
[data-ui-toast][data-part-root][data-placement$='-start'] {
|
|
116
116
|
inset-inline-start: var(--_offset);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
[data-ui
|
|
119
|
+
[data-ui-toast][data-part-root][data-placement$='-end'] {
|
|
120
120
|
inset-inline-end: var(--_offset);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
125
|
-
* divide what is left. It is the one
|
|
124
|
+
* Centerd by giving the box both insets and letting the automatic margins
|
|
125
|
+
* divide what is left. It is the one centering that needs no transform, so
|
|
126
126
|
* the transform stays free for the enter, the exit and the swipe.
|
|
127
127
|
*/
|
|
128
|
-
[data-ui
|
|
129
|
-
[data-ui
|
|
128
|
+
[data-ui-toast][data-part-root][data-placement='top'],
|
|
129
|
+
[data-ui-toast][data-part-root][data-placement='bottom'] {
|
|
130
130
|
inset-inline: var(--_offset);
|
|
131
131
|
margin-inline: auto;
|
|
132
132
|
}
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
* order, which puts the newest nearest the edge of the screen — where the
|
|
140
140
|
* reader's eye already is — without moving it in the accessibility tree.
|
|
141
141
|
*/
|
|
142
|
-
[data-ui
|
|
142
|
+
[data-ui-toast] > [data-part-list] {
|
|
143
143
|
display: flex;
|
|
144
144
|
flex-direction: column;
|
|
145
145
|
gap: var(--_gap);
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
pointer-events: none;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
[data-ui
|
|
152
|
+
[data-ui-toast][data-placement^='bottom'] > [data-part-list] {
|
|
153
153
|
flex-direction: column-reverse;
|
|
154
154
|
}
|
|
155
155
|
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
* focus already inside a message can cause, so no press meant for the page
|
|
163
163
|
* lands on an empty region.
|
|
164
164
|
*/
|
|
165
|
-
[data-ui
|
|
165
|
+
[data-ui-toast][data-expanded] > [data-part-list] {
|
|
166
166
|
pointer-events: auto;
|
|
167
167
|
}
|
|
168
168
|
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
* the message away, with the actions under the words rather than beside
|
|
173
173
|
* them so a second row exists only when there are actions to put in it.
|
|
174
174
|
*/
|
|
175
|
-
[data-ui
|
|
175
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] {
|
|
176
176
|
/* The tone's five roles, defaulted to `accent`, restated by each tone
|
|
177
177
|
below. Every one of them is a role the theme's contrast test measures. */
|
|
178
178
|
--_solid: var(--slotted-tone-accent-solid);
|
|
@@ -194,12 +194,12 @@
|
|
|
194
194
|
* `alert` measured: on a tinted ground `subtle-hover` is lighter than the
|
|
195
195
|
* ground it sits on, and on a solid one the ramp is calibrated against the
|
|
196
196
|
* page instead. `currentcolor` is legible on whatever ground the control
|
|
197
|
-
* already has, because it is the
|
|
197
|
+
* already has, because it is the color its own words are read in.
|
|
198
198
|
*
|
|
199
199
|
* Ten and sixteen per cent, the pair `alert` settled: white at eight per
|
|
200
200
|
* cent over the `danger` fill moved OKLab lightness by 0.019 in the light
|
|
201
201
|
* and dark schemes, under the 0.02 a surface step has to reach
|
|
202
|
-
|
|
202
|
+
*.
|
|
203
203
|
*/
|
|
204
204
|
--_state-hover: color-mix(
|
|
205
205
|
in oklab,
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
--_inner-size: var(--slotted-control-inner-size-md, 24px);
|
|
222
222
|
/**
|
|
223
223
|
* The status mark is `alert`'s: a filled disc a step above the title's
|
|
224
|
-
* `1em`, rounded to an even number of pixels so its
|
|
224
|
+
* `1em`, rounded to an even number of pixels so its center falls on a
|
|
225
225
|
* whole pixel — 16 at 13-pixel type, 14 at 12. A message about a failure
|
|
226
226
|
* draws the same silhouette as the alert about it. A filled mark carries
|
|
227
227
|
* more weight per pixel than an outline, so it stays within a few pixels
|
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
* The line box is rounded to an even number of pixels, the rule `alert`
|
|
270
270
|
* draws its lines with. At 13-pixel type the scale's 1.5 gave 19.5, so a
|
|
271
271
|
* message of one line was 45.5 pixels tall and one with a description
|
|
272
|
-
* 88.5 in the `content` scene; an even line also
|
|
272
|
+
* 88.5 in the `content` scene; an even line also centers the 24-pixel
|
|
273
273
|
* close control on a whole pixel: 20 at 13, 18 at 12.
|
|
274
274
|
*/
|
|
275
275
|
line-height: round(nearest, calc(var(--_line-height) * 1em), 2px);
|
|
@@ -302,11 +302,11 @@
|
|
|
302
302
|
* shift is the same distance in the other direction rather than a second
|
|
303
303
|
* number, so the two placements are one motion seen twice.
|
|
304
304
|
*/
|
|
305
|
-
[data-ui
|
|
305
|
+
[data-ui-toast][data-placement^='top'] > [data-part-list] > [data-part-item] {
|
|
306
306
|
translate: 0 calc(-1 * var(--_enter-shift));
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
-
[data-ui
|
|
309
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-open] {
|
|
310
310
|
opacity: 1;
|
|
311
311
|
translate: 0;
|
|
312
312
|
transition:
|
|
@@ -314,18 +314,18 @@
|
|
|
314
314
|
translate var(--slotted-duration-medium) var(--slotted-easing-enter);
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
-
/* ── Tone: the
|
|
317
|
+
/* ── Tone: the color, and the mark that says the same thing ───────────
|
|
318
318
|
*
|
|
319
319
|
* The map is `specs/components/toast/contract.json`, and it is the map
|
|
320
320
|
* `alert` and `status-indicator` already share — so a message about a
|
|
321
321
|
* failure draws the same silhouette as the alert about it. The binding
|
|
322
322
|
* draws the mark as a `Glyph` from that map; this sheet gives it only the
|
|
323
|
-
* tone's
|
|
324
|
-
*
|
|
323
|
+
* tone's color. Under forced
|
|
324
|
+
* colors every ground becomes one system color and the shape is all that
|
|
325
325
|
* is left, which is WCAG 2.2 SC 1.4.1 as well as a preference.
|
|
326
326
|
*/
|
|
327
327
|
|
|
328
|
-
[data-ui
|
|
328
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-tone='accent'] {
|
|
329
329
|
--_solid: var(--slotted-tone-accent-solid);
|
|
330
330
|
--_on-solid: var(--slotted-tone-accent-on-solid);
|
|
331
331
|
--_tone-surface: var(--slotted-tone-accent-surface);
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
--_tone-text: var(--slotted-tone-accent-text);
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
[data-ui
|
|
336
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-tone='secondary'] {
|
|
337
337
|
--_solid: var(--slotted-tone-secondary-solid);
|
|
338
338
|
--_on-solid: var(--slotted-tone-secondary-on-solid);
|
|
339
339
|
--_tone-surface: var(--slotted-tone-secondary-surface);
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
--_tone-text: var(--slotted-tone-secondary-text);
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
-
[data-ui
|
|
344
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-tone='success'] {
|
|
345
345
|
--_solid: var(--slotted-tone-success-solid);
|
|
346
346
|
--_on-solid: var(--slotted-tone-success-on-solid);
|
|
347
347
|
--_tone-surface: var(--slotted-tone-success-surface);
|
|
@@ -349,7 +349,15 @@
|
|
|
349
349
|
--_tone-text: var(--slotted-tone-success-text);
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
-
[data-ui
|
|
352
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-tone='info'] {
|
|
353
|
+
--_solid: var(--slotted-tone-info-solid);
|
|
354
|
+
--_on-solid: var(--slotted-tone-info-on-solid);
|
|
355
|
+
--_tone-surface: var(--slotted-tone-info-surface);
|
|
356
|
+
--_tone-border: var(--slotted-tone-info-border);
|
|
357
|
+
--_tone-text: var(--slotted-tone-info-text);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-tone='warning'] {
|
|
353
361
|
--_solid: var(--slotted-tone-warning-solid);
|
|
354
362
|
--_on-solid: var(--slotted-tone-warning-on-solid);
|
|
355
363
|
--_tone-surface: var(--slotted-tone-warning-surface);
|
|
@@ -357,7 +365,7 @@
|
|
|
357
365
|
--_tone-text: var(--slotted-tone-warning-text);
|
|
358
366
|
}
|
|
359
367
|
|
|
360
|
-
[data-ui
|
|
368
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-tone='danger'] {
|
|
361
369
|
--_solid: var(--slotted-tone-danger-solid);
|
|
362
370
|
--_on-solid: var(--slotted-tone-danger-on-solid);
|
|
363
371
|
--_tone-surface: var(--slotted-tone-danger-surface);
|
|
@@ -371,9 +379,28 @@
|
|
|
371
379
|
* message floats over content this family does not own, and tinting that
|
|
372
380
|
* content's corner is a decision the message has no standing to take. The
|
|
373
381
|
* tone is in the mark and in nothing else, which is enough — it is the
|
|
374
|
-
* silhouette that survives forced
|
|
382
|
+
* silhouette that survives forced colors anyway.
|
|
375
383
|
*/
|
|
376
|
-
|
|
384
|
+
/**
|
|
385
|
+
* A theme that paints the raised message with a surface that has alpha blurs
|
|
386
|
+
* what passes under it: `--slotted-toast-backdrop-filter`, `none` unless set.
|
|
387
|
+
* Only `raised` floats over content it does not own; `soft` and `solid` are
|
|
388
|
+
* tone grounds. A reader who asked for less transparency gets no filter, and
|
|
389
|
+
* under forced colors the ground is the system's.
|
|
390
|
+
*/
|
|
391
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-variant='raised'] {
|
|
392
|
+
-webkit-backdrop-filter: var(--slotted-toast-backdrop-filter, none);
|
|
393
|
+
backdrop-filter: var(--slotted-toast-backdrop-filter, none);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
|
|
397
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-variant='raised'] {
|
|
398
|
+
-webkit-backdrop-filter: none;
|
|
399
|
+
backdrop-filter: none;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-variant='soft'] {
|
|
377
404
|
--_ground: var(--_tone-surface);
|
|
378
405
|
--_edge: var(--_tone-border);
|
|
379
406
|
/* The tone's own text on the tone's own surface is the pair the theme
|
|
@@ -383,7 +410,7 @@
|
|
|
383
410
|
--_ink-muted: var(--_tone-text);
|
|
384
411
|
}
|
|
385
412
|
|
|
386
|
-
[data-ui
|
|
413
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-variant='solid'] {
|
|
387
414
|
--_ground: var(--_solid);
|
|
388
415
|
--_edge: var(--_solid);
|
|
389
416
|
--_ink: var(--_on-solid);
|
|
@@ -394,40 +421,39 @@
|
|
|
394
421
|
/* ── The mark ─────────────────────────────────────────────────────────
|
|
395
422
|
*
|
|
396
423
|
* `alert`'s mark, rule for rule: a filled disc on the title's first line,
|
|
397
|
-
* the binding's `Glyph`
|
|
398
|
-
* and
|
|
399
|
-
* the symbol on every variant. Every
|
|
400
|
-
*
|
|
401
|
-
* inside is what tells the five apart when
|
|
424
|
+
* the binding's `Glyph` drawing a hand-drawn status mark, the silhouette
|
|
425
|
+
* filled and the tone's symbol cut out of it, so the ground shows through
|
|
426
|
+
* the symbol on every variant. Every silhouette — the circle, the warning's
|
|
427
|
+
* diamond — is symmetric on both axes, so every mark has the same center,
|
|
428
|
+
* and the symbol inside is what tells the five apart when color is gone.
|
|
402
429
|
*
|
|
403
|
-
* The
|
|
404
|
-
* is 12/11 of the mark and the disc is the mark's own size.
|
|
430
|
+
* The silhouette fills its box edge to edge, so the box is the mark.
|
|
405
431
|
*
|
|
406
432
|
* The mark hangs from the first line's baseline. Grid baseline alignment
|
|
407
433
|
* puts the mark's bottom edge on the words' baseline, and a relative offset
|
|
408
|
-
* lowers it by half of what the mark exceeds the capitals by, so its
|
|
409
|
-
* is the
|
|
434
|
+
* lowers it by half of what the mark exceeds the capitals by, so its center
|
|
435
|
+
* is the center of the capitals in whatever face the title is set in. The
|
|
410
436
|
* offset is rounded to a whole pixel and the mark is a whole number of
|
|
411
437
|
* pixels, so the glyphs and the drawing snap by the same amount. The
|
|
412
438
|
* negative block-start margin takes the mark's own height out of the
|
|
413
439
|
* baseline group, so the words sit where they sit with no mark at all, and
|
|
414
440
|
* layout containment keeps the glyph's own baseline out of the box's.
|
|
415
441
|
*
|
|
416
|
-
* The slot carries the
|
|
442
|
+
* The slot carries the color, and the disc is painted in `currentcolor`,
|
|
417
443
|
* so on a `solid` message the mark takes the on-solid ink with the words,
|
|
418
|
-
* and under forced
|
|
444
|
+
* and under forced colors one declaration repaints it.
|
|
419
445
|
*
|
|
420
446
|
* A mark the page supplied instead of the tone's own — a spinner from
|
|
421
447
|
* `progress-indicator` while a promise is in flight, a product's own
|
|
422
448
|
* artwork — takes the same place: an icon a consumer wrote is an icon, and
|
|
423
|
-
* the line it belongs to has not moved. The artwork is
|
|
449
|
+
* the line it belongs to has not moved. The artwork is centerd in the box,
|
|
424
450
|
* so an icon drawn at the mark's size fills it and a larger one overhangs it
|
|
425
451
|
* equally on both sides of the same axis rather than pushing the words along. A
|
|
426
452
|
* message waiting on a promise with no mark of its own draws none, and the
|
|
427
453
|
* box stays, so the layout does not jump when the spinner becomes a tick.
|
|
428
454
|
*/
|
|
429
|
-
[data-ui
|
|
430
|
-
--slotted-icon-size:
|
|
455
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-icon] {
|
|
456
|
+
--slotted-icon-size: var(--_mark-size);
|
|
431
457
|
/**
|
|
432
458
|
* The loading mark is `progress-indicator`'s contained loader, and these
|
|
433
459
|
* three are the whole of what this family says to it: the disc is the
|
|
@@ -466,7 +492,7 @@
|
|
|
466
492
|
* to be clamped too, or an unbreakable word in the title sizes the track to
|
|
467
493
|
* itself and the words run past the box that holds them.
|
|
468
494
|
*/
|
|
469
|
-
[data-ui
|
|
495
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-content] {
|
|
470
496
|
/* The other half of the mark's baseline group: see the mark above. */
|
|
471
497
|
align-self: baseline;
|
|
472
498
|
display: grid;
|
|
@@ -489,11 +515,7 @@
|
|
|
489
515
|
* `Zwischenspeicherung` set the track to 183 pixels inside a box of 155, and
|
|
490
516
|
* the words stood outside the message in every scheme.
|
|
491
517
|
*/
|
|
492
|
-
[data-ui
|
|
493
|
-
> [data-part='list']
|
|
494
|
-
> [data-part='item']
|
|
495
|
-
> [data-part='content']
|
|
496
|
-
> [data-part='title'] {
|
|
518
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-content] > [data-part-title] {
|
|
497
519
|
font-family: var(
|
|
498
520
|
--slotted-toast-title-font-family,
|
|
499
521
|
var(
|
|
@@ -507,11 +529,11 @@
|
|
|
507
529
|
overflow-wrap: anywhere;
|
|
508
530
|
}
|
|
509
531
|
|
|
510
|
-
[data-ui
|
|
511
|
-
> [data-part
|
|
512
|
-
> [data-part
|
|
513
|
-
> [data-part
|
|
514
|
-
> [data-part
|
|
532
|
+
[data-ui-toast]
|
|
533
|
+
> [data-part-list]
|
|
534
|
+
> [data-part-item]
|
|
535
|
+
> [data-part-content]
|
|
536
|
+
> [data-part-description] {
|
|
515
537
|
color: var(--_ink-muted);
|
|
516
538
|
margin: 0;
|
|
517
539
|
min-inline-size: 0;
|
|
@@ -525,11 +547,11 @@
|
|
|
525
547
|
* the consumer's own buttons: `button` already owns what a button is, and
|
|
526
548
|
* naming one of two controls `cancel` would privilege one arrangement.
|
|
527
549
|
*/
|
|
528
|
-
[data-ui
|
|
550
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-actions] {
|
|
529
551
|
align-items: center;
|
|
530
552
|
display: flex;
|
|
531
553
|
flex-wrap: wrap;
|
|
532
|
-
gap: var(--slotted-toast-actions-gap, var(--slotted-
|
|
554
|
+
gap: var(--slotted-toast-actions-gap, var(--slotted-action-gap, 8px));
|
|
533
555
|
grid-column: 2;
|
|
534
556
|
grid-row: 2;
|
|
535
557
|
min-inline-size: 0;
|
|
@@ -543,7 +565,7 @@
|
|
|
543
565
|
* margin box is exactly one line and the inset above the message equals the
|
|
544
566
|
* inset below.
|
|
545
567
|
*/
|
|
546
|
-
[data-ui
|
|
568
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close] {
|
|
547
569
|
/* The cross is the binding's `Glyph` in an `icon` box at the glyph size
|
|
548
570
|
the formula for this box reads. */
|
|
549
571
|
--slotted-icon-size: var(--_glyph-size);
|
|
@@ -579,24 +601,24 @@
|
|
|
579
601
|
|
|
580
602
|
/* `:enabled` is the guard the shared state test requires, and the reason it
|
|
581
603
|
exists: a control the browser has already refused answers no pointer. */
|
|
582
|
-
[data-ui
|
|
604
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]:enabled:hover {
|
|
583
605
|
background-color: var(--_state-hover);
|
|
584
606
|
}
|
|
585
607
|
|
|
586
|
-
[data-ui
|
|
608
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]:enabled:active {
|
|
587
609
|
background-color: var(--_state-active);
|
|
588
610
|
}
|
|
589
611
|
|
|
590
612
|
/* On a finger the target is the comfortable size in both axes and the box
|
|
591
|
-
is the one a mouse sees: a transparent box
|
|
613
|
+
is the one a mouse sees: a transparent box centerd on the control reaches
|
|
592
614
|
44 pixels, and the ground and the ring stay square. The message clips its
|
|
593
615
|
overflow, so the target ends at the message's padding edge. */
|
|
594
616
|
@media (pointer: coarse) {
|
|
595
|
-
[data-ui
|
|
617
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close] {
|
|
596
618
|
position: relative;
|
|
597
619
|
}
|
|
598
620
|
|
|
599
|
-
[data-ui
|
|
621
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]::after {
|
|
600
622
|
content: '';
|
|
601
623
|
inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
602
624
|
position: absolute;
|
|
@@ -611,8 +633,8 @@
|
|
|
611
633
|
* it exists because `F6` sends the keyboard here — a message the reader
|
|
612
634
|
* cannot see they have arrived at is a message they cannot act on.
|
|
613
635
|
*/
|
|
614
|
-
[data-ui
|
|
615
|
-
[data-ui
|
|
636
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]:focus-visible,
|
|
637
|
+
[data-ui-toast] > [data-part-list] > [data-part-item]:focus-visible {
|
|
616
638
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
617
639
|
}
|
|
618
640
|
|
|
@@ -621,7 +643,7 @@
|
|
|
621
643
|
* the remaining-time bar has to stop at the rounded corner — and a ring
|
|
622
644
|
* outside a control at that corner would be cut in half by it.
|
|
623
645
|
*/
|
|
624
|
-
[data-ui
|
|
646
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]:focus-visible {
|
|
625
647
|
outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
|
|
626
648
|
}
|
|
627
649
|
|
|
@@ -630,23 +652,23 @@
|
|
|
630
652
|
* of the screen, and read on the box itself the ring was a thick blue border
|
|
631
653
|
* rather than a ring around a card.
|
|
632
654
|
*/
|
|
633
|
-
[data-ui
|
|
655
|
+
[data-ui-toast] > [data-part-list] > [data-part-item]:focus-visible {
|
|
634
656
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
635
657
|
}
|
|
636
658
|
|
|
637
659
|
/**
|
|
638
660
|
* Measured rather than assumed, and `alert` measured it first: the ring the
|
|
639
661
|
* theme calibrated against the page's surface reads about 1.3 : 1 against a
|
|
640
|
-
* tone's own fill. The ring keeps the theme's
|
|
662
|
+
* tone's own fill. The ring keeps the theme's color in every scheme (R3).
|
|
641
663
|
* The message's own ring sits outside it, against the page the theme
|
|
642
664
|
* calibrated for, and needs nothing more. The control's ring is inset in the
|
|
643
665
|
* fill, so a solid message adds a halo one ring-width wide just inside it,
|
|
644
666
|
* in the ink its own words are in, for the ring to be read against.
|
|
645
667
|
*/
|
|
646
|
-
[data-ui
|
|
647
|
-
> [data-part
|
|
648
|
-
> [data-part
|
|
649
|
-
> [data-part
|
|
668
|
+
[data-ui-toast]
|
|
669
|
+
> [data-part-list]
|
|
670
|
+
> [data-part-item][data-variant='solid']
|
|
671
|
+
> [data-part-close]:focus-visible {
|
|
650
672
|
box-shadow: inset 0 0 0 calc(2 * var(--slotted-focus-ring-width, 2px)) var(--_on-solid);
|
|
651
673
|
}
|
|
652
674
|
|
|
@@ -664,7 +686,7 @@
|
|
|
664
686
|
* from the inline start in every writing direction with no origin to mirror.
|
|
665
687
|
* The box is positioned, so nothing it does moves a word.
|
|
666
688
|
*/
|
|
667
|
-
[data-ui
|
|
689
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-progress] {
|
|
668
690
|
animation-duration: var(--slotted-toast-duration, var(--slotted-duration-long));
|
|
669
691
|
animation-fill-mode: forwards;
|
|
670
692
|
animation-name: slotted-toast-countdown;
|
|
@@ -672,7 +694,7 @@
|
|
|
672
694
|
animation-timing-function: linear;
|
|
673
695
|
/**
|
|
674
696
|
* The tone's saturated step rather than the ink its words are in. Read at
|
|
675
|
-
* half opacity in the ink
|
|
697
|
+
* half opacity in the ink color the bar was a grey smear under a message;
|
|
676
698
|
* two pixels of the tone's own fill is the one mark on the box that is
|
|
677
699
|
* allowed to be loud, because what it says is *this is about to go*.
|
|
678
700
|
*/
|
|
@@ -688,10 +710,10 @@
|
|
|
688
710
|
* the one ink the contrast test holds against it, held back so it reads as a
|
|
689
711
|
* measure rather than as a second border.
|
|
690
712
|
*/
|
|
691
|
-
[data-ui
|
|
692
|
-
> [data-part
|
|
693
|
-
> [data-part
|
|
694
|
-
> [data-part
|
|
713
|
+
[data-ui-toast]
|
|
714
|
+
> [data-part-list]
|
|
715
|
+
> [data-part-item][data-variant='solid']
|
|
716
|
+
> [data-part-progress] {
|
|
695
717
|
background-color: var(--_on-solid);
|
|
696
718
|
opacity: 0.7;
|
|
697
719
|
}
|
|
@@ -730,12 +752,12 @@
|
|
|
730
752
|
* back in opacity, and the front one, which is the one being read, is at
|
|
731
753
|
* full strength.
|
|
732
754
|
*/
|
|
733
|
-
[data-ui
|
|
755
|
+
[data-ui-toast][data-stacking='stack'] > [data-part-list] {
|
|
734
756
|
display: block;
|
|
735
757
|
position: relative;
|
|
736
758
|
}
|
|
737
759
|
|
|
738
|
-
[data-ui
|
|
760
|
+
[data-ui-toast][data-stacking='stack'] > [data-part-list] > [data-part-item] {
|
|
739
761
|
block-size: var(--slotted-toast-front-height, auto);
|
|
740
762
|
inset-inline: 0;
|
|
741
763
|
position: absolute;
|
|
@@ -756,20 +778,20 @@
|
|
|
756
778
|
* everything behind it share one strength: below that the pile is a stack of
|
|
757
779
|
* ghosts, and only the front two edges are showing anyway.
|
|
758
780
|
*/
|
|
759
|
-
[data-ui
|
|
781
|
+
[data-ui-toast][data-stacking='stack'] > [data-part-list] > [data-part-item][data-open] {
|
|
760
782
|
opacity: calc(1 - min(var(--slotted-toast-index, 0), 2) * var(--_stack-fade));
|
|
761
783
|
}
|
|
762
784
|
|
|
763
|
-
[data-ui
|
|
764
|
-
> [data-part
|
|
765
|
-
> [data-part
|
|
785
|
+
[data-ui-toast][data-stacking='stack'][data-placement^='bottom']
|
|
786
|
+
> [data-part-list]
|
|
787
|
+
> [data-part-item] {
|
|
766
788
|
inset-block-end: 0;
|
|
767
789
|
translate: 0 calc(-1 * var(--slotted-toast-index, 0) * var(--_stack-step));
|
|
768
790
|
}
|
|
769
791
|
|
|
770
|
-
[data-ui
|
|
771
|
-
> [data-part
|
|
772
|
-
> [data-part
|
|
792
|
+
[data-ui-toast][data-stacking='stack'][data-placement^='top']
|
|
793
|
+
> [data-part-list]
|
|
794
|
+
> [data-part-item] {
|
|
773
795
|
inset-block-start: 0;
|
|
774
796
|
translate: 0 calc(var(--slotted-toast-index, 0) * var(--_stack-step));
|
|
775
797
|
}
|
|
@@ -779,9 +801,7 @@
|
|
|
779
801
|
* column, and the gap between two of them is the region's own gap — the
|
|
780
802
|
* offset script writes already carries it.
|
|
781
803
|
*/
|
|
782
|
-
[data-ui
|
|
783
|
-
> [data-part='list']
|
|
784
|
-
> [data-part='item'] {
|
|
804
|
+
[data-ui-toast][data-stacking='stack'][data-expanded] > [data-part-list] > [data-part-item] {
|
|
785
805
|
block-size: var(--slotted-toast-height, auto);
|
|
786
806
|
}
|
|
787
807
|
|
|
@@ -793,25 +813,25 @@
|
|
|
793
813
|
* messages hang from the list's edge at `placement`, so the list grows away
|
|
794
814
|
* from that edge and nothing it holds moves.
|
|
795
815
|
*/
|
|
796
|
-
[data-ui
|
|
816
|
+
[data-ui-toast][data-stacking='stack'][data-expanded] > [data-part-list] {
|
|
797
817
|
block-size: var(--slotted-toast-stack-height, auto);
|
|
798
818
|
}
|
|
799
819
|
|
|
800
|
-
[data-ui
|
|
801
|
-
> [data-part
|
|
802
|
-
> [data-part
|
|
820
|
+
[data-ui-toast][data-stacking='stack'][data-expanded]
|
|
821
|
+
> [data-part-list]
|
|
822
|
+
> [data-part-item][data-open] {
|
|
803
823
|
opacity: 1;
|
|
804
824
|
}
|
|
805
825
|
|
|
806
|
-
[data-ui
|
|
807
|
-
> [data-part
|
|
808
|
-
> [data-part
|
|
826
|
+
[data-ui-toast][data-stacking='stack'][data-expanded][data-placement^='bottom']
|
|
827
|
+
> [data-part-list]
|
|
828
|
+
> [data-part-item] {
|
|
809
829
|
translate: 0 calc(-1 * var(--slotted-toast-stack-offset, 0px));
|
|
810
830
|
}
|
|
811
831
|
|
|
812
|
-
[data-ui
|
|
813
|
-
> [data-part
|
|
814
|
-
> [data-part
|
|
832
|
+
[data-ui-toast][data-stacking='stack'][data-expanded][data-placement^='top']
|
|
833
|
+
> [data-part-list]
|
|
834
|
+
> [data-part-item] {
|
|
815
835
|
translate: 0 var(--slotted-toast-stack-offset, 0px);
|
|
816
836
|
}
|
|
817
837
|
|
|
@@ -821,11 +841,11 @@
|
|
|
821
841
|
* `min()` is what turns an index into that rule without a rule per depth —
|
|
822
842
|
* the front message resolves to one and every other to zero.
|
|
823
843
|
*/
|
|
824
|
-
[data-ui
|
|
844
|
+
[data-ui-toast][data-stacking='stack'] > [data-part-list] > [data-part-item] > * {
|
|
825
845
|
transition: opacity var(--slotted-duration-medium) var(--slotted-easing-standard);
|
|
826
846
|
}
|
|
827
847
|
|
|
828
|
-
[data-ui
|
|
848
|
+
[data-ui-toast][data-stacking='stack']:not([data-expanded]) [data-part-item] > * {
|
|
829
849
|
opacity: calc(1 - min(1, var(--slotted-toast-index, 0)));
|
|
830
850
|
}
|
|
831
851
|
|
|
@@ -837,7 +857,7 @@
|
|
|
837
857
|
* message follows it exactly, with no transition in the way: a drag that
|
|
838
858
|
* lags the finger reads as a stuck interface.
|
|
839
859
|
*/
|
|
840
|
-
[data-ui
|
|
860
|
+
[data-ui-toast] > [data-part-list] > [data-part-item][data-dragging] {
|
|
841
861
|
cursor: grabbing;
|
|
842
862
|
transition: none;
|
|
843
863
|
translate: var(--slotted-toast-swipe-x, 0px) var(--slotted-toast-swipe-y, 0px);
|
|
@@ -846,7 +866,7 @@
|
|
|
846
866
|
user-select: none;
|
|
847
867
|
}
|
|
848
868
|
|
|
849
|
-
[data-ui
|
|
869
|
+
[data-ui-toast][data-swipe='true'] > [data-part-list] > [data-part-item] {
|
|
850
870
|
touch-action: none;
|
|
851
871
|
}
|
|
852
872
|
|
|
@@ -859,7 +879,7 @@
|
|
|
859
879
|
* container condition.
|
|
860
880
|
*/
|
|
861
881
|
@container slotted-toast (max-width: 20rem) {
|
|
862
|
-
[data-ui
|
|
882
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] {
|
|
863
883
|
--_inset-block: var(--slotted-toast-padding-block, var(--slotted-space-4, 0.5rem));
|
|
864
884
|
--_inset-inline: var(--slotted-toast-padding-inline, var(--slotted-space-5, 0.75rem));
|
|
865
885
|
}
|
|
@@ -870,51 +890,48 @@
|
|
|
870
890
|
* the control, and `button` already ships `fullWidth` for a consumer who
|
|
871
891
|
* wants otherwise.
|
|
872
892
|
*/
|
|
873
|
-
[data-ui
|
|
893
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-actions] {
|
|
874
894
|
align-items: flex-start;
|
|
875
895
|
flex-direction: column;
|
|
876
896
|
}
|
|
877
897
|
}
|
|
878
898
|
|
|
879
|
-
/* ── Forced
|
|
899
|
+
/* ── Forced colors ───────────────────────────────────────────────────
|
|
880
900
|
*
|
|
881
|
-
* The operating system replaces every author
|
|
901
|
+
* The operating system replaces every author color, so five tones become
|
|
882
902
|
* one box and three variants become one painting. What is left to decide is
|
|
883
903
|
* whether the box still has an edge and whether the mark is still there —
|
|
884
904
|
* and the theme can answer neither, because `solid` draws its border in its
|
|
885
|
-
* own fill and a transparent border is not a
|
|
905
|
+
* own fill and a transparent border is not a color the system remaps.
|
|
886
906
|
*/
|
|
887
907
|
@media (forced-colors: active) {
|
|
888
|
-
[data-ui
|
|
908
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] {
|
|
889
909
|
border-color: CanvasText;
|
|
890
910
|
}
|
|
891
911
|
|
|
892
|
-
[data-ui
|
|
912
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-icon] {
|
|
893
913
|
color: CanvasText;
|
|
894
914
|
}
|
|
895
915
|
|
|
896
916
|
/**
|
|
897
917
|
* The control's glyph is stroked in `currentcolor`, so giving the control
|
|
898
|
-
* a system
|
|
918
|
+
* a system color repaints it, and the mark's slot the same.
|
|
899
919
|
*/
|
|
900
|
-
[data-ui
|
|
920
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close] {
|
|
901
921
|
color: CanvasText;
|
|
902
922
|
}
|
|
903
923
|
|
|
904
|
-
[data-ui
|
|
905
|
-
[data-ui
|
|
906
|
-
> [data-part='list']
|
|
907
|
-
> [data-part='item']
|
|
908
|
-
> [data-part='close']:enabled:active {
|
|
924
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]:enabled:hover,
|
|
925
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-close]:enabled:active {
|
|
909
926
|
background-color: Highlight;
|
|
910
927
|
color: HighlightText;
|
|
911
928
|
}
|
|
912
929
|
|
|
913
930
|
/**
|
|
914
931
|
* A bar of system ink under every message, shortening, is a moving line
|
|
915
|
-
* with no
|
|
932
|
+
* with no color to say what it belongs to. The message still expires.
|
|
916
933
|
*/
|
|
917
|
-
[data-ui
|
|
934
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-progress] {
|
|
918
935
|
background-color: CanvasText;
|
|
919
936
|
opacity: 1;
|
|
920
937
|
}
|
|
@@ -935,7 +952,7 @@
|
|
|
935
952
|
* reached over the declared one, and the `timing` scene froze at 80 per cent.
|
|
936
953
|
*/
|
|
937
954
|
@media (prefers-reduced-motion: reduce) {
|
|
938
|
-
[data-ui
|
|
955
|
+
[data-ui-toast] > [data-part-list] > [data-part-item] > [data-part-progress] {
|
|
939
956
|
animation-name: none;
|
|
940
957
|
inline-size: 100%;
|
|
941
958
|
}
|