@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
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* ground of two chosen rows are `combobox`'s decisions, and the chips row is
|
|
24
24
|
* `multi-select`'s. They are repeated rather than shared for the reason
|
|
25
25
|
* `combobox.css` gives about `select`: a stylesheet that painted
|
|
26
|
-
* `[data-ui
|
|
26
|
+
* `[data-ui-combobox]` from here would make one family's selector match
|
|
27
27
|
* the other's DOM.
|
|
28
28
|
*
|
|
29
29
|
* What is this family's own is the record: a row two lines tall with the
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
/* ── The root ─────────────────────────────────────────────────────────── */
|
|
37
37
|
|
|
38
|
-
[data-ui
|
|
38
|
+
[data-ui-entity-picker][data-part-root] {
|
|
39
39
|
--_font-size: var(--slotted-control-font-size-md, 13px);
|
|
40
40
|
--_height: var(--slotted-control-height-md, 34px);
|
|
41
41
|
--_padding-inline: var(--slotted-control-padding-inline-md, 13px);
|
|
@@ -61,16 +61,18 @@
|
|
|
61
61
|
|
|
62
62
|
display: flex;
|
|
63
63
|
font-family: var(--slotted-control-font-family, system-ui, sans-serif);
|
|
64
|
+
/* In a flex row the item's basis is its content, not the whole row. */
|
|
65
|
+
flex-basis: content;
|
|
64
66
|
inline-size: 100%;
|
|
65
67
|
min-inline-size: 0;
|
|
66
68
|
}
|
|
67
69
|
|
|
68
|
-
[data-ui
|
|
70
|
+
[data-ui-entity-picker][data-part-root]:not([data-full-width]) {
|
|
69
71
|
display: inline-flex;
|
|
70
72
|
inline-size: auto;
|
|
71
73
|
}
|
|
72
74
|
|
|
73
|
-
[data-ui
|
|
75
|
+
[data-ui-entity-picker][data-part-root][data-size='sm'] {
|
|
74
76
|
--_font-size: var(--slotted-control-font-size-sm, 12px);
|
|
75
77
|
--_height: var(--slotted-control-height-sm, 30px);
|
|
76
78
|
--_padding-inline: var(--slotted-control-padding-inline-sm, 10px);
|
|
@@ -78,7 +80,7 @@
|
|
|
78
80
|
--_inner-size: var(--slotted-control-inner-size-sm, 22px);
|
|
79
81
|
}
|
|
80
82
|
|
|
81
|
-
[data-ui
|
|
83
|
+
[data-ui-entity-picker][data-part-root][data-size='lg'] {
|
|
82
84
|
--_font-size: var(--slotted-control-font-size-lg, 14px);
|
|
83
85
|
--_height: var(--slotted-control-height-lg, 38px);
|
|
84
86
|
--_padding-inline: var(--slotted-control-padding-inline-lg, 16px);
|
|
@@ -105,22 +107,22 @@
|
|
|
105
107
|
* width is its chevron. 11rem holds "Opportunities" at `lg`; 45% leaves the
|
|
106
108
|
* field the larger share at 240 pixels.
|
|
107
109
|
*/
|
|
108
|
-
[data-ui
|
|
110
|
+
[data-ui-entity-picker] > [data-part-scope] {
|
|
109
111
|
display: flex;
|
|
110
112
|
flex: 0 0 var(--slotted-entity-picker-scope-inline-size, min(11rem, 45%));
|
|
111
113
|
min-inline-size: 0;
|
|
112
114
|
}
|
|
113
115
|
|
|
114
|
-
[data-ui
|
|
116
|
+
[data-ui-entity-picker] > [data-part-scope] > [data-ui-select][data-part-root] {
|
|
115
117
|
inline-size: 100%;
|
|
116
118
|
}
|
|
117
119
|
|
|
118
|
-
[data-ui
|
|
120
|
+
[data-ui-entity-picker] > [data-part-scope] > [data-ui-select][data-part-root] {
|
|
119
121
|
border-end-end-radius: 0;
|
|
120
122
|
border-start-end-radius: 0;
|
|
121
123
|
}
|
|
122
124
|
|
|
123
|
-
[data-ui
|
|
125
|
+
[data-ui-entity-picker] > [data-part-scope] + [data-part-control] {
|
|
124
126
|
border-end-start-radius: 0;
|
|
125
127
|
border-start-start-radius: 0;
|
|
126
128
|
margin-inline-start: calc(-1 * var(--slotted-control-border-width, 1px));
|
|
@@ -133,16 +135,16 @@
|
|
|
133
135
|
* only. The box being pointed at, focused, open or invalid stands over the
|
|
134
136
|
* seam, so its edge is whole on all four sides.
|
|
135
137
|
*/
|
|
136
|
-
[data-ui
|
|
137
|
-
[data-ui
|
|
138
|
-
[data-ui
|
|
138
|
+
[data-ui-entity-picker]:not([data-disabled]) > [data-part-scope]:is(:hover, :focus-within),
|
|
139
|
+
[data-ui-entity-picker]:not([data-disabled]) > [data-part-control]:is(:hover, :focus-within),
|
|
140
|
+
[data-ui-entity-picker]:is([data-open], [data-invalid]) > [data-part-control] {
|
|
139
141
|
position: relative;
|
|
140
142
|
z-index: 1;
|
|
141
143
|
}
|
|
142
144
|
|
|
143
145
|
/* ── The frame ────────────────────────────────────────────────────────── */
|
|
144
146
|
|
|
145
|
-
[data-ui
|
|
147
|
+
[data-ui-entity-picker] > [data-part-control] {
|
|
146
148
|
align-items: center;
|
|
147
149
|
background-color: var(
|
|
148
150
|
--slotted-entity-picker-background,
|
|
@@ -181,7 +183,7 @@
|
|
|
181
183
|
* that a text field cannot. Hidden from assistive technology: the input
|
|
182
184
|
* already carries the name.
|
|
183
185
|
*/
|
|
184
|
-
[data-ui
|
|
186
|
+
[data-ui-entity-picker] > [data-part-control] > [data-part-selection] {
|
|
185
187
|
--slotted-avatar-size-xs: var(--_chip-media);
|
|
186
188
|
|
|
187
189
|
display: inline-flex;
|
|
@@ -191,7 +193,7 @@
|
|
|
191
193
|
|
|
192
194
|
/* ── The input ────────────────────────────────────────────────────────── */
|
|
193
195
|
|
|
194
|
-
[data-ui
|
|
196
|
+
[data-ui-entity-picker] > [data-part-control] [data-part-input] {
|
|
195
197
|
background-color: transparent;
|
|
196
198
|
border: 0;
|
|
197
199
|
color: inherit;
|
|
@@ -206,25 +208,38 @@
|
|
|
206
208
|
|
|
207
209
|
/* In single the input is the frame's own row, stretched to its border box
|
|
208
210
|
as `combobox`'s is, so on a coarse pointer the control is the target. */
|
|
209
|
-
[data-ui
|
|
211
|
+
[data-ui-entity-picker] > [data-part-control] > [data-part-input] {
|
|
210
212
|
align-self: stretch;
|
|
211
213
|
margin-block: calc(var(--slotted-control-border-width, 1px) * -1);
|
|
212
214
|
}
|
|
213
215
|
|
|
214
|
-
[data-ui
|
|
216
|
+
[data-ui-entity-picker] > [data-part-control] [data-part-input]::placeholder {
|
|
215
217
|
color: var(--slotted-entity-picker-placeholder-color, var(--slotted-text-muted, GrayText));
|
|
216
218
|
text-overflow: ellipsis;
|
|
217
219
|
}
|
|
218
220
|
|
|
219
|
-
|
|
221
|
+
/**
|
|
222
|
+
* Autofill, as `text-field` paints it: the frame takes the tint under its
|
|
223
|
+
* border and inside its corner, and the input repaints the browser's ground
|
|
224
|
+
* in the same color and stops at the border it overlaps by one width.
|
|
225
|
+
*/
|
|
226
|
+
[data-ui-entity-picker] > [data-part-control]:has([data-part-input]:autofill) {
|
|
227
|
+
background-color: var(
|
|
228
|
+
--slotted-entity-picker-autofill-background,
|
|
229
|
+
var(--slotted-tone-accent-surface)
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
[data-ui-entity-picker] > [data-part-control] [data-part-input]:autofill {
|
|
220
234
|
box-shadow: inset 0 0 0 100px
|
|
221
235
|
var(--slotted-entity-picker-autofill-background, var(--slotted-tone-accent-surface));
|
|
236
|
+
clip-path: inset(var(--slotted-control-border-width, 1px) 0);
|
|
222
237
|
-webkit-text-fill-color: var(--slotted-entity-picker-color, var(--slotted-text, CanvasText));
|
|
223
238
|
}
|
|
224
239
|
|
|
225
240
|
/* ── The chips (multiple) ─────────────────────────────────────────────── */
|
|
226
241
|
|
|
227
|
-
[data-ui
|
|
242
|
+
[data-ui-entity-picker] > [data-part-control] > [data-part-values] {
|
|
228
243
|
align-self: stretch;
|
|
229
244
|
display: flex;
|
|
230
245
|
flex: 1 1 auto;
|
|
@@ -233,11 +248,11 @@
|
|
|
233
248
|
|
|
234
249
|
/* The boundary between what is chosen and what acts on it is the row's own
|
|
235
250
|
gap, not the frame's tight one (`multi-select`). */
|
|
236
|
-
[data-ui
|
|
251
|
+
[data-ui-entity-picker] > [data-part-control] > [data-part-values] + * {
|
|
237
252
|
margin-inline-start: var(--_row-gap);
|
|
238
253
|
}
|
|
239
254
|
|
|
240
|
-
[data-ui
|
|
255
|
+
[data-ui-entity-picker] > [data-part-control] [data-part-chips] {
|
|
241
256
|
--slotted-control-inner-size: var(--_inner-size);
|
|
242
257
|
|
|
243
258
|
align-content: safe center;
|
|
@@ -258,7 +273,7 @@
|
|
|
258
273
|
scrollbar-width: none;
|
|
259
274
|
}
|
|
260
275
|
|
|
261
|
-
[data-ui
|
|
276
|
+
[data-ui-entity-picker] > [data-part-control] [data-part-chips]::-webkit-scrollbar {
|
|
262
277
|
display: none;
|
|
263
278
|
}
|
|
264
279
|
|
|
@@ -275,9 +290,9 @@
|
|
|
275
290
|
* chip only has to not fight it; the row clips rather than scrolls, and the
|
|
276
291
|
* chips' own focus ring is drawn inside them for that reason.
|
|
277
292
|
*/
|
|
278
|
-
[data-ui
|
|
279
|
-
> [data-part
|
|
280
|
-
[data-part
|
|
293
|
+
[data-ui-entity-picker][data-part-root]:not([data-overflow='wrap'])
|
|
294
|
+
> [data-part-control]
|
|
295
|
+
[data-part-chips] {
|
|
281
296
|
flex-wrap: nowrap;
|
|
282
297
|
max-block-size: none;
|
|
283
298
|
overflow: hidden;
|
|
@@ -292,18 +307,18 @@
|
|
|
292
307
|
* chip that had already shrunk measured as fitting (the reference page
|
|
293
308
|
* showed "Ana S…" beside room to spare).
|
|
294
309
|
*/
|
|
295
|
-
[data-ui
|
|
296
|
-
> [data-part
|
|
297
|
-
[data-part
|
|
298
|
-
> [data-part
|
|
310
|
+
[data-ui-entity-picker][data-part-root]:not([data-overflow='wrap'])
|
|
311
|
+
> [data-part-control]
|
|
312
|
+
[data-part-chips]
|
|
313
|
+
> [data-part-field] {
|
|
299
314
|
flex: 1 0 var(--slotted-entity-picker-field-min, 2.5rem);
|
|
300
315
|
}
|
|
301
316
|
|
|
302
|
-
[data-ui
|
|
303
|
-
> [data-part
|
|
304
|
-
[data-part
|
|
305
|
-
> :not([data-part
|
|
306
|
-
:has(~ [data-ui
|
|
317
|
+
[data-ui-entity-picker][data-part-root]:not([data-overflow='wrap'])
|
|
318
|
+
> [data-part-control]
|
|
319
|
+
[data-part-chips]
|
|
320
|
+
> :not([data-part-field], [hidden]):first-child:not(
|
|
321
|
+
:has(~ [data-ui-tag]:not([hidden], [data-count]))
|
|
307
322
|
) {
|
|
308
323
|
flex-shrink: 1;
|
|
309
324
|
/* Never a sliver: its face, three letters and its remove button. Below
|
|
@@ -312,7 +327,7 @@
|
|
|
312
327
|
}
|
|
313
328
|
|
|
314
329
|
/* The count is a chip that never gives way and never shrinks. */
|
|
315
|
-
[data-ui
|
|
330
|
+
[data-ui-entity-picker] > [data-part-control] [data-part-chips] > [data-count] {
|
|
316
331
|
cursor: pointer;
|
|
317
332
|
flex: none;
|
|
318
333
|
}
|
|
@@ -322,7 +337,7 @@
|
|
|
322
337
|
* settles for a couple of characters, as in `multi-select`; in one line it
|
|
323
338
|
* is what the collapse leaves room for.
|
|
324
339
|
*/
|
|
325
|
-
[data-ui
|
|
340
|
+
[data-ui-entity-picker] > [data-part-control] [data-part-field] {
|
|
326
341
|
align-items: center;
|
|
327
342
|
display: flex;
|
|
328
343
|
flex: 1 1 var(--slotted-entity-picker-field-basis, 4rem);
|
|
@@ -330,10 +345,7 @@
|
|
|
330
345
|
min-inline-size: var(--slotted-entity-picker-field-min, 2.5rem);
|
|
331
346
|
}
|
|
332
347
|
|
|
333
|
-
[data-ui
|
|
334
|
-
> [data-part='control']
|
|
335
|
-
[data-part='chips']
|
|
336
|
-
> :not([data-part='field']) {
|
|
348
|
+
[data-ui-entity-picker] > [data-part-control] [data-part-chips] > :not([data-part-field]) {
|
|
337
349
|
flex: 0 0 auto;
|
|
338
350
|
max-inline-size: 100%;
|
|
339
351
|
min-block-size: var(--_row-size);
|
|
@@ -347,30 +359,30 @@
|
|
|
347
359
|
* the body the same air at its start, so the circle sits in the pill's end
|
|
348
360
|
* the way the pill's end is round. The rest of the chip is `tag`'s.
|
|
349
361
|
*/
|
|
350
|
-
[data-ui
|
|
351
|
-
> [data-part
|
|
352
|
-
[data-part
|
|
362
|
+
[data-ui-entity-picker]
|
|
363
|
+
> [data-part-control]
|
|
364
|
+
[data-part-chips]
|
|
353
365
|
> [data-ui]
|
|
354
|
-
> [data-part
|
|
355
|
-
> [data-part
|
|
366
|
+
> [data-part-body]
|
|
367
|
+
> [data-part-start] {
|
|
356
368
|
--slotted-avatar-size-xs: var(--_chip-media);
|
|
357
369
|
|
|
358
370
|
block-size: var(--_chip-media);
|
|
359
371
|
inline-size: var(--_chip-media);
|
|
360
372
|
}
|
|
361
373
|
|
|
362
|
-
[data-ui
|
|
363
|
-
> [data-part
|
|
364
|
-
[data-part
|
|
374
|
+
[data-ui-entity-picker]
|
|
375
|
+
> [data-part-control]
|
|
376
|
+
[data-part-chips]
|
|
365
377
|
> [data-ui]
|
|
366
|
-
> [data-part
|
|
378
|
+
> [data-part-body]:has(> [data-part-start]) {
|
|
367
379
|
padding-inline-start: var(--slotted-space-1, 0.125rem);
|
|
368
380
|
}
|
|
369
381
|
|
|
370
|
-
[data-ui
|
|
371
|
-
> [data-part
|
|
372
|
-
[data-part
|
|
373
|
-
> :not([data-part
|
|
382
|
+
[data-ui-entity-picker]
|
|
383
|
+
> [data-part-control]
|
|
384
|
+
[data-part-chips]
|
|
385
|
+
> :not([data-part-field]):focus-visible {
|
|
374
386
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
375
387
|
outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
|
|
376
388
|
}
|
|
@@ -379,16 +391,16 @@
|
|
|
379
391
|
* A chip whose id has not come back yet. Its name is a skeleton the width of
|
|
380
392
|
* a short name, in the chip's own line, so the chip that arrives occupies
|
|
381
393
|
* the box that waited for it. It wears `tag`'s outline variant: on the soft
|
|
382
|
-
* ground the skeleton is the ground's own
|
|
394
|
+
* ground the skeleton is the ground's own color and read as an empty pill,
|
|
383
395
|
* and a chip that is not yet a value is drawn as an outline, like the one
|
|
384
396
|
* that never will be.
|
|
385
397
|
*/
|
|
386
|
-
[data-ui
|
|
387
|
-
> [data-part
|
|
388
|
-
[data-part
|
|
398
|
+
[data-ui-entity-picker]
|
|
399
|
+
> [data-part-control]
|
|
400
|
+
[data-part-chips]
|
|
389
401
|
> [data-ui][data-loading]
|
|
390
|
-
> [data-part
|
|
391
|
-
[data-ui
|
|
402
|
+
> [data-part-body]
|
|
403
|
+
[data-ui-skeleton] {
|
|
392
404
|
--slotted-skeleton-inline-size: 5em;
|
|
393
405
|
}
|
|
394
406
|
|
|
@@ -398,20 +410,17 @@
|
|
|
398
410
|
* and the alert mark where a value has a face. The word is muted, never
|
|
399
411
|
* struck through — the record may exist and be out of this reader's reach.
|
|
400
412
|
*/
|
|
401
|
-
[data-ui
|
|
402
|
-
> [data-part='control']
|
|
403
|
-
[data-part='chips']
|
|
404
|
-
> [data-ui][data-unresolved] {
|
|
413
|
+
[data-ui-entity-picker] > [data-part-control] [data-part-chips] > [data-ui][data-unresolved] {
|
|
405
414
|
color: var(--slotted-text-muted, GrayText);
|
|
406
415
|
}
|
|
407
416
|
|
|
408
|
-
[data-ui
|
|
409
|
-
> [data-part
|
|
410
|
-
[data-part
|
|
417
|
+
[data-ui-entity-picker]
|
|
418
|
+
> [data-part-control]
|
|
419
|
+
[data-part-chips]
|
|
411
420
|
> [data-ui][data-unresolved]
|
|
412
|
-
> [data-part
|
|
413
|
-
> [data-part
|
|
414
|
-
> [data-ui
|
|
421
|
+
> [data-part-body]
|
|
422
|
+
> [data-part-start]
|
|
423
|
+
> [data-ui-icon] {
|
|
415
424
|
/* The alert mark is a `Glyph` the binding draws in the face's place, at the
|
|
416
425
|
chip's icon step rather than stretched to the face's box. */
|
|
417
426
|
block-size: var(--_icon-size);
|
|
@@ -420,9 +429,7 @@
|
|
|
420
429
|
|
|
421
430
|
/* ── The two buttons inside the frame ─────────────────────────────────── */
|
|
422
431
|
|
|
423
|
-
[data-ui
|
|
424
|
-
> [data-part='control']
|
|
425
|
-
> :is([data-part='clear'], [data-part='trigger']) {
|
|
432
|
+
[data-ui-entity-picker] > [data-part-control] > :is([data-part-clear], [data-part-trigger]) {
|
|
426
433
|
align-items: center;
|
|
427
434
|
appearance: none;
|
|
428
435
|
background-color: transparent;
|
|
@@ -446,9 +453,9 @@
|
|
|
446
453
|
}
|
|
447
454
|
|
|
448
455
|
/* The hit area, recovered outside the paint (R2). */
|
|
449
|
-
[data-ui
|
|
450
|
-
> [data-part
|
|
451
|
-
> :is([data-part
|
|
456
|
+
[data-ui-entity-picker]
|
|
457
|
+
> [data-part-control]
|
|
458
|
+
> :is([data-part-clear], [data-part-trigger])::after {
|
|
452
459
|
content: '';
|
|
453
460
|
inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
|
|
454
461
|
position: absolute;
|
|
@@ -459,35 +466,33 @@
|
|
|
459
466
|
the hit area above grows to 44 pixels around them. Side by side, neither
|
|
460
467
|
button reaches across the edge the two share. */
|
|
461
468
|
@media (pointer: coarse) {
|
|
462
|
-
[data-ui
|
|
463
|
-
> [data-part
|
|
464
|
-
> :is([data-part
|
|
469
|
+
[data-ui-entity-picker]
|
|
470
|
+
> [data-part-control]
|
|
471
|
+
> :is([data-part-clear], [data-part-trigger])::after {
|
|
465
472
|
inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
466
473
|
}
|
|
467
474
|
|
|
468
|
-
[data-ui
|
|
469
|
-
> [data-part
|
|
470
|
-
> [data-part
|
|
475
|
+
[data-ui-entity-picker]
|
|
476
|
+
> [data-part-control]
|
|
477
|
+
> [data-part-clear]:has(+ [data-part-trigger]:not([hidden]))::after {
|
|
471
478
|
inset-inline-end: 0;
|
|
472
479
|
}
|
|
473
480
|
|
|
474
|
-
[data-ui
|
|
475
|
-
> [data-part
|
|
476
|
-
> [data-part
|
|
477
|
-
+ [data-part
|
|
481
|
+
[data-ui-entity-picker]
|
|
482
|
+
> [data-part-control]
|
|
483
|
+
> [data-part-clear]:not([hidden])
|
|
484
|
+
+ [data-part-trigger]::after {
|
|
478
485
|
inset-inline-start: 0;
|
|
479
486
|
}
|
|
480
487
|
}
|
|
481
488
|
|
|
482
489
|
/* The cross and the chevron are `Glyph` elements the binding draws, sized
|
|
483
490
|
here to the control's icon step. */
|
|
484
|
-
[data-ui
|
|
485
|
-
> [data-part='control']
|
|
486
|
-
> :is([data-part='clear'], [data-part='trigger']) {
|
|
491
|
+
[data-ui-entity-picker] > [data-part-control] > :is([data-part-clear], [data-part-trigger]) {
|
|
487
492
|
--slotted-icon-size: var(--_icon-size);
|
|
488
493
|
}
|
|
489
494
|
|
|
490
|
-
[data-ui
|
|
495
|
+
[data-ui-entity-picker] > [data-part-control] > [data-part-trigger] > [data-part-arrow] {
|
|
491
496
|
align-items: center;
|
|
492
497
|
block-size: var(--_icon-size);
|
|
493
498
|
display: flex;
|
|
@@ -495,59 +500,59 @@
|
|
|
495
500
|
justify-content: center;
|
|
496
501
|
}
|
|
497
502
|
|
|
498
|
-
[data-ui
|
|
499
|
-
> [data-part
|
|
500
|
-
> [data-part
|
|
501
|
-
> [data-part
|
|
502
|
-
> [data-ui
|
|
503
|
+
[data-ui-entity-picker]
|
|
504
|
+
> [data-part-control]
|
|
505
|
+
> [data-part-trigger]
|
|
506
|
+
> [data-part-arrow]
|
|
507
|
+
> [data-ui-icon] {
|
|
503
508
|
transition: rotate var(--slotted-control-transition-duration)
|
|
504
509
|
var(--slotted-control-transition-easing);
|
|
505
510
|
}
|
|
506
511
|
|
|
507
|
-
[data-ui
|
|
508
|
-
> [data-part
|
|
509
|
-
> [data-part
|
|
510
|
-
> [data-part
|
|
511
|
-
> [data-ui
|
|
512
|
+
[data-ui-entity-picker][data-open]
|
|
513
|
+
> [data-part-control]
|
|
514
|
+
> [data-part-trigger]
|
|
515
|
+
> [data-part-arrow]
|
|
516
|
+
> [data-ui-icon] {
|
|
512
517
|
rotate: 180deg;
|
|
513
518
|
}
|
|
514
519
|
|
|
515
520
|
/* The ring where the chevron stands, drawn by `spinner/spinner.css`. */
|
|
516
|
-
[data-ui
|
|
521
|
+
[data-ui-entity-picker] > [data-part-control] > [data-part-trigger] > [data-part-busy] {
|
|
517
522
|
--slotted-spinner-size: var(--_icon-size);
|
|
518
523
|
|
|
519
524
|
color: var(--slotted-entity-picker-action-color, var(--slotted-text-muted, GrayText));
|
|
520
525
|
flex: none;
|
|
521
526
|
}
|
|
522
527
|
|
|
523
|
-
[data-ui
|
|
524
|
-
> [data-part
|
|
525
|
-
> :is([data-part
|
|
528
|
+
[data-ui-entity-picker]
|
|
529
|
+
> [data-part-control]
|
|
530
|
+
> :is([data-part-clear], [data-part-trigger]):hover:not(:disabled):not([data-disabled]) {
|
|
526
531
|
background-color: var(
|
|
527
532
|
--slotted-entity-picker-action-hover-background,
|
|
528
533
|
var(--slotted-tone-secondary-subtle-hover)
|
|
529
534
|
);
|
|
530
535
|
}
|
|
531
536
|
|
|
532
|
-
[data-ui
|
|
533
|
-
> [data-part
|
|
534
|
-
> :is([data-part
|
|
537
|
+
[data-ui-entity-picker]
|
|
538
|
+
> [data-part-control]
|
|
539
|
+
> :is([data-part-clear], [data-part-trigger]):active:not(:disabled):not([data-disabled]) {
|
|
535
540
|
background-color: var(
|
|
536
541
|
--slotted-entity-picker-action-active-background,
|
|
537
542
|
var(--slotted-tone-secondary-subtle-active)
|
|
538
543
|
);
|
|
539
544
|
}
|
|
540
545
|
|
|
541
|
-
[data-ui
|
|
542
|
-
> [data-part
|
|
543
|
-
> :is([data-part
|
|
546
|
+
[data-ui-entity-picker]
|
|
547
|
+
> [data-part-control]
|
|
548
|
+
> :is([data-part-clear], [data-part-trigger]):focus-visible {
|
|
544
549
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
545
550
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
546
551
|
}
|
|
547
552
|
|
|
548
553
|
/* ── Variant ──────────────────────────────────────────────────────────── */
|
|
549
554
|
|
|
550
|
-
[data-ui
|
|
555
|
+
[data-ui-entity-picker][data-part-root][data-variant='subtle'] > [data-part-control] {
|
|
551
556
|
background-color: var(
|
|
552
557
|
--slotted-entity-picker-subtle-background,
|
|
553
558
|
var(--slotted-surface-sunken, Canvas)
|
|
@@ -559,7 +564,7 @@
|
|
|
559
564
|
}
|
|
560
565
|
|
|
561
566
|
/* The cell it sits in is the box (the plain-variant rule). */
|
|
562
|
-
[data-ui
|
|
567
|
+
[data-ui-entity-picker][data-part-root][data-variant='plain'] > [data-part-control] {
|
|
563
568
|
background-color: transparent;
|
|
564
569
|
border-color: transparent;
|
|
565
570
|
border-radius: var(--slotted-radius-none, 0px);
|
|
@@ -567,37 +572,37 @@
|
|
|
567
572
|
}
|
|
568
573
|
|
|
569
574
|
@media (forced-colors: active) {
|
|
570
|
-
[data-ui
|
|
575
|
+
[data-ui-entity-picker][data-part-root][data-variant='plain'] > [data-part-control] {
|
|
571
576
|
border-color: ButtonBorder;
|
|
572
577
|
}
|
|
573
578
|
}
|
|
574
579
|
|
|
575
580
|
/* ── States on the frame ──────────────────────────────────────────────── */
|
|
576
581
|
|
|
577
|
-
[data-ui
|
|
582
|
+
[data-ui-entity-picker][data-part-root]:not([data-disabled]):not([data-readonly]):not(
|
|
578
583
|
[data-invalid]
|
|
579
584
|
)
|
|
580
|
-
> [data-part
|
|
585
|
+
> [data-part-control]:hover {
|
|
581
586
|
border-color: var(
|
|
582
587
|
--slotted-entity-picker-hover-border-color,
|
|
583
588
|
var(--slotted-tone-accent-border)
|
|
584
589
|
);
|
|
585
590
|
}
|
|
586
591
|
|
|
587
|
-
[data-ui
|
|
592
|
+
[data-ui-entity-picker][data-part-root][data-variant='subtle']:not([data-disabled]):not(
|
|
588
593
|
[data-readonly]
|
|
589
594
|
):not([data-invalid])
|
|
590
|
-
> [data-part
|
|
595
|
+
> [data-part-control]:hover:not(:has([data-part-input]:autofill)) {
|
|
591
596
|
background-color: var(
|
|
592
597
|
--slotted-entity-picker-subtle-hover-background,
|
|
593
598
|
var(--slotted-tone-secondary-subtle-hover)
|
|
594
599
|
);
|
|
595
600
|
}
|
|
596
601
|
|
|
597
|
-
[data-ui
|
|
602
|
+
[data-ui-entity-picker][data-part-root][data-variant='plain']:not([data-disabled]):not(
|
|
598
603
|
[data-readonly]
|
|
599
604
|
):not([data-invalid])
|
|
600
|
-
> [data-part
|
|
605
|
+
> [data-part-control]:hover:not(:has([data-part-input]:autofill)) {
|
|
601
606
|
background-color: var(
|
|
602
607
|
--slotted-entity-picker-plain-hover-background,
|
|
603
608
|
var(--slotted-tone-secondary-subtle-hover)
|
|
@@ -605,32 +610,31 @@
|
|
|
605
610
|
border-color: transparent;
|
|
606
611
|
}
|
|
607
612
|
|
|
608
|
-
[data-ui
|
|
613
|
+
[data-ui-entity-picker] > [data-part-control]:has([data-part-input]:focus-visible) {
|
|
609
614
|
box-shadow: var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px)
|
|
610
615
|
var(--slotted-focus-ring-color, Highlight);
|
|
611
616
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
612
|
-
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
617
|
+
outline-offset: var(--slotted-control-focus-ring-offset, var(--slotted-focus-ring-offset, 2px));
|
|
613
618
|
}
|
|
614
619
|
|
|
615
|
-
[data-ui
|
|
616
|
-
> [data-part
|
|
620
|
+
[data-ui-entity-picker][data-part-root][data-variant='plain']
|
|
621
|
+
> [data-part-control]:has([data-part-input]:focus-visible) {
|
|
617
622
|
box-shadow: none;
|
|
618
623
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
619
624
|
}
|
|
620
625
|
|
|
621
|
-
[data-ui
|
|
622
|
-
> [data-part='control'] {
|
|
626
|
+
[data-ui-entity-picker][data-part-root][data-open]:not([data-disabled]) > [data-part-control] {
|
|
623
627
|
border-color: var(--slotted-entity-picker-open-border-color, var(--slotted-tone-accent-border));
|
|
624
628
|
}
|
|
625
629
|
|
|
626
|
-
[data-ui
|
|
630
|
+
[data-ui-entity-picker][data-part-root][data-invalid] {
|
|
627
631
|
--slotted-focus-ring-color: var(
|
|
628
632
|
--slotted-entity-picker-invalid-focus-ring-color,
|
|
629
633
|
var(--slotted-focus-ring-color-invalid, Highlight)
|
|
630
634
|
);
|
|
631
635
|
}
|
|
632
636
|
|
|
633
|
-
[data-ui
|
|
637
|
+
[data-ui-entity-picker][data-part-root][data-invalid] > [data-part-control] {
|
|
634
638
|
--_invalid-edge-width: var(
|
|
635
639
|
--slotted-entity-picker-invalid-edge-width,
|
|
636
640
|
var(--slotted-control-invalid-edge-width, 1px)
|
|
@@ -646,7 +650,7 @@
|
|
|
646
650
|
var(--slotted-tone-danger-border)
|
|
647
651
|
);
|
|
648
652
|
/*
|
|
649
|
-
* Width as well as
|
|
653
|
+
* Width as well as color (WCAG 1.4.1), the edge `text-field` draws: in
|
|
650
654
|
* `high-contrast` the danger border is the resting edge's black. The line
|
|
651
655
|
* is a shadow inside the border, so neither box nor text moves, and it
|
|
652
656
|
* takes the resting lift's place.
|
|
@@ -654,16 +658,15 @@
|
|
|
654
658
|
box-shadow: var(--_invalid-edge);
|
|
655
659
|
}
|
|
656
660
|
|
|
657
|
-
[data-ui
|
|
658
|
-
> [data-part='control']:has([data-part='input']:focus-visible) {
|
|
661
|
+
[data-ui-entity-picker][data-invalid] > [data-part-control]:has([data-part-input]:focus-visible) {
|
|
659
662
|
box-shadow:
|
|
660
663
|
var(--_invalid-edge),
|
|
661
664
|
var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px)
|
|
662
665
|
var(--slotted-focus-ring-color, Highlight);
|
|
663
666
|
}
|
|
664
667
|
|
|
665
|
-
[data-ui
|
|
666
|
-
> [data-part
|
|
668
|
+
[data-ui-entity-picker][data-part-root][data-variant='plain'][data-invalid]
|
|
669
|
+
> [data-part-control]:has([data-part-input]:focus-visible) {
|
|
667
670
|
/* The ring lies inside the box here, over the border and an edge as wide as
|
|
668
671
|
it; the edge reaches past the ring. */
|
|
669
672
|
box-shadow: inset 0 0 0
|
|
@@ -675,27 +678,30 @@
|
|
|
675
678
|
}
|
|
676
679
|
|
|
677
680
|
/*
|
|
678
|
-
* Forced
|
|
681
|
+
* Forced colors remove every box shadow, and the edge with them. The
|
|
679
682
|
* width comes back as an outline inside the border, and a focused invalid
|
|
680
683
|
* control draws its ring double, which a valid ring is not.
|
|
681
684
|
*/
|
|
682
685
|
@media (forced-colors: active) {
|
|
683
|
-
[data-ui
|
|
686
|
+
[data-ui-entity-picker][data-part-root][data-invalid] > [data-part-control] {
|
|
684
687
|
outline: var(--_invalid-edge-width) solid CanvasText;
|
|
685
688
|
outline-offset: calc(
|
|
686
689
|
-1 * (var(--slotted-control-border-width, 1px) + var(--_invalid-edge-width))
|
|
687
690
|
);
|
|
688
691
|
}
|
|
689
692
|
|
|
690
|
-
[data-ui
|
|
691
|
-
> [data-part
|
|
693
|
+
[data-ui-entity-picker][data-invalid]
|
|
694
|
+
> [data-part-control]:has([data-part-input]:focus-visible) {
|
|
692
695
|
outline: calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double
|
|
693
696
|
var(--slotted-focus-ring-color, Highlight);
|
|
694
|
-
outline-offset: var(
|
|
697
|
+
outline-offset: var(
|
|
698
|
+
--slotted-control-focus-ring-offset,
|
|
699
|
+
var(--slotted-focus-ring-offset, 2px)
|
|
700
|
+
);
|
|
695
701
|
}
|
|
696
702
|
|
|
697
|
-
[data-ui
|
|
698
|
-
> [data-part
|
|
703
|
+
[data-ui-entity-picker][data-part-root][data-variant='plain'][data-invalid]
|
|
704
|
+
> [data-part-control]:has([data-part-input]:focus-visible) {
|
|
699
705
|
outline: calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double
|
|
700
706
|
var(--slotted-focus-ring-color, Highlight);
|
|
701
707
|
outline-offset: calc(
|
|
@@ -704,22 +710,22 @@
|
|
|
704
710
|
}
|
|
705
711
|
}
|
|
706
712
|
|
|
707
|
-
[data-ui
|
|
713
|
+
[data-ui-entity-picker][data-part-root][data-readonly] > [data-part-control] {
|
|
708
714
|
background-color: var(
|
|
709
715
|
--slotted-entity-picker-readonly-background,
|
|
710
716
|
var(--slotted-tone-secondary-subtle-hover)
|
|
711
717
|
);
|
|
712
718
|
}
|
|
713
719
|
|
|
714
|
-
[data-ui
|
|
715
|
-
> [data-part
|
|
716
|
-
> [data-part
|
|
717
|
-
> [data-part
|
|
720
|
+
[data-ui-entity-picker][data-part-root][data-readonly]
|
|
721
|
+
> [data-part-control]
|
|
722
|
+
> [data-part-trigger]
|
|
723
|
+
> [data-part-arrow] {
|
|
718
724
|
opacity: 0.5;
|
|
719
725
|
}
|
|
720
726
|
|
|
721
|
-
[data-ui
|
|
722
|
-
[data-ui
|
|
727
|
+
[data-ui-entity-picker][data-part-root][data-disabled] > [data-part-control],
|
|
728
|
+
[data-ui-entity-picker] > [data-part-control]:has([data-part-input]:disabled) {
|
|
723
729
|
background-color: var(
|
|
724
730
|
--slotted-entity-picker-disabled-background,
|
|
725
731
|
var(--slotted-disabled-background)
|
|
@@ -734,18 +740,18 @@
|
|
|
734
740
|
}
|
|
735
741
|
|
|
736
742
|
/* A disabled face is a quieter face: the ink recedes, the photograph with it. */
|
|
737
|
-
[data-ui
|
|
738
|
-
> [data-part
|
|
743
|
+
[data-ui-entity-picker][data-part-root][data-disabled]
|
|
744
|
+
> [data-part-control]
|
|
739
745
|
:is(
|
|
740
|
-
[data-part
|
|
741
|
-
[data-part
|
|
746
|
+
[data-part-selection],
|
|
747
|
+
[data-part-chips] > [data-ui] > [data-part-body] > [data-part-start]
|
|
742
748
|
) {
|
|
743
749
|
opacity: 0.6;
|
|
744
750
|
}
|
|
745
751
|
|
|
746
752
|
/* ── The layer ────────────────────────────────────────────────────────── */
|
|
747
753
|
|
|
748
|
-
[data-ui
|
|
754
|
+
[data-ui-entity-picker][data-part-positioner] {
|
|
749
755
|
--_surface: var(--slotted-entity-picker-surface, var(--slotted-surface-raised, #ffffff));
|
|
750
756
|
--_text: var(--slotted-entity-picker-content-text, var(--slotted-text, #0f172a));
|
|
751
757
|
--_muted: var(--slotted-entity-picker-content-text-muted, var(--slotted-text-muted, #5b6b7f));
|
|
@@ -788,56 +794,43 @@
|
|
|
788
794
|
box-sizing: border-box;
|
|
789
795
|
inset-block-start: 0;
|
|
790
796
|
isolation: isolate;
|
|
791
|
-
opacity: 0;
|
|
792
797
|
pointer-events: none;
|
|
793
798
|
position: absolute;
|
|
794
|
-
transition:
|
|
795
|
-
opacity var(--slotted-duration-short) var(--slotted-easing-exit),
|
|
796
|
-
translate var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
799
|
+
transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
797
800
|
translate: 0 calc(-1 * var(--_enter-distance));
|
|
798
801
|
z-index: calc(var(--slotted-z-index-popover, 1100) + var(--slotted-layer-depth, 0));
|
|
799
802
|
}
|
|
800
803
|
|
|
801
|
-
[data-ui
|
|
804
|
+
[data-ui-entity-picker][data-part-positioner][data-side='top'] {
|
|
802
805
|
translate: 0 var(--_enter-distance);
|
|
803
806
|
}
|
|
804
807
|
|
|
805
|
-
[data-ui
|
|
808
|
+
[data-ui-entity-picker][data-part-positioner]:is([data-side='left'], [data-side='right']) {
|
|
806
809
|
translate: 0 0;
|
|
807
810
|
}
|
|
808
811
|
|
|
809
|
-
[data-ui
|
|
810
|
-
opacity: 1;
|
|
812
|
+
[data-ui-entity-picker][data-part-positioner][data-open] {
|
|
811
813
|
transition: none;
|
|
812
814
|
translate: 0 0;
|
|
813
815
|
}
|
|
814
816
|
|
|
815
|
-
[data-ui
|
|
817
|
+
[data-ui-entity-picker][data-part-positioner][data-open][data-positioned] {
|
|
816
818
|
animation: slotted-entity-picker-enter-down var(--slotted-duration-medium)
|
|
817
819
|
var(--slotted-easing-enter);
|
|
818
820
|
}
|
|
819
821
|
|
|
820
|
-
[data-ui
|
|
822
|
+
[data-ui-entity-picker][data-part-positioner][data-open][data-positioned][data-side='top'] {
|
|
821
823
|
animation-name: slotted-entity-picker-enter-up;
|
|
822
824
|
}
|
|
823
825
|
|
|
824
|
-
[data-ui='entity-picker'][data-part='positioner'][data-open][data-positioned]:is(
|
|
825
|
-
[data-side='left'],
|
|
826
|
-
[data-side='right']
|
|
827
|
-
) {
|
|
828
|
-
animation-name: slotted-entity-picker-fade;
|
|
829
|
-
}
|
|
830
|
-
|
|
831
826
|
@keyframes slotted-entity-picker-enter-down {
|
|
832
827
|
from {
|
|
833
|
-
opacity: 0;
|
|
834
828
|
translate: 0 calc(-1 * var(--_enter-distance));
|
|
835
829
|
}
|
|
836
830
|
}
|
|
837
831
|
|
|
838
832
|
@keyframes slotted-entity-picker-enter-up {
|
|
839
833
|
from {
|
|
840
|
-
opacity: 0;
|
|
841
834
|
translate: 0 var(--_enter-distance);
|
|
842
835
|
}
|
|
843
836
|
}
|
|
@@ -848,38 +841,59 @@
|
|
|
848
841
|
}
|
|
849
842
|
}
|
|
850
843
|
|
|
844
|
+
/**
|
|
845
|
+
* The fade belongs to the part that paints the surface, and the layer only
|
|
846
|
+
* moves. In Chromium an ancestor with `opacity` below one is the Backdrop Root
|
|
847
|
+
* of what it holds, so a `backdrop-filter` on the content blurs nothing until
|
|
848
|
+
* the layer is opaque and then appears at once. The content's own opacity
|
|
849
|
+
* leaves its own filter drawn on every frame of the motion.
|
|
850
|
+
*/
|
|
851
|
+
[data-ui-entity-picker][data-part-positioner] > [data-part-content] {
|
|
852
|
+
opacity: 0;
|
|
853
|
+
transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
[data-ui-entity-picker][data-part-positioner][data-open] > [data-part-content] {
|
|
857
|
+
opacity: 1;
|
|
858
|
+
transition: none;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
[data-ui-entity-picker][data-part-positioner][data-open][data-positioned] > [data-part-content] {
|
|
862
|
+
animation: slotted-entity-picker-fade var(--slotted-duration-medium) var(--slotted-easing-enter);
|
|
863
|
+
}
|
|
864
|
+
|
|
851
865
|
@media (prefers-reduced-motion: reduce) {
|
|
852
|
-
[data-ui
|
|
853
|
-
[data-ui
|
|
854
|
-
[data-ui
|
|
855
|
-
[data-ui
|
|
856
|
-
transition:
|
|
866
|
+
[data-ui-entity-picker][data-part-positioner],
|
|
867
|
+
[data-ui-entity-picker][data-part-positioner][data-side='top'],
|
|
868
|
+
[data-ui-entity-picker][data-part-positioner][data-side='left'],
|
|
869
|
+
[data-ui-entity-picker][data-part-positioner][data-side='right'] {
|
|
870
|
+
transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
857
871
|
translate: 0 0;
|
|
858
872
|
}
|
|
859
873
|
|
|
860
|
-
[data-ui
|
|
861
|
-
[data-ui
|
|
862
|
-
[data-ui
|
|
863
|
-
[data-ui
|
|
864
|
-
animation-name:
|
|
874
|
+
[data-ui-entity-picker][data-part-positioner][data-open][data-positioned],
|
|
875
|
+
[data-ui-entity-picker][data-part-positioner][data-open][data-positioned][data-side='top'],
|
|
876
|
+
[data-ui-entity-picker][data-part-positioner][data-open][data-positioned][data-side='left'],
|
|
877
|
+
[data-ui-entity-picker][data-part-positioner][data-open][data-positioned][data-side='right'] {
|
|
878
|
+
animation-name: none;
|
|
865
879
|
}
|
|
866
880
|
}
|
|
867
881
|
|
|
868
|
-
[data-ui
|
|
882
|
+
[data-ui-entity-picker][data-part-positioner][data-detached] {
|
|
869
883
|
visibility: hidden;
|
|
870
884
|
}
|
|
871
885
|
|
|
872
|
-
[data-ui
|
|
886
|
+
[data-ui-entity-picker][data-part-positioner][data-width='anchor'] {
|
|
873
887
|
inline-size: var(--slotted-positioner-anchor-width, auto);
|
|
874
888
|
}
|
|
875
889
|
|
|
876
|
-
[data-ui
|
|
890
|
+
[data-ui-entity-picker][data-part-positioner][data-width='content'] {
|
|
877
891
|
inline-size: max-content;
|
|
878
892
|
max-inline-size: min(var(--_measure), var(--slotted-positioner-available-width, 100vw));
|
|
879
893
|
min-inline-size: var(--slotted-positioner-anchor-width, auto);
|
|
880
894
|
}
|
|
881
895
|
|
|
882
|
-
[data-ui
|
|
896
|
+
[data-ui-entity-picker][data-part-positioner][data-size='sm'] {
|
|
883
897
|
--_item-inset: var(--slotted-control-padding-inline-sm, 0.625rem);
|
|
884
898
|
--_item-height: var(--slotted-control-height-sm, 30px);
|
|
885
899
|
--_content-font-size: var(--slotted-control-font-size-sm, 12px);
|
|
@@ -889,7 +903,7 @@
|
|
|
889
903
|
--_media-size: var(--slotted-avatar-size-xs, 24px);
|
|
890
904
|
}
|
|
891
905
|
|
|
892
|
-
[data-ui
|
|
906
|
+
[data-ui-entity-picker][data-part-positioner][data-size='lg'] {
|
|
893
907
|
--_item-inset: var(--slotted-control-padding-inline-lg, 1rem);
|
|
894
908
|
--_item-height: var(--slotted-control-height-lg, 38px);
|
|
895
909
|
--_content-font-size: var(--slotted-control-font-size-lg, 14px);
|
|
@@ -906,7 +920,7 @@
|
|
|
906
920
|
* short fact, the check. A column no row fills is `auto` and takes nothing,
|
|
907
921
|
* so a list with `media="none"` starts its words at the row's inset.
|
|
908
922
|
*/
|
|
909
|
-
[data-ui
|
|
923
|
+
[data-ui-entity-picker] > [data-part-content] {
|
|
910
924
|
background: var(--_surface);
|
|
911
925
|
border: var(--_border-width) solid var(--_border-color);
|
|
912
926
|
border-radius: var(--_content-radius);
|
|
@@ -930,6 +944,16 @@
|
|
|
930
944
|
padding-block: var(--_inset-block);
|
|
931
945
|
padding-inline: var(--_inset-inline);
|
|
932
946
|
pointer-events: auto;
|
|
947
|
+
/* A theme that paints this surface as a translucent material blurs what moves behind it. */
|
|
948
|
+
-webkit-backdrop-filter: var(--slotted-entity-picker-content-backdrop-filter, none);
|
|
949
|
+
backdrop-filter: var(--slotted-entity-picker-content-backdrop-filter, none);
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
|
|
953
|
+
[data-ui-entity-picker] > [data-part-content] {
|
|
954
|
+
-webkit-backdrop-filter: none;
|
|
955
|
+
backdrop-filter: none;
|
|
956
|
+
}
|
|
933
957
|
}
|
|
934
958
|
|
|
935
959
|
/**
|
|
@@ -938,19 +962,19 @@
|
|
|
938
962
|
* same wait. They stay pressable — each is still a record the reader can
|
|
939
963
|
* choose.
|
|
940
964
|
*/
|
|
941
|
-
[data-ui
|
|
942
|
-
> [data-part
|
|
943
|
-
> :is([data-part
|
|
965
|
+
[data-ui-entity-picker]
|
|
966
|
+
> [data-part-content][data-loading]
|
|
967
|
+
> :is([data-part-group], [data-part-item]) {
|
|
944
968
|
opacity: 0.55;
|
|
945
969
|
transition: opacity var(--slotted-control-transition-duration)
|
|
946
970
|
var(--slotted-control-transition-easing);
|
|
947
971
|
}
|
|
948
972
|
|
|
949
|
-
[data-ui
|
|
973
|
+
[data-ui-entity-picker] > [data-part-content][data-loading] {
|
|
950
974
|
cursor: progress;
|
|
951
975
|
}
|
|
952
976
|
|
|
953
|
-
[data-ui
|
|
977
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-group] {
|
|
954
978
|
display: grid;
|
|
955
979
|
grid-column: 1 / -1;
|
|
956
980
|
grid-template-columns: subgrid;
|
|
@@ -958,24 +982,60 @@
|
|
|
958
982
|
|
|
959
983
|
/* Two sections are separated by a step of air, not by a rule: the heading
|
|
960
984
|
already says where one ends. */
|
|
961
|
-
[data-ui
|
|
985
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-group] + [data-part-group] {
|
|
962
986
|
margin-block-start: var(--slotted-space-2, 0.25rem);
|
|
963
987
|
}
|
|
964
988
|
|
|
965
|
-
|
|
989
|
+
/**
|
|
990
|
+
* A group's label stays at the top of the list while its group is in view.
|
|
991
|
+
* The group is the label's containing block, so the next label pushes it out
|
|
992
|
+
* and a group scrolled past takes its label with it. It sticks to the
|
|
993
|
+
* scrollport's edge rather than the padding's, on the surface's ground, above
|
|
994
|
+
* the items and below the parts the surface draws over them.
|
|
995
|
+
*/
|
|
996
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-group-label] {
|
|
997
|
+
background: var(--_surface);
|
|
998
|
+
box-sizing: border-box;
|
|
966
999
|
color: var(--_muted);
|
|
967
1000
|
font-size: var(--_secondary-font-size);
|
|
968
1001
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
969
1002
|
grid-column: 1 / -1;
|
|
1003
|
+
inset-block-start: calc(-1 * var(--_inset-block));
|
|
970
1004
|
line-height: var(--slotted-line-height-sm, 1.45);
|
|
1005
|
+
min-block-size: var(--_group-label-height);
|
|
971
1006
|
padding-block: var(--slotted-space-3, 0.375rem) var(--slotted-space-2, 0.25rem);
|
|
972
1007
|
padding-inline: var(--_item-inset);
|
|
1008
|
+
position: sticky;
|
|
1009
|
+
z-index: 1;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
@media (forced-colors: active) {
|
|
1013
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-group-label] {
|
|
1014
|
+
background: Canvas;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* The label's height, which the list keeps clear above an item the keys
|
|
1020
|
+
* bring into view (`revealWithin` reads the scroll padding), so the item is
|
|
1021
|
+
* never drawn under a label stuck to the top.
|
|
1022
|
+
*/
|
|
1023
|
+
[data-ui-entity-picker] > [data-part-content]:has([data-part-group-label]) {
|
|
1024
|
+
--_group-label-height: var(
|
|
1025
|
+
--slotted-entity-picker-group-label-height,
|
|
1026
|
+
calc(
|
|
1027
|
+
var(--_secondary-font-size) * var(--slotted-line-height-sm, 1.45) +
|
|
1028
|
+
var(--slotted-space-3, 0.375rem) + var(--slotted-space-2, 0.25rem)
|
|
1029
|
+
)
|
|
1030
|
+
);
|
|
1031
|
+
|
|
1032
|
+
scroll-padding-block-start: var(--_group-label-height);
|
|
973
1033
|
}
|
|
974
1034
|
|
|
975
1035
|
/* ── The record ───────────────────────────────────────────────────────── */
|
|
976
1036
|
|
|
977
|
-
[data-ui
|
|
978
|
-
/* The tracks keep their content's height and the pair is
|
|
1037
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-item] {
|
|
1038
|
+
/* The tracks keep their content's height and the pair is centerd in the
|
|
979
1039
|
row's minimum, so a mark placed at the start of a track is on the
|
|
980
1040
|
words' line: stretched tracks put the words 3px under their glyph. */
|
|
981
1041
|
align-content: center;
|
|
@@ -1000,64 +1060,62 @@
|
|
|
1000
1060
|
user-select: none;
|
|
1001
1061
|
}
|
|
1002
1062
|
|
|
1003
|
-
[data-ui
|
|
1004
|
-
[data-part='item']:has(> [data-part='description']) {
|
|
1063
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-item]:has(> [data-part-description]) {
|
|
1005
1064
|
grid-template-rows: auto auto;
|
|
1006
1065
|
}
|
|
1007
1066
|
|
|
1008
|
-
[data-ui
|
|
1067
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-item][data-current] {
|
|
1009
1068
|
background-color: var(--_highlight);
|
|
1010
1069
|
/* A ring as well as a ground: nothing on this surface holds focus. */
|
|
1011
1070
|
box-shadow: inset 0 0 0 var(--slotted-border-width-thin, 1px)
|
|
1012
1071
|
var(--slotted-entity-picker-highlight-ring, var(--slotted-tone-accent-border));
|
|
1013
1072
|
}
|
|
1014
1073
|
|
|
1015
|
-
[data-ui
|
|
1074
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-item]:not([data-disabled]):active {
|
|
1016
1075
|
background-color: var(--_highlight-active);
|
|
1017
1076
|
}
|
|
1018
1077
|
|
|
1019
|
-
[data-ui
|
|
1078
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-item][data-selected] {
|
|
1020
1079
|
color: var(--_selected-color);
|
|
1021
1080
|
}
|
|
1022
1081
|
|
|
1023
1082
|
/* Two chosen neighbours are one block (LB2, `selection-block.test.mjs`). */
|
|
1024
|
-
[data-ui
|
|
1025
|
-
[data-part
|
|
1026
|
-
+ [data-part
|
|
1083
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1084
|
+
[data-part-item][data-selected]
|
|
1085
|
+
+ [data-part-item][data-selected] {
|
|
1027
1086
|
border-start-end-radius: 0;
|
|
1028
1087
|
border-start-start-radius: 0;
|
|
1029
1088
|
}
|
|
1030
1089
|
|
|
1031
|
-
[data-ui
|
|
1032
|
-
[data-part
|
|
1090
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1091
|
+
[data-part-item][data-selected]:has(+ [data-part-item][data-selected]) {
|
|
1033
1092
|
border-end-end-radius: 0;
|
|
1034
1093
|
border-end-start-radius: 0;
|
|
1035
1094
|
}
|
|
1036
1095
|
|
|
1037
|
-
[data-ui
|
|
1038
|
-
[data-part
|
|
1039
|
-
> [data-part
|
|
1096
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1097
|
+
[data-part-item][data-selected]
|
|
1098
|
+
> [data-part-label] {
|
|
1040
1099
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
1041
1100
|
}
|
|
1042
1101
|
|
|
1043
|
-
[data-ui
|
|
1102
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-item][data-disabled] {
|
|
1044
1103
|
color: var(--slotted-disabled-foreground, #64748b);
|
|
1045
1104
|
cursor: not-allowed;
|
|
1046
1105
|
}
|
|
1047
1106
|
|
|
1048
|
-
[data-ui
|
|
1049
|
-
[data-part='item'][data-disabled][data-current] {
|
|
1107
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-item][data-disabled][data-current] {
|
|
1050
1108
|
box-shadow: inset 0 0 0 var(--slotted-border-width-thin, 1px)
|
|
1051
1109
|
var(--slotted-disabled-border, #cbd5e1);
|
|
1052
1110
|
color: var(--slotted-disabled-foreground, #64748b);
|
|
1053
1111
|
}
|
|
1054
1112
|
|
|
1055
1113
|
/**
|
|
1056
|
-
* The face spans both lines and is
|
|
1057
|
-
* one block — who, then which one — and a one-line record's face is
|
|
1114
|
+
* The face spans both lines and is centerd on them, so a record reads as
|
|
1115
|
+
* one block — who, then which one — and a one-line record's face is centerd
|
|
1058
1116
|
* on its one line. The column's width is the face's, plus the gap.
|
|
1059
1117
|
*/
|
|
1060
|
-
[data-ui
|
|
1118
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-media] {
|
|
1061
1119
|
--slotted-avatar-size-xs: var(--_media-size);
|
|
1062
1120
|
|
|
1063
1121
|
align-self: center;
|
|
@@ -1068,12 +1126,12 @@
|
|
|
1068
1126
|
margin-inline-end: var(--_column-gap);
|
|
1069
1127
|
}
|
|
1070
1128
|
|
|
1071
|
-
[data-ui
|
|
1129
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-media]:empty {
|
|
1072
1130
|
block-size: var(--_content-icon-size);
|
|
1073
1131
|
inline-size: var(--_media-size);
|
|
1074
1132
|
}
|
|
1075
1133
|
|
|
1076
|
-
[data-ui
|
|
1134
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-label] {
|
|
1077
1135
|
-webkit-box-orient: vertical;
|
|
1078
1136
|
display: -webkit-box;
|
|
1079
1137
|
grid-column: 2;
|
|
@@ -1099,7 +1157,7 @@
|
|
|
1099
1157
|
* text aligns to its own direction, and a Latin name stood at the left of
|
|
1100
1158
|
* a right-to-left row, a column away from its face.
|
|
1101
1159
|
*/
|
|
1102
|
-
[data-ui
|
|
1160
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-description] {
|
|
1103
1161
|
color: var(--_muted);
|
|
1104
1162
|
font-size: var(--_secondary-font-size);
|
|
1105
1163
|
/* Under the short fact too: that column holds nothing on this line. */
|
|
@@ -1115,18 +1173,18 @@
|
|
|
1115
1173
|
white-space: nowrap;
|
|
1116
1174
|
}
|
|
1117
1175
|
|
|
1118
|
-
[data-ui
|
|
1119
|
-
[data-part
|
|
1120
|
-
> [data-part
|
|
1176
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1177
|
+
[data-part-item][data-disabled]
|
|
1178
|
+
> [data-part-description] {
|
|
1121
1179
|
color: inherit;
|
|
1122
1180
|
}
|
|
1123
1181
|
|
|
1124
1182
|
/**
|
|
1125
1183
|
* A short fact at the end of the name's line: a type, a status. It is on
|
|
1126
|
-
* the name's line and not
|
|
1184
|
+
* the name's line and not centerd on the record, because it is read with
|
|
1127
1185
|
* the name ("Ana Silva · Admin"), and it never wraps.
|
|
1128
1186
|
*/
|
|
1129
|
-
[data-ui
|
|
1187
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-meta] {
|
|
1130
1188
|
align-self: start;
|
|
1131
1189
|
color: var(--_muted);
|
|
1132
1190
|
font-size: var(--_secondary-font-size);
|
|
@@ -1145,10 +1203,10 @@
|
|
|
1145
1203
|
/**
|
|
1146
1204
|
* The check marks the name, so it stands on the name's first line — the
|
|
1147
1205
|
* briefing's rule for a mark beside a line of text — in a box one line
|
|
1148
|
-
* tall with the glyph
|
|
1206
|
+
* tall with the glyph centerd in it, as `combobox` draws it. Centerd on a
|
|
1149
1207
|
* two-line record it stood nine pixels above the name (`audit.mjs`).
|
|
1150
1208
|
*/
|
|
1151
|
-
[data-ui
|
|
1209
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-indicator] {
|
|
1152
1210
|
--slotted-icon-size: var(--_content-icon-size);
|
|
1153
1211
|
|
|
1154
1212
|
align-items: center;
|
|
@@ -1164,27 +1222,27 @@
|
|
|
1164
1222
|
transition: opacity var(--slotted-duration-short) var(--slotted-easing-standard);
|
|
1165
1223
|
}
|
|
1166
1224
|
|
|
1167
|
-
[data-ui
|
|
1168
|
-
[data-part
|
|
1169
|
-
> [data-part
|
|
1225
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1226
|
+
[data-part-item][data-selected]
|
|
1227
|
+
> [data-part-indicator] {
|
|
1170
1228
|
opacity: 1;
|
|
1171
1229
|
}
|
|
1172
1230
|
|
|
1173
1231
|
/* A record with no short fact gives its column to the name. */
|
|
1174
|
-
[data-ui
|
|
1175
|
-
[data-part
|
|
1176
|
-
> [data-part
|
|
1232
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1233
|
+
[data-part-item]:not(:has(> [data-part-meta]))
|
|
1234
|
+
> [data-part-label] {
|
|
1177
1235
|
grid-column: 2 / 4;
|
|
1178
1236
|
}
|
|
1179
1237
|
|
|
1180
1238
|
/**
|
|
1181
|
-
* A record of one line is the face's height, and its name is
|
|
1182
|
-
* it; the check and the short fact are
|
|
1239
|
+
* A record of one line is the face's height, and its name is centerd in
|
|
1240
|
+
* it; the check and the short fact are centerd with the name there, where
|
|
1183
1241
|
* on a two-line record they stand on the name's line.
|
|
1184
1242
|
*/
|
|
1185
|
-
[data-ui
|
|
1186
|
-
[data-part
|
|
1187
|
-
> :is([data-part
|
|
1243
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1244
|
+
[data-part-item]:not(:has(> [data-part-description]))
|
|
1245
|
+
> :is([data-part-indicator], [data-part-meta]) {
|
|
1188
1246
|
align-self: center;
|
|
1189
1247
|
}
|
|
1190
1248
|
|
|
@@ -1195,14 +1253,13 @@
|
|
|
1195
1253
|
* column so its words start where every name starts: the plus to create,
|
|
1196
1254
|
* the turning arrow to search again, each a `Glyph` the binding draws.
|
|
1197
1255
|
*/
|
|
1198
|
-
[data-ui
|
|
1199
|
-
[data-part='item']:is([data-create], [data-retry]) {
|
|
1256
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-item]:is([data-create], [data-retry]) {
|
|
1200
1257
|
color: var(--slotted-entity-picker-offer-color, var(--slotted-tone-accent-text));
|
|
1201
1258
|
}
|
|
1202
1259
|
|
|
1203
|
-
[data-ui
|
|
1204
|
-
[data-part
|
|
1205
|
-
> [data-part
|
|
1260
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1261
|
+
[data-part-item]:is([data-create], [data-retry])
|
|
1262
|
+
> [data-part-media] {
|
|
1206
1263
|
--slotted-icon-size: var(--_content-icon-size);
|
|
1207
1264
|
|
|
1208
1265
|
align-items: center;
|
|
@@ -1216,8 +1273,8 @@
|
|
|
1216
1273
|
|
|
1217
1274
|
/* ── Error, empty, status ─────────────────────────────────────────────── */
|
|
1218
1275
|
|
|
1219
|
-
[data-ui
|
|
1220
|
-
:is([data-part
|
|
1276
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1277
|
+
:is([data-part-empty], [data-part-status], [data-part-error]) {
|
|
1221
1278
|
color: var(--_muted);
|
|
1222
1279
|
grid-column: 1 / -1;
|
|
1223
1280
|
min-inline-size: min(12rem, 100%);
|
|
@@ -1228,18 +1285,18 @@
|
|
|
1228
1285
|
unicode-bidi: plaintext;
|
|
1229
1286
|
}
|
|
1230
1287
|
|
|
1231
|
-
[data-ui
|
|
1288
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-status]:empty {
|
|
1232
1289
|
display: none;
|
|
1233
1290
|
}
|
|
1234
1291
|
|
|
1235
1292
|
/**
|
|
1236
|
-
* The error names what failed in the text
|
|
1293
|
+
* The error names what failed in the text color, with the alert mark — a
|
|
1237
1294
|
* `Glyph` the binding draws before the words — beside it in the danger
|
|
1238
|
-
* tone,
|
|
1239
|
-
* option. It stands on the row's inset like every row, not
|
|
1295
|
+
* tone, centerd in the face's column; the offer to search again follows as an
|
|
1296
|
+
* option. It stands on the row's inset like every row, not centerd like
|
|
1240
1297
|
* the empty sentence: it is the first of two rows that belong together.
|
|
1241
1298
|
*/
|
|
1242
|
-
[data-ui
|
|
1299
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-error] {
|
|
1243
1300
|
align-items: center;
|
|
1244
1301
|
color: var(--_text);
|
|
1245
1302
|
display: flex;
|
|
@@ -1248,7 +1305,7 @@
|
|
|
1248
1305
|
text-align: start;
|
|
1249
1306
|
}
|
|
1250
1307
|
|
|
1251
|
-
[data-ui
|
|
1308
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-error] > [data-ui-icon] {
|
|
1252
1309
|
--slotted-icon-size: var(--_content-icon-size);
|
|
1253
1310
|
|
|
1254
1311
|
color: var(--slotted-entity-picker-error-color, var(--slotted-tone-danger-text));
|
|
@@ -1264,16 +1321,13 @@
|
|
|
1264
1321
|
* same inset, column gap and height, so the answer lands in the boxes that
|
|
1265
1322
|
* waited for it. The lengths differ the way names do.
|
|
1266
1323
|
*/
|
|
1267
|
-
[data-ui
|
|
1268
|
-
:is([data-part='placeholder'], [data-part='more']) {
|
|
1324
|
+
[data-ui-entity-picker][data-part-positioner] :is([data-part-placeholder], [data-part-more]) {
|
|
1269
1325
|
display: grid;
|
|
1270
1326
|
grid-column: 1 / -1;
|
|
1271
1327
|
grid-template-columns: subgrid;
|
|
1272
1328
|
}
|
|
1273
1329
|
|
|
1274
|
-
[data-ui
|
|
1275
|
-
:is([data-part='placeholder'], [data-part='more'])
|
|
1276
|
-
> * {
|
|
1330
|
+
[data-ui-entity-picker][data-part-positioner] :is([data-part-placeholder], [data-part-more]) > * {
|
|
1277
1331
|
align-items: center;
|
|
1278
1332
|
display: grid;
|
|
1279
1333
|
grid-column: 1 / -1;
|
|
@@ -1285,8 +1339,8 @@
|
|
|
1285
1339
|
padding-inline: var(--_item-inset);
|
|
1286
1340
|
}
|
|
1287
1341
|
|
|
1288
|
-
[data-ui
|
|
1289
|
-
:is([data-part
|
|
1342
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1343
|
+
:is([data-part-placeholder], [data-part-more])
|
|
1290
1344
|
> *
|
|
1291
1345
|
> :first-child {
|
|
1292
1346
|
--slotted-skeleton-size: var(--_media-size);
|
|
@@ -1297,8 +1351,8 @@
|
|
|
1297
1351
|
}
|
|
1298
1352
|
|
|
1299
1353
|
/* Each line stands in the line box of the text it holds the place of. */
|
|
1300
|
-
[data-ui
|
|
1301
|
-
:is([data-part
|
|
1354
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1355
|
+
:is([data-part-placeholder], [data-part-more])
|
|
1302
1356
|
> *
|
|
1303
1357
|
> :nth-child(2) {
|
|
1304
1358
|
--slotted-skeleton-inline-size: 62%;
|
|
@@ -1308,8 +1362,8 @@
|
|
|
1308
1362
|
margin-block: calc((1lh - 1cap) / 2);
|
|
1309
1363
|
}
|
|
1310
1364
|
|
|
1311
|
-
[data-ui
|
|
1312
|
-
:is([data-part
|
|
1365
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1366
|
+
:is([data-part-placeholder], [data-part-more])
|
|
1313
1367
|
> *
|
|
1314
1368
|
> :nth-child(3) {
|
|
1315
1369
|
--slotted-skeleton-inline-size: 44%;
|
|
@@ -1321,45 +1375,44 @@
|
|
|
1321
1375
|
margin-block: calc((1lh - 1cap) / 2);
|
|
1322
1376
|
}
|
|
1323
1377
|
|
|
1324
|
-
[data-ui
|
|
1325
|
-
[data-part
|
|
1378
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1379
|
+
[data-part-placeholder]
|
|
1326
1380
|
> :nth-child(2)
|
|
1327
1381
|
> :nth-child(2) {
|
|
1328
1382
|
--slotted-skeleton-inline-size: 48%;
|
|
1329
1383
|
}
|
|
1330
1384
|
|
|
1331
|
-
[data-ui
|
|
1332
|
-
[data-part
|
|
1385
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1386
|
+
[data-part-placeholder]
|
|
1333
1387
|
> :nth-child(2)
|
|
1334
1388
|
> :nth-child(3) {
|
|
1335
1389
|
--slotted-skeleton-inline-size: 58%;
|
|
1336
1390
|
}
|
|
1337
1391
|
|
|
1338
|
-
[data-ui
|
|
1339
|
-
[data-part
|
|
1392
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1393
|
+
[data-part-placeholder]
|
|
1340
1394
|
> :nth-child(3)
|
|
1341
1395
|
> :nth-child(2) {
|
|
1342
1396
|
--slotted-skeleton-inline-size: 70%;
|
|
1343
1397
|
}
|
|
1344
1398
|
|
|
1345
|
-
[data-ui
|
|
1346
|
-
[data-part
|
|
1399
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1400
|
+
[data-part-placeholder]
|
|
1347
1401
|
> :nth-child(3)
|
|
1348
1402
|
> :nth-child(3) {
|
|
1349
1403
|
--slotted-skeleton-inline-size: 36%;
|
|
1350
1404
|
}
|
|
1351
1405
|
|
|
1352
|
-
/* ── Forced
|
|
1406
|
+
/* ── Forced colors ───────────────────────────────────────────────────── */
|
|
1353
1407
|
|
|
1354
1408
|
@media (forced-colors: active) {
|
|
1355
|
-
[data-ui
|
|
1409
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-item][data-current] {
|
|
1356
1410
|
background-color: Highlight;
|
|
1357
1411
|
color: HighlightText;
|
|
1358
1412
|
forced-color-adjust: none;
|
|
1359
1413
|
}
|
|
1360
1414
|
|
|
1361
|
-
[data-ui
|
|
1362
|
-
[data-part='item'][data-disabled][data-current] {
|
|
1415
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-item][data-disabled][data-current] {
|
|
1363
1416
|
background-color: Highlight;
|
|
1364
1417
|
color: GrayText;
|
|
1365
1418
|
}
|