@slotted/styles 0.1.0-beta.3 → 0.1.0-beta.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -1
- package/src/accordion/accordion.css +11 -11
- package/src/action-bar/action-bar.css +47 -44
- package/src/action-bar/action-bar.tokens.json +1 -0
- package/src/action-sheet/action-sheet.css +39 -39
- package/src/alert/alert.css +96 -96
- package/src/alert/alert.tokens.json +5 -0
- package/src/app-shell/app-shell.css +455 -328
- package/src/app-shell/app-shell.tokens.json +5 -2
- package/src/aspect-ratio/aspect-ratio.css +9 -9
- package/src/attachment/attachment.css +118 -114
- package/src/avatar/avatar.css +96 -66
- package/src/avatar/avatar.tokens.json +7 -0
- package/src/avatar-group/avatar-group.css +22 -23
- package/src/badge/badge.css +54 -46
- package/src/badge/badge.tokens.json +5 -0
- package/src/breadcrumb/breadcrumb.css +52 -52
- package/src/button/button.css +137 -89
- package/src/button/button.tokens.json +5 -0
- package/src/button-group/button-group.css +80 -79
- package/src/button-group/button-group.tokens.json +1 -0
- package/src/calendar/calendar.css +139 -109
- package/src/calendar/calendar.tokens.json +5 -1
- package/src/card/card.css +68 -65
- package/src/carousel/carousel.css +158 -169
- package/src/cascader/cascader.css +158 -157
- package/src/cascader/cascader.tokens.json +1 -0
- package/src/chart/chart.css +288 -267
- package/src/chart/chart.tokens.json +4 -0
- package/src/checkbox/checkbox.css +143 -148
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/code-block/code-block.css +85 -89
- package/src/collapsible/collapsible.css +76 -80
- package/src/color-picker/color-picker.css +106 -114
- package/src/column-manager/column-manager.css +111 -119
- package/src/combobox/combobox.css +203 -130
- package/src/combobox/combobox.tokens.json +3 -0
- package/src/command-palette/command-palette.css +155 -102
- package/src/command-palette/command-palette.tokens.json +2 -0
- package/src/container/container.css +27 -27
- package/src/context-menu/context-menu.css +9 -9
- package/src/currency-field/currency-field.css +119 -119
- package/src/currency-field/currency-field.tokens.json +1 -0
- package/src/dashboard-grid/dashboard-grid.css +185 -115
- package/src/data-grid/data-grid.css +598 -496
- package/src/data-grid/data-grid.tokens.json +5 -1
- package/src/data-list/data-list.css +82 -71
- package/src/data-list/data-list.tokens.json +2 -1
- package/src/date-field/date-field.css +62 -57
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +117 -58
- package/src/date-picker/date-picker.tokens.json +5 -0
- package/src/date-range-picker/date-range-picker.css +157 -127
- package/src/date-range-picker/date-range-picker.tokens.json +4 -0
- package/src/datetime-field/datetime-field.css +90 -90
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +123 -70
- package/src/datetime-picker/datetime-picker.tokens.json +4 -1
- package/src/datetime-range-picker/datetime-range-picker.css +191 -163
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
- package/src/description-list/description-list.css +105 -75
- package/src/description-list/description-list.tokens.json +1 -0
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +434 -198
- package/src/dialog/dialog.tokens.json +7 -0
- package/src/divider/divider.css +20 -20
- package/src/drawer/drawer.css +597 -236
- package/src/drawer/drawer.tokens.json +13 -0
- package/src/entity-picker/entity-picker.css +323 -270
- package/src/entity-picker/entity-picker.tokens.json +3 -0
- package/src/event-calendar/event-calendar.css +357 -399
- package/src/field/field.css +106 -93
- package/src/field/field.tokens.json +2 -0
- package/src/field-group/field-group.css +43 -33
- package/src/field-group/field-group.tokens.json +3 -0
- package/src/filter-bar/filter-bar.css +200 -216
- package/src/form/form.css +99 -25
- package/src/form/form.tokens.json +5 -0
- package/src/fullscreen/fullscreen.css +26 -27
- package/src/grid/grid.css +29 -29
- package/src/highlight/highlight.css +11 -11
- package/src/hover-card/hover-card.css +9 -9
- package/src/icon/icon.css +67 -20
- package/src/icon/icon.tokens.json +1 -0
- package/src/image/image.css +42 -42
- package/src/import-export-center/import-export-center.css +144 -165
- package/src/inline/inline.css +28 -28
- package/src/inline-message/inline-message.css +162 -86
- package/src/inline-message/inline-message.tokens.json +4 -0
- package/src/kbd/kbd.css +62 -50
- package/src/kbd/kbd.tokens.json +3 -0
- package/src/link/link.css +54 -33
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +23 -23
- package/src/list-item/list-item.css +89 -75
- package/src/list-item/list-item.tokens.json +7 -0
- package/src/listbox/listbox.css +71 -70
- package/src/listbox/listbox.tokens.json +0 -1
- package/src/loading-overlay/loading-overlay.css +86 -103
- package/src/markdown/markdown.css +20 -20
- package/src/media-viewer/media-viewer.css +790 -0
- package/src/media-viewer/media-viewer.tokens.json +53 -0
- package/src/menu/menu.css +162 -82
- package/src/menu/menu.tokens.json +2 -1
- package/src/menubar/menubar.css +16 -16
- package/src/message/message.css +1250 -1253
- package/src/message/message.tokens.json +5 -0
- package/src/message-scroller/message-scroller.css +323 -320
- package/src/multi-select/multi-select.css +230 -172
- package/src/multi-select/multi-select.tokens.json +2 -0
- package/src/navigation-menu/navigation-menu.css +169 -190
- package/src/notification-center/notification-center.css +153 -161
- package/src/notification-center/notification-center.tokens.json +3 -0
- package/src/number-field/number-field.css +93 -93
- package/src/number-field/number-field.tokens.json +1 -0
- package/src/otp-input/otp-input.css +74 -64
- package/src/otp-input/otp-input.tokens.json +1 -0
- package/src/page/page.css +41 -27
- package/src/page/page.tokens.json +1 -0
- package/src/page-header/page-header.css +341 -286
- package/src/page-header/page-header.tokens.json +5 -0
- package/src/pagination/pagination.css +75 -79
- package/src/popover/popover.css +81 -64
- package/src/popover/popover.tokens.json +1 -0
- package/src/progress-indicator/progress-indicator.css +192 -136
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +260 -113
- package/src/prompt-composer/prompt-composer.tokens.json +15 -0
- package/src/prose/prose.css +77 -82
- package/src/radio-group/radio-group.css +107 -112
- package/src/rating/rating.css +146 -142
- package/src/rating/rating.tokens.json +1 -0
- package/src/result-state/result-state.css +94 -101
- package/src/runtime-properties.mjs +19 -6
- package/src/saved-views/saved-views.css +43 -49
- package/src/scroll-area/scroll-area.css +44 -37
- package/src/section/section.css +178 -43
- package/src/section/section.tokens.json +8 -2
- package/src/segmented-control/segmented-control.css +210 -133
- package/src/segmented-control/segmented-control.tokens.json +7 -11
- package/src/select/select.css +210 -147
- package/src/select/select.tokens.json +3 -0
- package/src/side-navigation/side-navigation.css +193 -196
- package/src/side-navigation/side-navigation.tokens.json +1 -0
- package/src/skeleton/skeleton.css +57 -58
- package/src/slider/slider.css +101 -103
- package/src/sparkline/sparkline.css +75 -53
- package/src/sparkline/sparkline.tokens.json +2 -0
- package/src/spinner/spinner.css +83 -180
- package/src/spinner/spinner.tokens.json +0 -1
- package/src/split-button/split-button.css +34 -35
- package/src/split-button/split-button.tokens.json +1 -0
- package/src/splitter/splitter.css +47 -48
- package/src/stack/stack.css +25 -25
- package/src/stat-card/stat-card.css +415 -245
- package/src/stat-card/stat-card.tokens.json +8 -0
- package/src/status-indicator/status-indicator.css +124 -100
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +78 -82
- package/src/switch/switch.css +100 -106
- package/src/table/table.css +270 -198
- package/src/table/table.tokens.json +2 -0
- package/src/table-of-contents/table-of-contents.css +60 -59
- package/src/table-of-contents/table-of-contents.tokens.json +1 -0
- package/src/tabs/tabs.css +327 -294
- package/src/tabs/tabs.tokens.json +7 -1
- package/src/tag/tag.css +109 -88
- package/src/tag/tag.tokens.json +10 -0
- package/src/tags-input/tags-input.css +152 -87
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +146 -148
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +38 -33
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +82 -77
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +116 -64
- package/src/time-picker/time-picker.tokens.json +4 -1
- package/src/time-range-picker/time-range-picker.css +168 -140
- package/src/time-range-picker/time-range-picker.tokens.json +4 -0
- package/src/timeline/timeline.css +280 -292
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +138 -121
- package/src/toast/toast.tokens.json +6 -0
- package/src/toggle/toggle.css +34 -38
- package/src/toggle-group/toggle-group.css +73 -77
- package/src/toolbar/toolbar.css +33 -38
- package/src/tooltip/tooltip.css +65 -39
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +252 -268
- package/src/tour/tour.css +64 -73
- package/src/transfer/transfer.css +164 -168
- package/src/tree/tree.css +113 -121
- package/src/typography/typography.css +42 -38
- package/src/typography/typography.tokens.json +1 -0
- package/src/upload/upload.css +256 -257
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +187 -199
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* it to the consumer's own content, and a family that covers a box has no
|
|
26
26
|
* business changing how that box lays itself out.
|
|
27
27
|
*/
|
|
28
|
-
[data-ui
|
|
28
|
+
[data-ui-loading-overlay][data-part-root] {
|
|
29
29
|
/**
|
|
30
30
|
* The distance the panel keeps from the region's edges. It is the panel's
|
|
31
31
|
* own margin rather than the layer's padding, and the difference is not
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
* position is the overlay step, below `popover` and `toast`, because a
|
|
46
46
|
* message about a wait has to stay readable over anything the wait raises.
|
|
47
47
|
*/
|
|
48
|
-
[data-ui
|
|
48
|
+
[data-ui-loading-overlay][data-part-root][data-scope='page'] {
|
|
49
49
|
inset: 0;
|
|
50
50
|
position: fixed;
|
|
51
51
|
z-index: var(--slotted-z-index-overlay, 1000);
|
|
@@ -73,14 +73,14 @@
|
|
|
73
73
|
* a `table` or a `tbody` cannot legally hold this `div`, so a family covering
|
|
74
74
|
* table internals covers the table instead.
|
|
75
75
|
*/
|
|
76
|
-
[data-ui
|
|
76
|
+
[data-ui-loading-overlay] > [data-part-content] {
|
|
77
77
|
display: contents;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/* ── The wash ───────────────────────────────────────────────────────────
|
|
81
81
|
*
|
|
82
82
|
* One element doing two jobs, and they belong together: it paints what says
|
|
83
|
-
* the content is out of reach, and it is the one-cell grid that
|
|
83
|
+
* the content is out of reach, and it is the one-cell grid that centers the
|
|
84
84
|
* panel in the region. `dialog` splits the two because its viewport scrolls
|
|
85
85
|
* and a scrim inside a scrolling box scrolls away with it; nothing here
|
|
86
86
|
* scrolls, so nothing here is split.
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
* padding box, the scrim measures the inline size the root does and contains
|
|
93
93
|
* nothing but the panel.
|
|
94
94
|
*/
|
|
95
|
-
[data-ui
|
|
95
|
+
[data-ui-loading-overlay] > [data-part-scrim] {
|
|
96
96
|
align-items: center;
|
|
97
97
|
container-name: slotted-loading-overlay;
|
|
98
98
|
container-type: size;
|
|
@@ -104,12 +104,12 @@
|
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
106
|
* The wash itself. `--slotted-scrim` is the foundation token the theme
|
|
107
|
-
* restates per scheme and turns opaque under forced
|
|
107
|
+
* restates per scheme and turns opaque under forced colors, and it is what
|
|
108
108
|
* `dialog` and `drawer` already read: three families dimming a surface in
|
|
109
109
|
* three tints would be three answers to one question.
|
|
110
110
|
*/
|
|
111
|
-
[data-ui
|
|
112
|
-
[data-ui
|
|
111
|
+
[data-ui-loading-overlay][data-veil='wash'] > [data-part-scrim],
|
|
112
|
+
[data-ui-loading-overlay][data-veil='blur'] > [data-part-scrim] {
|
|
113
113
|
background: var(--slotted-loading-overlay-scrim, var(--slotted-scrim, Canvas));
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
* parallel scale `docs/token-foundation.md` refuses. A theme retunes the
|
|
124
124
|
* hook instead.
|
|
125
125
|
*/
|
|
126
|
-
[data-ui
|
|
126
|
+
[data-ui-loading-overlay][data-veil='blur'] > [data-part-scrim] {
|
|
127
127
|
backdrop-filter: blur(var(--slotted-loading-overlay-blur, 3px));
|
|
128
128
|
}
|
|
129
129
|
|
|
@@ -157,13 +157,13 @@
|
|
|
157
157
|
* so a click during those hundred and twenty milliseconds has somewhere to
|
|
158
158
|
* land.
|
|
159
159
|
*/
|
|
160
|
-
[data-ui
|
|
160
|
+
[data-ui-loading-overlay] > [data-part-scrim] {
|
|
161
161
|
opacity: 0;
|
|
162
162
|
pointer-events: none;
|
|
163
163
|
transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit, ease);
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
[data-ui
|
|
166
|
+
[data-ui-loading-overlay] > [data-part-scrim][data-loading] {
|
|
167
167
|
opacity: 1;
|
|
168
168
|
pointer-events: auto;
|
|
169
169
|
transition-duration: var(--slotted-duration-medium);
|
|
@@ -185,11 +185,11 @@
|
|
|
185
185
|
* panel that took a smaller one read as part of the wash rather than as
|
|
186
186
|
* something standing in front of it.
|
|
187
187
|
*
|
|
188
|
-
* The edge is not decoration. In `high-contrast` and under forced
|
|
188
|
+
* The edge is not decoration. In `high-contrast` and under forced colors
|
|
189
189
|
* the shadow is dropped and the scrim goes opaque, so the edge is the only
|
|
190
190
|
* thing left separating the panel from what is behind it.
|
|
191
191
|
*/
|
|
192
|
-
[data-ui
|
|
192
|
+
[data-ui-loading-overlay] > [data-part-scrim] > [data-part-panel] {
|
|
193
193
|
align-items: center;
|
|
194
194
|
background: var(--slotted-loading-overlay-surface, var(--slotted-surface-raised, Canvas));
|
|
195
195
|
border: var(--slotted-border-width-thin, 1px) solid var(--slotted-border-subtle, CanvasText);
|
|
@@ -236,11 +236,11 @@
|
|
|
236
236
|
* than prose: it says what a control says.
|
|
237
237
|
*
|
|
238
238
|
* Both lines take the same step, which is what `alert` does with its own
|
|
239
|
-
* title and description. They are told apart by weight and
|
|
239
|
+
* title and description. They are told apart by weight and color, which
|
|
240
240
|
* holds at every step; a second, smaller step would have run out of scale
|
|
241
241
|
* under `sm`.
|
|
242
242
|
*/
|
|
243
|
-
[data-ui
|
|
243
|
+
[data-ui-loading-overlay][data-size='sm'] > [data-part-scrim] > [data-part-panel] {
|
|
244
244
|
--_floor: min(100%, calc(3 * var(--slotted-control-height-sm, 30px)));
|
|
245
245
|
--_line-height: var(--slotted-line-height-sm, 1.35);
|
|
246
246
|
--_text-size: var(--slotted-control-font-size-sm, 12px);
|
|
@@ -249,7 +249,7 @@
|
|
|
249
249
|
--_padding-inline: var(--slotted-space-5, 0.75rem);
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
[data-ui
|
|
252
|
+
[data-ui-loading-overlay][data-size='md'] > [data-part-scrim] > [data-part-panel] {
|
|
253
253
|
--_floor: min(100%, calc(3 * var(--slotted-control-height-md, 34px)));
|
|
254
254
|
--_line-height: var(--slotted-line-height-md, 1.4);
|
|
255
255
|
--_text-size: var(--slotted-control-font-size-md, 13px);
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
--_padding-inline: var(--slotted-space-6, 1rem);
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
[data-ui
|
|
261
|
+
[data-ui-loading-overlay][data-size='lg'] > [data-part-scrim] > [data-part-panel] {
|
|
262
262
|
--_floor: min(100%, calc(3 * var(--slotted-control-height-lg, 38px)));
|
|
263
263
|
--_line-height: var(--slotted-line-height-lg, 1.45);
|
|
264
264
|
--_text-size: var(--slotted-control-font-size-lg, 14px);
|
|
@@ -307,29 +307,26 @@
|
|
|
307
307
|
* gave up, at the 3:1 `progress-indicator` holds between a contained shape
|
|
308
308
|
* and its container, in every scheme rather than in one.
|
|
309
309
|
*/
|
|
310
|
-
[data-ui
|
|
311
|
-
> [data-part='scrim']
|
|
312
|
-
> [data-part='panel']
|
|
313
|
-
> [data-part='indicator'] {
|
|
310
|
+
[data-ui-loading-overlay] > [data-part-scrim] > [data-part-panel] > [data-part-indicator] {
|
|
314
311
|
display: grid;
|
|
315
312
|
justify-items: stretch;
|
|
316
313
|
justify-self: stretch;
|
|
317
314
|
}
|
|
318
315
|
|
|
319
316
|
/**
|
|
320
|
-
* The family's own mark is
|
|
317
|
+
* The family's own mark is centerd; a mark the consumer put here fills the
|
|
321
318
|
* slot. `data-default` is what tells them apart, and the binding writes it —
|
|
322
319
|
* asking the question in CSS would mean selecting on the nested family's own
|
|
323
320
|
* attributes, which is the reach this sheet refuses everywhere else.
|
|
324
321
|
*
|
|
325
322
|
* The first reference page is why the two cases are split. A determinate
|
|
326
|
-
* `ProgressBar` in a
|
|
327
|
-
* the left of the panel: a bar has no intrinsic width to be
|
|
323
|
+
* `ProgressBar` in a centerd, content-sized slot drew a two-pixel dash at
|
|
324
|
+
* the left of the panel: a bar has no intrinsic width to be centerd at.
|
|
328
325
|
*/
|
|
329
|
-
[data-ui
|
|
330
|
-
> [data-part
|
|
331
|
-
> [data-part
|
|
332
|
-
> [data-part
|
|
326
|
+
[data-ui-loading-overlay]
|
|
327
|
+
> [data-part-scrim]
|
|
328
|
+
> [data-part-panel]
|
|
329
|
+
> [data-part-indicator][data-default] {
|
|
333
330
|
justify-items: center;
|
|
334
331
|
justify-self: center;
|
|
335
332
|
}
|
|
@@ -338,7 +335,7 @@
|
|
|
338
335
|
*
|
|
339
336
|
* The first says what is happening and the second says what the first could
|
|
340
337
|
* not. Both wrap: a translated string is longer than the English one that
|
|
341
|
-
* was measured, and the panel is bounded by the region it is
|
|
338
|
+
* was measured, and the panel is bounded by the region it is centerd in.
|
|
342
339
|
*
|
|
343
340
|
* `overflow-wrap` rather than a truncation, because there is nowhere for
|
|
344
341
|
* truncated text to be read from — and the announcement holds the same
|
|
@@ -350,17 +347,14 @@
|
|
|
350
347
|
* a scrollbar that flickered in and out for as long as the wait lasted. A
|
|
351
348
|
* scrollbar nobody can reach for is not worth a defect that visible.
|
|
352
349
|
*/
|
|
353
|
-
[data-ui
|
|
350
|
+
[data-ui-loading-overlay] > [data-part-scrim] > [data-part-panel] > [data-part-label] {
|
|
354
351
|
font-size: var(--_text-size);
|
|
355
352
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
356
353
|
line-height: var(--_line-height);
|
|
357
354
|
overflow-wrap: anywhere;
|
|
358
355
|
}
|
|
359
356
|
|
|
360
|
-
[data-ui
|
|
361
|
-
> [data-part='scrim']
|
|
362
|
-
> [data-part='panel']
|
|
363
|
-
> [data-part='description'] {
|
|
357
|
+
[data-ui-loading-overlay] > [data-part-scrim] > [data-part-panel] > [data-part-description] {
|
|
364
358
|
color: var(--slotted-text-muted, GrayText);
|
|
365
359
|
font-size: var(--_text-size);
|
|
366
360
|
line-height: var(--_line-height);
|
|
@@ -398,10 +392,10 @@
|
|
|
398
392
|
* move and the tight-region rules all still find it — and only the paint
|
|
399
393
|
* steps back.
|
|
400
394
|
*/
|
|
401
|
-
[data-ui
|
|
402
|
-
> [data-part
|
|
403
|
-
> [data-part
|
|
404
|
-
> [data-part
|
|
395
|
+
[data-ui-loading-overlay]
|
|
396
|
+
> [data-part-scrim]
|
|
397
|
+
> [data-part-panel]
|
|
398
|
+
> [data-part-cancel]:not([data-ui]) {
|
|
405
399
|
align-items: center;
|
|
406
400
|
background: transparent;
|
|
407
401
|
border: var(--slotted-control-border-width, 1px) solid
|
|
@@ -430,33 +424,33 @@
|
|
|
430
424
|
* `packages/styles/src/states.test.mjs` enforces. A control the browser has
|
|
431
425
|
* already switched off must not look operable.
|
|
432
426
|
*/
|
|
433
|
-
[data-ui
|
|
434
|
-
> [data-part
|
|
435
|
-
> [data-part
|
|
436
|
-
> [data-part
|
|
427
|
+
[data-ui-loading-overlay]
|
|
428
|
+
> [data-part-scrim]
|
|
429
|
+
> [data-part-panel]
|
|
430
|
+
> [data-part-cancel]:not([data-ui]):hover:not(:disabled) {
|
|
437
431
|
background: var(--slotted-tone-secondary-subtle-hover);
|
|
438
432
|
}
|
|
439
433
|
|
|
440
|
-
[data-ui
|
|
441
|
-
> [data-part
|
|
442
|
-
> [data-part
|
|
443
|
-
> [data-part
|
|
434
|
+
[data-ui-loading-overlay]
|
|
435
|
+
> [data-part-scrim]
|
|
436
|
+
> [data-part-panel]
|
|
437
|
+
> [data-part-cancel]:not([data-ui]):active:not(:disabled) {
|
|
444
438
|
background: var(--slotted-tone-secondary-subtle-active);
|
|
445
439
|
}
|
|
446
440
|
|
|
447
|
-
[data-ui
|
|
448
|
-
> [data-part
|
|
449
|
-
> [data-part
|
|
450
|
-
> [data-part
|
|
441
|
+
[data-ui-loading-overlay]
|
|
442
|
+
> [data-part-scrim]
|
|
443
|
+
> [data-part-panel]
|
|
444
|
+
> [data-part-cancel]:not([data-ui]):disabled {
|
|
451
445
|
border-color: var(--slotted-disabled-border);
|
|
452
446
|
color: var(--slotted-disabled-foreground);
|
|
453
447
|
cursor: default;
|
|
454
448
|
}
|
|
455
449
|
|
|
456
|
-
[data-ui
|
|
457
|
-
> [data-part
|
|
458
|
-
> [data-part
|
|
459
|
-
> [data-part
|
|
450
|
+
[data-ui-loading-overlay]
|
|
451
|
+
> [data-part-scrim]
|
|
452
|
+
> [data-part-panel]
|
|
453
|
+
> [data-part-cancel]:not([data-ui]):focus-visible {
|
|
460
454
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
461
455
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
462
456
|
}
|
|
@@ -467,7 +461,7 @@
|
|
|
467
461
|
* before it is operated. Script puts focus there and Tab never does, so the
|
|
468
462
|
* ring is the only thing the part needs.
|
|
469
463
|
*/
|
|
470
|
-
[data-ui
|
|
464
|
+
[data-ui-loading-overlay] > [data-part-scrim] > [data-part-panel]:focus-visible {
|
|
471
465
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
472
466
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
473
467
|
}
|
|
@@ -477,7 +471,7 @@
|
|
|
477
471
|
* The panel is a column and a column is taller than most regions are. A card
|
|
478
472
|
* is a hundred and fifty pixels; a stacked mark, line, second line and
|
|
479
473
|
* control is a hundred and sixty. The first capture of this family showed
|
|
480
|
-
* exactly that: a panel taller than the box it was
|
|
474
|
+
* exactly that: a panel taller than the box it was centerd in, spilling over
|
|
481
475
|
* both edges with its control clipped.
|
|
482
476
|
*
|
|
483
477
|
* So the panel turns on its side rather than scrolling. The mark moves
|
|
@@ -503,7 +497,7 @@
|
|
|
503
497
|
* holding it to eighteen rem is what squeezed a sentence into one word per
|
|
504
498
|
* line beside a control that then had nowhere to sit.
|
|
505
499
|
*/
|
|
506
|
-
[data-ui
|
|
500
|
+
[data-ui-loading-overlay] > [data-part-scrim] > [data-part-panel] {
|
|
507
501
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
508
502
|
justify-items: stretch;
|
|
509
503
|
max-inline-size: calc(100% - 2 * var(--_inset));
|
|
@@ -535,22 +529,19 @@
|
|
|
535
529
|
* dash at the left of the panel, which is what the first reference page
|
|
536
530
|
* showed.
|
|
537
531
|
*/
|
|
538
|
-
[data-ui
|
|
539
|
-
> [data-part
|
|
540
|
-
> [data-part
|
|
532
|
+
[data-ui-loading-overlay]
|
|
533
|
+
> [data-part-scrim]
|
|
534
|
+
> [data-part-panel]:not(:has(> [data-part-indicator][data-default])) {
|
|
541
535
|
grid-template-columns: minmax(6rem, 2fr) minmax(0, 3fr) auto;
|
|
542
536
|
}
|
|
543
537
|
|
|
544
|
-
[data-ui
|
|
545
|
-
> [data-part='scrim']
|
|
546
|
-
> [data-part='panel']
|
|
547
|
-
> [data-part='indicator'] {
|
|
538
|
+
[data-ui-loading-overlay] > [data-part-scrim] > [data-part-panel] > [data-part-indicator] {
|
|
548
539
|
align-self: center;
|
|
549
540
|
grid-column: 1;
|
|
550
541
|
grid-row: 1 / span 2;
|
|
551
542
|
}
|
|
552
543
|
|
|
553
|
-
[data-ui
|
|
544
|
+
[data-ui-loading-overlay] > [data-part-scrim] > [data-part-panel] > [data-part-label] {
|
|
554
545
|
align-self: end;
|
|
555
546
|
grid-column: 2;
|
|
556
547
|
grid-row: 1;
|
|
@@ -565,27 +556,24 @@
|
|
|
565
556
|
* with six pixels of nothing under them. The reviewer read it as text
|
|
566
557
|
* pinned to the ceiling of the bar, which is exactly what it was.
|
|
567
558
|
*/
|
|
568
|
-
[data-ui
|
|
569
|
-
> [data-part
|
|
570
|
-
> [data-part
|
|
571
|
-
> [data-part
|
|
559
|
+
[data-ui-loading-overlay]
|
|
560
|
+
> [data-part-scrim]
|
|
561
|
+
> [data-part-panel]:not(:has(> [data-part-description]))
|
|
562
|
+
> [data-part-label] {
|
|
572
563
|
align-self: center;
|
|
573
564
|
grid-row: 1 / span 2;
|
|
574
565
|
}
|
|
575
566
|
|
|
576
|
-
[data-ui
|
|
577
|
-
> [data-part='scrim']
|
|
578
|
-
> [data-part='panel']
|
|
579
|
-
> [data-part='description'] {
|
|
567
|
+
[data-ui-loading-overlay] > [data-part-scrim] > [data-part-panel] > [data-part-description] {
|
|
580
568
|
align-self: start;
|
|
581
569
|
grid-column: 2;
|
|
582
570
|
grid-row: 2;
|
|
583
571
|
}
|
|
584
572
|
|
|
585
|
-
[data-ui
|
|
586
|
-
> [data-part
|
|
587
|
-
> [data-part
|
|
588
|
-
> [data-part
|
|
573
|
+
[data-ui-loading-overlay]
|
|
574
|
+
> [data-part-scrim]
|
|
575
|
+
> [data-part-panel]
|
|
576
|
+
> [data-part-cancel]:not([data-ui]) {
|
|
589
577
|
align-self: center;
|
|
590
578
|
grid-column: 3;
|
|
591
579
|
grid-row: 1 / span 2;
|
|
@@ -597,12 +585,12 @@
|
|
|
597
585
|
* Three ways for a region to have no room for words: it is narrower than 220
|
|
598
586
|
* pixels, it is shorter than 88, or it is short enough to want the row and
|
|
599
587
|
* too narrow to hold one. In all three the two lines go and the mark stays,
|
|
600
|
-
*
|
|
588
|
+
* centerd in the region.
|
|
601
589
|
*
|
|
602
590
|
* They have not been taken away from anybody. They are in the announcement,
|
|
603
591
|
* which is where they were carrying meaning to a screen reader all along —
|
|
604
592
|
* so the smallest case loses paint and nothing else. Every surveyed
|
|
605
|
-
* implementation
|
|
593
|
+
* implementation centers a fixed panel here and lets it spill out of the
|
|
606
594
|
* region instead.
|
|
607
595
|
*
|
|
608
596
|
* The ground goes only when the mark is all that is left. A control on no
|
|
@@ -625,7 +613,7 @@
|
|
|
625
613
|
* hold a mark and a Cancel, so a 58-pixel pill overhangs it by eleven
|
|
626
614
|
* pixels at each end — visible, pressable, and the lesser of the two.
|
|
627
615
|
*/
|
|
628
|
-
[data-ui
|
|
616
|
+
[data-ui-loading-overlay] > [data-part-scrim] > [data-part-panel] {
|
|
629
617
|
--_floor: auto;
|
|
630
618
|
--_inset: 0px;
|
|
631
619
|
|
|
@@ -651,24 +639,24 @@
|
|
|
651
639
|
* a mark shrunk to the region's height beside a control that was not is
|
|
652
640
|
* two objects at two scales in one pill.
|
|
653
641
|
*/
|
|
654
|
-
[data-ui
|
|
655
|
-
> [data-part
|
|
656
|
-
> [data-part
|
|
657
|
-
> [data-part
|
|
642
|
+
[data-ui-loading-overlay][data-size='sm']
|
|
643
|
+
> [data-part-scrim]
|
|
644
|
+
> [data-part-panel]:not(:has(> [data-part-cancel]))
|
|
645
|
+
> [data-part-indicator] {
|
|
658
646
|
--slotted-progress-indicator-size: min(var(--slotted-control-height-sm, 30px), 100cqb);
|
|
659
647
|
}
|
|
660
648
|
|
|
661
|
-
[data-ui
|
|
662
|
-
> [data-part
|
|
663
|
-
> [data-part
|
|
664
|
-
> [data-part
|
|
649
|
+
[data-ui-loading-overlay][data-size='md']
|
|
650
|
+
> [data-part-scrim]
|
|
651
|
+
> [data-part-panel]:not(:has(> [data-part-cancel]))
|
|
652
|
+
> [data-part-indicator] {
|
|
665
653
|
--slotted-progress-indicator-size: min(var(--slotted-control-height-md, 34px), 100cqb);
|
|
666
654
|
}
|
|
667
655
|
|
|
668
|
-
[data-ui
|
|
669
|
-
> [data-part
|
|
670
|
-
> [data-part
|
|
671
|
-
> [data-part
|
|
656
|
+
[data-ui-loading-overlay][data-size='lg']
|
|
657
|
+
> [data-part-scrim]
|
|
658
|
+
> [data-part-panel]:not(:has(> [data-part-cancel]))
|
|
659
|
+
> [data-part-indicator] {
|
|
672
660
|
--slotted-progress-indicator-size: min(var(--slotted-control-height-lg, 38px), 100cqb);
|
|
673
661
|
}
|
|
674
662
|
|
|
@@ -688,9 +676,7 @@
|
|
|
688
676
|
* few pixels is better than a control clipped out of reach — which is the
|
|
689
677
|
* one thing this family exists to avoid doing to a reader.
|
|
690
678
|
*/
|
|
691
|
-
[data-ui
|
|
692
|
-
> [data-part='scrim']
|
|
693
|
-
> [data-part='panel']:has(> [data-part='cancel']) {
|
|
679
|
+
[data-ui-loading-overlay] > [data-part-scrim] > [data-part-panel]:has(> [data-part-cancel]) {
|
|
694
680
|
align-items: center;
|
|
695
681
|
grid-auto-flow: column;
|
|
696
682
|
grid-template-columns: none;
|
|
@@ -709,9 +695,9 @@
|
|
|
709
695
|
);
|
|
710
696
|
}
|
|
711
697
|
|
|
712
|
-
[data-ui
|
|
713
|
-
> [data-part
|
|
714
|
-
> [data-part
|
|
698
|
+
[data-ui-loading-overlay]
|
|
699
|
+
> [data-part-scrim]
|
|
700
|
+
> [data-part-panel]:not(:has(> [data-part-cancel])) {
|
|
715
701
|
background: none;
|
|
716
702
|
border: 0;
|
|
717
703
|
box-shadow: none;
|
|
@@ -719,11 +705,8 @@
|
|
|
719
705
|
padding-inline: 0;
|
|
720
706
|
}
|
|
721
707
|
|
|
722
|
-
[data-ui
|
|
723
|
-
[data-ui
|
|
724
|
-
> [data-part='scrim']
|
|
725
|
-
> [data-part='panel']
|
|
726
|
-
> [data-part='description'] {
|
|
708
|
+
[data-ui-loading-overlay] > [data-part-scrim] > [data-part-panel] > [data-part-label],
|
|
709
|
+
[data-ui-loading-overlay] > [data-part-scrim] > [data-part-panel] > [data-part-description] {
|
|
727
710
|
display: none;
|
|
728
711
|
}
|
|
729
712
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
@layer slotted.components {
|
|
16
|
-
[data-ui
|
|
16
|
+
[data-ui-markdown][data-part-root] {
|
|
17
17
|
display: block;
|
|
18
18
|
min-inline-size: 0;
|
|
19
19
|
}
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
* than an inline box pulled by a negative margin, because the box is
|
|
27
27
|
* `checkbox`'s own grid and a grid does not sit on a line.
|
|
28
28
|
*
|
|
29
|
-
* The box is
|
|
29
|
+
* The box is centerd on the item's first line box: `1lh` is the item's line,
|
|
30
30
|
* and the checkbox's own line is its control type at the body line height,
|
|
31
|
-
* which is the height its lift already
|
|
31
|
+
* which is the height its lift already centers the square in.
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
|
-
[data-ui
|
|
34
|
+
[data-ui-markdown] [data-part-task] {
|
|
35
35
|
display: grid;
|
|
36
36
|
grid-template-columns:
|
|
37
37
|
calc(var(--slotted-prose-list-inset, 1.5em) + var(--slotted-prose-marker-gap, 0.25em))
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/* The box ends where an ordinary item's marker ends, one step before the text. */
|
|
45
|
-
[data-ui
|
|
45
|
+
[data-ui-markdown] [data-part-task] > :first-child {
|
|
46
46
|
justify-self: end;
|
|
47
47
|
margin-block-start: calc(
|
|
48
48
|
(1lh - var(--slotted-control-font-size-md, 13px) * var(--slotted-line-height-md, 1.5)) / 2
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
margin-inline-end: var(--slotted-markdown-task-gap, var(--slotted-space-3));
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
[data-ui
|
|
53
|
+
[data-ui-markdown] [data-part-task-body] {
|
|
54
54
|
min-inline-size: 0;
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -62,20 +62,20 @@
|
|
|
62
62
|
* gap on the block that arrives, the one direction `prose` spaces in.
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
|
-
[data-ui
|
|
65
|
+
[data-ui-markdown] [data-part-embed] {
|
|
66
66
|
margin-block: var(--slotted-prose-flow-normal, 1.15em) 0;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
[data-ui
|
|
69
|
+
[data-ui-markdown][data-flow='tight'] [data-part-embed] {
|
|
70
70
|
margin-block-start: var(--slotted-prose-flow-tight, 0.75em);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
[data-ui
|
|
73
|
+
[data-ui-markdown][data-flow='loose'] [data-part-embed] {
|
|
74
74
|
margin-block-start: var(--slotted-prose-flow-loose, 1.6em);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
[data-ui
|
|
78
|
-
[data-ui
|
|
77
|
+
[data-ui-markdown] [data-part-embed]:first-child,
|
|
78
|
+
[data-ui-markdown] [data-part-alert-body] > :first-child {
|
|
79
79
|
margin-block-start: 0;
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -87,15 +87,15 @@
|
|
|
87
87
|
* reader's eye ends on.
|
|
88
88
|
*/
|
|
89
89
|
|
|
90
|
-
[data-ui
|
|
90
|
+
[data-ui-markdown] :where(th, td)[data-align='start'] {
|
|
91
91
|
text-align: start;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
[data-ui
|
|
94
|
+
[data-ui-markdown] :where(th, td)[data-align='center'] {
|
|
95
95
|
text-align: center;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
[data-ui
|
|
98
|
+
[data-ui-markdown] :where(th, td)[data-align='end'] {
|
|
99
99
|
text-align: end;
|
|
100
100
|
}
|
|
101
101
|
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
* quarter, which reads the same in either direction and so is not mirrored.
|
|
107
107
|
*/
|
|
108
108
|
|
|
109
|
-
[data-ui
|
|
109
|
+
[data-ui-markdown] [data-part-backref] {
|
|
110
110
|
--_glyph: var(--slotted-markdown-backref-size, 0.9em);
|
|
111
111
|
--_box: var(--slotted-target-min, 24px);
|
|
112
112
|
--slotted-icon-size: var(--_glyph);
|
|
@@ -118,12 +118,12 @@
|
|
|
118
118
|
margin-inline-start: var(--slotted-space-1);
|
|
119
119
|
position: relative;
|
|
120
120
|
/* An inline box with nothing in flow sits on the baseline by its bottom
|
|
121
|
-
edge, so this puts its
|
|
121
|
+
edge, so this puts its center at half a capital above the baseline. */
|
|
122
122
|
vertical-align: calc(0.5cap - 0.5 * var(--_box));
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
/* Out of flow, so the box keeps the baseline of a box with nothing in it. */
|
|
126
|
-
[data-ui
|
|
126
|
+
[data-ui-markdown] [data-part-backref] > [data-ui-icon] {
|
|
127
127
|
inset: 0;
|
|
128
128
|
margin: auto;
|
|
129
129
|
position: absolute;
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
* paragraph's worth of space rather than as a banner.
|
|
138
138
|
*/
|
|
139
139
|
|
|
140
|
-
[data-ui
|
|
140
|
+
[data-ui-markdown] [data-part-empty] {
|
|
141
141
|
color: var(--slotted-text-muted);
|
|
142
142
|
font-family: var(--slotted-font-family-sans);
|
|
143
143
|
font-size: var(--slotted-font-size-md);
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
margin: 0;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
[data-ui
|
|
148
|
+
[data-ui-markdown] [data-part-error] {
|
|
149
149
|
align-items: center;
|
|
150
150
|
display: flex;
|
|
151
151
|
flex-wrap: wrap;
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
*/
|
|
160
160
|
|
|
161
161
|
@media print {
|
|
162
|
-
[data-ui
|
|
162
|
+
[data-ui-markdown] a[href^='http']::after {
|
|
163
163
|
content: ' (' attr(href) ')';
|
|
164
164
|
font-size: 0.875em;
|
|
165
165
|
overflow-wrap: anywhere;
|