@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
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* transfers files; this family does neither. The two share the file
|
|
10
10
|
* vocabulary of `@slotted/core/upload` and the kind scale
|
|
11
11
|
* `--slotted-upload-kind-*`, and nothing else
|
|
12
|
-
|
|
12
|
+
*.
|
|
13
13
|
*
|
|
14
14
|
* **The whole attachment is the target, and the actions stay beside it.**
|
|
15
15
|
* The trigger is a real `a` or `button` holding the file name, and a
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
* resolves the same size step its attachments do, because a grid of cards
|
|
24
24
|
* sizes its tracks from the card.
|
|
25
25
|
*/
|
|
26
|
-
[data-ui
|
|
27
|
-
[data-ui
|
|
26
|
+
[data-ui-attachment][data-part-root],
|
|
27
|
+
[data-ui-attachment][data-part-group] {
|
|
28
28
|
/**
|
|
29
29
|
* Type and glyph come from the control scales, the ones the theme restates
|
|
30
30
|
* per density, so an attachment inside a dense form shrinks with the
|
|
@@ -87,14 +87,14 @@
|
|
|
87
87
|
);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
[data-ui
|
|
90
|
+
[data-ui-attachment][data-size='sm']:is([data-part-root], [data-part-group]) {
|
|
91
91
|
--_font-size: var(--slotted-control-font-size-sm, 12px);
|
|
92
92
|
--_glyph-size: var(--slotted-control-icon-size-sm, 14px);
|
|
93
93
|
--_gap: var(--slotted-control-gap-sm, 6px);
|
|
94
94
|
--_inset: var(--slotted-attachment-padding-sm, var(--slotted-space-3, 0.375rem));
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
[data-ui
|
|
97
|
+
[data-ui-attachment][data-size='lg']:is([data-part-root], [data-part-group]) {
|
|
98
98
|
--_font-size: var(--slotted-control-font-size-lg, 14px);
|
|
99
99
|
--_glyph-size: var(--slotted-control-icon-size-lg, 18px);
|
|
100
100
|
--_gap: var(--slotted-control-gap-lg, 8px);
|
|
@@ -104,12 +104,12 @@
|
|
|
104
104
|
/* ── One attachment ────────────────────────────────────────────────────
|
|
105
105
|
*
|
|
106
106
|
* Laid out as a grid rather than a flex line, for the reason `upload` gives
|
|
107
|
-
* its row: the tile and the actions are
|
|
107
|
+
* its row: the tile and the actions are centerd on the name and its detail,
|
|
108
108
|
* and a sentence under them — the message — grows the attachment downwards
|
|
109
109
|
* without moving either. The message starts under the name, not under the
|
|
110
110
|
* tile, so its first letter lines up with the name's.
|
|
111
111
|
*/
|
|
112
|
-
[data-ui
|
|
112
|
+
[data-ui-attachment][data-part-root] {
|
|
113
113
|
/**
|
|
114
114
|
* What the attachment is painted with at rest. A state of the file —
|
|
115
115
|
* invalid — moves these two; a pointer on the trigger moves `--_fill`,
|
|
@@ -187,22 +187,22 @@
|
|
|
187
187
|
* the gap beside it, and an attachment without actions ended its name eight
|
|
188
188
|
* pixels short of the edge it could have used.
|
|
189
189
|
*/
|
|
190
|
-
[data-ui
|
|
190
|
+
[data-ui-attachment][data-part-root]:not(:has(> [data-part-actions])) {
|
|
191
191
|
grid-template-areas:
|
|
192
192
|
'preview body'
|
|
193
193
|
'. message';
|
|
194
194
|
grid-template-columns: auto minmax(0, 1fr);
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
[data-ui
|
|
197
|
+
[data-ui-attachment][data-part-root]:not(:has(> [data-part-preview])) {
|
|
198
198
|
grid-template-areas:
|
|
199
199
|
'body actions'
|
|
200
200
|
'message message';
|
|
201
201
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
[data-ui
|
|
205
|
-
:has(> [data-part
|
|
204
|
+
[data-ui-attachment][data-part-root]:not(:has(> [data-part-preview])):not(
|
|
205
|
+
:has(> [data-part-actions])
|
|
206
206
|
) {
|
|
207
207
|
grid-template-areas:
|
|
208
208
|
'body'
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
* list beside the consumer's — the debt `upload` records for its rows.
|
|
221
221
|
*/
|
|
222
222
|
@starting-style {
|
|
223
|
-
[data-ui
|
|
223
|
+
[data-ui-attachment][data-part-root] {
|
|
224
224
|
opacity: 0;
|
|
225
225
|
translate: 0 calc(-1 * var(--slotted-space-2, 0.25rem));
|
|
226
226
|
}
|
|
@@ -228,12 +228,12 @@
|
|
|
228
228
|
|
|
229
229
|
/* ── The tile ──────────────────────────────────────────────────────────
|
|
230
230
|
*
|
|
231
|
-
* A solid tile in the file's own
|
|
232
|
-
* the picture when the page has one. The
|
|
231
|
+
* A solid tile in the file's own color with the mark knocked out of it, or
|
|
232
|
+
* the picture when the page has one. The color argument and its
|
|
233
233
|
* measurements are under **File kind** in `docs/token-foundation.md`; the
|
|
234
234
|
* scale is `upload`'s and is read here under its own name.
|
|
235
235
|
*/
|
|
236
|
-
[data-ui
|
|
236
|
+
[data-ui-attachment] [data-part-preview] {
|
|
237
237
|
--_kind-tile: var(--slotted-upload-kind-other);
|
|
238
238
|
|
|
239
239
|
align-items: center;
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
overflow: hidden;
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
[data-ui
|
|
253
|
+
[data-ui-attachment] [data-part-preview] > img {
|
|
254
254
|
block-size: 100%;
|
|
255
255
|
display: block;
|
|
256
256
|
inline-size: 100%;
|
|
@@ -261,39 +261,39 @@
|
|
|
261
261
|
* Half the tile, rounded to a whole pixel: 20 in a 40 tile. The row glyph
|
|
262
262
|
* (16) in a tile two lines tall read as a mark lost in its box.
|
|
263
263
|
*/
|
|
264
|
-
[data-ui
|
|
264
|
+
[data-ui-attachment] [data-part-preview] > [data-ui-icon] {
|
|
265
265
|
--slotted-icon-size: round(calc(var(--_preview-size) / 2), 1px);
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
[data-ui
|
|
268
|
+
[data-ui-attachment] [data-part-preview][data-kind='pdf'] {
|
|
269
269
|
--_kind-tile: var(--slotted-upload-kind-pdf);
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
[data-ui
|
|
272
|
+
[data-ui-attachment] [data-part-preview][data-kind='document'] {
|
|
273
273
|
--_kind-tile: var(--slotted-upload-kind-document);
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
[data-ui
|
|
276
|
+
[data-ui-attachment] [data-part-preview][data-kind='spreadsheet'] {
|
|
277
277
|
--_kind-tile: var(--slotted-upload-kind-spreadsheet);
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
[data-ui
|
|
280
|
+
[data-ui-attachment] [data-part-preview][data-kind='presentation'] {
|
|
281
281
|
--_kind-tile: var(--slotted-upload-kind-presentation);
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
[data-ui
|
|
284
|
+
[data-ui-attachment] [data-part-preview][data-kind='image'] {
|
|
285
285
|
--_kind-tile: var(--slotted-upload-kind-image);
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
[data-ui
|
|
288
|
+
[data-ui-attachment] [data-part-preview][data-kind='video'] {
|
|
289
289
|
--_kind-tile: var(--slotted-upload-kind-video);
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
-
[data-ui
|
|
292
|
+
[data-ui-attachment] [data-part-preview][data-kind='audio'] {
|
|
293
293
|
--_kind-tile: var(--slotted-upload-kind-audio);
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
-
[data-ui
|
|
296
|
+
[data-ui-attachment] [data-part-preview][data-kind='archive'] {
|
|
297
297
|
--_kind-tile: var(--slotted-upload-kind-archive);
|
|
298
298
|
}
|
|
299
299
|
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
* `min-inline-size: 0`, which is what makes a long name truncate instead of
|
|
304
304
|
* pushing the actions off the end.
|
|
305
305
|
*/
|
|
306
|
-
[data-ui
|
|
306
|
+
[data-ui-attachment] [data-part-body] {
|
|
307
307
|
display: flex;
|
|
308
308
|
flex-direction: column;
|
|
309
309
|
gap: var(--_line-gap);
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
* about it looks like a control at rest; the attachment is the control, and
|
|
319
319
|
* it answers as one.
|
|
320
320
|
*/
|
|
321
|
-
[data-ui
|
|
321
|
+
[data-ui-attachment] [data-part-trigger] {
|
|
322
322
|
appearance: none;
|
|
323
323
|
background: none;
|
|
324
324
|
border: 0;
|
|
@@ -332,14 +332,13 @@
|
|
|
332
332
|
padding: 0;
|
|
333
333
|
text-align: start;
|
|
334
334
|
text-decoration: none;
|
|
335
|
-
transition: translate var(--slotted-duration-instant) var(--slotted-control-transition-easing);
|
|
336
335
|
}
|
|
337
336
|
|
|
338
337
|
/**
|
|
339
338
|
* The stretched target. Transparent, over the whole attachment, and below
|
|
340
339
|
* `actions`, which is positioned after it in the same stacking context.
|
|
341
340
|
*/
|
|
342
|
-
[data-ui
|
|
341
|
+
[data-ui-attachment] [data-part-trigger]::after {
|
|
343
342
|
content: '';
|
|
344
343
|
inset: 0;
|
|
345
344
|
position: absolute;
|
|
@@ -352,18 +351,31 @@
|
|
|
352
351
|
* by a hairline — the answer `upload` gives its file name — so press and
|
|
353
352
|
* hover differ on the trigger itself and not only on the attachment.
|
|
354
353
|
*/
|
|
355
|
-
[data-ui
|
|
354
|
+
[data-ui-attachment] [data-part-trigger]:not(:disabled):not([aria-disabled='true']):hover {
|
|
356
355
|
text-decoration-line: underline;
|
|
357
356
|
text-underline-offset: 0.2em;
|
|
358
357
|
}
|
|
359
358
|
|
|
360
|
-
[data-ui
|
|
359
|
+
[data-ui-attachment] [data-part-trigger]:not(:disabled):not([aria-disabled='true']):active {
|
|
361
360
|
text-decoration-line: underline;
|
|
362
361
|
text-underline-offset: 0.2em;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/*
|
|
365
|
+
* The settle moves what the trigger holds, never the trigger: a `translate`
|
|
366
|
+
* on the trigger makes it the containing block of its `::after`, and for
|
|
367
|
+
* the press the target shrank to the name, so a release on the preview
|
|
368
|
+
* clicked the root instead.
|
|
369
|
+
*/
|
|
370
|
+
[data-ui-attachment] [data-part-trigger] > * {
|
|
371
|
+
transition: translate var(--slotted-duration-instant) var(--slotted-control-transition-easing);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
[data-ui-attachment] [data-part-trigger]:not(:disabled):not([aria-disabled='true']):active > * {
|
|
363
375
|
translate: 0 var(--slotted-border-width-thin, 1px);
|
|
364
376
|
}
|
|
365
377
|
|
|
366
|
-
[data-ui
|
|
378
|
+
[data-ui-attachment] [data-part-trigger]:is(:disabled, [aria-disabled='true']) {
|
|
367
379
|
cursor: default;
|
|
368
380
|
}
|
|
369
381
|
|
|
@@ -373,13 +385,11 @@
|
|
|
373
385
|
* the words can be pressed. The browser's own ring on the trigger is
|
|
374
386
|
* suppressed so the two are never drawn at once.
|
|
375
387
|
*/
|
|
376
|
-
[data-ui
|
|
388
|
+
[data-ui-attachment] [data-part-trigger]:focus-visible {
|
|
377
389
|
outline: none;
|
|
378
390
|
}
|
|
379
391
|
|
|
380
|
-
[data-ui
|
|
381
|
-
> [data-part='body'] > [data-part='trigger']:focus-visible
|
|
382
|
-
) {
|
|
392
|
+
[data-ui-attachment][data-part-root]:has(> [data-part-body] > [data-part-trigger]:focus-visible) {
|
|
383
393
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
384
394
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
385
395
|
}
|
|
@@ -389,14 +399,14 @@
|
|
|
389
399
|
* cannot be opened: a disabled or loading attachment refuses its trigger,
|
|
390
400
|
* and a fill would promise the press it refuses.
|
|
391
401
|
*/
|
|
392
|
-
[data-ui
|
|
393
|
-
> [data-part
|
|
402
|
+
[data-ui-attachment][data-part-root]:not([data-disabled]):not([data-loading]):has(
|
|
403
|
+
> [data-part-body] > [data-part-trigger]:hover
|
|
394
404
|
) {
|
|
395
405
|
--_fill: var(--_fill-hover);
|
|
396
406
|
}
|
|
397
407
|
|
|
398
|
-
[data-ui
|
|
399
|
-
> [data-part
|
|
408
|
+
[data-ui-attachment][data-part-root]:not([data-disabled]):not([data-loading]):has(
|
|
409
|
+
> [data-part-body] > [data-part-trigger]:active
|
|
400
410
|
) {
|
|
401
411
|
--_fill: var(--_fill-active);
|
|
402
412
|
}
|
|
@@ -407,7 +417,7 @@
|
|
|
407
417
|
* that order inside a right-to-left page instead of `pdf.claim-form` — the
|
|
408
418
|
* defect `upload` found in its capture at `dir="rtl"`.
|
|
409
419
|
*/
|
|
410
|
-
[data-ui
|
|
420
|
+
[data-ui-attachment] [data-part-filename] {
|
|
411
421
|
display: flex;
|
|
412
422
|
font-weight: var(--slotted-attachment-name-font-weight, var(--slotted-font-weight-medium, 500));
|
|
413
423
|
line-height: var(--_title-leading);
|
|
@@ -422,8 +432,8 @@
|
|
|
422
432
|
* gives the run its own direction, so it must also be only as wide as the run.
|
|
423
433
|
* Found in the capture at `dir="rtl"`.
|
|
424
434
|
*/
|
|
425
|
-
[data-ui
|
|
426
|
-
[data-ui
|
|
435
|
+
[data-ui-attachment] [data-part-body] > [data-part-filename],
|
|
436
|
+
[data-ui-attachment] [data-part-body] > [data-part-trigger] {
|
|
427
437
|
align-self: start;
|
|
428
438
|
max-inline-size: 100%;
|
|
429
439
|
}
|
|
@@ -434,7 +444,7 @@
|
|
|
434
444
|
* middle; `splitName` makes the split in the binding, and the whole name
|
|
435
445
|
* stays in the document and in the trigger's `title`.
|
|
436
446
|
*/
|
|
437
|
-
[data-ui
|
|
447
|
+
[data-ui-attachment] [data-part-name] {
|
|
438
448
|
flex: 0 1 auto;
|
|
439
449
|
min-inline-size: 0;
|
|
440
450
|
overflow: hidden;
|
|
@@ -442,13 +452,13 @@
|
|
|
442
452
|
white-space: nowrap;
|
|
443
453
|
}
|
|
444
454
|
|
|
445
|
-
[data-ui
|
|
455
|
+
[data-ui-attachment] [data-part-extension] {
|
|
446
456
|
flex: none;
|
|
447
457
|
white-space: nowrap;
|
|
448
458
|
}
|
|
449
459
|
|
|
450
460
|
/** The second line: a size, a date, a sender — whatever the page says. */
|
|
451
|
-
[data-ui
|
|
461
|
+
[data-ui-attachment] [data-part-detail] {
|
|
452
462
|
color: var(--slotted-text-muted);
|
|
453
463
|
font-size: var(--_detail-size);
|
|
454
464
|
font-variant-numeric: tabular-nums;
|
|
@@ -465,7 +475,7 @@
|
|
|
465
475
|
* length than a line of detail. It wraps, because a reason cut off by an
|
|
466
476
|
* ellipsis is a reason nobody reads.
|
|
467
477
|
*/
|
|
468
|
-
[data-ui
|
|
478
|
+
[data-ui-attachment] [data-part-message] {
|
|
469
479
|
color: var(--_message-color);
|
|
470
480
|
font-size: var(--_detail-size);
|
|
471
481
|
grid-area: message;
|
|
@@ -487,10 +497,10 @@
|
|
|
487
497
|
* placement — it ran under the tile, and on a failed attachment the danger
|
|
488
498
|
* bar sat against the danger edge and its inset second line: three red
|
|
489
499
|
* lines at the bottom, read as the edge doubled wherever the bar reached.
|
|
490
|
-
*
|
|
500
|
+
* Centerd in the inset, the bar clears the edge by the same distance it
|
|
491
501
|
* clears the detail line above it.
|
|
492
502
|
*/
|
|
493
|
-
[data-ui
|
|
503
|
+
[data-ui-attachment] [data-part-progress] {
|
|
494
504
|
display: block;
|
|
495
505
|
inset-block-end: round(
|
|
496
506
|
down,
|
|
@@ -505,14 +515,13 @@
|
|
|
505
515
|
}
|
|
506
516
|
|
|
507
517
|
/* Without a tile, or on a card, the text's column starts at the inset. */
|
|
508
|
-
[data-ui
|
|
509
|
-
|
|
510
|
-
[data-ui='attachment'][data-orientation='vertical'] > [data-part='progress'] {
|
|
518
|
+
[data-ui-attachment][data-part-root]:not(:has(> [data-part-preview])) > [data-part-progress],
|
|
519
|
+
[data-ui-attachment][data-orientation='vertical'] > [data-part-progress] {
|
|
511
520
|
inset-inline-start: var(--_inset);
|
|
512
521
|
}
|
|
513
522
|
|
|
514
523
|
@starting-style {
|
|
515
|
-
[data-ui
|
|
524
|
+
[data-ui-attachment] [data-part-progress] {
|
|
516
525
|
opacity: 0;
|
|
517
526
|
}
|
|
518
527
|
}
|
|
@@ -521,7 +530,7 @@
|
|
|
521
530
|
*
|
|
522
531
|
* Above the stretched target, so a press on a control is the control's.
|
|
523
532
|
*/
|
|
524
|
-
[data-ui
|
|
533
|
+
[data-ui-attachment] [data-part-actions] {
|
|
525
534
|
align-items: center;
|
|
526
535
|
display: inline-flex;
|
|
527
536
|
gap: var(--slotted-space-1, 0.125rem);
|
|
@@ -538,8 +547,8 @@
|
|
|
538
547
|
* controls: it is legible on whatever ground the attachment has, including
|
|
539
548
|
* a failed one's tint.
|
|
540
549
|
*/
|
|
541
|
-
[data-ui
|
|
542
|
-
[data-ui
|
|
550
|
+
[data-ui-attachment] [data-part-action],
|
|
551
|
+
[data-ui-attachment] [data-part-remove] {
|
|
543
552
|
--_state-hover: color-mix(
|
|
544
553
|
in oklab,
|
|
545
554
|
currentcolor var(--slotted-attachment-action-state-layer-hover, 8%),
|
|
@@ -574,8 +583,8 @@
|
|
|
574
583
|
color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing);
|
|
575
584
|
}
|
|
576
585
|
|
|
577
|
-
[data-ui
|
|
578
|
-
[data-ui
|
|
586
|
+
[data-ui-attachment] [data-part-action] > [data-ui-icon],
|
|
587
|
+
[data-ui-attachment] [data-part-remove] > [data-ui-icon] {
|
|
579
588
|
--slotted-icon-size: var(--_action-glyph-size);
|
|
580
589
|
}
|
|
581
590
|
|
|
@@ -584,18 +593,18 @@
|
|
|
584
593
|
* has no native disabled state. A control that cannot act does not answer a
|
|
585
594
|
* pointer.
|
|
586
595
|
*/
|
|
587
|
-
[data-ui
|
|
588
|
-
[data-ui
|
|
596
|
+
[data-ui-attachment] [data-part-action]:not(:disabled):not([aria-disabled='true']):hover,
|
|
597
|
+
[data-ui-attachment] [data-part-remove]:not(:disabled):not([aria-disabled='true']):hover {
|
|
589
598
|
background-color: var(--_state-hover);
|
|
590
599
|
}
|
|
591
600
|
|
|
592
|
-
[data-ui
|
|
593
|
-
[data-ui
|
|
601
|
+
[data-ui-attachment] [data-part-action]:not(:disabled):not([aria-disabled='true']):active,
|
|
602
|
+
[data-ui-attachment] [data-part-remove]:not(:disabled):not([aria-disabled='true']):active {
|
|
594
603
|
background-color: var(--_state-active);
|
|
595
604
|
}
|
|
596
605
|
|
|
597
|
-
[data-ui
|
|
598
|
-
[data-ui
|
|
606
|
+
[data-ui-attachment] [data-part-action]:is(:disabled, [aria-disabled='true']),
|
|
607
|
+
[data-ui-attachment] [data-part-remove]:is(:disabled, [aria-disabled='true']) {
|
|
599
608
|
color: var(--slotted-disabled-foreground);
|
|
600
609
|
cursor: default;
|
|
601
610
|
}
|
|
@@ -605,24 +614,24 @@
|
|
|
605
614
|
* stand two pixels apart, and an outward ring would be drawn over the
|
|
606
615
|
* neighbour's box.
|
|
607
616
|
*/
|
|
608
|
-
[data-ui
|
|
609
|
-
[data-ui
|
|
617
|
+
[data-ui-attachment] [data-part-action]:focus-visible,
|
|
618
|
+
[data-ui-attachment] [data-part-remove]:focus-visible {
|
|
610
619
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
611
620
|
outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
|
|
612
621
|
}
|
|
613
622
|
|
|
614
623
|
/**
|
|
615
624
|
* On a finger the target is the comfortable size and the box is the one a
|
|
616
|
-
* mouse sees: a transparent `::after`
|
|
625
|
+
* mouse sees: a transparent `::after` centerd on each control reaches 44
|
|
617
626
|
* pixels in both axes, and the ground and the ring stay square. The rule is
|
|
618
627
|
* `upload`'s.
|
|
619
628
|
*/
|
|
620
629
|
@media (pointer: coarse) {
|
|
621
|
-
[data-ui
|
|
630
|
+
[data-ui-attachment] :is([data-part-action], [data-part-remove]) {
|
|
622
631
|
position: relative;
|
|
623
632
|
}
|
|
624
633
|
|
|
625
|
-
[data-ui
|
|
634
|
+
[data-ui-attachment] :is([data-part-action], [data-part-remove])::after {
|
|
626
635
|
content: '';
|
|
627
636
|
inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
628
637
|
position: absolute;
|
|
@@ -632,12 +641,12 @@
|
|
|
632
641
|
/* ── States of the file ────────────────────────────────────────────────
|
|
633
642
|
*
|
|
634
643
|
* A file that failed: its ground, its edge and its sentence turn, and the
|
|
635
|
-
* tile keeps the kind's
|
|
644
|
+
* tile keeps the kind's color. `upload` measured why — a refused archive
|
|
636
645
|
* that turned red stopped saying it was an archive, on the one row whose
|
|
637
646
|
* message was about archives — and every kind clears 4.03 : 1 against the
|
|
638
647
|
* failed ground in `light` (`default-theme.test.mjs`).
|
|
639
648
|
*/
|
|
640
|
-
[data-ui
|
|
649
|
+
[data-ui-attachment][data-part-root][data-invalid] {
|
|
641
650
|
--_surface: var(--slotted-tone-danger-surface);
|
|
642
651
|
--_edge: var(--slotted-tone-danger-border);
|
|
643
652
|
--_message-color: var(--slotted-tone-danger-text);
|
|
@@ -645,7 +654,7 @@
|
|
|
645
654
|
/*
|
|
646
655
|
* The edge doubles inward. Every tone surface is the page's own white in
|
|
647
656
|
* `high-contrast`, so the failed attachment's tint vanished there and the
|
|
648
|
-
* sentence's
|
|
657
|
+
* sentence's color was the one signal left — color alone, which WCAG 2.2
|
|
649
658
|
* SC 1.4.1 refuses. A second pixel of edge says it in line, in every
|
|
650
659
|
* scheme, and moves nothing: an inset shadow takes no room.
|
|
651
660
|
*/
|
|
@@ -656,29 +665,29 @@
|
|
|
656
665
|
|
|
657
666
|
/**
|
|
658
667
|
* An unavailable file. The words take the disabled ink the foundation holds
|
|
659
|
-
* at its contrast, and the tile gives up the kind's
|
|
668
|
+
* at its contrast, and the tile gives up the kind's color, because a file
|
|
660
669
|
* that cannot be opened should not still be the brightest thing in the row.
|
|
661
670
|
*/
|
|
662
|
-
[data-ui
|
|
671
|
+
[data-ui-attachment][data-part-root][data-disabled] {
|
|
663
672
|
--_ink: var(--slotted-disabled-foreground);
|
|
664
673
|
}
|
|
665
674
|
|
|
666
|
-
[data-ui
|
|
675
|
+
[data-ui-attachment][data-part-root][data-disabled] [data-part-detail] {
|
|
667
676
|
color: var(--slotted-disabled-foreground);
|
|
668
677
|
}
|
|
669
678
|
|
|
670
|
-
[data-ui
|
|
679
|
+
[data-ui-attachment][data-part-root][data-disabled] [data-part-preview] {
|
|
671
680
|
--_kind-tile: var(--slotted-disabled-background);
|
|
672
681
|
|
|
673
682
|
color: var(--slotted-disabled-foreground);
|
|
674
683
|
}
|
|
675
684
|
|
|
676
685
|
/*
|
|
677
|
-
* A picture has no ground to give up, so it gives up its
|
|
686
|
+
* A picture has no ground to give up, so it gives up its color: the
|
|
678
687
|
* whole-strength grey is the one value that says unavailable without
|
|
679
688
|
* dimming the thumbnail below legibility.
|
|
680
689
|
*/
|
|
681
|
-
[data-ui
|
|
690
|
+
[data-ui-attachment][data-part-root][data-disabled] [data-part-preview] > img {
|
|
682
691
|
filter: grayscale(1);
|
|
683
692
|
}
|
|
684
693
|
|
|
@@ -687,10 +696,10 @@
|
|
|
687
696
|
* The same attachment stood on end: the picture takes the card and the name
|
|
688
697
|
* sits under it. The actions move onto the picture's corner, over the thing
|
|
689
698
|
* the reader is pointing at, on a plate of their own — the consumer's
|
|
690
|
-
* photograph is any
|
|
699
|
+
* photograph is any color, and a dark mark on a mid-blue sky was what
|
|
691
700
|
* `upload`'s first grid capture showed.
|
|
692
701
|
*/
|
|
693
|
-
[data-ui
|
|
702
|
+
[data-ui-attachment][data-part-root][data-orientation='vertical'] {
|
|
694
703
|
align-items: stretch;
|
|
695
704
|
grid-template-areas:
|
|
696
705
|
'preview'
|
|
@@ -705,14 +714,14 @@
|
|
|
705
714
|
* the card rather than from `aspect-ratio`, which carried a fractional
|
|
706
715
|
* width into a fractional height in `upload`'s grid.
|
|
707
716
|
*/
|
|
708
|
-
[data-ui
|
|
717
|
+
[data-ui-attachment][data-orientation='vertical'] > [data-part-preview] {
|
|
709
718
|
--_preview-radius: var(--slotted-attachment-card-preview-radius, var(--slotted-radius-md, 6px));
|
|
710
719
|
|
|
711
720
|
block-size: calc(var(--_card-size) - 2 * var(--_inset) - 2 * var(--_border-width));
|
|
712
721
|
inline-size: 100%;
|
|
713
722
|
}
|
|
714
723
|
|
|
715
|
-
[data-ui
|
|
724
|
+
[data-ui-attachment][data-orientation='vertical'] > [data-part-preview] > [data-ui-icon] {
|
|
716
725
|
--slotted-icon-size: calc(2 * var(--_glyph-size));
|
|
717
726
|
}
|
|
718
727
|
|
|
@@ -721,8 +730,7 @@
|
|
|
721
730
|
* of thumbnails for the one PDF finds it faster by the three letters than by
|
|
722
731
|
* the silhouette. It is text, drawn from the attribute the binding writes.
|
|
723
732
|
*/
|
|
724
|
-
[data-ui
|
|
725
|
-
> [data-part='preview']:not(:has(img))::after {
|
|
733
|
+
[data-ui-attachment][data-orientation='vertical'] > [data-part-preview]:not(:has(img))::after {
|
|
726
734
|
content: attr(data-extension);
|
|
727
735
|
font-size: var(--_detail-size);
|
|
728
736
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
@@ -733,11 +741,11 @@
|
|
|
733
741
|
margin-block-start: var(--slotted-space-2, 0.25rem);
|
|
734
742
|
}
|
|
735
743
|
|
|
736
|
-
[data-ui
|
|
744
|
+
[data-ui-attachment][data-orientation='vertical'] > [data-part-body] {
|
|
737
745
|
margin-block-start: var(--_gap);
|
|
738
746
|
}
|
|
739
747
|
|
|
740
|
-
[data-ui
|
|
748
|
+
[data-ui-attachment][data-orientation='vertical'] > [data-part-actions] {
|
|
741
749
|
background-color: color-mix(
|
|
742
750
|
in oklab,
|
|
743
751
|
var(--slotted-surface) var(--slotted-attachment-card-actions-opacity, 96%),
|
|
@@ -755,7 +763,7 @@
|
|
|
755
763
|
|
|
756
764
|
/*
|
|
757
765
|
* On a card three glyphs wide the plate stands over the kind's mark: at 120
|
|
758
|
-
* pixels the mark is
|
|
766
|
+
* pixels the mark is centerd at 51 and the plate reaches 36 from the top
|
|
759
767
|
* across the inline end, so a PDF card showed half its page under the
|
|
760
768
|
* controls. Where there is a pointer that can hover, the plate appears with
|
|
761
769
|
* the pointer or with focus anywhere in the card — the keyboard reaches the
|
|
@@ -764,17 +772,13 @@
|
|
|
764
772
|
* card it stays too: a card that answers no pointer cannot summon it either.
|
|
765
773
|
*/
|
|
766
774
|
@media (hover: hover) and (pointer: fine) {
|
|
767
|
-
[data-ui
|
|
768
|
-
> [data-part='actions'] {
|
|
775
|
+
[data-ui-attachment][data-orientation='vertical']:not([data-disabled]) > [data-part-actions] {
|
|
769
776
|
opacity: 0;
|
|
770
777
|
transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
771
778
|
}
|
|
772
779
|
|
|
773
|
-
[data-ui
|
|
774
|
-
|
|
775
|
-
:focus-within
|
|
776
|
-
)
|
|
777
|
-
> [data-part='actions'] {
|
|
780
|
+
[data-ui-attachment][data-orientation='vertical']:not([data-disabled]):is(:hover, :focus-within)
|
|
781
|
+
> [data-part-actions] {
|
|
778
782
|
opacity: 1;
|
|
779
783
|
transition: opacity var(--slotted-duration-short) var(--slotted-easing-enter);
|
|
780
784
|
}
|
|
@@ -785,7 +789,7 @@
|
|
|
785
789
|
* A native list. It takes focus only when its last attachment is removed
|
|
786
790
|
* with the keyboard, which is what `tabindex="-1"` is for.
|
|
787
791
|
*/
|
|
788
|
-
[data-ui
|
|
792
|
+
[data-ui-attachment][data-part-group] {
|
|
789
793
|
box-sizing: border-box;
|
|
790
794
|
display: flex;
|
|
791
795
|
flex-direction: column;
|
|
@@ -796,7 +800,7 @@
|
|
|
796
800
|
padding: 0;
|
|
797
801
|
}
|
|
798
802
|
|
|
799
|
-
[data-ui
|
|
803
|
+
[data-ui-attachment][data-part-group]:focus-visible {
|
|
800
804
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
801
805
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
802
806
|
}
|
|
@@ -805,12 +809,12 @@
|
|
|
805
809
|
* An empty set takes no room: a message whose last file was removed does
|
|
806
810
|
* not keep a gap where the files were.
|
|
807
811
|
*/
|
|
808
|
-
[data-ui
|
|
812
|
+
[data-ui-attachment][data-part-group]:empty {
|
|
809
813
|
display: none;
|
|
810
814
|
}
|
|
811
815
|
|
|
812
816
|
/** Rows that share the width: two or three to a line, never narrower than a name. */
|
|
813
|
-
[data-ui
|
|
817
|
+
[data-ui-attachment][data-part-group][data-layout='grid'] {
|
|
814
818
|
display: grid;
|
|
815
819
|
grid-template-columns: repeat(
|
|
816
820
|
auto-fill,
|
|
@@ -819,7 +823,7 @@
|
|
|
819
823
|
}
|
|
820
824
|
|
|
821
825
|
/* Cards keep their own width, so every card is a whole pixel wide. */
|
|
822
|
-
[data-ui
|
|
826
|
+
[data-ui-attachment][data-part-group][data-layout='grid'][data-orientation='vertical'] {
|
|
823
827
|
grid-template-columns: repeat(auto-fill, var(--_card-size));
|
|
824
828
|
}
|
|
825
829
|
|
|
@@ -829,7 +833,7 @@
|
|
|
829
833
|
* at either end keeps its whole ring inside the scroll box instead of
|
|
830
834
|
* losing two pixels of it to the clip.
|
|
831
835
|
*/
|
|
832
|
-
[data-ui
|
|
836
|
+
[data-ui-attachment][data-part-group][data-layout='strip'] {
|
|
833
837
|
--_ring-reach: calc(
|
|
834
838
|
var(--slotted-focus-ring-width, 2px) + var(--slotted-focus-ring-offset, 2px)
|
|
835
839
|
);
|
|
@@ -845,17 +849,17 @@
|
|
|
845
849
|
scrollbar-width: thin;
|
|
846
850
|
}
|
|
847
851
|
|
|
848
|
-
[data-ui
|
|
852
|
+
[data-ui-attachment][data-part-group][data-layout='strip'] > [data-part-root] {
|
|
849
853
|
flex: none;
|
|
850
854
|
scroll-snap-align: start;
|
|
851
855
|
}
|
|
852
856
|
|
|
853
|
-
[data-ui
|
|
854
|
-
> [data-part
|
|
857
|
+
[data-ui-attachment][data-part-group][data-layout='strip']
|
|
858
|
+
> [data-part-root][data-orientation='horizontal'] {
|
|
855
859
|
inline-size: var(--slotted-attachment-strip-item-size, 15rem);
|
|
856
860
|
}
|
|
857
861
|
|
|
858
|
-
/* ── Forced
|
|
862
|
+
/* ── Forced colors ────────────────────────────────────────────────────
|
|
859
863
|
*
|
|
860
864
|
* The theme remaps every token this sheet reads. What it cannot reach is a
|
|
861
865
|
* state said by a mix into a ground the system flattens to `Canvas`: the
|
|
@@ -864,38 +868,38 @@
|
|
|
864
868
|
* `upload`'s controls, and the failed attachment keeps its edge.
|
|
865
869
|
*/
|
|
866
870
|
@media (forced-colors: active) {
|
|
867
|
-
[data-ui
|
|
871
|
+
[data-ui-attachment][data-part-root][data-invalid] {
|
|
868
872
|
--_edge: CanvasText;
|
|
869
873
|
}
|
|
870
874
|
|
|
871
|
-
/* The doubled edge is a shadow, which forced
|
|
875
|
+
/* The doubled edge is a shadow, which forced colors remove: it comes back
|
|
872
876
|
as an outline inside the border, and a focused failed attachment draws
|
|
873
877
|
its ring double. */
|
|
874
|
-
[data-ui
|
|
878
|
+
[data-ui-attachment][data-part-root][data-invalid] {
|
|
875
879
|
outline: var(--_invalid-edge-width) solid CanvasText;
|
|
876
880
|
outline-offset: calc(-1 * (var(--_border-width) + var(--_invalid-edge-width)));
|
|
877
881
|
}
|
|
878
882
|
|
|
879
|
-
[data-ui
|
|
880
|
-
> [data-part
|
|
883
|
+
[data-ui-attachment][data-part-root][data-invalid]:has(
|
|
884
|
+
> [data-part-body] > [data-part-trigger]:focus-visible
|
|
881
885
|
) {
|
|
882
886
|
outline: calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double
|
|
883
887
|
var(--slotted-focus-ring-color, Highlight);
|
|
884
888
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
885
889
|
}
|
|
886
890
|
|
|
887
|
-
[data-ui
|
|
888
|
-
> [data-part
|
|
891
|
+
[data-ui-attachment][data-part-root]:not([data-disabled]):not([data-loading]):has(
|
|
892
|
+
> [data-part-body] > [data-part-trigger]:is(:hover, :active)
|
|
889
893
|
) {
|
|
890
894
|
border-color: Highlight;
|
|
891
895
|
}
|
|
892
896
|
|
|
893
|
-
[data-ui
|
|
897
|
+
[data-ui-attachment] [data-part-preview] {
|
|
894
898
|
border: var(--_border-width) solid ButtonBorder;
|
|
895
899
|
}
|
|
896
900
|
|
|
897
|
-
[data-ui
|
|
898
|
-
:is([data-part
|
|
901
|
+
[data-ui-attachment]
|
|
902
|
+
:is([data-part-action], [data-part-remove]):not(:disabled):not([aria-disabled='true']):is(
|
|
899
903
|
:hover,
|
|
900
904
|
:active
|
|
901
905
|
) {
|