@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
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"--slotted-target-comfortable",
|
|
67
67
|
"--slotted-target-min",
|
|
68
68
|
"--slotted-text",
|
|
69
|
+
"--slotted-text-box-edge",
|
|
69
70
|
"--slotted-text-inverse",
|
|
70
71
|
"--slotted-text-muted",
|
|
71
72
|
"--slotted-tone-accent-solid",
|
|
@@ -73,6 +74,7 @@
|
|
|
73
74
|
"--slotted-tone-danger-solid",
|
|
74
75
|
"--slotted-tone-danger-surface",
|
|
75
76
|
"--slotted-tone-danger-text",
|
|
77
|
+
"--slotted-tone-info-solid",
|
|
76
78
|
"--slotted-tone-secondary-border",
|
|
77
79
|
"--slotted-tone-secondary-subtle-active",
|
|
78
80
|
"--slotted-tone-secondary-subtle-hover",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* actions stacks when the box is narrow, and the `inline` row becomes a
|
|
22
22
|
* column at the same point.
|
|
23
23
|
*/
|
|
24
|
-
[data-ui
|
|
24
|
+
[data-ui-result-state][data-part-root] {
|
|
25
25
|
/**
|
|
26
26
|
* Prose sizes come from the type scale, which does not vary by density,
|
|
27
27
|
* and the mark comes from the control scales, which do. That is where
|
|
@@ -78,8 +78,7 @@
|
|
|
78
78
|
/**
|
|
79
79
|
* Eight pixels between the title and the sentence under it. Six glued the
|
|
80
80
|
* description to an eighteen- and a twenty-four-pixel title; ReUI's three
|
|
81
|
-
* blocks hold eight
|
|
82
|
-
* § 3).
|
|
81
|
+
* blocks hold eight.
|
|
83
82
|
*/
|
|
84
83
|
--_text-gap: var(--slotted-result-state-text-gap, var(--slotted-space-4, 0.5rem));
|
|
85
84
|
/**
|
|
@@ -143,7 +142,7 @@
|
|
|
143
142
|
* needed: `1lh` read on the mark itself resolved against the mark's own
|
|
144
143
|
* inherited twelve pixels and `normal`, which is a fourteen-pixel line box
|
|
145
144
|
* against the title's nineteen. The mark sat two and a half pixels above
|
|
146
|
-
* the line it was supposed to be
|
|
145
|
+
* the line it was supposed to be centerd on, which is visible and was
|
|
147
146
|
* reported from the picture rather than by a test.
|
|
148
147
|
*/
|
|
149
148
|
font-size: var(--_title-font-size);
|
|
@@ -204,7 +203,7 @@
|
|
|
204
203
|
* it. The middle track can still shrink below its content, which is what
|
|
205
204
|
* lets a long sentence wrap inside a narrow cell.
|
|
206
205
|
*/
|
|
207
|
-
[data-ui
|
|
206
|
+
[data-ui-result-state][data-part-root][data-reach='inline'] {
|
|
208
207
|
--_title-font-size: var(
|
|
209
208
|
--slotted-result-state-title-font-size,
|
|
210
209
|
var(--slotted-font-size-sm, 0.8125rem)
|
|
@@ -234,7 +233,7 @@
|
|
|
234
233
|
* the type scale's top step — the size a page-level heading takes in this
|
|
235
234
|
* library, and one no control font size can reach.
|
|
236
235
|
*/
|
|
237
|
-
[data-ui
|
|
236
|
+
[data-ui-result-state][data-part-root][data-reach='page'] {
|
|
238
237
|
--_title-font-size: var(
|
|
239
238
|
--slotted-result-state-title-font-size,
|
|
240
239
|
var(--slotted-font-size-3xl, 1.5rem)
|
|
@@ -265,30 +264,30 @@
|
|
|
265
264
|
/* ── Align ────────────────────────────────────────────────────────────
|
|
266
265
|
*
|
|
267
266
|
* Carbon left-aligns its empty states inside data-dense views; the other six
|
|
268
|
-
* surveyed implementations
|
|
267
|
+
* surveyed implementations center unconditionally. Both readings are real,
|
|
269
268
|
* and one axis is cheaper than a second family.
|
|
270
269
|
*
|
|
271
270
|
* `justify-items` places the boxes and `text-align` places the words inside
|
|
272
|
-
* them, because a
|
|
273
|
-
* would otherwise ship: the title looks
|
|
271
|
+
* them, because a centerd box holding left-aligned prose is the defect this
|
|
272
|
+
* would otherwise ship: the title looks centerd until the description wraps
|
|
274
273
|
* onto a second line.
|
|
275
274
|
*/
|
|
276
|
-
[data-ui
|
|
275
|
+
[data-ui-result-state][data-part-root][data-align='center'] {
|
|
277
276
|
justify-items: center;
|
|
278
277
|
text-align: center;
|
|
279
278
|
}
|
|
280
279
|
|
|
281
|
-
[data-ui
|
|
280
|
+
[data-ui-result-state][data-part-root][data-align='start'] {
|
|
282
281
|
justify-items: start;
|
|
283
282
|
text-align: start;
|
|
284
283
|
}
|
|
285
284
|
|
|
286
|
-
[data-ui
|
|
285
|
+
[data-ui-result-state][data-part-root][data-reach='inline'][data-align='center'] {
|
|
287
286
|
justify-content: center;
|
|
288
287
|
justify-items: stretch;
|
|
289
288
|
}
|
|
290
289
|
|
|
291
|
-
[data-ui
|
|
290
|
+
[data-ui-result-state][data-part-root][data-reach='inline'][data-align='start'] {
|
|
292
291
|
justify-content: start;
|
|
293
292
|
justify-items: stretch;
|
|
294
293
|
}
|
|
@@ -309,11 +308,11 @@
|
|
|
309
308
|
* projecting a node: the page names its own illustration and shows the box in
|
|
310
309
|
* the same rule, which is one snippet in the family's documentation. It is
|
|
311
310
|
* painted as an image rather than as a mask, because what goes there now is a
|
|
312
|
-
* drawing in its own
|
|
311
|
+
* drawing in its own colors and not a silhouette in a tone; and when nothing
|
|
313
312
|
* names it, the declaration is invalid at computed-value time and the box
|
|
314
313
|
* paints nothing at all.
|
|
315
314
|
*/
|
|
316
|
-
[data-ui
|
|
315
|
+
[data-ui-result-state] > [data-part-media]:empty {
|
|
317
316
|
background: var(--slotted-result-state-media) center / contain no-repeat;
|
|
318
317
|
block-size: var(--_media-size);
|
|
319
318
|
display: none;
|
|
@@ -331,7 +330,7 @@
|
|
|
331
330
|
* loaded reserves the room it will take and nothing below it moves when it
|
|
332
331
|
* does.
|
|
333
332
|
*/
|
|
334
|
-
[data-ui
|
|
333
|
+
[data-ui-result-state] > [data-part-media]:not(:empty) {
|
|
335
334
|
align-items: center;
|
|
336
335
|
background-color: transparent;
|
|
337
336
|
block-size: var(--_media-size);
|
|
@@ -341,14 +340,14 @@
|
|
|
341
340
|
min-inline-size: var(--_media-size);
|
|
342
341
|
}
|
|
343
342
|
|
|
344
|
-
[data-ui
|
|
343
|
+
[data-ui-result-state] > [data-part-media]:not(:empty) > * {
|
|
345
344
|
block-size: 100%;
|
|
346
345
|
inline-size: auto;
|
|
347
346
|
max-inline-size: 100%;
|
|
348
347
|
}
|
|
349
348
|
|
|
350
|
-
/** Supplied artwork on the same line,
|
|
351
|
-
[data-ui
|
|
349
|
+
/** Supplied artwork on the same line, centerd on the same axis by its own size. */
|
|
350
|
+
[data-ui-result-state][data-reach='inline'] > [data-part-media]:not(:empty) {
|
|
352
351
|
align-self: start;
|
|
353
352
|
grid-column: 1;
|
|
354
353
|
grid-row: 1;
|
|
@@ -369,13 +368,10 @@
|
|
|
369
368
|
* the guide forbids an illustration from dominating a dense screen. The
|
|
370
369
|
* artwork the page supplied is drawn there as it is.
|
|
371
370
|
*
|
|
372
|
-
* Under forced
|
|
371
|
+
* Under forced colors the browser would replace every fill with `Canvas`
|
|
373
372
|
* and leave each drawing as outlines laid on top of one another. The theme
|
|
374
|
-
* already maps the roles used here to system
|
|
373
|
+
* already maps the roles used here to system colors in that mode, so the
|
|
375
374
|
* drawing opts out of the browser's adjustment and keeps the theme's.
|
|
376
|
-
*
|
|
377
|
-
* The measurements, and where each came from, are in
|
|
378
|
-
* `docs/history/designs/2026-09-25-result-state-reui-dossier.md` § 3.
|
|
379
375
|
*/
|
|
380
376
|
|
|
381
377
|
/**
|
|
@@ -385,8 +381,8 @@
|
|
|
385
381
|
* at the three densities and its corners stay concentric — the outer radius
|
|
386
382
|
* is the inner one plus the ring.
|
|
387
383
|
*/
|
|
388
|
-
[data-ui
|
|
389
|
-
> [data-part
|
|
384
|
+
[data-ui-result-state]:not([data-reach='inline'])[data-illustration='tile']
|
|
385
|
+
> [data-part-media]:not(:empty) {
|
|
390
386
|
--_ring: var(--slotted-space-2, 0.25rem);
|
|
391
387
|
--_inner-radius: var(--slotted-radius-lg, 8px);
|
|
392
388
|
|
|
@@ -411,8 +407,8 @@
|
|
|
411
407
|
* because the root is the stacking context (`isolation` above) and the tile
|
|
412
408
|
* is not one.
|
|
413
409
|
*/
|
|
414
|
-
[data-ui
|
|
415
|
-
> [data-part
|
|
410
|
+
[data-ui-result-state]:not([data-reach='inline'])[data-illustration='tile']
|
|
411
|
+
> [data-part-media]:not(:empty)::before {
|
|
416
412
|
background-color: var(--slotted-surface-raised);
|
|
417
413
|
border: var(--slotted-border-width-thin, 1px) solid var(--slotted-border-subtle);
|
|
418
414
|
border-radius: var(--_inner-radius);
|
|
@@ -423,8 +419,8 @@
|
|
|
423
419
|
z-index: -1;
|
|
424
420
|
}
|
|
425
421
|
|
|
426
|
-
[data-ui
|
|
427
|
-
> [data-part
|
|
422
|
+
[data-ui-result-state]:not([data-reach='inline'])[data-illustration='tile']
|
|
423
|
+
> [data-part-media]:not(:empty)
|
|
428
424
|
> * {
|
|
429
425
|
block-size: var(--_art-glyph);
|
|
430
426
|
inline-size: var(--_art-glyph);
|
|
@@ -444,18 +440,18 @@
|
|
|
444
440
|
*
|
|
445
441
|
* Three layers and two pseudo-elements: the front face is `::before`, the
|
|
446
442
|
* middle layer `::after`, and the farthest is the box's own shadow, drawn
|
|
447
|
-
* twice — a fill, then a pixel wider in the border
|
|
443
|
+
* twice — a fill, then a pixel wider in the border color — because a
|
|
448
444
|
* shadow has no border of its own. The box itself paints nothing, since a
|
|
449
445
|
* transformed box is a stacking context and its own background would sit
|
|
450
446
|
* above nothing and beneath both pseudo-elements.
|
|
451
447
|
*
|
|
452
448
|
* The drawing's visual bounds are wider and taller than the box, so the box
|
|
453
|
-
* reserves the difference in its margins and is moved back onto the
|
|
449
|
+
* reserves the difference in its margins and is moved back onto the center
|
|
454
450
|
* of those bounds: 0.325 of a side along the lean and 0.145 down, the
|
|
455
|
-
*
|
|
451
|
+
* center of the sheared stack measured against the center of the square.
|
|
456
452
|
*/
|
|
457
|
-
[data-ui
|
|
458
|
-
> [data-part
|
|
453
|
+
[data-ui-result-state]:not([data-reach='inline'])[data-illustration='stack']
|
|
454
|
+
> [data-part-media]:not(:empty) {
|
|
459
455
|
--_side: calc(var(--_art) + var(--slotted-space-2, 0.25rem));
|
|
460
456
|
--_lean: 1;
|
|
461
457
|
--_step-x: calc(var(--_side) * -0.36 * var(--_lean));
|
|
@@ -482,15 +478,15 @@
|
|
|
482
478
|
}
|
|
483
479
|
|
|
484
480
|
/** Depth is read from the reading edge, so the stack leans the other way. */
|
|
485
|
-
[data-ui
|
|
486
|
-
> [data-part
|
|
481
|
+
[data-ui-result-state]:not([data-reach='inline'])[data-illustration='stack']:dir(rtl)
|
|
482
|
+
> [data-part-media]:not(:empty) {
|
|
487
483
|
--_lean: -1;
|
|
488
484
|
}
|
|
489
485
|
|
|
490
|
-
[data-ui
|
|
491
|
-
> [data-part
|
|
492
|
-
[data-ui
|
|
493
|
-
> [data-part
|
|
486
|
+
[data-ui-result-state]:not([data-reach='inline'])[data-illustration='stack']
|
|
487
|
+
> [data-part-media]:not(:empty)::before,
|
|
488
|
+
[data-ui-result-state]:not([data-reach='inline'])[data-illustration='stack']
|
|
489
|
+
> [data-part-media]:not(:empty)::after {
|
|
494
490
|
background-color: var(--slotted-surface-raised);
|
|
495
491
|
border: var(--_layer-border) solid var(--slotted-border-subtle);
|
|
496
492
|
border-radius: inherit;
|
|
@@ -507,8 +503,8 @@
|
|
|
507
503
|
* because a face drawn in the control edge is read by `field-surface.test.mjs`
|
|
508
504
|
* as a field, and this is a drawing.
|
|
509
505
|
*/
|
|
510
|
-
[data-ui
|
|
511
|
-
> [data-part
|
|
506
|
+
[data-ui-result-state]:not([data-reach='inline'])[data-illustration='stack']
|
|
507
|
+
> [data-part-media]:not(:empty)::before {
|
|
512
508
|
border-color: color-mix(
|
|
513
509
|
in oklab,
|
|
514
510
|
var(--slotted-border-subtle),
|
|
@@ -518,8 +514,8 @@
|
|
|
518
514
|
z-index: -1;
|
|
519
515
|
}
|
|
520
516
|
|
|
521
|
-
[data-ui
|
|
522
|
-
> [data-part
|
|
517
|
+
[data-ui-result-state]:not([data-reach='inline'])[data-illustration='stack']
|
|
518
|
+
> [data-part-media]:not(:empty)::after {
|
|
523
519
|
transition: translate var(--slotted-duration-long) var(--slotted-easing-enter);
|
|
524
520
|
translate: var(--_step-x) var(--_step-y);
|
|
525
521
|
z-index: -2;
|
|
@@ -531,8 +527,8 @@
|
|
|
531
527
|
* same size and the glyph is a size smaller, because a glyph as tall as
|
|
532
528
|
* the title's line box competes with the title.
|
|
533
529
|
*/
|
|
534
|
-
[data-ui
|
|
535
|
-
> [data-part
|
|
530
|
+
[data-ui-result-state]:not([data-reach='inline'])[data-illustration='stack']
|
|
531
|
+
> [data-part-media]:not(:empty)
|
|
536
532
|
> * {
|
|
537
533
|
block-size: calc(var(--_side) * 0.5);
|
|
538
534
|
inline-size: calc(var(--_side) * 0.5);
|
|
@@ -554,12 +550,11 @@
|
|
|
554
550
|
* stand above the box, which reserves their two steps in its top margin.
|
|
555
551
|
*
|
|
556
552
|
* ReUI fades the bottom of the drawing into `--background`. That supposes
|
|
557
|
-
* the
|
|
553
|
+
* the color of the ground, and a result state inside a card or on the
|
|
558
554
|
* sunken surface is on another one; a mask would clip the cards behind,
|
|
559
555
|
* which stand outside the box. The drawing does not fade.
|
|
560
556
|
*/
|
|
561
|
-
[data-ui
|
|
562
|
-
> [data-part='media'] {
|
|
557
|
+
[data-ui-result-state]:not([data-reach='inline'])[data-illustration='cards'] > [data-part-media] {
|
|
563
558
|
--_pad: var(--slotted-space-6, 1rem);
|
|
564
559
|
--_gap: var(--slotted-space-5, 0.75rem);
|
|
565
560
|
--_thumb: var(--slotted-control-height-sm, 30px);
|
|
@@ -586,7 +581,7 @@
|
|
|
586
581
|
);
|
|
587
582
|
/* A length, not a percentage: a percentage in a background offset is a
|
|
588
583
|
share of the room the layer leaves, which differs for each line height
|
|
589
|
-
and set the two lines four and three pixels above
|
|
584
|
+
and set the two lines four and three pixels above center. */
|
|
590
585
|
--_line-1-y: calc(
|
|
591
586
|
(var(--_thumb) + 2 * var(--_pad) - var(--_line) - var(--_line-gap) - var(--_line-2)) / 2
|
|
592
587
|
);
|
|
@@ -649,8 +644,8 @@
|
|
|
649
644
|
}
|
|
650
645
|
|
|
651
646
|
/** No thumbnail without a glyph: the lines start at the padding. */
|
|
652
|
-
[data-ui
|
|
653
|
-
> [data-part
|
|
647
|
+
[data-ui-result-state]:not([data-reach='inline'])[data-illustration='cards']
|
|
648
|
+
> [data-part-media]:empty {
|
|
654
649
|
--_lines-x: var(--_pad);
|
|
655
650
|
}
|
|
656
651
|
|
|
@@ -660,15 +655,15 @@
|
|
|
660
655
|
* transform: a transformed box is a stacking context, and the cards behind
|
|
661
656
|
* would then paint over the front one.
|
|
662
657
|
*/
|
|
663
|
-
[data-ui
|
|
664
|
-
> [data-part
|
|
658
|
+
[data-ui-result-state]:not([data-reach='inline'])[data-illustration='cards']:dir(rtl)
|
|
659
|
+
> [data-part-media] {
|
|
665
660
|
--_edge: right;
|
|
666
661
|
}
|
|
667
662
|
|
|
668
|
-
[data-ui
|
|
669
|
-
> [data-part
|
|
670
|
-
[data-ui
|
|
671
|
-
> [data-part
|
|
663
|
+
[data-ui-result-state]:not([data-reach='inline'])[data-illustration='cards']
|
|
664
|
+
> [data-part-media]::before,
|
|
665
|
+
[data-ui-result-state]:not([data-reach='inline'])[data-illustration='cards']
|
|
666
|
+
> [data-part-media]::after {
|
|
672
667
|
background-color: var(--slotted-surface-sunken);
|
|
673
668
|
block-size: 100%;
|
|
674
669
|
border: var(--slotted-border-width-thin, 1px) solid var(--slotted-border-subtle);
|
|
@@ -682,15 +677,15 @@
|
|
|
682
677
|
}
|
|
683
678
|
|
|
684
679
|
/** The farthest card, painted first. */
|
|
685
|
-
[data-ui
|
|
686
|
-
> [data-part
|
|
680
|
+
[data-ui-result-state]:not([data-reach='inline'])[data-illustration='cards']
|
|
681
|
+
> [data-part-media]::before {
|
|
687
682
|
border-color: var(--_ink-2);
|
|
688
683
|
inset-inline: calc(2 * var(--_step) - var(--slotted-border-width-thin, 1px));
|
|
689
684
|
translate: 0 calc(-2 * var(--_step));
|
|
690
685
|
}
|
|
691
686
|
|
|
692
|
-
[data-ui
|
|
693
|
-
> [data-part
|
|
687
|
+
[data-ui-result-state]:not([data-reach='inline'])[data-illustration='cards']
|
|
688
|
+
> [data-part-media]::after {
|
|
694
689
|
inset-inline: calc(var(--_step) - var(--slotted-border-width-thin, 1px));
|
|
695
690
|
translate: 0 calc(-1 * var(--_step));
|
|
696
691
|
}
|
|
@@ -699,8 +694,8 @@
|
|
|
699
694
|
* The thumbnail is the page's glyph on the sunken surface, padded from its
|
|
700
695
|
* edge to the glyph size.
|
|
701
696
|
*/
|
|
702
|
-
[data-ui
|
|
703
|
-
> [data-part
|
|
697
|
+
[data-ui-result-state]:not([data-reach='inline'])[data-illustration='cards']
|
|
698
|
+
> [data-part-media]
|
|
704
699
|
> * {
|
|
705
700
|
background-color: var(--slotted-surface-sunken);
|
|
706
701
|
block-size: var(--_thumb);
|
|
@@ -717,20 +712,20 @@
|
|
|
717
712
|
* inside the grid, and it is the half of the pair that `minmax(0, …)` on the
|
|
718
713
|
* track cannot supply on its own.
|
|
719
714
|
*/
|
|
720
|
-
[data-ui
|
|
715
|
+
[data-ui-result-state] > [data-part-content] {
|
|
721
716
|
display: grid;
|
|
722
717
|
min-inline-size: 0;
|
|
723
718
|
row-gap: var(--_text-gap);
|
|
724
719
|
}
|
|
725
720
|
|
|
726
|
-
[data-ui
|
|
721
|
+
[data-ui-result-state][data-reach='inline'] > [data-part-content] {
|
|
727
722
|
grid-column: 2;
|
|
728
723
|
grid-row: 1;
|
|
729
724
|
}
|
|
730
725
|
|
|
731
726
|
/**
|
|
732
727
|
* `balance` is what keeps a two-line title from leaving one word on the
|
|
733
|
-
* second line, and it is the reason a
|
|
728
|
+
* second line, and it is the reason a centerd region reads as a shape rather
|
|
734
729
|
* than as a ragged edge. It is capped by the browser at a handful of lines,
|
|
735
730
|
* so a long title is unaffected rather than slow.
|
|
736
731
|
*
|
|
@@ -739,7 +734,7 @@
|
|
|
739
734
|
* Nothing is removed: the whole string stays in the DOM, in the accessibility
|
|
740
735
|
* tree, and findable by a page search.
|
|
741
736
|
*/
|
|
742
|
-
[data-ui
|
|
737
|
+
[data-ui-result-state] [data-part-title] {
|
|
743
738
|
font-family: var(
|
|
744
739
|
--slotted-result-state-title-font-family,
|
|
745
740
|
var(
|
|
@@ -765,7 +760,7 @@
|
|
|
765
760
|
* first and two lines of equal weight give them no order to read in. It is
|
|
766
761
|
* the pair the theme measures against all three neutral surfaces.
|
|
767
762
|
*/
|
|
768
|
-
[data-ui
|
|
763
|
+
[data-ui-result-state] [data-part-description] {
|
|
769
764
|
color: var(--slotted-text-muted);
|
|
770
765
|
font-size: var(--_description-font-size);
|
|
771
766
|
line-height: var(--slotted-line-height-md, 1.5);
|
|
@@ -781,22 +776,20 @@
|
|
|
781
776
|
* own `button` and `a`, because those families already own what a button and
|
|
782
777
|
* a link are.
|
|
783
778
|
*/
|
|
784
|
-
[data-ui
|
|
779
|
+
[data-ui-result-state] > [data-part-actions] {
|
|
785
780
|
align-items: center;
|
|
786
781
|
display: flex;
|
|
787
782
|
flex-wrap: wrap;
|
|
788
|
-
gap: var(--slotted-result-state-actions-gap, var(--slotted-
|
|
783
|
+
gap: var(--slotted-result-state-actions-gap, var(--slotted-action-gap, 8px));
|
|
789
784
|
min-inline-size: 0;
|
|
790
785
|
}
|
|
791
786
|
|
|
792
|
-
[data-ui
|
|
787
|
+
[data-ui-result-state][data-align='center'] > [data-part-actions] {
|
|
793
788
|
justify-content: center;
|
|
794
789
|
}
|
|
795
790
|
|
|
796
791
|
/** The pause between the message and its answer (`--_actions-gap`). */
|
|
797
|
-
[data-ui
|
|
798
|
-
> [data-part='content']
|
|
799
|
-
+ [data-part='actions'] {
|
|
792
|
+
[data-ui-result-state]:not([data-reach='inline']) > [data-part-content] + [data-part-actions] {
|
|
800
793
|
margin-block-start: calc(var(--_actions-gap) - var(--_row-gap));
|
|
801
794
|
}
|
|
802
795
|
|
|
@@ -805,17 +798,17 @@
|
|
|
805
798
|
* tall as its tallest item, so a control taller than a line of text made the
|
|
806
799
|
* row thirty pixels deep: the mark and the words then sat at the top of it
|
|
807
800
|
* while the control sat in the middle, and a row with one thing at the top
|
|
808
|
-
* and another in the
|
|
801
|
+
* and another in the center reads as a mistake. Reported from the picture.
|
|
809
802
|
*
|
|
810
|
-
* The box is one line box tall and the control is
|
|
803
|
+
* The box is one line box tall and the control is centerd in it, which lets
|
|
811
804
|
* the control stand proud of the line by the same distance above and below —
|
|
812
805
|
* a distance the region's own block inset already holds.
|
|
813
806
|
*/
|
|
814
|
-
[data-ui
|
|
807
|
+
[data-ui-result-state][data-reach='inline'] > [data-part-actions] {
|
|
815
808
|
/**
|
|
816
809
|
* `align-content` rather than `align-items`, because the row is allowed to
|
|
817
810
|
* wrap and a wrapping flex container aligns its *lines*: with the line
|
|
818
|
-
* taller than the box, `align-items: center`
|
|
811
|
+
* taller than the box, `align-items: center` centers the control inside a
|
|
819
812
|
* line that is itself parked at the top, which left the control exactly
|
|
820
813
|
* half its overhang too low.
|
|
821
814
|
*/
|
|
@@ -834,14 +827,14 @@
|
|
|
834
827
|
* is set one step down and in the muted role rather than made a third
|
|
835
828
|
* control.
|
|
836
829
|
*/
|
|
837
|
-
[data-ui
|
|
830
|
+
[data-ui-result-state] > [data-part-footer] {
|
|
838
831
|
color: var(--slotted-text-muted);
|
|
839
832
|
font-size: var(--slotted-font-size-sm, 0.8125rem);
|
|
840
833
|
line-height: var(--slotted-line-height-sm, 1.45);
|
|
841
834
|
min-inline-size: 0;
|
|
842
835
|
}
|
|
843
836
|
|
|
844
|
-
[data-ui
|
|
837
|
+
[data-ui-result-state][data-reach='inline'] > [data-part-footer] {
|
|
845
838
|
grid-column: 2;
|
|
846
839
|
grid-row: 2;
|
|
847
840
|
}
|
|
@@ -854,7 +847,7 @@
|
|
|
854
847
|
* is not animated: a focus indicator that fades in is a focus indicator that
|
|
855
848
|
* is not there yet.
|
|
856
849
|
*/
|
|
857
|
-
[data-ui
|
|
850
|
+
[data-ui-result-state][data-part-root]:focus-visible {
|
|
858
851
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
859
852
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
860
853
|
}
|
|
@@ -866,7 +859,7 @@
|
|
|
866
859
|
* is the composition change the 240-pixel capture exists to check.
|
|
867
860
|
*/
|
|
868
861
|
@container slotted-result-state (max-width: 20rem) {
|
|
869
|
-
[data-ui
|
|
862
|
+
[data-ui-result-state] > [data-part-actions] {
|
|
870
863
|
/**
|
|
871
864
|
* Stacked, and each control still its own width. How wide a control is
|
|
872
865
|
* belongs to the control, and `button` already ships `fullWidth` for a
|
|
@@ -875,15 +868,15 @@
|
|
|
875
868
|
flex-direction: column;
|
|
876
869
|
}
|
|
877
870
|
|
|
878
|
-
[data-ui
|
|
871
|
+
[data-ui-result-state][data-align='center'] > [data-part-actions] {
|
|
879
872
|
align-items: center;
|
|
880
873
|
}
|
|
881
874
|
|
|
882
|
-
[data-ui
|
|
875
|
+
[data-ui-result-state][data-align='start'] > [data-part-actions] {
|
|
883
876
|
align-items: flex-start;
|
|
884
877
|
}
|
|
885
878
|
|
|
886
|
-
[data-ui
|
|
879
|
+
[data-ui-result-state][data-reach='inline'] {
|
|
887
880
|
grid-template-columns: auto minmax(0, 1fr);
|
|
888
881
|
}
|
|
889
882
|
|
|
@@ -891,14 +884,14 @@
|
|
|
891
884
|
* Below the words now, so the box goes back to its own height: a row of
|
|
892
885
|
* controls held to one line box only makes sense while it is on that line.
|
|
893
886
|
*/
|
|
894
|
-
[data-ui
|
|
887
|
+
[data-ui-result-state][data-reach='inline'] > [data-part-actions] {
|
|
895
888
|
block-size: auto;
|
|
896
889
|
grid-column: 2;
|
|
897
890
|
grid-row: 2;
|
|
898
891
|
margin-inline-start: 0;
|
|
899
892
|
}
|
|
900
893
|
|
|
901
|
-
[data-ui
|
|
894
|
+
[data-ui-result-state][data-reach='inline'] > [data-part-footer] {
|
|
902
895
|
grid-column: 2;
|
|
903
896
|
grid-row: 3;
|
|
904
897
|
}
|
|
@@ -913,7 +906,7 @@
|
|
|
913
906
|
* because the root's own `display: grid` would win over the user agent's
|
|
914
907
|
* rule for `[hidden]`.
|
|
915
908
|
*/
|
|
916
|
-
[data-ui
|
|
909
|
+
[data-ui-result-state][data-part-root][hidden] {
|
|
917
910
|
display: none;
|
|
918
911
|
opacity: 0;
|
|
919
912
|
transition:
|
|
@@ -932,48 +925,48 @@
|
|
|
932
925
|
* collapses under reduced motion.
|
|
933
926
|
*/
|
|
934
927
|
@starting-style {
|
|
935
|
-
[data-ui
|
|
928
|
+
[data-ui-result-state][data-part-root]:is([data-live='polite'], [data-live='assertive']) {
|
|
936
929
|
opacity: 0;
|
|
937
930
|
}
|
|
938
931
|
|
|
939
|
-
[data-ui
|
|
940
|
-
> [data-part
|
|
932
|
+
[data-ui-result-state][data-part-root]:is([data-live='polite'], [data-live='assertive'])
|
|
933
|
+
> [data-part-media] {
|
|
941
934
|
--_step-x: 0px;
|
|
942
935
|
--_step-y: 0px;
|
|
943
936
|
}
|
|
944
937
|
|
|
945
|
-
[data-ui
|
|
938
|
+
[data-ui-result-state][data-part-root]:is(
|
|
946
939
|
[data-live='polite'],
|
|
947
940
|
[data-live='assertive']
|
|
948
941
|
)[data-illustration='tile']
|
|
949
|
-
> [data-part
|
|
942
|
+
> [data-part-media] {
|
|
950
943
|
opacity: 0;
|
|
951
944
|
scale: 0.96;
|
|
952
945
|
}
|
|
953
946
|
|
|
954
|
-
[data-ui
|
|
947
|
+
[data-ui-result-state][data-part-root]:is(
|
|
955
948
|
[data-live='polite'],
|
|
956
949
|
[data-live='assertive']
|
|
957
950
|
)[data-illustration='cards']
|
|
958
|
-
> [data-part
|
|
959
|
-
[data-ui
|
|
951
|
+
> [data-part-media]::before,
|
|
952
|
+
[data-ui-result-state][data-part-root]:is(
|
|
960
953
|
[data-live='polite'],
|
|
961
954
|
[data-live='assertive']
|
|
962
955
|
)[data-illustration='cards']
|
|
963
|
-
> [data-part
|
|
956
|
+
> [data-part-media]::after {
|
|
964
957
|
translate: 0 0;
|
|
965
958
|
}
|
|
966
959
|
}
|
|
967
960
|
|
|
968
961
|
/** The farther of two moving layers leaves a short step after the nearer. */
|
|
969
|
-
[data-ui
|
|
962
|
+
[data-ui-result-state][data-illustration='cards'] > [data-part-media]::before {
|
|
970
963
|
transition-delay: var(--slotted-duration-short);
|
|
971
964
|
}
|
|
972
965
|
|
|
973
|
-
/* ── Forced
|
|
966
|
+
/* ── Forced colors ───────────────────────────────────────────────────
|
|
974
967
|
*
|
|
975
968
|
* Nothing beyond the drawings' own `forced-color-adjust`, above. The
|
|
976
|
-
* operating system replaces every author
|
|
969
|
+
* operating system replaces every author color, the theme already remaps
|
|
977
970
|
* `--slotted-text` and `--slotted-text-muted`, and the words carry the
|
|
978
971
|
* region as they do everywhere else.
|
|
979
972
|
*/
|