@slotted/styles 0.1.0-beta.3 → 0.1.0-beta.31
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 +97 -97
- package/src/alert/alert.tokens.json +6 -1
- package/src/app-shell/app-shell.css +456 -329
- package/src/app-shell/app-shell.tokens.json +6 -3
- 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 +70 -67
- package/src/card/card.tokens.json +1 -0
- package/src/carousel/carousel.css +158 -169
- package/src/cascader/cascader.css +161 -159
- package/src/cascader/cascader.tokens.json +2 -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 +81 -80
- package/src/collapsible/collapsible.tokens.json +1 -0
- package/src/color-picker/color-picker.css +106 -114
- package/src/column-manager/column-manager.css +111 -119
- package/src/combobox/combobox.css +206 -132
- package/src/combobox/combobox.tokens.json +4 -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 +204 -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 +435 -199
- package/src/dialog/dialog.tokens.json +9 -0
- package/src/divider/divider.css +20 -20
- package/src/drawer/drawer.css +598 -237
- package/src/drawer/drawer.tokens.json +14 -0
- package/src/entity-picker/entity-picker.css +326 -272
- package/src/entity-picker/entity-picker.tokens.json +4 -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 +100 -26
- package/src/form/form.tokens.json +6 -1
- 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 +147 -168
- package/src/import-export-center/import-export-center.tokens.json +1 -0
- 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 +166 -83
- package/src/menu/menu.tokens.json +3 -1
- package/src/menubar/menubar.css +16 -16
- package/src/message/message.css +1253 -1246
- package/src/message/message.tokens.json +5 -0
- package/src/message-scroller/message-scroller.css +323 -320
- package/src/multi-select/multi-select.css +233 -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 +41 -27
- package/src/page/page.tokens.json +1 -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/popover/popover.css +85 -65
- package/src/popover/popover.tokens.json +2 -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 +95 -102
- package/src/result-state/result-state.tokens.json +1 -0
- package/src/runtime-properties.mjs +19 -6
- package/src/saved-views/saved-views.css +43 -49
- package/src/scroll-area/scroll-area.css +50 -37
- package/src/section/section.css +179 -44
- package/src/section/section.tokens.json +9 -3
- package/src/segmented-control/segmented-control.css +210 -133
- package/src/segmented-control/segmented-control.tokens.json +7 -11
- package/src/select/select.css +213 -149
- package/src/select/select.tokens.json +4 -0
- package/src/side-navigation/side-navigation.css +201 -198
- 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 +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 +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 +68 -74
- package/src/tour/tour.tokens.json +1 -0
- package/src/transfer/transfer.css +164 -168
- package/src/tree/tree.css +113 -121
- package/src/typography/typography.css +42 -38
- package/src/typography/typography.tokens.json +1 -0
- package/src/upload/upload.css +256 -257
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +187 -199
package/src/upload/upload.css
CHANGED
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
* trigger, so the trigger is what draws the ring, through `:has()`. Putting
|
|
14
14
|
* the label around the trigger rather than around the whole region is what
|
|
15
15
|
* makes the input's accessible name three words instead of every word in the
|
|
16
|
-
* box
|
|
17
|
-
* `docs/history/designs/2026-09-10-upload-design.md` §2.
|
|
16
|
+
* box.
|
|
18
17
|
*
|
|
19
18
|
* **The family owns its own container.** Four of its layout decisions answer
|
|
20
19
|
* the width of the box rather than the width of the window — a row folds its
|
|
@@ -31,8 +30,8 @@
|
|
|
31
30
|
* none of these, and states the same set for itself. They are declared once,
|
|
32
31
|
* for both, rather than copied into a second block that drifts from the first.
|
|
33
32
|
*/
|
|
34
|
-
[data-ui
|
|
35
|
-
[data-ui
|
|
33
|
+
[data-ui-upload][data-part-root],
|
|
34
|
+
[data-ui-upload][data-part-viewer] {
|
|
36
35
|
/**
|
|
37
36
|
* Type, glyph, control height and inner gap come from the control scales,
|
|
38
37
|
* the only ones the theme restates per density, so an upload inside a dense
|
|
@@ -61,7 +60,7 @@
|
|
|
61
60
|
* `alert` restated: the tone's `subtle-hover` is calibrated against the
|
|
62
61
|
* page, and these controls sit on a row that may already be tinted by its
|
|
63
62
|
* own status. `currentcolor` is legible on whatever ground it has by
|
|
64
|
-
* construction — it is the
|
|
63
|
+
* construction — it is the color the words beside it are read in.
|
|
65
64
|
*/
|
|
66
65
|
--_state-hover: color-mix(
|
|
67
66
|
in oklab,
|
|
@@ -146,9 +145,9 @@
|
|
|
146
145
|
);
|
|
147
146
|
|
|
148
147
|
/**
|
|
149
|
-
* The status the row is in decides one
|
|
148
|
+
* The status the row is in decides one color, and every part of the row
|
|
150
149
|
* that says something about the status reads it. Neutral by default, so a
|
|
151
|
-
* row that has not been sent yet says nothing in
|
|
150
|
+
* row that has not been sent yet says nothing in color at all.
|
|
152
151
|
*/
|
|
153
152
|
--_status-text: var(--slotted-text-muted);
|
|
154
153
|
--_item-surface: var(--slotted-upload-item-background, var(--slotted-surface));
|
|
@@ -175,7 +174,7 @@
|
|
|
175
174
|
}
|
|
176
175
|
|
|
177
176
|
/* The family itself: the column the reader sees in the page. */
|
|
178
|
-
[data-ui
|
|
177
|
+
[data-ui-upload][data-part-root] {
|
|
179
178
|
container-name: slotted-upload;
|
|
180
179
|
container-type: inline-size;
|
|
181
180
|
/**
|
|
@@ -193,7 +192,7 @@
|
|
|
193
192
|
gap: var(--_section-gap);
|
|
194
193
|
}
|
|
195
194
|
|
|
196
|
-
[data-ui
|
|
195
|
+
[data-ui-upload][data-size='sm'] {
|
|
197
196
|
--_font-size: var(--slotted-control-font-size-sm, 12px);
|
|
198
197
|
--_glyph-size: var(--slotted-control-icon-size-sm, 14px);
|
|
199
198
|
--_inner-size: var(--slotted-control-inner-size-sm, 22px);
|
|
@@ -202,7 +201,7 @@
|
|
|
202
201
|
--_gap: var(--slotted-control-gap-sm, 6px);
|
|
203
202
|
}
|
|
204
203
|
|
|
205
|
-
[data-ui
|
|
204
|
+
[data-ui-upload][data-size='lg'] {
|
|
206
205
|
--_font-size: var(--slotted-control-font-size-lg, 14px);
|
|
207
206
|
--_glyph-size: var(--slotted-control-icon-size-lg, 18px);
|
|
208
207
|
--_inner-size: var(--slotted-control-inner-size-lg, 28px);
|
|
@@ -217,13 +216,13 @@
|
|
|
217
216
|
* label row, the description and the error slot for every control in this
|
|
218
217
|
* library. They exist for the upload that stands on its own.
|
|
219
218
|
*/
|
|
220
|
-
[data-ui
|
|
219
|
+
[data-ui-upload] [data-part-label] {
|
|
221
220
|
color: var(--slotted-text);
|
|
222
221
|
flex: none;
|
|
223
222
|
font-weight: var(--slotted-upload-label-font-weight, var(--slotted-font-weight-medium, 500));
|
|
224
223
|
}
|
|
225
224
|
|
|
226
|
-
[data-ui
|
|
225
|
+
[data-ui-upload] [data-part-description] {
|
|
227
226
|
color: var(--slotted-text-muted);
|
|
228
227
|
flex: none;
|
|
229
228
|
margin: 0;
|
|
@@ -237,7 +236,7 @@
|
|
|
237
236
|
* reaches, and WCAG 2.2 SC 2.5.7 is discharged by its being there rather
|
|
238
237
|
* than by the region pretending to be a control.
|
|
239
238
|
*/
|
|
240
|
-
[data-ui
|
|
239
|
+
[data-ui-upload] [data-part-dropzone] {
|
|
241
240
|
--_zone-border-color: var(--_zone-edge);
|
|
242
241
|
--_zone-surface: var(--_zone-ground);
|
|
243
242
|
|
|
@@ -264,7 +263,7 @@
|
|
|
264
263
|
* the `dropzone` shape only. The `field` shape is one control's height and
|
|
265
264
|
* has no room for a second mark beside the trigger's.
|
|
266
265
|
*/
|
|
267
|
-
[data-ui
|
|
266
|
+
[data-ui-upload] [data-part-dropzone] > [data-ui-icon] {
|
|
268
267
|
--slotted-icon-size: var(--_zone-glyph-size);
|
|
269
268
|
|
|
270
269
|
color: var(--slotted-text-muted);
|
|
@@ -277,7 +276,7 @@
|
|
|
277
276
|
* ratio against the page and against the ground it encloses, and the ground
|
|
278
277
|
* alone would not.
|
|
279
278
|
*/
|
|
280
|
-
[data-ui
|
|
279
|
+
[data-ui-upload] [data-part-dropzone][data-drop-target] {
|
|
281
280
|
--_zone-border-color: var(--slotted-tone-accent-border);
|
|
282
281
|
--_zone-surface: var(--slotted-tone-accent-surface);
|
|
283
282
|
}
|
|
@@ -289,7 +288,7 @@
|
|
|
289
288
|
* the name or the size — so this is painted for a refusal that is already
|
|
290
289
|
* certain and never for one that is merely possible.
|
|
291
290
|
*/
|
|
292
|
-
[data-ui
|
|
291
|
+
[data-ui-upload] [data-part-dropzone][data-drop-invalid] {
|
|
293
292
|
--_zone-border-color: var(--slotted-tone-danger-border);
|
|
294
293
|
--_zone-surface: var(--slotted-tone-danger-surface);
|
|
295
294
|
}
|
|
@@ -301,19 +300,19 @@
|
|
|
301
300
|
* anything on hover.
|
|
302
301
|
*
|
|
303
302
|
* The edge takes the muted ink and the ground takes a share of the text
|
|
304
|
-
*
|
|
303
|
+
* color: four per cent on hover, eight on press. The shares are half the
|
|
305
304
|
* family's control state layer because the layer here covers a card-sized
|
|
306
305
|
* box rather than a glyph-sized one, and eight per cent across the whole
|
|
307
306
|
* region read as a disabled block. Four moves the sunken ground by 0.031 in
|
|
308
307
|
* OKLab L, above the 0.02 the theme holds every surface step to, and eight
|
|
309
308
|
* by 0.062.
|
|
310
309
|
*/
|
|
311
|
-
[data-ui
|
|
310
|
+
[data-ui-upload] [data-part-dropzone][data-browsable] {
|
|
312
311
|
cursor: pointer;
|
|
313
312
|
}
|
|
314
313
|
|
|
315
|
-
[data-ui
|
|
316
|
-
[data-part
|
|
314
|
+
[data-ui-upload]:not([data-disabled])
|
|
315
|
+
[data-part-dropzone][data-browsable]:not([data-drop-target], [data-drop-invalid]):hover {
|
|
317
316
|
--_zone-surface: color-mix(
|
|
318
317
|
in oklab,
|
|
319
318
|
var(--slotted-text) var(--slotted-upload-zone-state-layer-hover, 4%),
|
|
@@ -321,8 +320,8 @@
|
|
|
321
320
|
);
|
|
322
321
|
}
|
|
323
322
|
|
|
324
|
-
[data-ui
|
|
325
|
-
[data-part
|
|
323
|
+
[data-ui-upload]:not([data-disabled])
|
|
324
|
+
[data-part-dropzone][data-browsable]:not([data-drop-target], [data-drop-invalid]):active {
|
|
326
325
|
--_zone-surface: color-mix(
|
|
327
326
|
in oklab,
|
|
328
327
|
var(--slotted-text) var(--slotted-upload-zone-state-layer-active, 8%),
|
|
@@ -331,8 +330,8 @@
|
|
|
331
330
|
}
|
|
332
331
|
|
|
333
332
|
/* An invalid region keeps its danger edge under the pointer. */
|
|
334
|
-
[data-ui
|
|
335
|
-
[data-part
|
|
333
|
+
[data-ui-upload]:not([data-disabled], [data-invalid])
|
|
334
|
+
[data-part-dropzone][data-browsable]:not([data-drop-target], [data-drop-invalid]):is(
|
|
336
335
|
:hover,
|
|
337
336
|
:active
|
|
338
337
|
) {
|
|
@@ -344,24 +343,24 @@
|
|
|
344
343
|
* hover over the region around it, and the two answering at once drew two
|
|
345
344
|
* targets for one press.
|
|
346
345
|
*/
|
|
347
|
-
[data-ui
|
|
348
|
-
[data-part
|
|
349
|
-
[data-part
|
|
346
|
+
[data-ui-upload]:not([data-disabled])
|
|
347
|
+
[data-part-dropzone][data-browsable]:not([data-drop-target], [data-drop-invalid]):has(
|
|
348
|
+
[data-part-trigger]:hover
|
|
350
349
|
) {
|
|
351
350
|
--_zone-border-color: var(--_zone-edge);
|
|
352
351
|
--_zone-surface: var(--_zone-ground);
|
|
353
352
|
}
|
|
354
353
|
|
|
355
|
-
[data-ui
|
|
354
|
+
[data-ui-upload][data-disabled][data-part-root] {
|
|
356
355
|
--_zone-edge: var(--slotted-disabled-border);
|
|
357
356
|
--_zone-ground: var(--slotted-disabled-background);
|
|
358
357
|
}
|
|
359
358
|
|
|
360
|
-
[data-ui
|
|
359
|
+
[data-ui-upload][data-disabled] [data-part-dropzone] {
|
|
361
360
|
color: var(--slotted-disabled-foreground);
|
|
362
361
|
}
|
|
363
362
|
|
|
364
|
-
[data-ui
|
|
363
|
+
[data-ui-upload][data-invalid][data-part-root] {
|
|
365
364
|
--_zone-edge: var(--slotted-tone-danger-border);
|
|
366
365
|
}
|
|
367
366
|
|
|
@@ -372,7 +371,7 @@
|
|
|
372
371
|
* family's contract, and what is wanted is one control-height box that opens
|
|
373
372
|
* the picker natively.
|
|
374
373
|
*/
|
|
375
|
-
[data-ui
|
|
374
|
+
[data-ui-upload] [data-part-trigger] {
|
|
376
375
|
align-items: center;
|
|
377
376
|
background-color: var(--slotted-upload-trigger-background, var(--slotted-surface));
|
|
378
377
|
block-size: var(--_control-height);
|
|
@@ -403,11 +402,11 @@
|
|
|
403
402
|
* in the `dropzone` shape the region already carries it, and two of the same
|
|
404
403
|
* mark eighty pixels apart is one mark too many.
|
|
405
404
|
*/
|
|
406
|
-
[data-ui
|
|
405
|
+
[data-ui-upload] [data-part-trigger] > [data-ui-icon] {
|
|
407
406
|
--slotted-icon-size: var(--_glyph-size);
|
|
408
407
|
}
|
|
409
408
|
|
|
410
|
-
[data-ui
|
|
409
|
+
[data-ui-upload]:not([data-disabled]) [data-part-trigger]:hover {
|
|
411
410
|
background-color: var(--slotted-tone-secondary-subtle-hover);
|
|
412
411
|
}
|
|
413
412
|
|
|
@@ -415,12 +414,12 @@
|
|
|
415
414
|
* The trigger is drawn as a control and presses like `button` does: the
|
|
416
415
|
* ground takes the next step and the box settles by a hairline, at once.
|
|
417
416
|
*/
|
|
418
|
-
[data-ui
|
|
417
|
+
[data-ui-upload]:not([data-disabled]) [data-part-trigger]:active {
|
|
419
418
|
background-color: var(--slotted-tone-secondary-subtle-active);
|
|
420
419
|
translate: 0 var(--slotted-border-width-thin, 1px);
|
|
421
420
|
}
|
|
422
421
|
|
|
423
|
-
[data-ui
|
|
422
|
+
[data-ui-upload][data-disabled] [data-part-trigger] {
|
|
424
423
|
background-color: var(--slotted-disabled-background);
|
|
425
424
|
border-color: var(--slotted-disabled-border);
|
|
426
425
|
box-shadow: none;
|
|
@@ -432,16 +431,16 @@
|
|
|
432
431
|
* The ring belongs to the trigger and the focus belongs to the input inside
|
|
433
432
|
* it. A ring around a one-pixel input would be a ring around nothing.
|
|
434
433
|
*/
|
|
435
|
-
[data-ui
|
|
434
|
+
[data-ui-upload] [data-part-trigger]:has(:focus-visible) {
|
|
436
435
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
437
436
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
438
437
|
}
|
|
439
438
|
|
|
440
|
-
[data-ui
|
|
439
|
+
[data-ui-upload][data-invalid] [data-part-trigger] {
|
|
441
440
|
--slotted-focus-ring-color: var(--slotted-focus-ring-color-invalid);
|
|
442
441
|
|
|
443
442
|
border-color: var(--slotted-tone-danger-border);
|
|
444
|
-
/* Width as well as
|
|
443
|
+
/* Width as well as color (WCAG 1.4.1): in `high-contrast` the danger
|
|
445
444
|
border is the resting edge's black. The trigger is the control in both
|
|
446
445
|
shapes, so it carries the edge `text-field` draws — inside the border,
|
|
447
446
|
so nothing moves, in place of the resting lift; its focus is an outline
|
|
@@ -458,7 +457,7 @@
|
|
|
458
457
|
* stretching a transparent input across the region takes the drop away from
|
|
459
458
|
* the region and makes the drag state unobservable.
|
|
460
459
|
*/
|
|
461
|
-
[data-ui
|
|
460
|
+
[data-ui-upload] [data-part-input] {
|
|
462
461
|
block-size: 1px;
|
|
463
462
|
border: 0;
|
|
464
463
|
clip-path: inset(50%);
|
|
@@ -475,9 +474,9 @@
|
|
|
475
474
|
/**
|
|
476
475
|
* The family draws the ring on the trigger, so the one the browser would
|
|
477
476
|
* draw on the element holding focus has to go: `tree` moved its ring and
|
|
478
|
-
* forgot this, and a focused row carried two rings in two
|
|
477
|
+
* forgot this, and a focused row carried two rings in two colors.
|
|
479
478
|
*/
|
|
480
|
-
[data-ui
|
|
479
|
+
[data-ui-upload] [data-part-input]:focus-visible {
|
|
481
480
|
outline: none;
|
|
482
481
|
}
|
|
483
482
|
|
|
@@ -488,7 +487,7 @@
|
|
|
488
487
|
* drawn only when there is more than one file, because for a single file the
|
|
489
488
|
* row already says all of it.
|
|
490
489
|
*/
|
|
491
|
-
[data-ui
|
|
490
|
+
[data-ui-upload] [data-part-summary] {
|
|
492
491
|
align-items: center;
|
|
493
492
|
color: var(--slotted-text-muted);
|
|
494
493
|
display: flex;
|
|
@@ -497,7 +496,7 @@
|
|
|
497
496
|
justify-content: space-between;
|
|
498
497
|
}
|
|
499
498
|
|
|
500
|
-
[data-ui
|
|
499
|
+
[data-ui-upload] [data-part-clear] {
|
|
501
500
|
appearance: none;
|
|
502
501
|
flex: none;
|
|
503
502
|
white-space: nowrap;
|
|
@@ -515,20 +514,20 @@
|
|
|
515
514
|
var(--slotted-control-transition-easing);
|
|
516
515
|
}
|
|
517
516
|
|
|
518
|
-
[data-ui
|
|
517
|
+
[data-ui-upload] [data-part-clear]:enabled:hover {
|
|
519
518
|
background-color: var(--_state-hover);
|
|
520
519
|
}
|
|
521
520
|
|
|
522
|
-
[data-ui
|
|
521
|
+
[data-ui-upload] [data-part-clear]:enabled:active {
|
|
523
522
|
background-color: var(--_state-active);
|
|
524
523
|
}
|
|
525
524
|
|
|
526
|
-
[data-ui
|
|
525
|
+
[data-ui-upload] [data-part-clear]:disabled {
|
|
527
526
|
color: var(--slotted-disabled-foreground);
|
|
528
527
|
cursor: default;
|
|
529
528
|
}
|
|
530
529
|
|
|
531
|
-
[data-ui
|
|
530
|
+
[data-ui-upload] [data-part-clear]:focus-visible {
|
|
532
531
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
533
532
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
534
533
|
}
|
|
@@ -552,7 +551,7 @@
|
|
|
552
551
|
* between two — which is what says there is more below without a shadow, a
|
|
553
552
|
* gradient or a count.
|
|
554
553
|
*/
|
|
555
|
-
[data-ui
|
|
554
|
+
[data-ui-upload] [data-part-list] {
|
|
556
555
|
/** One row, from the parts a row is made of. Used twice below. */
|
|
557
556
|
--_row-block-size: calc(
|
|
558
557
|
max(var(--_preview-size), 2lh) + 2 * var(--_item-inset-block) + 2 * var(--_border-width) +
|
|
@@ -584,10 +583,10 @@
|
|
|
584
583
|
* A row is one object and it is laid out as a grid, not as a flex line. Four
|
|
585
584
|
* things follow from that, and all four were wrong in the shape before it.
|
|
586
585
|
*
|
|
587
|
-
* **The marks are
|
|
586
|
+
* **The marks are centerd on the block they are about.** The chip and the
|
|
588
587
|
* controls sit in the first track; the sentence a failure carries spans a
|
|
589
588
|
* second track underneath. So a row that has something to explain grows
|
|
590
|
-
* downwards and moves nothing:
|
|
589
|
+
* downwards and moves nothing: centering is over the name and its detail,
|
|
591
590
|
* which is what the chip and the controls are about, rather than over a box
|
|
592
591
|
* whose height a two-line message decided.
|
|
593
592
|
*
|
|
@@ -605,7 +604,7 @@
|
|
|
605
604
|
* text with icons beside it, and only a failed one had a box; a file is a
|
|
606
605
|
* thing the reader acts on, and it reads as one.
|
|
607
606
|
*/
|
|
608
|
-
[data-ui
|
|
607
|
+
[data-ui-upload] [data-part-item] {
|
|
609
608
|
align-items: center;
|
|
610
609
|
/*
|
|
611
610
|
* A row is never squeezed. Flex children shrink by default, so nine rows in
|
|
@@ -653,30 +652,30 @@
|
|
|
653
652
|
* controlled `files`; the promise is in `docs/process/build-order.md`.
|
|
654
653
|
*/
|
|
655
654
|
@starting-style {
|
|
656
|
-
[data-ui
|
|
655
|
+
[data-ui-upload] [data-part-item] {
|
|
657
656
|
opacity: 0;
|
|
658
657
|
translate: 0 calc(-1 * var(--slotted-space-2, 0.25rem));
|
|
659
658
|
}
|
|
660
659
|
}
|
|
661
660
|
|
|
662
|
-
[data-ui
|
|
661
|
+
[data-ui-upload] [data-part-item][data-status='success'] {
|
|
663
662
|
--_status-text: var(--slotted-tone-success-text);
|
|
664
663
|
}
|
|
665
664
|
|
|
666
665
|
/**
|
|
667
666
|
* A file the reader has chosen and not yet sent has a dashed edge: the edge
|
|
668
667
|
* the region has, which already means *waiting for something* in this
|
|
669
|
-
* family. It is said in line rather than in
|
|
670
|
-
* above — a row not yet sent says nothing in
|
|
671
|
-
* forced
|
|
668
|
+
* family. It is said in line rather than in color, which keeps the rule
|
|
669
|
+
* above — a row not yet sent says nothing in color — and it holds under
|
|
670
|
+
* forced colors, where the line survives and a tint does not. ReUI draws
|
|
672
671
|
* its `idle` attachment the same way (`c-attachment-5`).
|
|
673
672
|
*/
|
|
674
|
-
[data-ui
|
|
673
|
+
[data-ui-upload] [data-part-item][data-status='ready'] {
|
|
675
674
|
border-style: dashed;
|
|
676
675
|
}
|
|
677
676
|
|
|
678
|
-
[data-ui
|
|
679
|
-
[data-ui
|
|
677
|
+
[data-ui-upload] [data-part-item][data-status='paused'],
|
|
678
|
+
[data-ui-upload] [data-part-item][data-status='stalled'] {
|
|
680
679
|
--_status-text: var(--slotted-tone-warning-text);
|
|
681
680
|
}
|
|
682
681
|
|
|
@@ -686,31 +685,31 @@
|
|
|
686
685
|
* both need the reader to do something; a file the reader stopped themselves
|
|
687
686
|
* does not, so it stays neutral and only its word changes.
|
|
688
687
|
*/
|
|
689
|
-
[data-ui
|
|
690
|
-
[data-ui
|
|
688
|
+
[data-ui-upload] [data-part-item][data-status='rejected'],
|
|
689
|
+
[data-ui-upload] [data-part-item][data-status='error'] {
|
|
691
690
|
--_status-text: var(--slotted-tone-danger-text);
|
|
692
691
|
--_item-surface: var(--slotted-tone-danger-surface);
|
|
693
692
|
--_item-border: var(--slotted-tone-danger-border);
|
|
694
693
|
}
|
|
695
694
|
|
|
696
|
-
[data-ui
|
|
695
|
+
[data-ui-upload] [data-part-item][data-status='canceled'] {
|
|
697
696
|
--_status-text: var(--slotted-text-muted);
|
|
698
697
|
}
|
|
699
698
|
|
|
700
|
-
[data-ui
|
|
699
|
+
[data-ui-upload][data-disabled] [data-part-item] {
|
|
701
700
|
color: var(--slotted-disabled-foreground);
|
|
702
701
|
}
|
|
703
702
|
|
|
704
703
|
/* ── The chip ──────────────────────────────────────────────────────────
|
|
705
704
|
*
|
|
706
|
-
* A solid tile in the file's own
|
|
705
|
+
* A solid tile in the file's own color with the mark knocked out of it.
|
|
707
706
|
*
|
|
708
|
-
* The shape this replaced was a grey square with a
|
|
707
|
+
* The shape this replaced was a grey square with a colored mark inside, and
|
|
709
708
|
* the reviewer's reading of it was the right one: a wash of a tone at twelve
|
|
710
|
-
* per cent over a white page is not a
|
|
709
|
+
* per cent over a white page is not a color, it is a grey box with a color
|
|
711
710
|
* near it. A tile is a decision; a tint is an apology for not making one.
|
|
712
711
|
*
|
|
713
|
-
* The
|
|
712
|
+
* The colors are the ones a reader has already learnt from every product
|
|
714
713
|
* they use — a PDF red, a word-processed document blue, a spreadsheet green,
|
|
715
714
|
* a deck orange, a film indigo — and they are a scale of the theme's rather
|
|
716
715
|
* than five tones stretched over nine kinds, because the tones hold no second
|
|
@@ -722,7 +721,7 @@
|
|
|
722
721
|
* tile. `packages/themes/test/default-theme.test.mjs` measures all
|
|
723
722
|
* twenty-seven.
|
|
724
723
|
*/
|
|
725
|
-
[data-ui
|
|
724
|
+
[data-ui-upload] [data-part-preview] {
|
|
726
725
|
align-items: center;
|
|
727
726
|
background-color: var(--_kind-tile);
|
|
728
727
|
block-size: var(--_preview-size);
|
|
@@ -736,55 +735,55 @@
|
|
|
736
735
|
overflow: hidden;
|
|
737
736
|
}
|
|
738
737
|
|
|
739
|
-
[data-ui
|
|
738
|
+
[data-ui-upload] [data-part-preview] > img {
|
|
740
739
|
block-size: 100%;
|
|
741
740
|
inline-size: 100%;
|
|
742
741
|
object-fit: cover;
|
|
743
742
|
}
|
|
744
743
|
|
|
745
744
|
/* The kind's glyph, drawn by the binding when there is no picture to show. */
|
|
746
|
-
[data-ui
|
|
745
|
+
[data-ui-upload] [data-part-preview] > [data-ui-icon] {
|
|
747
746
|
--slotted-icon-size: var(--_glyph-size);
|
|
748
747
|
}
|
|
749
748
|
|
|
750
|
-
[data-ui
|
|
749
|
+
[data-ui-upload] [data-part-preview][data-kind='pdf'] {
|
|
751
750
|
--_kind-tile: var(--slotted-upload-kind-pdf);
|
|
752
751
|
}
|
|
753
752
|
|
|
754
|
-
[data-ui
|
|
753
|
+
[data-ui-upload] [data-part-preview][data-kind='document'] {
|
|
755
754
|
--_kind-tile: var(--slotted-upload-kind-document);
|
|
756
755
|
}
|
|
757
756
|
|
|
758
|
-
[data-ui
|
|
757
|
+
[data-ui-upload] [data-part-preview][data-kind='spreadsheet'] {
|
|
759
758
|
--_kind-tile: var(--slotted-upload-kind-spreadsheet);
|
|
760
759
|
}
|
|
761
760
|
|
|
762
|
-
[data-ui
|
|
761
|
+
[data-ui-upload] [data-part-preview][data-kind='presentation'] {
|
|
763
762
|
--_kind-tile: var(--slotted-upload-kind-presentation);
|
|
764
763
|
}
|
|
765
764
|
|
|
766
|
-
[data-ui
|
|
765
|
+
[data-ui-upload] [data-part-preview][data-kind='image'] {
|
|
767
766
|
--_kind-tile: var(--slotted-upload-kind-image);
|
|
768
767
|
}
|
|
769
768
|
|
|
770
|
-
[data-ui
|
|
769
|
+
[data-ui-upload] [data-part-preview][data-kind='video'] {
|
|
771
770
|
--_kind-tile: var(--slotted-upload-kind-video);
|
|
772
771
|
}
|
|
773
772
|
|
|
774
|
-
[data-ui
|
|
773
|
+
[data-ui-upload] [data-part-preview][data-kind='audio'] {
|
|
775
774
|
--_kind-tile: var(--slotted-upload-kind-audio);
|
|
776
775
|
}
|
|
777
776
|
|
|
778
|
-
[data-ui
|
|
777
|
+
[data-ui-upload] [data-part-preview][data-kind='archive'] {
|
|
779
778
|
--_kind-tile: var(--slotted-upload-kind-archive);
|
|
780
779
|
}
|
|
781
780
|
|
|
782
781
|
/*
|
|
783
782
|
* A tinted row keeps its tiles. The rule here was the other way round for one
|
|
784
|
-
* capture — the status took the tile's
|
|
783
|
+
* capture — the status took the tile's color, on the argument that what went
|
|
785
784
|
* wrong outranks what the file is — and the capture showed what it cost: a
|
|
786
785
|
* refused archive turned red on the one row whose message says archives are
|
|
787
|
-
* not accepted, so the
|
|
786
|
+
* not accepted, so the color stopped answering the question the reader had.
|
|
788
787
|
*
|
|
789
788
|
* The status has four signals already: the row's ground, its edge, its word
|
|
790
789
|
* and its sentence. The tile is about the file. Measured rather than assumed,
|
|
@@ -800,7 +799,7 @@
|
|
|
800
799
|
* is what makes a long name truncate instead of pushing the controls off the
|
|
801
800
|
* end.
|
|
802
801
|
*/
|
|
803
|
-
[data-ui
|
|
802
|
+
[data-ui-upload] [data-part-item] > [data-part-body] {
|
|
804
803
|
display: flex;
|
|
805
804
|
flex-direction: column;
|
|
806
805
|
gap: var(--_line-gap);
|
|
@@ -817,7 +816,7 @@
|
|
|
817
816
|
* `pdf.claim-form-2026-0914`. Found in the harness capture at `dir="rtl"`,
|
|
818
817
|
* where nothing failed and the name was backwards.
|
|
819
818
|
*/
|
|
820
|
-
[data-ui
|
|
819
|
+
[data-ui-upload] [data-part-filename] {
|
|
821
820
|
display: flex;
|
|
822
821
|
/*
|
|
823
822
|
* The name is the row's title and the detail line under it is at the same
|
|
@@ -841,7 +840,7 @@
|
|
|
841
840
|
* Nothing about it looks like a control until the pointer is on it — a list
|
|
842
841
|
* of nine underlined names is a list nobody can read.
|
|
843
842
|
*/
|
|
844
|
-
[data-ui
|
|
843
|
+
[data-ui-upload] button[data-part-filename] {
|
|
845
844
|
appearance: none;
|
|
846
845
|
background: none;
|
|
847
846
|
border: 0;
|
|
@@ -856,7 +855,7 @@
|
|
|
856
855
|
transition: translate var(--slotted-duration-instant) var(--slotted-control-transition-easing);
|
|
857
856
|
}
|
|
858
857
|
|
|
859
|
-
[data-ui
|
|
858
|
+
[data-ui-upload] button[data-part-filename]:enabled:hover {
|
|
860
859
|
text-decoration-line: underline;
|
|
861
860
|
text-underline-offset: 0.2em;
|
|
862
861
|
}
|
|
@@ -866,20 +865,20 @@
|
|
|
866
865
|
* a press answers in place: the name settles by a hairline — the answer
|
|
867
866
|
* `timeline` gives its group heading.
|
|
868
867
|
*/
|
|
869
|
-
[data-ui
|
|
868
|
+
[data-ui-upload] button[data-part-filename]:enabled:active {
|
|
870
869
|
text-decoration-line: underline;
|
|
871
870
|
text-underline-offset: 0.2em;
|
|
872
871
|
translate: 0 var(--slotted-border-width-thin, 1px);
|
|
873
872
|
}
|
|
874
873
|
|
|
875
|
-
[data-ui
|
|
874
|
+
[data-ui-upload] button[data-part-filename]:focus-visible {
|
|
876
875
|
border-radius: var(--slotted-control-radius, 4px);
|
|
877
876
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
878
877
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
879
878
|
}
|
|
880
879
|
|
|
881
880
|
/* In a wall of pictures the picture is the thing the reader is pointing at. */
|
|
882
|
-
[data-ui
|
|
881
|
+
[data-ui-upload][data-layout='grid'] button[data-part-preview] {
|
|
883
882
|
appearance: none;
|
|
884
883
|
border: 0;
|
|
885
884
|
cursor: pointer;
|
|
@@ -893,7 +892,7 @@
|
|
|
893
892
|
* the file is. CSS cannot truncate in the middle; the split is made at the
|
|
894
893
|
* last dot in the binding, and this is the half of the answer the sheet owes.
|
|
895
894
|
*/
|
|
896
|
-
[data-ui
|
|
895
|
+
[data-ui-upload] [data-part-name] {
|
|
897
896
|
flex: 0 1 auto;
|
|
898
897
|
min-inline-size: 0;
|
|
899
898
|
overflow: hidden;
|
|
@@ -901,12 +900,12 @@
|
|
|
901
900
|
white-space: nowrap;
|
|
902
901
|
}
|
|
903
902
|
|
|
904
|
-
[data-ui
|
|
903
|
+
[data-ui-upload] [data-part-extension] {
|
|
905
904
|
flex: none;
|
|
906
905
|
}
|
|
907
906
|
|
|
908
907
|
/** The second line: the size, then the word for what is happening to it. */
|
|
909
|
-
[data-ui
|
|
908
|
+
[data-ui-upload] [data-part-detail] {
|
|
910
909
|
align-items: baseline;
|
|
911
910
|
color: var(--slotted-text-muted);
|
|
912
911
|
display: flex;
|
|
@@ -916,16 +915,16 @@
|
|
|
916
915
|
min-inline-size: 0;
|
|
917
916
|
}
|
|
918
917
|
|
|
919
|
-
[data-ui
|
|
918
|
+
[data-ui-upload] [data-part-meta] {
|
|
920
919
|
font-variant-numeric: tabular-nums;
|
|
921
920
|
white-space: nowrap;
|
|
922
921
|
}
|
|
923
922
|
|
|
924
923
|
/**
|
|
925
|
-
* The word, in the
|
|
926
|
-
* WCAG 2.2 SC 1.4.1, which is why it is a word first and a
|
|
924
|
+
* The word, in the color the status set. A status said in color alone fails
|
|
925
|
+
* WCAG 2.2 SC 1.4.1, which is why it is a word first and a color second.
|
|
927
926
|
*/
|
|
928
|
-
[data-ui
|
|
927
|
+
[data-ui-upload] [data-part-status] {
|
|
929
928
|
color: var(--_status-text);
|
|
930
929
|
font-weight: var(--slotted-upload-status-font-weight, var(--slotted-font-weight-medium, 500));
|
|
931
930
|
min-inline-size: 0;
|
|
@@ -941,13 +940,13 @@
|
|
|
941
940
|
* it left an orphaned middot at the start of the second line, which is what
|
|
942
941
|
* the card at 720 pixels showed.
|
|
943
942
|
*/
|
|
944
|
-
[data-ui
|
|
943
|
+
[data-ui-upload] [data-part-meta]:has(+ [data-part-status])::after {
|
|
945
944
|
color: var(--slotted-text-muted);
|
|
946
945
|
content: ' ·';
|
|
947
946
|
margin-inline-end: 0.4em;
|
|
948
947
|
}
|
|
949
948
|
|
|
950
|
-
[data-ui
|
|
949
|
+
[data-ui-upload] [data-part-message] {
|
|
951
950
|
color: var(--_status-text);
|
|
952
951
|
font-size: var(--slotted-font-size-xs, 0.75rem);
|
|
953
952
|
line-height: var(--_leading);
|
|
@@ -962,7 +961,7 @@
|
|
|
962
961
|
* answer to one question, drifting from the first the moment either is
|
|
963
962
|
* retuned.
|
|
964
963
|
*/
|
|
965
|
-
[data-ui
|
|
964
|
+
[data-ui-upload] [data-part-progress] {
|
|
966
965
|
display: block;
|
|
967
966
|
inset-block-end: 0;
|
|
968
967
|
inset-inline: 0;
|
|
@@ -989,20 +988,20 @@
|
|
|
989
988
|
* is no column to keep and a row that offers one control no longer carries
|
|
990
989
|
* two empty slots to prove it.
|
|
991
990
|
*/
|
|
992
|
-
[data-ui
|
|
991
|
+
[data-ui-upload] [data-part-actions] {
|
|
993
992
|
display: inline-flex;
|
|
994
993
|
gap: var(--slotted-space-1, 0.125rem);
|
|
995
994
|
grid-area: actions;
|
|
996
995
|
justify-content: flex-end;
|
|
997
996
|
}
|
|
998
997
|
|
|
999
|
-
[data-ui
|
|
1000
|
-
[data-ui
|
|
1001
|
-
[data-ui
|
|
1002
|
-
[data-ui
|
|
1003
|
-
[data-ui
|
|
1004
|
-
[data-ui
|
|
1005
|
-
[data-ui
|
|
998
|
+
[data-ui-upload] [data-part-viewerexternal],
|
|
999
|
+
[data-ui-upload] [data-part-viewerclose],
|
|
1000
|
+
[data-ui-upload] [data-part-start],
|
|
1001
|
+
[data-ui-upload] [data-part-pause],
|
|
1002
|
+
[data-ui-upload] [data-part-retry],
|
|
1003
|
+
[data-ui-upload] [data-part-cancel],
|
|
1004
|
+
[data-ui-upload] [data-part-remove] {
|
|
1006
1005
|
align-items: center;
|
|
1007
1006
|
appearance: none;
|
|
1008
1007
|
background-color: transparent;
|
|
@@ -1028,86 +1027,86 @@
|
|
|
1028
1027
|
* pause, rotate-ccw, x and trash. A cross means *stop this* and a bin means
|
|
1029
1028
|
* *take it away*, because the marks appear together on one row.
|
|
1030
1029
|
*/
|
|
1031
|
-
[data-ui
|
|
1032
|
-
[data-ui
|
|
1033
|
-
[data-ui
|
|
1034
|
-
[data-ui
|
|
1035
|
-
[data-ui
|
|
1036
|
-
[data-ui
|
|
1037
|
-
[data-ui
|
|
1030
|
+
[data-ui-upload] [data-part-viewerexternal] > [data-ui-icon],
|
|
1031
|
+
[data-ui-upload] [data-part-viewerclose] > [data-ui-icon],
|
|
1032
|
+
[data-ui-upload] [data-part-start] > [data-ui-icon],
|
|
1033
|
+
[data-ui-upload] [data-part-pause] > [data-ui-icon],
|
|
1034
|
+
[data-ui-upload] [data-part-retry] > [data-ui-icon],
|
|
1035
|
+
[data-ui-upload] [data-part-cancel] > [data-ui-icon],
|
|
1036
|
+
[data-ui-upload] [data-part-remove] > [data-ui-icon] {
|
|
1038
1037
|
--slotted-icon-size: var(--_action-glyph-size);
|
|
1039
1038
|
}
|
|
1040
1039
|
|
|
1041
1040
|
/**
|
|
1042
1041
|
* On a finger the target is the comfortable size in both axes and the box
|
|
1043
|
-
* is the one a mouse sees: a transparent `::after`
|
|
1042
|
+
* is the one a mouse sees: a transparent `::after` centerd on each control
|
|
1044
1043
|
* reaches 44 pixels, and the ground and the ring stay square. The controls
|
|
1045
1044
|
* of one row stand two pixels apart, so none reaches across the edge it
|
|
1046
1045
|
* shares with the one beside it; between two of them each keeps its own
|
|
1047
1046
|
* width and is 44 tall.
|
|
1048
1047
|
*/
|
|
1049
1048
|
@media (pointer: coarse) {
|
|
1050
|
-
[data-ui
|
|
1049
|
+
[data-ui-upload]
|
|
1051
1050
|
:is(
|
|
1052
|
-
[data-part
|
|
1053
|
-
[data-part
|
|
1054
|
-
[data-part
|
|
1055
|
-
[data-part
|
|
1056
|
-
[data-part
|
|
1057
|
-
[data-part
|
|
1058
|
-
[data-part
|
|
1051
|
+
[data-part-viewerexternal],
|
|
1052
|
+
[data-part-viewerclose],
|
|
1053
|
+
[data-part-start],
|
|
1054
|
+
[data-part-pause],
|
|
1055
|
+
[data-part-retry],
|
|
1056
|
+
[data-part-cancel],
|
|
1057
|
+
[data-part-remove]
|
|
1059
1058
|
) {
|
|
1060
1059
|
position: relative;
|
|
1061
1060
|
}
|
|
1062
1061
|
|
|
1063
|
-
[data-ui
|
|
1062
|
+
[data-ui-upload]
|
|
1064
1063
|
:is(
|
|
1065
|
-
[data-part
|
|
1066
|
-
[data-part
|
|
1067
|
-
[data-part
|
|
1068
|
-
[data-part
|
|
1069
|
-
[data-part
|
|
1070
|
-
[data-part
|
|
1071
|
-
[data-part
|
|
1064
|
+
[data-part-viewerexternal],
|
|
1065
|
+
[data-part-viewerclose],
|
|
1066
|
+
[data-part-start],
|
|
1067
|
+
[data-part-pause],
|
|
1068
|
+
[data-part-retry],
|
|
1069
|
+
[data-part-cancel],
|
|
1070
|
+
[data-part-remove]
|
|
1072
1071
|
)::after {
|
|
1073
1072
|
content: '';
|
|
1074
1073
|
inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
1075
1074
|
position: absolute;
|
|
1076
1075
|
}
|
|
1077
1076
|
|
|
1078
|
-
[data-ui
|
|
1077
|
+
[data-ui-upload]
|
|
1079
1078
|
:is(
|
|
1080
|
-
[data-part
|
|
1081
|
-
[data-part
|
|
1082
|
-
[data-part
|
|
1083
|
-
[data-part
|
|
1084
|
-
[data-part
|
|
1079
|
+
[data-part-viewerexternal],
|
|
1080
|
+
[data-part-start],
|
|
1081
|
+
[data-part-pause],
|
|
1082
|
+
[data-part-retry],
|
|
1083
|
+
[data-part-cancel]
|
|
1085
1084
|
):has(
|
|
1086
1085
|
+ :is(
|
|
1087
|
-
[data-part
|
|
1088
|
-
[data-part
|
|
1089
|
-
[data-part
|
|
1090
|
-
[data-part
|
|
1091
|
-
[data-part
|
|
1086
|
+
[data-part-viewerclose],
|
|
1087
|
+
[data-part-pause],
|
|
1088
|
+
[data-part-retry],
|
|
1089
|
+
[data-part-cancel],
|
|
1090
|
+
[data-part-remove]
|
|
1092
1091
|
):not([hidden])
|
|
1093
1092
|
)::after {
|
|
1094
1093
|
inset-inline-end: 0;
|
|
1095
1094
|
}
|
|
1096
1095
|
|
|
1097
|
-
[data-ui
|
|
1096
|
+
[data-ui-upload]
|
|
1098
1097
|
:is(
|
|
1099
|
-
[data-part
|
|
1100
|
-
[data-part
|
|
1101
|
-
[data-part
|
|
1102
|
-
[data-part
|
|
1103
|
-
[data-part
|
|
1098
|
+
[data-part-viewerexternal],
|
|
1099
|
+
[data-part-start],
|
|
1100
|
+
[data-part-pause],
|
|
1101
|
+
[data-part-retry],
|
|
1102
|
+
[data-part-cancel]
|
|
1104
1103
|
):not([hidden])
|
|
1105
1104
|
+ :is(
|
|
1106
|
-
[data-part
|
|
1107
|
-
[data-part
|
|
1108
|
-
[data-part
|
|
1109
|
-
[data-part
|
|
1110
|
-
[data-part
|
|
1105
|
+
[data-part-viewerclose],
|
|
1106
|
+
[data-part-pause],
|
|
1107
|
+
[data-part-retry],
|
|
1108
|
+
[data-part-cancel],
|
|
1109
|
+
[data-part-remove]
|
|
1111
1110
|
)::after {
|
|
1112
1111
|
inset-inline-start: 0;
|
|
1113
1112
|
}
|
|
@@ -1118,44 +1117,44 @@
|
|
|
1118
1117
|
* and the reason it exists: a control the browser has already refused must
|
|
1119
1118
|
* not answer a pointer.
|
|
1120
1119
|
*/
|
|
1121
|
-
[data-ui
|
|
1122
|
-
[data-ui
|
|
1123
|
-
[data-ui
|
|
1124
|
-
[data-ui
|
|
1125
|
-
[data-ui
|
|
1126
|
-
[data-ui
|
|
1127
|
-
[data-ui
|
|
1120
|
+
[data-ui-upload] [data-part-viewerexternal]:enabled:hover,
|
|
1121
|
+
[data-ui-upload] [data-part-viewerclose]:enabled:hover,
|
|
1122
|
+
[data-ui-upload] [data-part-start]:enabled:hover,
|
|
1123
|
+
[data-ui-upload] [data-part-pause]:enabled:hover,
|
|
1124
|
+
[data-ui-upload] [data-part-retry]:enabled:hover,
|
|
1125
|
+
[data-ui-upload] [data-part-cancel]:enabled:hover,
|
|
1126
|
+
[data-ui-upload] [data-part-remove]:enabled:hover {
|
|
1128
1127
|
background-color: var(--_state-hover);
|
|
1129
1128
|
}
|
|
1130
1129
|
|
|
1131
|
-
[data-ui
|
|
1132
|
-
[data-ui
|
|
1133
|
-
[data-ui
|
|
1134
|
-
[data-ui
|
|
1135
|
-
[data-ui
|
|
1136
|
-
[data-ui
|
|
1137
|
-
[data-ui
|
|
1130
|
+
[data-ui-upload] [data-part-viewerexternal]:enabled:active,
|
|
1131
|
+
[data-ui-upload] [data-part-viewerclose]:enabled:active,
|
|
1132
|
+
[data-ui-upload] [data-part-start]:enabled:active,
|
|
1133
|
+
[data-ui-upload] [data-part-pause]:enabled:active,
|
|
1134
|
+
[data-ui-upload] [data-part-retry]:enabled:active,
|
|
1135
|
+
[data-ui-upload] [data-part-cancel]:enabled:active,
|
|
1136
|
+
[data-ui-upload] [data-part-remove]:enabled:active {
|
|
1138
1137
|
background-color: var(--_state-active);
|
|
1139
1138
|
}
|
|
1140
1139
|
|
|
1141
|
-
[data-ui
|
|
1142
|
-
[data-ui
|
|
1143
|
-
[data-ui
|
|
1144
|
-
[data-ui
|
|
1145
|
-
[data-ui
|
|
1146
|
-
[data-ui
|
|
1147
|
-
[data-ui
|
|
1140
|
+
[data-ui-upload] [data-part-viewerexternal]:disabled,
|
|
1141
|
+
[data-ui-upload] [data-part-viewerclose]:disabled,
|
|
1142
|
+
[data-ui-upload] [data-part-start]:disabled,
|
|
1143
|
+
[data-ui-upload] [data-part-pause]:disabled,
|
|
1144
|
+
[data-ui-upload] [data-part-retry]:disabled,
|
|
1145
|
+
[data-ui-upload] [data-part-cancel]:disabled,
|
|
1146
|
+
[data-ui-upload] [data-part-remove]:disabled {
|
|
1148
1147
|
color: var(--slotted-disabled-foreground);
|
|
1149
1148
|
cursor: default;
|
|
1150
1149
|
}
|
|
1151
1150
|
|
|
1152
|
-
[data-ui
|
|
1153
|
-
[data-ui
|
|
1154
|
-
[data-ui
|
|
1155
|
-
[data-ui
|
|
1156
|
-
[data-ui
|
|
1157
|
-
[data-ui
|
|
1158
|
-
[data-ui
|
|
1151
|
+
[data-ui-upload] [data-part-viewerexternal]:focus-visible,
|
|
1152
|
+
[data-ui-upload] [data-part-viewerclose]:focus-visible,
|
|
1153
|
+
[data-ui-upload] [data-part-start]:focus-visible,
|
|
1154
|
+
[data-ui-upload] [data-part-pause]:focus-visible,
|
|
1155
|
+
[data-ui-upload] [data-part-retry]:focus-visible,
|
|
1156
|
+
[data-ui-upload] [data-part-cancel]:focus-visible,
|
|
1157
|
+
[data-ui-upload] [data-part-remove]:focus-visible {
|
|
1159
1158
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
1160
1159
|
outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
|
|
1161
1160
|
}
|
|
@@ -1172,7 +1171,7 @@
|
|
|
1172
1171
|
* survives as the escape hatch inside the viewer, where a PDF is better read
|
|
1173
1172
|
* in the browser's own full window.
|
|
1174
1173
|
*/
|
|
1175
|
-
[data-ui
|
|
1174
|
+
[data-ui-upload][data-part-viewer] {
|
|
1176
1175
|
background-color: var(--slotted-surface);
|
|
1177
1176
|
block-size: 100%;
|
|
1178
1177
|
display: grid;
|
|
@@ -1189,7 +1188,7 @@
|
|
|
1189
1188
|
inline-size: 100%;
|
|
1190
1189
|
}
|
|
1191
1190
|
|
|
1192
|
-
[data-ui
|
|
1191
|
+
[data-ui-upload] [data-part-viewerheader] {
|
|
1193
1192
|
align-items: center;
|
|
1194
1193
|
border-block-end: var(--_border-width) solid var(--slotted-border-subtle);
|
|
1195
1194
|
column-gap: var(--_gap);
|
|
@@ -1199,7 +1198,7 @@
|
|
|
1199
1198
|
padding-inline: var(--slotted-space-6, 1rem);
|
|
1200
1199
|
}
|
|
1201
1200
|
|
|
1202
|
-
[data-ui
|
|
1201
|
+
[data-ui-upload] [data-part-viewertitle] {
|
|
1203
1202
|
font-size: var(--slotted-font-size-md, 0.875rem);
|
|
1204
1203
|
line-height: var(--_leading);
|
|
1205
1204
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
@@ -1209,13 +1208,13 @@
|
|
|
1209
1208
|
white-space: nowrap;
|
|
1210
1209
|
}
|
|
1211
1210
|
|
|
1212
|
-
[data-ui
|
|
1211
|
+
[data-ui-upload] [data-part-viewermeta] {
|
|
1213
1212
|
color: var(--slotted-text-muted);
|
|
1214
1213
|
font-size: var(--slotted-font-size-xs, 0.75rem);
|
|
1215
1214
|
line-height: var(--_leading);
|
|
1216
1215
|
}
|
|
1217
1216
|
|
|
1218
|
-
[data-ui
|
|
1217
|
+
[data-ui-upload] [data-part-vieweractions] {
|
|
1219
1218
|
align-items: center;
|
|
1220
1219
|
display: inline-flex;
|
|
1221
1220
|
gap: var(--slotted-space-1, 0.125rem);
|
|
@@ -1226,7 +1225,7 @@
|
|
|
1226
1225
|
* on it is the consumer's content and a photograph with a white border on a
|
|
1227
1226
|
* white page has no edge at all.
|
|
1228
1227
|
*/
|
|
1229
|
-
[data-ui
|
|
1228
|
+
[data-ui-upload] [data-part-viewerstage] {
|
|
1230
1229
|
background-color: var(--slotted-surface-sunken);
|
|
1231
1230
|
display: grid;
|
|
1232
1231
|
min-block-size: 0;
|
|
@@ -1251,8 +1250,8 @@
|
|
|
1251
1250
|
* a reader saw as an image running off the screen. `contain` is what keeps a
|
|
1252
1251
|
* portrait scan and a wide dashcam frame both whole in the same box.
|
|
1253
1252
|
*/
|
|
1254
|
-
[data-ui
|
|
1255
|
-
[data-ui
|
|
1253
|
+
[data-ui-upload] [data-part-viewerstage] > img,
|
|
1254
|
+
[data-ui-upload] [data-part-viewerstage] > iframe {
|
|
1256
1255
|
align-self: stretch;
|
|
1257
1256
|
block-size: auto;
|
|
1258
1257
|
inline-size: auto;
|
|
@@ -1261,7 +1260,7 @@
|
|
|
1261
1260
|
min-inline-size: 0;
|
|
1262
1261
|
}
|
|
1263
1262
|
|
|
1264
|
-
[data-ui
|
|
1263
|
+
[data-ui-upload] [data-part-viewerstage] > img {
|
|
1265
1264
|
object-fit: contain;
|
|
1266
1265
|
}
|
|
1267
1266
|
|
|
@@ -1272,14 +1271,14 @@
|
|
|
1272
1271
|
* no script. Both bindings state it; it is written here because a reader of
|
|
1273
1272
|
* this file will ask why one frame differs from the other.
|
|
1274
1273
|
*/
|
|
1275
|
-
[data-ui
|
|
1274
|
+
[data-ui-upload] [data-part-viewerstage] > iframe {
|
|
1276
1275
|
background-color: var(--slotted-surface);
|
|
1277
1276
|
border: 0;
|
|
1278
1277
|
}
|
|
1279
1278
|
|
|
1280
1279
|
/* Sized by the film rather than by the stage, and never past it. */
|
|
1281
|
-
[data-ui
|
|
1282
|
-
[data-ui
|
|
1280
|
+
[data-ui-upload] [data-part-viewerstage] > video,
|
|
1281
|
+
[data-ui-upload] [data-part-viewerstage] > audio {
|
|
1283
1282
|
max-block-size: 100%;
|
|
1284
1283
|
max-inline-size: 100%;
|
|
1285
1284
|
min-block-size: 0;
|
|
@@ -1292,12 +1291,12 @@
|
|
|
1292
1291
|
* because a browser cannot draw them and drawing them needs a server or a
|
|
1293
1292
|
* megabyte of engine — which is the honest answer rather than an empty box.
|
|
1294
1293
|
*/
|
|
1295
|
-
[data-ui
|
|
1294
|
+
[data-ui-upload] [data-part-viewerstage] > [data-part-preview] {
|
|
1296
1295
|
block-size: var(--slotted-upload-viewer-tile-size, 6rem);
|
|
1297
1296
|
inline-size: var(--slotted-upload-viewer-tile-size, 6rem);
|
|
1298
1297
|
}
|
|
1299
1298
|
|
|
1300
|
-
[data-ui
|
|
1299
|
+
[data-ui-upload] [data-part-viewerstage] > [data-part-preview] > [data-ui-icon] {
|
|
1301
1300
|
--slotted-icon-size: calc(3 * var(--_glyph-size));
|
|
1302
1301
|
}
|
|
1303
1302
|
|
|
@@ -1306,7 +1305,7 @@
|
|
|
1306
1305
|
* the defaults provider holds, so an application translates it once; the name
|
|
1307
1306
|
* and the way out are in the header, where they are for every other file.
|
|
1308
1307
|
*/
|
|
1309
|
-
[data-ui
|
|
1308
|
+
[data-ui-upload] [data-part-viewerstage] > p {
|
|
1310
1309
|
color: var(--slotted-text-muted);
|
|
1311
1310
|
margin: 0;
|
|
1312
1311
|
max-inline-size: 28ch;
|
|
@@ -1315,11 +1314,11 @@
|
|
|
1315
1314
|
|
|
1316
1315
|
/*
|
|
1317
1316
|
* The unsupported stage is a column rather than a grid. Read at 720 pixels as
|
|
1318
|
-
* a grid, the tile and its sentence landed in two cells that
|
|
1319
|
-
* different axes and sat diagonally apart; a column of two things
|
|
1317
|
+
* a grid, the tile and its sentence landed in two cells that centerd against
|
|
1318
|
+
* different axes and sat diagonally apart; a column of two things centerd is
|
|
1320
1319
|
* one rule with one meaning.
|
|
1321
1320
|
*/
|
|
1322
|
-
[data-ui
|
|
1321
|
+
[data-ui-upload] [data-part-viewerstage]:has(> [data-part-preview]) {
|
|
1323
1322
|
align-items: center;
|
|
1324
1323
|
display: flex;
|
|
1325
1324
|
flex-direction: column;
|
|
@@ -1332,8 +1331,8 @@
|
|
|
1332
1331
|
* the header, where the reader's pointer already is, and they are held off
|
|
1333
1332
|
* the edge so a photograph that fills the stage is not covered at its corner.
|
|
1334
1333
|
*/
|
|
1335
|
-
[data-ui
|
|
1336
|
-
[data-ui
|
|
1334
|
+
[data-ui-upload] [data-part-viewerprevious],
|
|
1335
|
+
[data-ui-upload] [data-part-viewernext] {
|
|
1337
1336
|
align-items: center;
|
|
1338
1337
|
appearance: none;
|
|
1339
1338
|
background-color: color-mix(
|
|
@@ -1358,11 +1357,11 @@
|
|
|
1358
1357
|
translate var(--slotted-duration-instant) var(--slotted-control-transition-easing);
|
|
1359
1358
|
}
|
|
1360
1359
|
|
|
1361
|
-
[data-ui
|
|
1360
|
+
[data-ui-upload] [data-part-viewerprevious] {
|
|
1362
1361
|
inset-inline-start: var(--slotted-space-5, 0.75rem);
|
|
1363
1362
|
}
|
|
1364
1363
|
|
|
1365
|
-
[data-ui
|
|
1364
|
+
[data-ui-upload] [data-part-viewernext] {
|
|
1366
1365
|
inset-inline-end: var(--slotted-space-5, 0.75rem);
|
|
1367
1366
|
}
|
|
1368
1367
|
|
|
@@ -1372,12 +1371,12 @@
|
|
|
1372
1371
|
* chevron rather than a pair. The binding marks both icons `directional`, so
|
|
1373
1372
|
* they mirror where reading runs right to left.
|
|
1374
1373
|
*/
|
|
1375
|
-
[data-ui
|
|
1376
|
-
[data-ui
|
|
1374
|
+
[data-ui-upload] [data-part-viewerprevious] > [data-ui-icon],
|
|
1375
|
+
[data-ui-upload] [data-part-viewernext] > [data-ui-icon] {
|
|
1377
1376
|
--slotted-icon-size: var(--_glyph-size);
|
|
1378
1377
|
}
|
|
1379
1378
|
|
|
1380
|
-
[data-ui
|
|
1379
|
+
[data-ui-upload] [data-part-viewerprevious] > [data-ui-icon] {
|
|
1381
1380
|
rotate: 180deg;
|
|
1382
1381
|
}
|
|
1383
1382
|
|
|
@@ -1387,8 +1386,8 @@
|
|
|
1387
1386
|
* is mixed into the plate instead, which keeps it opaque over the photograph
|
|
1388
1387
|
* and steps it by the amount every other control in the family steps.
|
|
1389
1388
|
*/
|
|
1390
|
-
[data-ui
|
|
1391
|
-
[data-ui
|
|
1389
|
+
[data-ui-upload] [data-part-viewerprevious]:enabled:hover,
|
|
1390
|
+
[data-ui-upload] [data-part-viewernext]:enabled:hover {
|
|
1392
1391
|
background-color: color-mix(
|
|
1393
1392
|
in oklab,
|
|
1394
1393
|
currentcolor var(--slotted-upload-state-layer-hover, 8%),
|
|
@@ -1396,8 +1395,8 @@
|
|
|
1396
1395
|
);
|
|
1397
1396
|
}
|
|
1398
1397
|
|
|
1399
|
-
[data-ui
|
|
1400
|
-
[data-ui
|
|
1398
|
+
[data-ui-upload] [data-part-viewerprevious]:enabled:active,
|
|
1399
|
+
[data-ui-upload] [data-part-viewernext]:enabled:active {
|
|
1401
1400
|
background-color: color-mix(
|
|
1402
1401
|
in oklab,
|
|
1403
1402
|
currentcolor var(--slotted-upload-state-layer-active, 14%),
|
|
@@ -1406,14 +1405,14 @@
|
|
|
1406
1405
|
translate: 0 var(--slotted-border-width-thin, 1px);
|
|
1407
1406
|
}
|
|
1408
1407
|
|
|
1409
|
-
[data-ui
|
|
1410
|
-
[data-ui
|
|
1408
|
+
[data-ui-upload] [data-part-viewerprevious]:disabled,
|
|
1409
|
+
[data-ui-upload] [data-part-viewernext]:disabled {
|
|
1411
1410
|
color: var(--slotted-disabled-foreground);
|
|
1412
1411
|
cursor: default;
|
|
1413
1412
|
}
|
|
1414
1413
|
|
|
1415
|
-
[data-ui
|
|
1416
|
-
[data-ui
|
|
1414
|
+
[data-ui-upload] [data-part-viewerprevious]:focus-visible,
|
|
1415
|
+
[data-ui-upload] [data-part-viewernext]:focus-visible {
|
|
1417
1416
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
1418
1417
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
1419
1418
|
}
|
|
@@ -1430,9 +1429,9 @@
|
|
|
1430
1429
|
* is a third place the DOM is written and a scene that puts an upload in a
|
|
1431
1430
|
* field has to look like the form does.
|
|
1432
1431
|
*/
|
|
1433
|
-
[data-ui
|
|
1434
|
-
[data-ui
|
|
1435
|
-
[data-ui
|
|
1432
|
+
[data-ui-field] [data-ui-upload] > [data-part-label],
|
|
1433
|
+
[data-ui-field] [data-ui-upload] > [data-part-description],
|
|
1434
|
+
[data-ui-field] [data-ui-upload] > [data-part-message] {
|
|
1436
1435
|
display: none;
|
|
1437
1436
|
}
|
|
1438
1437
|
|
|
@@ -1442,7 +1441,7 @@
|
|
|
1442
1441
|
* one step: the region, the summary and the list are one block rather than
|
|
1443
1442
|
* three things with a paragraph's air between them.
|
|
1444
1443
|
*/
|
|
1445
|
-
[data-ui
|
|
1444
|
+
[data-ui-field] [data-ui-upload][data-part-root] {
|
|
1446
1445
|
--_section-gap: var(--slotted-upload-field-section-gap, var(--slotted-space-4, 0.5rem));
|
|
1447
1446
|
}
|
|
1448
1447
|
|
|
@@ -1452,7 +1451,7 @@
|
|
|
1452
1451
|
* is still a target; what it does not do is claim a box the size of a card
|
|
1453
1452
|
* for an application that wanted a button.
|
|
1454
1453
|
*/
|
|
1455
|
-
[data-ui
|
|
1454
|
+
[data-ui-upload][data-variant='button'] [data-part-trigger] {
|
|
1456
1455
|
align-self: start;
|
|
1457
1456
|
}
|
|
1458
1457
|
|
|
@@ -1467,15 +1466,15 @@
|
|
|
1467
1466
|
* The frame a text field has, at rest. It moves the region's resting pair
|
|
1468
1467
|
* rather than painting over it, so the family's states — invalid, disabled,
|
|
1469
1468
|
* the drag verdict, a pointer — reach this shape as they reach the other:
|
|
1470
|
-
* written as a border
|
|
1469
|
+
* written as a border color on the region, it held one color through all
|
|
1471
1470
|
* of them. `:where` keeps it below the invalid and disabled pair.
|
|
1472
1471
|
*/
|
|
1473
|
-
[data-ui
|
|
1472
|
+
[data-ui-upload][data-variant='field']:where([data-part-root]) {
|
|
1474
1473
|
--_zone-edge: var(--slotted-control-border-color);
|
|
1475
1474
|
--_zone-ground: var(--slotted-control-surface, Field);
|
|
1476
1475
|
}
|
|
1477
1476
|
|
|
1478
|
-
[data-ui
|
|
1477
|
+
[data-ui-upload][data-variant='field'] [data-part-dropzone] {
|
|
1479
1478
|
align-items: center;
|
|
1480
1479
|
border-style: solid;
|
|
1481
1480
|
border-width: var(--slotted-control-border-width, 1px);
|
|
@@ -1493,13 +1492,13 @@
|
|
|
1493
1492
|
* controls move to the corner of the picture, where they are over the one
|
|
1494
1493
|
* thing the reader is pointing at.
|
|
1495
1494
|
*/
|
|
1496
|
-
[data-ui
|
|
1495
|
+
[data-ui-upload][data-layout='grid'] [data-part-list] {
|
|
1497
1496
|
display: grid;
|
|
1498
1497
|
gap: var(--_gap);
|
|
1499
1498
|
grid-template-columns: repeat(auto-fill, minmax(var(--slotted-upload-card-measure, 9rem), 1fr));
|
|
1500
1499
|
}
|
|
1501
1500
|
|
|
1502
|
-
[data-ui
|
|
1501
|
+
[data-ui-upload][data-layout='grid'] [data-part-item] {
|
|
1503
1502
|
/*
|
|
1504
1503
|
* Cards in one row share its height, and the spare height of the shorter
|
|
1505
1504
|
* ones goes under their content rather than between the picture and the
|
|
@@ -1523,14 +1522,14 @@
|
|
|
1523
1522
|
* the height: 117.66 at 720 pixels, with every edge under it blurred. The
|
|
1524
1523
|
* card is a container, so `cqi` is the width the picture fills.
|
|
1525
1524
|
*/
|
|
1526
|
-
[data-ui
|
|
1525
|
+
[data-ui-upload][data-layout='grid'] [data-part-preview] {
|
|
1527
1526
|
block-size: round(down, calc(100cqi * 3 / 4), 1px);
|
|
1528
1527
|
inline-size: 100%;
|
|
1529
1528
|
}
|
|
1530
1529
|
|
|
1531
1530
|
/**
|
|
1532
1531
|
* Over the picture, the controls need a ground of their own: the consumer's
|
|
1533
|
-
* photograph is any
|
|
1532
|
+
* photograph is any color, and a dark mark on a mid-blue sky was the reading
|
|
1534
1533
|
* the first capture at 720 pixels gave. The ground is on the group rather than
|
|
1535
1534
|
* on each control, so the five keep the frameless rest state R2 requires of
|
|
1536
1535
|
* them and the reader still gets one legible plate.
|
|
@@ -1546,7 +1545,7 @@
|
|
|
1546
1545
|
* the frameless rest state R2 requires of them and the reader still gets one
|
|
1547
1546
|
* legible plate.
|
|
1548
1547
|
*/
|
|
1549
|
-
[data-ui
|
|
1548
|
+
[data-ui-upload][data-layout='grid'] [data-part-actions] {
|
|
1550
1549
|
background-color: color-mix(
|
|
1551
1550
|
in oklab,
|
|
1552
1551
|
var(--slotted-surface) var(--slotted-upload-card-actions-opacity, 96%),
|
|
@@ -1568,7 +1567,7 @@
|
|
|
1568
1567
|
* three letters than by the silhouette. It is drawn from the attribute the
|
|
1569
1568
|
* binding already writes, so the label costs no element.
|
|
1570
1569
|
*/
|
|
1571
|
-
[data-ui
|
|
1570
|
+
[data-ui-upload][data-layout='grid'] [data-part-preview]:not(:has(img))::after {
|
|
1572
1571
|
content: attr(data-extension);
|
|
1573
1572
|
font-size: var(--slotted-font-size-sm, 0.8125rem);
|
|
1574
1573
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
@@ -1578,7 +1577,7 @@
|
|
|
1578
1577
|
}
|
|
1579
1578
|
|
|
1580
1579
|
/* A card's tile carries a mark the size of the card, not the size of a row. */
|
|
1581
|
-
[data-ui
|
|
1580
|
+
[data-ui-upload][data-layout='grid'] [data-part-preview] > [data-ui-icon] {
|
|
1582
1581
|
--slotted-icon-size: calc(2 * var(--_glyph-size));
|
|
1583
1582
|
}
|
|
1584
1583
|
|
|
@@ -1595,7 +1594,7 @@
|
|
|
1595
1594
|
* words broke across two lines with the underline broken between them.
|
|
1596
1595
|
*/
|
|
1597
1596
|
@container slotted-upload (max-width: 30rem) {
|
|
1598
|
-
[data-ui
|
|
1597
|
+
[data-ui-upload] [data-part-summary] {
|
|
1599
1598
|
align-items: start;
|
|
1600
1599
|
flex-direction: column;
|
|
1601
1600
|
}
|
|
@@ -1605,10 +1604,10 @@
|
|
|
1605
1604
|
/*
|
|
1606
1605
|
* The chip keeps the start of the row and the controls drop under the text,
|
|
1607
1606
|
* because at this width three of them beside a name leave the name seven
|
|
1608
|
-
* characters. The chip spans both rows, so the block it is
|
|
1607
|
+
* characters. The chip spans both rows, so the block it is centerd on is
|
|
1609
1608
|
* still the block it is about.
|
|
1610
1609
|
*/
|
|
1611
|
-
[data-ui
|
|
1610
|
+
[data-ui-upload] [data-part-item] {
|
|
1612
1611
|
grid-template-areas:
|
|
1613
1612
|
'preview body'
|
|
1614
1613
|
'preview actions'
|
|
@@ -1616,47 +1615,47 @@
|
|
|
1616
1615
|
grid-template-columns: auto minmax(0, 1fr);
|
|
1617
1616
|
}
|
|
1618
1617
|
|
|
1619
|
-
[data-ui
|
|
1618
|
+
[data-ui-upload] [data-part-preview] {
|
|
1620
1619
|
align-self: start;
|
|
1621
1620
|
}
|
|
1622
1621
|
|
|
1623
|
-
[data-ui
|
|
1622
|
+
[data-ui-upload] [data-part-actions] {
|
|
1624
1623
|
justify-content: flex-start;
|
|
1625
1624
|
margin-inline-start: calc(-1 * var(--slotted-space-2, 0.25rem));
|
|
1626
1625
|
}
|
|
1627
1626
|
|
|
1628
|
-
[data-ui
|
|
1627
|
+
[data-ui-upload] [data-part-dropzone] {
|
|
1629
1628
|
padding-block: var(--slotted-space-6, 1rem);
|
|
1630
1629
|
}
|
|
1631
1630
|
}
|
|
1632
1631
|
|
|
1633
|
-
/* ── Forced
|
|
1632
|
+
/* ── Forced colors ────────────────────────────────────────────────────
|
|
1634
1633
|
*
|
|
1635
|
-
* The theme remaps every semantic token to a system
|
|
1636
|
-
* reads tokens needs no rule of its own for
|
|
1637
|
-
* region's dashed edge, whose
|
|
1634
|
+
* The theme remaps every semantic token to a system color, so a family that
|
|
1635
|
+
* reads tokens needs no rule of its own for color. What it does need is the
|
|
1636
|
+
* region's dashed edge, whose color comes from a token that becomes
|
|
1638
1637
|
* `CanvasText` — correct — and the row tint, which the system flattens to
|
|
1639
1638
|
* `Canvas` and which then leaves the failed row saying nothing. The border
|
|
1640
1639
|
* carries it there instead.
|
|
1641
1640
|
*/
|
|
1642
1641
|
@media (forced-colors: active) {
|
|
1643
|
-
[data-ui
|
|
1644
|
-
[data-ui
|
|
1642
|
+
[data-ui-upload] [data-part-item][data-status='rejected'],
|
|
1643
|
+
[data-ui-upload] [data-part-item][data-status='error'] {
|
|
1645
1644
|
--_item-border: CanvasText;
|
|
1646
1645
|
}
|
|
1647
1646
|
|
|
1648
1647
|
/*
|
|
1649
1648
|
* The theme maps every kind to `ButtonFace` and the foreground to
|
|
1650
1649
|
* `ButtonText`, so the tile is still a tile and the mark is still knocked
|
|
1651
|
-
* out of it — in the system's two
|
|
1650
|
+
* out of it — in the system's two colors rather than in nine. What kind a
|
|
1652
1651
|
* file is, is then said by its shape, which is what survives this mode.
|
|
1653
1652
|
*/
|
|
1654
|
-
[data-ui
|
|
1653
|
+
[data-ui-upload] [data-part-preview] {
|
|
1655
1654
|
border: var(--_border-width) solid ButtonBorder;
|
|
1656
1655
|
}
|
|
1657
1656
|
|
|
1658
|
-
[data-ui
|
|
1659
|
-
[data-ui
|
|
1657
|
+
[data-ui-upload] [data-part-dropzone][data-drop-target],
|
|
1658
|
+
[data-ui-upload] [data-part-dropzone][data-drop-invalid] {
|
|
1660
1659
|
--_zone-border-color: Highlight;
|
|
1661
1660
|
}
|
|
1662
1661
|
|
|
@@ -1666,18 +1665,18 @@
|
|
|
1666
1665
|
* the reader could see. The system's own pair answers instead — the one
|
|
1667
1666
|
* `alert` gives its dismiss.
|
|
1668
1667
|
*/
|
|
1669
|
-
[data-ui
|
|
1668
|
+
[data-ui-upload]
|
|
1670
1669
|
:is(
|
|
1671
|
-
[data-part
|
|
1672
|
-
[data-part
|
|
1673
|
-
[data-part
|
|
1674
|
-
[data-part
|
|
1675
|
-
[data-part
|
|
1676
|
-
[data-part
|
|
1677
|
-
[data-part
|
|
1678
|
-
[data-part
|
|
1679
|
-
[data-part
|
|
1680
|
-
[data-part
|
|
1670
|
+
[data-part-clear],
|
|
1671
|
+
[data-part-viewerexternal],
|
|
1672
|
+
[data-part-viewerclose],
|
|
1673
|
+
[data-part-viewerprevious],
|
|
1674
|
+
[data-part-viewernext],
|
|
1675
|
+
[data-part-start],
|
|
1676
|
+
[data-part-pause],
|
|
1677
|
+
[data-part-retry],
|
|
1678
|
+
[data-part-cancel],
|
|
1679
|
+
[data-part-remove]
|
|
1681
1680
|
):enabled:is(:hover, :active) {
|
|
1682
1681
|
background-color: Highlight;
|
|
1683
1682
|
color: HighlightText;
|
|
@@ -1685,19 +1684,19 @@
|
|
|
1685
1684
|
}
|
|
1686
1685
|
|
|
1687
1686
|
/*
|
|
1688
|
-
* Forced
|
|
1687
|
+
* Forced colors remove every box shadow, and the edge with them. The width
|
|
1689
1688
|
* comes back as an outline inside the border, and where focus draws the ring
|
|
1690
1689
|
* on the same box an invalid ring is double, which a valid one is not.
|
|
1691
1690
|
*/
|
|
1692
1691
|
@media (forced-colors: active) {
|
|
1693
|
-
[data-ui
|
|
1692
|
+
[data-ui-upload][data-invalid] [data-part-trigger] {
|
|
1694
1693
|
outline: var(--_invalid-edge-width) solid CanvasText;
|
|
1695
1694
|
outline-offset: calc(
|
|
1696
1695
|
-1 * (var(--slotted-control-border-width, 1px) + var(--_invalid-edge-width))
|
|
1697
1696
|
);
|
|
1698
1697
|
}
|
|
1699
1698
|
|
|
1700
|
-
[data-ui
|
|
1699
|
+
[data-ui-upload][data-invalid] [data-part-trigger]:has(:focus-visible) {
|
|
1701
1700
|
outline: calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double
|
|
1702
1701
|
var(--slotted-focus-ring-color, Highlight);
|
|
1703
1702
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|