@slotted/styles 0.1.0-beta.2 → 0.1.0-beta.21
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 +154 -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 +157 -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 +212 -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 +57 -52
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +75 -57
- package/src/date-picker/date-picker.tokens.json +1 -0
- package/src/date-range-picker/date-range-picker.css +116 -118
- package/src/datetime-field/datetime-field.css +80 -80
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +63 -63
- package/src/datetime-range-picker/datetime-range-picker.css +151 -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 +273 -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 +177 -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 +83 -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 +153 -132
- 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 +91 -71
- package/src/tag/tag.tokens.json +9 -0
- package/src/tags-input/tags-input.css +147 -82
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +134 -136
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +33 -28
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +74 -69
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +58 -58
- package/src/time-range-picker/time-range-picker.css +128 -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);
|
|
@@ -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 colour 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
|
}
|
|
@@ -383,12 +395,12 @@
|
|
|
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)
|
|
@@ -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
|
|
@@ -680,22 +683,25 @@
|
|
|
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,11 +982,11 @@
|
|
|
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
|
-
[data-ui
|
|
989
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-group-label] {
|
|
966
990
|
color: var(--_muted);
|
|
967
991
|
font-size: var(--_secondary-font-size);
|
|
968
992
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
@@ -974,7 +998,7 @@
|
|
|
974
998
|
|
|
975
999
|
/* ── The record ───────────────────────────────────────────────────────── */
|
|
976
1000
|
|
|
977
|
-
[data-ui
|
|
1001
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-item] {
|
|
978
1002
|
/* The tracks keep their content's height and the pair is centred in the
|
|
979
1003
|
row's minimum, so a mark placed at the start of a track is on the
|
|
980
1004
|
words' line: stretched tracks put the words 3px under their glyph. */
|
|
@@ -1000,53 +1024,51 @@
|
|
|
1000
1024
|
user-select: none;
|
|
1001
1025
|
}
|
|
1002
1026
|
|
|
1003
|
-
[data-ui
|
|
1004
|
-
[data-part='item']:has(> [data-part='description']) {
|
|
1027
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-item]:has(> [data-part-description]) {
|
|
1005
1028
|
grid-template-rows: auto auto;
|
|
1006
1029
|
}
|
|
1007
1030
|
|
|
1008
|
-
[data-ui
|
|
1031
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-item][data-current] {
|
|
1009
1032
|
background-color: var(--_highlight);
|
|
1010
1033
|
/* A ring as well as a ground: nothing on this surface holds focus. */
|
|
1011
1034
|
box-shadow: inset 0 0 0 var(--slotted-border-width-thin, 1px)
|
|
1012
1035
|
var(--slotted-entity-picker-highlight-ring, var(--slotted-tone-accent-border));
|
|
1013
1036
|
}
|
|
1014
1037
|
|
|
1015
|
-
[data-ui
|
|
1038
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-item]:not([data-disabled]):active {
|
|
1016
1039
|
background-color: var(--_highlight-active);
|
|
1017
1040
|
}
|
|
1018
1041
|
|
|
1019
|
-
[data-ui
|
|
1042
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-item][data-selected] {
|
|
1020
1043
|
color: var(--_selected-color);
|
|
1021
1044
|
}
|
|
1022
1045
|
|
|
1023
1046
|
/* Two chosen neighbours are one block (LB2, `selection-block.test.mjs`). */
|
|
1024
|
-
[data-ui
|
|
1025
|
-
[data-part
|
|
1026
|
-
+ [data-part
|
|
1047
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1048
|
+
[data-part-item][data-selected]
|
|
1049
|
+
+ [data-part-item][data-selected] {
|
|
1027
1050
|
border-start-end-radius: 0;
|
|
1028
1051
|
border-start-start-radius: 0;
|
|
1029
1052
|
}
|
|
1030
1053
|
|
|
1031
|
-
[data-ui
|
|
1032
|
-
[data-part
|
|
1054
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1055
|
+
[data-part-item][data-selected]:has(+ [data-part-item][data-selected]) {
|
|
1033
1056
|
border-end-end-radius: 0;
|
|
1034
1057
|
border-end-start-radius: 0;
|
|
1035
1058
|
}
|
|
1036
1059
|
|
|
1037
|
-
[data-ui
|
|
1038
|
-
[data-part
|
|
1039
|
-
> [data-part
|
|
1060
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1061
|
+
[data-part-item][data-selected]
|
|
1062
|
+
> [data-part-label] {
|
|
1040
1063
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
1041
1064
|
}
|
|
1042
1065
|
|
|
1043
|
-
[data-ui
|
|
1066
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-item][data-disabled] {
|
|
1044
1067
|
color: var(--slotted-disabled-foreground, #64748b);
|
|
1045
1068
|
cursor: not-allowed;
|
|
1046
1069
|
}
|
|
1047
1070
|
|
|
1048
|
-
[data-ui
|
|
1049
|
-
[data-part='item'][data-disabled][data-current] {
|
|
1071
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-item][data-disabled][data-current] {
|
|
1050
1072
|
box-shadow: inset 0 0 0 var(--slotted-border-width-thin, 1px)
|
|
1051
1073
|
var(--slotted-disabled-border, #cbd5e1);
|
|
1052
1074
|
color: var(--slotted-disabled-foreground, #64748b);
|
|
@@ -1057,7 +1079,7 @@
|
|
|
1057
1079
|
* one block — who, then which one — and a one-line record's face is centred
|
|
1058
1080
|
* on its one line. The column's width is the face's, plus the gap.
|
|
1059
1081
|
*/
|
|
1060
|
-
[data-ui
|
|
1082
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-media] {
|
|
1061
1083
|
--slotted-avatar-size-xs: var(--_media-size);
|
|
1062
1084
|
|
|
1063
1085
|
align-self: center;
|
|
@@ -1068,12 +1090,12 @@
|
|
|
1068
1090
|
margin-inline-end: var(--_column-gap);
|
|
1069
1091
|
}
|
|
1070
1092
|
|
|
1071
|
-
[data-ui
|
|
1093
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-media]:empty {
|
|
1072
1094
|
block-size: var(--_content-icon-size);
|
|
1073
1095
|
inline-size: var(--_media-size);
|
|
1074
1096
|
}
|
|
1075
1097
|
|
|
1076
|
-
[data-ui
|
|
1098
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-label] {
|
|
1077
1099
|
-webkit-box-orient: vertical;
|
|
1078
1100
|
display: -webkit-box;
|
|
1079
1101
|
grid-column: 2;
|
|
@@ -1099,7 +1121,7 @@
|
|
|
1099
1121
|
* text aligns to its own direction, and a Latin name stood at the left of
|
|
1100
1122
|
* a right-to-left row, a column away from its face.
|
|
1101
1123
|
*/
|
|
1102
|
-
[data-ui
|
|
1124
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-description] {
|
|
1103
1125
|
color: var(--_muted);
|
|
1104
1126
|
font-size: var(--_secondary-font-size);
|
|
1105
1127
|
/* Under the short fact too: that column holds nothing on this line. */
|
|
@@ -1115,9 +1137,9 @@
|
|
|
1115
1137
|
white-space: nowrap;
|
|
1116
1138
|
}
|
|
1117
1139
|
|
|
1118
|
-
[data-ui
|
|
1119
|
-
[data-part
|
|
1120
|
-
> [data-part
|
|
1140
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1141
|
+
[data-part-item][data-disabled]
|
|
1142
|
+
> [data-part-description] {
|
|
1121
1143
|
color: inherit;
|
|
1122
1144
|
}
|
|
1123
1145
|
|
|
@@ -1126,7 +1148,7 @@
|
|
|
1126
1148
|
* the name's line and not centred on the record, because it is read with
|
|
1127
1149
|
* the name ("Ana Silva · Admin"), and it never wraps.
|
|
1128
1150
|
*/
|
|
1129
|
-
[data-ui
|
|
1151
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-meta] {
|
|
1130
1152
|
align-self: start;
|
|
1131
1153
|
color: var(--_muted);
|
|
1132
1154
|
font-size: var(--_secondary-font-size);
|
|
@@ -1148,7 +1170,7 @@
|
|
|
1148
1170
|
* tall with the glyph centred in it, as `combobox` draws it. Centred on a
|
|
1149
1171
|
* two-line record it stood nine pixels above the name (`audit.mjs`).
|
|
1150
1172
|
*/
|
|
1151
|
-
[data-ui
|
|
1173
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-indicator] {
|
|
1152
1174
|
--slotted-icon-size: var(--_content-icon-size);
|
|
1153
1175
|
|
|
1154
1176
|
align-items: center;
|
|
@@ -1164,16 +1186,16 @@
|
|
|
1164
1186
|
transition: opacity var(--slotted-duration-short) var(--slotted-easing-standard);
|
|
1165
1187
|
}
|
|
1166
1188
|
|
|
1167
|
-
[data-ui
|
|
1168
|
-
[data-part
|
|
1169
|
-
> [data-part
|
|
1189
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1190
|
+
[data-part-item][data-selected]
|
|
1191
|
+
> [data-part-indicator] {
|
|
1170
1192
|
opacity: 1;
|
|
1171
1193
|
}
|
|
1172
1194
|
|
|
1173
1195
|
/* A record with no short fact gives its column to the name. */
|
|
1174
|
-
[data-ui
|
|
1175
|
-
[data-part
|
|
1176
|
-
> [data-part
|
|
1196
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1197
|
+
[data-part-item]:not(:has(> [data-part-meta]))
|
|
1198
|
+
> [data-part-label] {
|
|
1177
1199
|
grid-column: 2 / 4;
|
|
1178
1200
|
}
|
|
1179
1201
|
|
|
@@ -1182,9 +1204,9 @@
|
|
|
1182
1204
|
* it; the check and the short fact are centred with the name there, where
|
|
1183
1205
|
* on a two-line record they stand on the name's line.
|
|
1184
1206
|
*/
|
|
1185
|
-
[data-ui
|
|
1186
|
-
[data-part
|
|
1187
|
-
> :is([data-part
|
|
1207
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1208
|
+
[data-part-item]:not(:has(> [data-part-description]))
|
|
1209
|
+
> :is([data-part-indicator], [data-part-meta]) {
|
|
1188
1210
|
align-self: center;
|
|
1189
1211
|
}
|
|
1190
1212
|
|
|
@@ -1195,14 +1217,13 @@
|
|
|
1195
1217
|
* column so its words start where every name starts: the plus to create,
|
|
1196
1218
|
* the turning arrow to search again, each a `Glyph` the binding draws.
|
|
1197
1219
|
*/
|
|
1198
|
-
[data-ui
|
|
1199
|
-
[data-part='item']:is([data-create], [data-retry]) {
|
|
1220
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-item]:is([data-create], [data-retry]) {
|
|
1200
1221
|
color: var(--slotted-entity-picker-offer-color, var(--slotted-tone-accent-text));
|
|
1201
1222
|
}
|
|
1202
1223
|
|
|
1203
|
-
[data-ui
|
|
1204
|
-
[data-part
|
|
1205
|
-
> [data-part
|
|
1224
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1225
|
+
[data-part-item]:is([data-create], [data-retry])
|
|
1226
|
+
> [data-part-media] {
|
|
1206
1227
|
--slotted-icon-size: var(--_content-icon-size);
|
|
1207
1228
|
|
|
1208
1229
|
align-items: center;
|
|
@@ -1216,8 +1237,8 @@
|
|
|
1216
1237
|
|
|
1217
1238
|
/* ── Error, empty, status ─────────────────────────────────────────────── */
|
|
1218
1239
|
|
|
1219
|
-
[data-ui
|
|
1220
|
-
:is([data-part
|
|
1240
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1241
|
+
:is([data-part-empty], [data-part-status], [data-part-error]) {
|
|
1221
1242
|
color: var(--_muted);
|
|
1222
1243
|
grid-column: 1 / -1;
|
|
1223
1244
|
min-inline-size: min(12rem, 100%);
|
|
@@ -1228,7 +1249,7 @@
|
|
|
1228
1249
|
unicode-bidi: plaintext;
|
|
1229
1250
|
}
|
|
1230
1251
|
|
|
1231
|
-
[data-ui
|
|
1252
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-status]:empty {
|
|
1232
1253
|
display: none;
|
|
1233
1254
|
}
|
|
1234
1255
|
|
|
@@ -1239,7 +1260,7 @@
|
|
|
1239
1260
|
* option. It stands on the row's inset like every row, not centred like
|
|
1240
1261
|
* the empty sentence: it is the first of two rows that belong together.
|
|
1241
1262
|
*/
|
|
1242
|
-
[data-ui
|
|
1263
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-error] {
|
|
1243
1264
|
align-items: center;
|
|
1244
1265
|
color: var(--_text);
|
|
1245
1266
|
display: flex;
|
|
@@ -1248,7 +1269,7 @@
|
|
|
1248
1269
|
text-align: start;
|
|
1249
1270
|
}
|
|
1250
1271
|
|
|
1251
|
-
[data-ui
|
|
1272
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-error] > [data-ui-icon] {
|
|
1252
1273
|
--slotted-icon-size: var(--_content-icon-size);
|
|
1253
1274
|
|
|
1254
1275
|
color: var(--slotted-entity-picker-error-color, var(--slotted-tone-danger-text));
|
|
@@ -1264,16 +1285,13 @@
|
|
|
1264
1285
|
* same inset, column gap and height, so the answer lands in the boxes that
|
|
1265
1286
|
* waited for it. The lengths differ the way names do.
|
|
1266
1287
|
*/
|
|
1267
|
-
[data-ui
|
|
1268
|
-
:is([data-part='placeholder'], [data-part='more']) {
|
|
1288
|
+
[data-ui-entity-picker][data-part-positioner] :is([data-part-placeholder], [data-part-more]) {
|
|
1269
1289
|
display: grid;
|
|
1270
1290
|
grid-column: 1 / -1;
|
|
1271
1291
|
grid-template-columns: subgrid;
|
|
1272
1292
|
}
|
|
1273
1293
|
|
|
1274
|
-
[data-ui
|
|
1275
|
-
:is([data-part='placeholder'], [data-part='more'])
|
|
1276
|
-
> * {
|
|
1294
|
+
[data-ui-entity-picker][data-part-positioner] :is([data-part-placeholder], [data-part-more]) > * {
|
|
1277
1295
|
align-items: center;
|
|
1278
1296
|
display: grid;
|
|
1279
1297
|
grid-column: 1 / -1;
|
|
@@ -1285,8 +1303,8 @@
|
|
|
1285
1303
|
padding-inline: var(--_item-inset);
|
|
1286
1304
|
}
|
|
1287
1305
|
|
|
1288
|
-
[data-ui
|
|
1289
|
-
:is([data-part
|
|
1306
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1307
|
+
:is([data-part-placeholder], [data-part-more])
|
|
1290
1308
|
> *
|
|
1291
1309
|
> :first-child {
|
|
1292
1310
|
--slotted-skeleton-size: var(--_media-size);
|
|
@@ -1297,8 +1315,8 @@
|
|
|
1297
1315
|
}
|
|
1298
1316
|
|
|
1299
1317
|
/* Each line stands in the line box of the text it holds the place of. */
|
|
1300
|
-
[data-ui
|
|
1301
|
-
:is([data-part
|
|
1318
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1319
|
+
:is([data-part-placeholder], [data-part-more])
|
|
1302
1320
|
> *
|
|
1303
1321
|
> :nth-child(2) {
|
|
1304
1322
|
--slotted-skeleton-inline-size: 62%;
|
|
@@ -1308,8 +1326,8 @@
|
|
|
1308
1326
|
margin-block: calc((1lh - 1cap) / 2);
|
|
1309
1327
|
}
|
|
1310
1328
|
|
|
1311
|
-
[data-ui
|
|
1312
|
-
:is([data-part
|
|
1329
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1330
|
+
:is([data-part-placeholder], [data-part-more])
|
|
1313
1331
|
> *
|
|
1314
1332
|
> :nth-child(3) {
|
|
1315
1333
|
--slotted-skeleton-inline-size: 44%;
|
|
@@ -1321,29 +1339,29 @@
|
|
|
1321
1339
|
margin-block: calc((1lh - 1cap) / 2);
|
|
1322
1340
|
}
|
|
1323
1341
|
|
|
1324
|
-
[data-ui
|
|
1325
|
-
[data-part
|
|
1342
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1343
|
+
[data-part-placeholder]
|
|
1326
1344
|
> :nth-child(2)
|
|
1327
1345
|
> :nth-child(2) {
|
|
1328
1346
|
--slotted-skeleton-inline-size: 48%;
|
|
1329
1347
|
}
|
|
1330
1348
|
|
|
1331
|
-
[data-ui
|
|
1332
|
-
[data-part
|
|
1349
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1350
|
+
[data-part-placeholder]
|
|
1333
1351
|
> :nth-child(2)
|
|
1334
1352
|
> :nth-child(3) {
|
|
1335
1353
|
--slotted-skeleton-inline-size: 58%;
|
|
1336
1354
|
}
|
|
1337
1355
|
|
|
1338
|
-
[data-ui
|
|
1339
|
-
[data-part
|
|
1356
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1357
|
+
[data-part-placeholder]
|
|
1340
1358
|
> :nth-child(3)
|
|
1341
1359
|
> :nth-child(2) {
|
|
1342
1360
|
--slotted-skeleton-inline-size: 70%;
|
|
1343
1361
|
}
|
|
1344
1362
|
|
|
1345
|
-
[data-ui
|
|
1346
|
-
[data-part
|
|
1363
|
+
[data-ui-entity-picker][data-part-positioner]
|
|
1364
|
+
[data-part-placeholder]
|
|
1347
1365
|
> :nth-child(3)
|
|
1348
1366
|
> :nth-child(3) {
|
|
1349
1367
|
--slotted-skeleton-inline-size: 36%;
|
|
@@ -1352,14 +1370,13 @@
|
|
|
1352
1370
|
/* ── Forced colours ───────────────────────────────────────────────────── */
|
|
1353
1371
|
|
|
1354
1372
|
@media (forced-colors: active) {
|
|
1355
|
-
[data-ui
|
|
1373
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-item][data-current] {
|
|
1356
1374
|
background-color: Highlight;
|
|
1357
1375
|
color: HighlightText;
|
|
1358
1376
|
forced-color-adjust: none;
|
|
1359
1377
|
}
|
|
1360
1378
|
|
|
1361
|
-
[data-ui
|
|
1362
|
-
[data-part='item'][data-disabled][data-current] {
|
|
1379
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-item][data-disabled][data-current] {
|
|
1363
1380
|
background-color: Highlight;
|
|
1364
1381
|
color: GrayText;
|
|
1365
1382
|
}
|