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