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