@slotted/styles 0.1.0-beta.3 → 0.1.0-beta.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -1
- package/src/accordion/accordion.css +11 -11
- package/src/action-bar/action-bar.css +47 -44
- package/src/action-bar/action-bar.tokens.json +1 -0
- package/src/action-sheet/action-sheet.css +39 -39
- package/src/alert/alert.css +96 -96
- package/src/alert/alert.tokens.json +5 -0
- package/src/app-shell/app-shell.css +455 -328
- package/src/app-shell/app-shell.tokens.json +5 -2
- package/src/aspect-ratio/aspect-ratio.css +9 -9
- package/src/attachment/attachment.css +118 -114
- package/src/avatar/avatar.css +96 -66
- package/src/avatar/avatar.tokens.json +7 -0
- package/src/avatar-group/avatar-group.css +22 -23
- package/src/badge/badge.css +54 -46
- package/src/badge/badge.tokens.json +5 -0
- package/src/breadcrumb/breadcrumb.css +52 -52
- package/src/button/button.css +137 -89
- package/src/button/button.tokens.json +5 -0
- package/src/button-group/button-group.css +80 -79
- package/src/button-group/button-group.tokens.json +1 -0
- package/src/calendar/calendar.css +139 -109
- package/src/calendar/calendar.tokens.json +5 -1
- package/src/card/card.css +68 -65
- package/src/carousel/carousel.css +158 -169
- package/src/cascader/cascader.css +158 -157
- package/src/cascader/cascader.tokens.json +1 -0
- package/src/chart/chart.css +288 -267
- package/src/chart/chart.tokens.json +4 -0
- package/src/checkbox/checkbox.css +143 -148
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/code-block/code-block.css +85 -89
- package/src/collapsible/collapsible.css +76 -80
- package/src/color-picker/color-picker.css +106 -114
- package/src/column-manager/column-manager.css +111 -119
- package/src/combobox/combobox.css +203 -130
- package/src/combobox/combobox.tokens.json +3 -0
- package/src/command-palette/command-palette.css +155 -102
- package/src/command-palette/command-palette.tokens.json +2 -0
- package/src/container/container.css +27 -27
- package/src/context-menu/context-menu.css +9 -9
- package/src/currency-field/currency-field.css +119 -119
- package/src/currency-field/currency-field.tokens.json +1 -0
- package/src/dashboard-grid/dashboard-grid.css +185 -115
- package/src/data-grid/data-grid.css +598 -496
- package/src/data-grid/data-grid.tokens.json +5 -1
- package/src/data-list/data-list.css +82 -71
- package/src/data-list/data-list.tokens.json +2 -1
- package/src/date-field/date-field.css +62 -57
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +117 -58
- package/src/date-picker/date-picker.tokens.json +5 -0
- package/src/date-range-picker/date-range-picker.css +157 -127
- package/src/date-range-picker/date-range-picker.tokens.json +4 -0
- package/src/datetime-field/datetime-field.css +90 -90
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +123 -70
- package/src/datetime-picker/datetime-picker.tokens.json +4 -1
- package/src/datetime-range-picker/datetime-range-picker.css +191 -163
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
- package/src/description-list/description-list.css +105 -75
- package/src/description-list/description-list.tokens.json +1 -0
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +434 -198
- package/src/dialog/dialog.tokens.json +7 -0
- package/src/divider/divider.css +20 -20
- package/src/drawer/drawer.css +597 -236
- package/src/drawer/drawer.tokens.json +13 -0
- package/src/entity-picker/entity-picker.css +323 -270
- package/src/entity-picker/entity-picker.tokens.json +3 -0
- package/src/event-calendar/event-calendar.css +357 -399
- package/src/field/field.css +106 -93
- package/src/field/field.tokens.json +2 -0
- package/src/field-group/field-group.css +43 -33
- package/src/field-group/field-group.tokens.json +3 -0
- package/src/filter-bar/filter-bar.css +200 -216
- package/src/form/form.css +99 -25
- package/src/form/form.tokens.json +5 -0
- package/src/fullscreen/fullscreen.css +26 -27
- package/src/grid/grid.css +29 -29
- package/src/highlight/highlight.css +11 -11
- package/src/hover-card/hover-card.css +9 -9
- package/src/icon/icon.css +67 -20
- package/src/icon/icon.tokens.json +1 -0
- package/src/image/image.css +42 -42
- package/src/import-export-center/import-export-center.css +144 -165
- package/src/inline/inline.css +28 -28
- package/src/inline-message/inline-message.css +162 -86
- package/src/inline-message/inline-message.tokens.json +4 -0
- package/src/kbd/kbd.css +62 -50
- package/src/kbd/kbd.tokens.json +3 -0
- package/src/link/link.css +54 -33
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +23 -23
- package/src/list-item/list-item.css +89 -75
- package/src/list-item/list-item.tokens.json +7 -0
- package/src/listbox/listbox.css +71 -70
- package/src/listbox/listbox.tokens.json +0 -1
- package/src/loading-overlay/loading-overlay.css +86 -103
- package/src/markdown/markdown.css +20 -20
- package/src/media-viewer/media-viewer.css +790 -0
- package/src/media-viewer/media-viewer.tokens.json +53 -0
- package/src/menu/menu.css +162 -82
- package/src/menu/menu.tokens.json +2 -1
- package/src/menubar/menubar.css +16 -16
- package/src/message/message.css +1250 -1253
- package/src/message/message.tokens.json +5 -0
- package/src/message-scroller/message-scroller.css +323 -320
- package/src/multi-select/multi-select.css +230 -172
- package/src/multi-select/multi-select.tokens.json +2 -0
- package/src/navigation-menu/navigation-menu.css +169 -190
- package/src/notification-center/notification-center.css +153 -161
- package/src/notification-center/notification-center.tokens.json +3 -0
- package/src/number-field/number-field.css +93 -93
- package/src/number-field/number-field.tokens.json +1 -0
- package/src/otp-input/otp-input.css +74 -64
- package/src/otp-input/otp-input.tokens.json +1 -0
- package/src/page/page.css +41 -27
- package/src/page/page.tokens.json +1 -0
- package/src/page-header/page-header.css +341 -286
- package/src/page-header/page-header.tokens.json +5 -0
- package/src/pagination/pagination.css +75 -79
- package/src/popover/popover.css +81 -64
- package/src/popover/popover.tokens.json +1 -0
- package/src/progress-indicator/progress-indicator.css +192 -136
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +260 -113
- package/src/prompt-composer/prompt-composer.tokens.json +15 -0
- package/src/prose/prose.css +77 -82
- package/src/radio-group/radio-group.css +107 -112
- package/src/rating/rating.css +146 -142
- package/src/rating/rating.tokens.json +1 -0
- package/src/result-state/result-state.css +94 -101
- package/src/runtime-properties.mjs +19 -6
- package/src/saved-views/saved-views.css +43 -49
- package/src/scroll-area/scroll-area.css +44 -37
- package/src/section/section.css +178 -43
- package/src/section/section.tokens.json +8 -2
- package/src/segmented-control/segmented-control.css +210 -133
- package/src/segmented-control/segmented-control.tokens.json +7 -11
- package/src/select/select.css +210 -147
- package/src/select/select.tokens.json +3 -0
- package/src/side-navigation/side-navigation.css +193 -196
- package/src/side-navigation/side-navigation.tokens.json +1 -0
- package/src/skeleton/skeleton.css +57 -58
- package/src/slider/slider.css +101 -103
- package/src/sparkline/sparkline.css +75 -53
- package/src/sparkline/sparkline.tokens.json +2 -0
- package/src/spinner/spinner.css +83 -180
- package/src/spinner/spinner.tokens.json +0 -1
- package/src/split-button/split-button.css +34 -35
- package/src/split-button/split-button.tokens.json +1 -0
- package/src/splitter/splitter.css +47 -48
- package/src/stack/stack.css +25 -25
- package/src/stat-card/stat-card.css +415 -245
- package/src/stat-card/stat-card.tokens.json +8 -0
- package/src/status-indicator/status-indicator.css +124 -100
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +78 -82
- package/src/switch/switch.css +100 -106
- package/src/table/table.css +270 -198
- package/src/table/table.tokens.json +2 -0
- package/src/table-of-contents/table-of-contents.css +60 -59
- package/src/table-of-contents/table-of-contents.tokens.json +1 -0
- package/src/tabs/tabs.css +327 -294
- package/src/tabs/tabs.tokens.json +7 -1
- package/src/tag/tag.css +109 -88
- package/src/tag/tag.tokens.json +10 -0
- package/src/tags-input/tags-input.css +152 -87
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +146 -148
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +38 -33
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +82 -77
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +116 -64
- package/src/time-picker/time-picker.tokens.json +4 -1
- package/src/time-range-picker/time-range-picker.css +168 -140
- package/src/time-range-picker/time-range-picker.tokens.json +4 -0
- package/src/timeline/timeline.css +280 -292
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +138 -121
- package/src/toast/toast.tokens.json +6 -0
- package/src/toggle/toggle.css +34 -38
- package/src/toggle-group/toggle-group.css +73 -77
- package/src/toolbar/toolbar.css +33 -38
- package/src/tooltip/tooltip.css +65 -39
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +252 -268
- package/src/tour/tour.css +64 -73
- package/src/transfer/transfer.css +164 -168
- package/src/tree/tree.css +113 -121
- package/src/typography/typography.css +42 -38
- package/src/typography/typography.tokens.json +1 -0
- package/src/upload/upload.css +256 -257
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +187 -199
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* The layer, the scrim, the motion of arriving and leaving, the focus
|
|
24
24
|
* containment and the Escape that closes are `dialog`'s: the panel stands
|
|
25
25
|
* inside a dialog whose surface is `plain`, and `identity.test.mjs` keeps
|
|
26
|
-
* this sheet off `[data-ui
|
|
26
|
+
* this sheet off `[data-ui-dialog]`. The keys in an item's shortcut and in
|
|
27
27
|
* the footer's hints are `kbd`'s, worn as `data-ui='kbd'` under this family's
|
|
28
28
|
* own `shortcut` and `hint` parts, so every selector on those two parts is a
|
|
29
29
|
* child selector and never reaches the caps inside them. The mark on the
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
* down. Only the panel's own radius and the list's inset come off the space
|
|
58
58
|
* and radius scales.
|
|
59
59
|
*/
|
|
60
|
-
[data-ui
|
|
60
|
+
[data-ui-command-palette] {
|
|
61
61
|
--_surface: var(--slotted-command-palette-surface, var(--slotted-surface-raised, #ffffff));
|
|
62
62
|
--_text: var(--slotted-command-palette-text, var(--slotted-text, #0f172a));
|
|
63
63
|
--_muted: var(--slotted-command-palette-text-muted, var(--slotted-text-muted, #5b6b7f));
|
|
@@ -83,7 +83,11 @@
|
|
|
83
83
|
/* The row, at the family's size step; the header one step up. */
|
|
84
84
|
--_item-height: var(--slotted-control-height-md, 34px);
|
|
85
85
|
--_item-inset: var(--slotted-control-padding-inline-md, 13px);
|
|
86
|
-
|
|
86
|
+
/* Concentric with the panel: its radius less the inset, floored at 0. */
|
|
87
|
+
--_item-radius: var(
|
|
88
|
+
--slotted-command-palette-item-radius,
|
|
89
|
+
max(0px, calc(var(--_radius) - var(--_list-inset)))
|
|
90
|
+
);
|
|
87
91
|
--_font-size: var(--slotted-control-font-size-md, 13px);
|
|
88
92
|
--_secondary-font-size: var(--slotted-control-font-size-sm, 12px);
|
|
89
93
|
--_icon-size: var(--slotted-control-icon-size-md, 16px);
|
|
@@ -135,9 +139,28 @@
|
|
|
135
139
|
overflow: clip;
|
|
136
140
|
}
|
|
137
141
|
|
|
142
|
+
/**
|
|
143
|
+
* A theme draws the panel as a material with this filter beside a surface
|
|
144
|
+
* with alpha: `--slotted-command-palette-backdrop-filter`, `none` unless set.
|
|
145
|
+
* The root is the one layer that paints a ground under either presentation.
|
|
146
|
+
* A reader who asked for less transparency gets no filter, and under forced
|
|
147
|
+
* colors the ground is the system's.
|
|
148
|
+
*/
|
|
149
|
+
[data-ui-command-palette] {
|
|
150
|
+
-webkit-backdrop-filter: var(--slotted-command-palette-backdrop-filter, none);
|
|
151
|
+
backdrop-filter: var(--slotted-command-palette-backdrop-filter, none);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
|
|
155
|
+
[data-ui-command-palette] {
|
|
156
|
+
-webkit-backdrop-filter: none;
|
|
157
|
+
backdrop-filter: none;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
138
161
|
/* ── Size ─────────────────────────────────────────────────────────────── */
|
|
139
162
|
|
|
140
|
-
[data-ui
|
|
163
|
+
[data-ui-command-palette][data-size='sm'] {
|
|
141
164
|
--_item-height: var(--slotted-control-height-sm, 30px);
|
|
142
165
|
--_item-inset: var(--slotted-control-padding-inline-sm, 10px);
|
|
143
166
|
--_font-size: var(--slotted-control-font-size-sm, 12px);
|
|
@@ -150,7 +173,7 @@
|
|
|
150
173
|
--_chip-size: var(--slotted-control-inner-size-sm, 22px);
|
|
151
174
|
}
|
|
152
175
|
|
|
153
|
-
[data-ui
|
|
176
|
+
[data-ui-command-palette][data-size='lg'] {
|
|
154
177
|
--_item-height: var(--slotted-control-height-lg, 38px);
|
|
155
178
|
--_item-inset: var(--slotted-control-padding-inline-lg, 16px);
|
|
156
179
|
--_font-size: var(--slotted-control-font-size-lg, 14px);
|
|
@@ -172,7 +195,7 @@
|
|
|
172
195
|
* something else — so it draws no edge and no ground of its own, and the
|
|
173
196
|
* rule under the header is the one line between the field and the list.
|
|
174
197
|
*/
|
|
175
|
-
[data-ui
|
|
198
|
+
[data-ui-command-palette] > [data-part-header] {
|
|
176
199
|
align-items: center;
|
|
177
200
|
border-block-end: var(--_border-width) solid var(--_border-color);
|
|
178
201
|
box-sizing: border-box;
|
|
@@ -189,13 +212,12 @@
|
|
|
189
212
|
* only thing focused for the whole of the interaction, and a box around the
|
|
190
213
|
* top row of a panel that is itself a box says the wrong thing. The ring is
|
|
191
214
|
* drawn as a band the ring's own width along the header's bottom edge, in
|
|
192
|
-
* the theme's ring
|
|
215
|
+
* the theme's ring color, and it appears only when the keyboard put focus
|
|
193
216
|
* there — which, for a palette opened with ⌘K, is every time. The band is
|
|
194
217
|
* a bottom edge: `state-rail.test.mjs` (R1) refuses a state rail on the
|
|
195
218
|
* start or the top edge, and this is neither.
|
|
196
219
|
*/
|
|
197
|
-
[data-ui
|
|
198
|
-
> [data-part='header']:has(> [data-part='input']:focus-visible)::after {
|
|
220
|
+
[data-ui-command-palette] > [data-part-header]:has(> [data-part-input]:focus-visible)::after {
|
|
199
221
|
background-color: var(--slotted-focus-ring-color, currentColor);
|
|
200
222
|
block-size: var(--slotted-focus-ring-width, 2px);
|
|
201
223
|
content: '';
|
|
@@ -205,7 +227,7 @@
|
|
|
205
227
|
position: absolute;
|
|
206
228
|
}
|
|
207
229
|
|
|
208
|
-
[data-ui
|
|
230
|
+
[data-ui-command-palette] :is([data-part-search], [data-part-busy]) {
|
|
209
231
|
color: var(--_muted);
|
|
210
232
|
flex: none;
|
|
211
233
|
}
|
|
@@ -215,7 +237,7 @@
|
|
|
215
237
|
* icon box at the header's icon size so it sits on the field's line; a
|
|
216
238
|
* character is never an icon.
|
|
217
239
|
*/
|
|
218
|
-
[data-ui
|
|
240
|
+
[data-ui-command-palette] [data-part-search] {
|
|
219
241
|
--slotted-icon-size: var(--_header-icon-size);
|
|
220
242
|
|
|
221
243
|
display: flex;
|
|
@@ -226,7 +248,7 @@
|
|
|
226
248
|
* `spinner/spinner.css`'s, worn as `data-ui='spinner'` beside this family's
|
|
227
249
|
* part, and this family only says where it stands and how big it is.
|
|
228
250
|
*/
|
|
229
|
-
[data-ui
|
|
251
|
+
[data-ui-command-palette] [data-part-busy] {
|
|
230
252
|
--slotted-spinner-size: var(--_header-icon-size);
|
|
231
253
|
}
|
|
232
254
|
|
|
@@ -237,7 +259,7 @@
|
|
|
237
259
|
* Each is a control that returns to its page; the last one is where the
|
|
238
260
|
* reader is and reads as the field's own prefix.
|
|
239
261
|
*/
|
|
240
|
-
[data-ui
|
|
262
|
+
[data-ui-command-palette] [data-part-pages] {
|
|
241
263
|
align-items: center;
|
|
242
264
|
display: flex;
|
|
243
265
|
flex: none;
|
|
@@ -249,11 +271,11 @@
|
|
|
249
271
|
padding: 0;
|
|
250
272
|
}
|
|
251
273
|
|
|
252
|
-
[data-ui
|
|
274
|
+
[data-ui-command-palette] [data-part-pages] > li {
|
|
253
275
|
display: contents;
|
|
254
276
|
}
|
|
255
277
|
|
|
256
|
-
[data-ui
|
|
278
|
+
[data-ui-command-palette] [data-part-page] {
|
|
257
279
|
align-items: center;
|
|
258
280
|
appearance: none;
|
|
259
281
|
background-color: var(--slotted-command-palette-page-surface, var(--_hover));
|
|
@@ -284,32 +306,32 @@
|
|
|
284
306
|
white-space: nowrap;
|
|
285
307
|
}
|
|
286
308
|
|
|
287
|
-
[data-ui
|
|
309
|
+
[data-ui-command-palette] [data-part-page] > span {
|
|
288
310
|
overflow: hidden;
|
|
289
311
|
text-overflow: ellipsis;
|
|
290
312
|
}
|
|
291
313
|
|
|
292
314
|
/* A chip inside the header is shorter than the target minimum at every
|
|
293
315
|
density; the hit area is recovered outside its paint. */
|
|
294
|
-
[data-ui
|
|
316
|
+
[data-ui-command-palette] [data-part-page]::after {
|
|
295
317
|
content: '';
|
|
296
318
|
inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
|
|
297
319
|
position: absolute;
|
|
298
320
|
}
|
|
299
321
|
|
|
300
|
-
[data-ui
|
|
322
|
+
[data-ui-command-palette] [data-part-page]:not(:disabled):hover {
|
|
301
323
|
background-color: var(--_active);
|
|
302
324
|
color: var(--_text);
|
|
303
325
|
}
|
|
304
326
|
|
|
305
|
-
[data-ui
|
|
327
|
+
[data-ui-command-palette] [data-part-page]:not(:disabled):active {
|
|
306
328
|
background-color: var(--_active);
|
|
307
329
|
}
|
|
308
330
|
|
|
309
331
|
/* Drawn one width inside the chip, as a chip in a scrolling row draws it:
|
|
310
332
|
the header clips at its padding edge and a ring at the theme's offset
|
|
311
333
|
would lose its outer half. */
|
|
312
|
-
[data-ui
|
|
334
|
+
[data-ui-command-palette] [data-part-page]:focus-visible {
|
|
313
335
|
outline: var(--slotted-focus-ring-width, 2px) solid
|
|
314
336
|
var(--slotted-focus-ring-color, currentColor);
|
|
315
337
|
outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
|
|
@@ -321,7 +343,7 @@
|
|
|
321
343
|
* right-to-left document so the trail reads in the direction the reader
|
|
322
344
|
* reads.
|
|
323
345
|
*/
|
|
324
|
-
[data-ui
|
|
346
|
+
[data-ui-command-palette] [data-part-pages] > li > [data-ui-icon] {
|
|
325
347
|
--slotted-icon-size: var(--_icon-size);
|
|
326
348
|
|
|
327
349
|
color: var(--_muted);
|
|
@@ -330,7 +352,7 @@
|
|
|
330
352
|
|
|
331
353
|
/* ── The field ────────────────────────────────────────────────────────── */
|
|
332
354
|
|
|
333
|
-
[data-ui
|
|
355
|
+
[data-ui-command-palette] [data-part-input] {
|
|
334
356
|
appearance: none;
|
|
335
357
|
background: transparent;
|
|
336
358
|
block-size: 100%;
|
|
@@ -349,7 +371,7 @@
|
|
|
349
371
|
padding: 0;
|
|
350
372
|
}
|
|
351
373
|
|
|
352
|
-
[data-ui
|
|
374
|
+
[data-ui-command-palette] [data-part-input]::placeholder {
|
|
353
375
|
color: var(--_muted);
|
|
354
376
|
opacity: 1;
|
|
355
377
|
}
|
|
@@ -362,7 +384,7 @@
|
|
|
362
384
|
* or not — measured on the Nexora palette at 390 pixels. Only while the
|
|
363
385
|
* placeholder shows: what the reader types is never faded under the caret.
|
|
364
386
|
*/
|
|
365
|
-
[data-ui
|
|
387
|
+
[data-ui-command-palette] [data-part-input]:placeholder-shown {
|
|
366
388
|
mask-image: linear-gradient(
|
|
367
389
|
to right,
|
|
368
390
|
#000 calc(100% - var(--slotted-command-palette-placeholder-fade, 2em)),
|
|
@@ -372,8 +394,8 @@
|
|
|
372
394
|
|
|
373
395
|
/* The browser's own clear and its search decoration, which the family
|
|
374
396
|
draws itself so the two schemes and the three densities agree. */
|
|
375
|
-
[data-ui
|
|
376
|
-
[data-ui
|
|
397
|
+
[data-ui-command-palette] [data-part-input]::-webkit-search-cancel-button,
|
|
398
|
+
[data-ui-command-palette] [data-part-input]::-webkit-search-decoration {
|
|
377
399
|
appearance: none;
|
|
378
400
|
}
|
|
379
401
|
|
|
@@ -384,7 +406,7 @@
|
|
|
384
406
|
* because Escape already clears and a second stop before the list is a
|
|
385
407
|
* stop nobody asked for.
|
|
386
408
|
*/
|
|
387
|
-
[data-ui
|
|
409
|
+
[data-ui-command-palette] > [data-part-header] > [data-part-clear] {
|
|
388
410
|
--_clear-size: min(
|
|
389
411
|
calc(var(--_icon-size) + 2 * var(--slotted-space-2, 0.25rem)),
|
|
390
412
|
var(--slotted-control-inner-size-md, 24px)
|
|
@@ -412,7 +434,7 @@
|
|
|
412
434
|
var(--slotted-control-transition-easing, var(--slotted-easing-standard));
|
|
413
435
|
}
|
|
414
436
|
|
|
415
|
-
[data-ui
|
|
437
|
+
[data-ui-command-palette] > [data-part-header] > [data-part-clear]::after {
|
|
416
438
|
content: '';
|
|
417
439
|
inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
|
|
418
440
|
position: absolute;
|
|
@@ -423,27 +445,27 @@
|
|
|
423
445
|
the hit area above grows to 44 pixels around them. It does not reach
|
|
424
446
|
across the close control after it. */
|
|
425
447
|
@media (pointer: coarse) {
|
|
426
|
-
[data-ui
|
|
448
|
+
[data-ui-command-palette] > [data-part-header] > [data-part-clear]::after {
|
|
427
449
|
inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
428
450
|
}
|
|
429
451
|
|
|
430
|
-
[data-ui
|
|
431
|
-
> [data-part
|
|
432
|
-
> [data-part
|
|
452
|
+
[data-ui-command-palette]
|
|
453
|
+
> [data-part-header]
|
|
454
|
+
> [data-part-clear]:has(+ [data-part-close])::after {
|
|
433
455
|
inset-inline-end: 0;
|
|
434
456
|
}
|
|
435
457
|
}
|
|
436
458
|
|
|
437
|
-
[data-ui
|
|
459
|
+
[data-ui-command-palette] > [data-part-header] > [data-part-clear]:not(:disabled):hover {
|
|
438
460
|
background-color: var(--_hover);
|
|
439
461
|
color: var(--_text);
|
|
440
462
|
}
|
|
441
463
|
|
|
442
|
-
[data-ui
|
|
464
|
+
[data-ui-command-palette] > [data-part-header] > [data-part-clear]:not(:disabled):active {
|
|
443
465
|
background-color: var(--_active);
|
|
444
466
|
}
|
|
445
467
|
|
|
446
|
-
[data-ui
|
|
468
|
+
[data-ui-command-palette] > [data-part-header] > [data-part-clear]:focus-visible {
|
|
447
469
|
outline: var(--slotted-focus-ring-width, 2px) solid
|
|
448
470
|
var(--slotted-focus-ring-color, currentColor);
|
|
449
471
|
outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
|
|
@@ -451,7 +473,7 @@
|
|
|
451
473
|
|
|
452
474
|
/* Present in the DOM whenever the family renders it, drawn only with a
|
|
453
475
|
query: a clear beside an empty field is a control with nothing to do. */
|
|
454
|
-
[data-ui
|
|
476
|
+
[data-ui-command-palette]:not([data-query]) > [data-part-header] > [data-part-clear] {
|
|
455
477
|
display: none;
|
|
456
478
|
}
|
|
457
479
|
|
|
@@ -463,7 +485,7 @@
|
|
|
463
485
|
* beside a search field reads as clear, which is what `clear` already is.
|
|
464
486
|
* Drawn only under the dialog's own full-screen query, below.
|
|
465
487
|
*/
|
|
466
|
-
[data-ui
|
|
488
|
+
[data-ui-command-palette] > [data-part-header] > [data-part-close] {
|
|
467
489
|
align-items: center;
|
|
468
490
|
appearance: none;
|
|
469
491
|
background-color: transparent;
|
|
@@ -483,15 +505,15 @@
|
|
|
483
505
|
white-space: nowrap;
|
|
484
506
|
}
|
|
485
507
|
|
|
486
|
-
[data-ui
|
|
508
|
+
[data-ui-command-palette] > [data-part-header] > [data-part-close]:not(:disabled):hover {
|
|
487
509
|
background-color: var(--_hover);
|
|
488
510
|
}
|
|
489
511
|
|
|
490
|
-
[data-ui
|
|
512
|
+
[data-ui-command-palette] > [data-part-header] > [data-part-close]:not(:disabled):active {
|
|
491
513
|
background-color: var(--_active);
|
|
492
514
|
}
|
|
493
515
|
|
|
494
|
-
[data-ui
|
|
516
|
+
[data-ui-command-palette] > [data-part-header] > [data-part-close]:focus-visible {
|
|
495
517
|
outline: var(--slotted-focus-ring-width, 2px) solid
|
|
496
518
|
var(--slotted-focus-ring-color, currentColor);
|
|
497
519
|
outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
|
|
@@ -503,7 +525,7 @@
|
|
|
503
525
|
* Five columns, bounded, scrolling. `overscroll-behavior` keeps the page —
|
|
504
526
|
* or the popover — still once the list has scrolled to its end.
|
|
505
527
|
*/
|
|
506
|
-
[data-ui
|
|
528
|
+
[data-ui-command-palette] > [data-part-list] {
|
|
507
529
|
box-sizing: border-box;
|
|
508
530
|
display: grid;
|
|
509
531
|
grid-template-columns: auto minmax(0, 1fr) auto auto auto;
|
|
@@ -517,26 +539,62 @@
|
|
|
517
539
|
scroll-padding-block: var(--_list-inset);
|
|
518
540
|
}
|
|
519
541
|
|
|
520
|
-
[data-ui
|
|
542
|
+
[data-ui-command-palette] > [data-part-list][data-loading] {
|
|
521
543
|
cursor: progress;
|
|
522
544
|
}
|
|
523
545
|
|
|
524
546
|
/* ── Groups ───────────────────────────────────────────────────────────── */
|
|
525
547
|
|
|
526
|
-
[data-ui
|
|
548
|
+
[data-ui-command-palette] [data-part-group] {
|
|
527
549
|
display: grid;
|
|
528
550
|
grid-column: 1 / -1;
|
|
529
551
|
grid-template-columns: subgrid;
|
|
530
552
|
}
|
|
531
553
|
|
|
532
|
-
|
|
554
|
+
/**
|
|
555
|
+
* A group's label stays at the top of the list while its group is in view.
|
|
556
|
+
* The group is the label's containing block, so the next label pushes it out
|
|
557
|
+
* and a group scrolled past takes its label with it. It sticks to the
|
|
558
|
+
* scrollport's edge rather than the padding's, on the surface's ground, above
|
|
559
|
+
* the items and below the parts the surface draws over them.
|
|
560
|
+
*/
|
|
561
|
+
[data-ui-command-palette] [data-part-group-label] {
|
|
562
|
+
background: var(--_surface);
|
|
563
|
+
box-sizing: border-box;
|
|
533
564
|
color: var(--_muted);
|
|
534
565
|
font-size: var(--_secondary-font-size);
|
|
535
566
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
536
567
|
grid-column: 1 / -1;
|
|
568
|
+
inset-block-start: calc(-1 * var(--_list-inset));
|
|
537
569
|
line-height: var(--slotted-line-height-sm, 1.45);
|
|
570
|
+
min-block-size: var(--_group-label-height);
|
|
538
571
|
padding-block: var(--slotted-space-2, 0.25rem);
|
|
539
572
|
padding-inline: var(--_item-inset);
|
|
573
|
+
position: sticky;
|
|
574
|
+
z-index: 1;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
@media (forced-colors: active) {
|
|
578
|
+
[data-ui-command-palette] [data-part-group-label] {
|
|
579
|
+
background: Canvas;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* The label's height, which the list keeps clear above an item the keys
|
|
585
|
+
* bring into view (`revealWithin` reads the scroll padding), so the item is
|
|
586
|
+
* never drawn under a label stuck to the top.
|
|
587
|
+
*/
|
|
588
|
+
[data-ui-command-palette] > [data-part-list]:has([data-part-group-label]) {
|
|
589
|
+
--_group-label-height: var(
|
|
590
|
+
--slotted-command-palette-group-label-height,
|
|
591
|
+
calc(
|
|
592
|
+
var(--_secondary-font-size) * var(--slotted-line-height-sm, 1.45) + 2 *
|
|
593
|
+
var(--slotted-space-2, 0.25rem)
|
|
594
|
+
)
|
|
595
|
+
);
|
|
596
|
+
|
|
597
|
+
scroll-padding-block-start: var(--_group-label-height);
|
|
540
598
|
}
|
|
541
599
|
|
|
542
600
|
/* ── Items ────────────────────────────────────────────────────────────── */
|
|
@@ -548,7 +606,7 @@
|
|
|
548
606
|
* `min-block-size` rather than a height, because an item with a description
|
|
549
607
|
* is two lines tall and still has to clear the target minimum.
|
|
550
608
|
*/
|
|
551
|
-
[data-ui
|
|
609
|
+
[data-ui-command-palette] [data-part-item] {
|
|
552
610
|
align-content: center;
|
|
553
611
|
border-radius: var(--_item-radius);
|
|
554
612
|
box-sizing: border-box;
|
|
@@ -582,11 +640,11 @@
|
|
|
582
640
|
* moves; the two are told apart so a reader who arrowed to one row while the
|
|
583
641
|
* pointer rests on another reads exactly one cursor.
|
|
584
642
|
*/
|
|
585
|
-
[data-ui
|
|
643
|
+
[data-ui-command-palette] [data-part-item]:not([data-disabled]):not([data-current]):hover {
|
|
586
644
|
background-color: var(--_hover);
|
|
587
645
|
}
|
|
588
646
|
|
|
589
|
-
[data-ui
|
|
647
|
+
[data-ui-command-palette] [data-part-item]:not([data-disabled]):not([data-current]):active {
|
|
590
648
|
background-color: var(--_active);
|
|
591
649
|
}
|
|
592
650
|
|
|
@@ -597,13 +655,13 @@
|
|
|
597
655
|
* of row is a reading, not a movement, and a transition lags behind a reader
|
|
598
656
|
* holding ArrowDown.
|
|
599
657
|
*/
|
|
600
|
-
[data-ui
|
|
658
|
+
[data-ui-command-palette] [data-part-item][data-current] {
|
|
601
659
|
background-color: var(--_highlight);
|
|
602
660
|
box-shadow: inset 0 0 0 var(--slotted-border-width-thin, 1px) var(--_highlight-ring);
|
|
603
661
|
transition: none;
|
|
604
662
|
}
|
|
605
663
|
|
|
606
|
-
[data-ui
|
|
664
|
+
[data-ui-command-palette] [data-part-item][data-current]:not([data-disabled]):active {
|
|
607
665
|
background-color: var(--_active);
|
|
608
666
|
}
|
|
609
667
|
|
|
@@ -612,7 +670,7 @@
|
|
|
612
670
|
* current — `moveIndex` skips it and the pointer does not highlight it. The
|
|
613
671
|
* hand goes, because there is nothing to press.
|
|
614
672
|
*/
|
|
615
|
-
[data-ui
|
|
673
|
+
[data-ui-command-palette] [data-part-item][data-disabled] {
|
|
616
674
|
color: var(--slotted-disabled-foreground, #64748b);
|
|
617
675
|
cursor: not-allowed;
|
|
618
676
|
}
|
|
@@ -620,11 +678,11 @@
|
|
|
620
678
|
/* A handler that has not answered yet: the cursor says so, and the ring
|
|
621
679
|
`spinner` draws stands in the last column, where the arrow of a page
|
|
622
680
|
item stands, sized to the row's own glyph. */
|
|
623
|
-
[data-ui
|
|
681
|
+
[data-ui-command-palette] [data-part-item][data-loading] {
|
|
624
682
|
cursor: progress;
|
|
625
683
|
}
|
|
626
684
|
|
|
627
|
-
[data-ui
|
|
685
|
+
[data-ui-command-palette] [data-part-item] > [data-part-busy] {
|
|
628
686
|
--slotted-spinner-size: var(--_icon-size);
|
|
629
687
|
|
|
630
688
|
color: var(--_muted);
|
|
@@ -638,7 +696,7 @@
|
|
|
638
696
|
/**
|
|
639
697
|
* Column one. The mark's box exists whether or not a mark is drawn, so a
|
|
640
698
|
* list where the third item has an icon and the fourth does not still lines
|
|
641
|
-
* its labels up. It holds an element of the consumer's own,
|
|
699
|
+
* its labels up. It holds an element of the consumer's own, centerd; the
|
|
642
700
|
* stylesheet paints no mark into it.
|
|
643
701
|
*
|
|
644
702
|
* The box sizes what it holds: an icon box reads `--slotted-icon-size` from
|
|
@@ -648,7 +706,7 @@
|
|
|
648
706
|
* the child and not on the box, because the box's `1lh` reads the item's
|
|
649
707
|
* line box.
|
|
650
708
|
*/
|
|
651
|
-
[data-ui
|
|
709
|
+
[data-ui-command-palette] [data-part-icon] {
|
|
652
710
|
--slotted-icon-size: var(--_icon-size);
|
|
653
711
|
|
|
654
712
|
align-items: center;
|
|
@@ -665,7 +723,7 @@
|
|
|
665
723
|
margin-inline-end: calc(var(--_column-gap) + var(--slotted-space-2, 0.25rem));
|
|
666
724
|
}
|
|
667
725
|
|
|
668
|
-
[data-ui
|
|
726
|
+
[data-ui-command-palette] [data-part-icon]:not(:empty) > * {
|
|
669
727
|
block-size: var(--_icon-size);
|
|
670
728
|
font-size: var(--_icon-size);
|
|
671
729
|
inline-size: var(--_icon-size);
|
|
@@ -677,7 +735,7 @@
|
|
|
677
735
|
* is three rows pretending to be one. The whole text is on the item's
|
|
678
736
|
* `title` and reachable by the reader, so nothing leaves the DOM.
|
|
679
737
|
*/
|
|
680
|
-
[data-ui
|
|
738
|
+
[data-ui-command-palette] [data-part-label] {
|
|
681
739
|
grid-column: 2;
|
|
682
740
|
grid-row: 1;
|
|
683
741
|
min-inline-size: 0;
|
|
@@ -686,7 +744,7 @@
|
|
|
686
744
|
white-space: nowrap;
|
|
687
745
|
}
|
|
688
746
|
|
|
689
|
-
[data-ui
|
|
747
|
+
[data-ui-command-palette] [data-part-description] {
|
|
690
748
|
color: var(--_muted);
|
|
691
749
|
font-size: var(--_secondary-font-size);
|
|
692
750
|
grid-column: 2;
|
|
@@ -698,25 +756,25 @@
|
|
|
698
756
|
white-space: nowrap;
|
|
699
757
|
}
|
|
700
758
|
|
|
701
|
-
[data-ui
|
|
759
|
+
[data-ui-command-palette] [data-part-item][data-disabled] > [data-part-description] {
|
|
702
760
|
color: inherit;
|
|
703
761
|
}
|
|
704
762
|
|
|
705
763
|
/* Column three: a word at the end — "Recent", the kind of thing this is. */
|
|
706
764
|
/**
|
|
707
765
|
* The three cells at the end of the row span both of its rows and sit on the
|
|
708
|
-
* row's
|
|
766
|
+
* row's center. Placed on the first row alone, a keycap taller than the
|
|
709
767
|
* label's line box stretched that row, and the description under it dropped
|
|
710
768
|
* by the difference — a gap that opened only on rows with a binding.
|
|
711
769
|
*/
|
|
712
|
-
[data-ui
|
|
713
|
-
[data-part
|
|
714
|
-
> :is([data-part
|
|
770
|
+
[data-ui-command-palette]
|
|
771
|
+
[data-part-item]
|
|
772
|
+
> :is([data-part-meta], [data-part-shortcut], [data-part-arrow], [data-part-busy]) {
|
|
715
773
|
align-self: center;
|
|
716
774
|
grid-row: 1 / -1;
|
|
717
775
|
}
|
|
718
776
|
|
|
719
|
-
[data-ui
|
|
777
|
+
[data-ui-command-palette] [data-part-meta] {
|
|
720
778
|
color: var(--_muted);
|
|
721
779
|
font-size: var(--_secondary-font-size);
|
|
722
780
|
grid-column: 3;
|
|
@@ -728,9 +786,7 @@
|
|
|
728
786
|
/* A word on a row with no binding takes the binding's column too, so it
|
|
729
787
|
ends where the bindings on the rows around it end rather than a column
|
|
730
788
|
short of them. */
|
|
731
|
-
[data-ui
|
|
732
|
-
[data-part='item']:not(:has(> [data-part='shortcut']))
|
|
733
|
-
> [data-part='meta'] {
|
|
789
|
+
[data-ui-command-palette] [data-part-item]:not(:has(> [data-part-shortcut])) > [data-part-meta] {
|
|
734
790
|
grid-column: 3 / 5;
|
|
735
791
|
}
|
|
736
792
|
|
|
@@ -739,7 +795,7 @@
|
|
|
739
795
|
* rule places the column and states its ink; every selector stops at the
|
|
740
796
|
* part and never reaches the caps.
|
|
741
797
|
*/
|
|
742
|
-
[data-ui
|
|
798
|
+
[data-ui-command-palette] [data-part-item] > [data-part-shortcut] {
|
|
743
799
|
align-items: center;
|
|
744
800
|
color: var(--_muted);
|
|
745
801
|
display: inline-flex;
|
|
@@ -757,9 +813,9 @@
|
|
|
757
813
|
white-space: nowrap;
|
|
758
814
|
}
|
|
759
815
|
|
|
760
|
-
[data-ui
|
|
761
|
-
[data-part
|
|
762
|
-
> :is([data-part
|
|
816
|
+
[data-ui-command-palette]
|
|
817
|
+
[data-part-item][data-disabled]
|
|
818
|
+
> :is([data-part-meta], [data-part-shortcut]) {
|
|
763
819
|
color: inherit;
|
|
764
820
|
}
|
|
765
821
|
|
|
@@ -767,9 +823,9 @@
|
|
|
767
823
|
* Column five: the mark that says an item opens a page, as `menu` draws the
|
|
768
824
|
* mark that says an item opens a submenu. The binding's `chevron-right`
|
|
769
825
|
* glyph in a `directional` icon box, which mirrors in a right-to-left
|
|
770
|
-
* document; the column is one line box tall and
|
|
826
|
+
* document; the column is one line box tall and centers it.
|
|
771
827
|
*/
|
|
772
|
-
[data-ui
|
|
828
|
+
[data-ui-command-palette] [data-part-arrow] {
|
|
773
829
|
--slotted-icon-size: var(--_icon-size);
|
|
774
830
|
|
|
775
831
|
align-items: center;
|
|
@@ -790,7 +846,7 @@
|
|
|
790
846
|
* painted them as one-pixel rules — the bar over the word, and the word
|
|
791
847
|
* itself pushed out of a box one pixel tall.
|
|
792
848
|
*/
|
|
793
|
-
[data-ui
|
|
849
|
+
[data-ui-command-palette] > [data-part-list] [data-part-separator]:not([data-separator]) {
|
|
794
850
|
background-color: var(--slotted-command-palette-separator-color, var(--_border-color));
|
|
795
851
|
block-size: var(--_border-width);
|
|
796
852
|
border: 0;
|
|
@@ -799,7 +855,7 @@
|
|
|
799
855
|
margin-inline: 0;
|
|
800
856
|
}
|
|
801
857
|
|
|
802
|
-
[data-ui
|
|
858
|
+
[data-ui-command-palette] [data-part-empty] {
|
|
803
859
|
color: var(--_muted);
|
|
804
860
|
grid-column: 1 / -1;
|
|
805
861
|
padding-block: var(--slotted-space-8, 1.5rem);
|
|
@@ -814,7 +870,7 @@
|
|
|
814
870
|
* what the reader is looking at. The clip is the visually-hidden idiom, kept
|
|
815
871
|
* in the DOM so `role="status"` has something to announce from.
|
|
816
872
|
*/
|
|
817
|
-
[data-ui
|
|
873
|
+
[data-ui-command-palette] > [data-part-status] {
|
|
818
874
|
block-size: 1px;
|
|
819
875
|
clip-path: inset(50%);
|
|
820
876
|
inline-size: 1px;
|
|
@@ -829,24 +885,24 @@
|
|
|
829
885
|
* of an item, `combobox`'s decision for `combobox`'s reasons. The bars are
|
|
830
886
|
* `skeleton/skeleton.css`'s; this family places them.
|
|
831
887
|
*/
|
|
832
|
-
[data-ui
|
|
888
|
+
[data-ui-command-palette] [data-part-placeholder] {
|
|
833
889
|
display: grid;
|
|
834
890
|
grid-column: 1 / -1;
|
|
835
891
|
padding-block: var(--slotted-space-2, 0.25rem);
|
|
836
892
|
padding-inline: var(--_item-inset);
|
|
837
893
|
}
|
|
838
894
|
|
|
839
|
-
[data-ui
|
|
895
|
+
[data-ui-command-palette] [data-part-placeholder] > * {
|
|
840
896
|
align-items: center;
|
|
841
897
|
display: flex;
|
|
842
898
|
min-block-size: var(--_item-height);
|
|
843
899
|
}
|
|
844
900
|
|
|
845
|
-
[data-ui
|
|
901
|
+
[data-ui-command-palette] [data-part-placeholder] > :nth-child(2) [data-ui-skeleton] {
|
|
846
902
|
inline-size: 78%;
|
|
847
903
|
}
|
|
848
904
|
|
|
849
|
-
[data-ui
|
|
905
|
+
[data-ui-command-palette] [data-part-placeholder] > :nth-child(3) [data-ui-skeleton] {
|
|
850
906
|
inline-size: 56%;
|
|
851
907
|
}
|
|
852
908
|
|
|
@@ -857,7 +913,7 @@
|
|
|
857
913
|
* `kbd`'s in its `plain` variant at the small step; the words beside them
|
|
858
914
|
* are this family's, one step quieter than the list.
|
|
859
915
|
*/
|
|
860
|
-
[data-ui
|
|
916
|
+
[data-ui-command-palette] > [data-part-footer] {
|
|
861
917
|
align-items: center;
|
|
862
918
|
background: var(
|
|
863
919
|
--slotted-command-palette-footer-surface,
|
|
@@ -876,7 +932,7 @@
|
|
|
876
932
|
padding-inline: var(--_header-inset);
|
|
877
933
|
}
|
|
878
934
|
|
|
879
|
-
[data-ui
|
|
935
|
+
[data-ui-command-palette] > [data-part-footer] > [data-part-hint] {
|
|
880
936
|
align-items: center;
|
|
881
937
|
display: inline-flex;
|
|
882
938
|
/* The caps read the footer's own size through `kbd` at `inherit`, a tenth
|
|
@@ -888,11 +944,11 @@
|
|
|
888
944
|
|
|
889
945
|
/**
|
|
890
946
|
* The word beside the caps, at the footer's own size on a line box of its
|
|
891
|
-
* own height:
|
|
892
|
-
* because a line box of 1.4 is
|
|
893
|
-
* letters. `line-height: 1`
|
|
947
|
+
* own height: centerd on the caps' box it sat a pixel and a half low,
|
|
948
|
+
* because a line box of 1.4 is centerd on its leading and not on its
|
|
949
|
+
* letters. `line-height: 1` centers the em box, which is where the word is.
|
|
894
950
|
*/
|
|
895
|
-
[data-ui
|
|
951
|
+
[data-ui-command-palette] > [data-part-footer] > [data-part-hint] > span:not([data-ui]) {
|
|
896
952
|
font-size: var(--slotted-font-size-xs, 0.75rem);
|
|
897
953
|
line-height: 1;
|
|
898
954
|
}
|
|
@@ -905,15 +961,15 @@
|
|
|
905
961
|
* third of the header so the field is never squeezed to nothing.
|
|
906
962
|
*/
|
|
907
963
|
@container command-palette (max-width: 360px) {
|
|
908
|
-
[data-ui
|
|
964
|
+
[data-ui-command-palette] :is([data-part-description], [data-part-meta]) {
|
|
909
965
|
display: none;
|
|
910
966
|
}
|
|
911
967
|
|
|
912
|
-
[data-ui
|
|
968
|
+
[data-ui-command-palette] [data-part-pages] {
|
|
913
969
|
max-inline-size: 33%;
|
|
914
970
|
}
|
|
915
971
|
|
|
916
|
-
[data-ui
|
|
972
|
+
[data-ui-command-palette] > [data-part-footer] {
|
|
917
973
|
gap: var(--slotted-space-4, 0.5rem);
|
|
918
974
|
}
|
|
919
975
|
}
|
|
@@ -925,13 +981,13 @@
|
|
|
925
981
|
* edge is this panel's. The panel is asked the same question the dialog
|
|
926
982
|
* asked, of the dialog's own named container, so the two answer together:
|
|
927
983
|
* the corner, the side edges and the lift go, and the list takes the rest
|
|
928
|
-
* of the screen. Written here rather than on `[data-ui
|
|
984
|
+
* of the screen. Written here rather than on `[data-ui-dialog]` because
|
|
929
985
|
* `identity.test.mjs` keeps this sheet off another family's identifier;
|
|
930
986
|
* the container name and the breakpoint are the dialog's, recorded in
|
|
931
987
|
* `dialog.css` beside its own query.
|
|
932
988
|
*/
|
|
933
989
|
@container slotted-dialog (max-inline-size: 30rem) {
|
|
934
|
-
[data-ui
|
|
990
|
+
[data-ui-command-palette][data-presentation='dialog'] {
|
|
935
991
|
--_list-max: none;
|
|
936
992
|
|
|
937
993
|
border-inline: 0;
|
|
@@ -948,9 +1004,7 @@
|
|
|
948
1004
|
}
|
|
949
1005
|
|
|
950
1006
|
/* No scrim to press: the word that closes stands at the end of the field. */
|
|
951
|
-
[data-ui
|
|
952
|
-
> [data-part='header']
|
|
953
|
-
> [data-part='close'] {
|
|
1007
|
+
[data-ui-command-palette][data-presentation='dialog'] > [data-part-header] > [data-part-close] {
|
|
954
1008
|
display: inline-flex;
|
|
955
1009
|
}
|
|
956
1010
|
}
|
|
@@ -961,39 +1015,38 @@
|
|
|
961
1015
|
* the reader can press; the list is scrolled and the rows are tapped.
|
|
962
1016
|
*/
|
|
963
1017
|
@media (hover: none) and (pointer: coarse) {
|
|
964
|
-
[data-ui
|
|
1018
|
+
[data-ui-command-palette] > [data-part-footer] {
|
|
965
1019
|
display: none;
|
|
966
1020
|
}
|
|
967
1021
|
}
|
|
968
1022
|
|
|
969
|
-
/* ── Forced
|
|
1023
|
+
/* ── Forced colors ───────────────────────────────────────────────────── */
|
|
970
1024
|
|
|
971
1025
|
/**
|
|
972
1026
|
* The one thing the theme cannot reach: every tone surface becomes `Canvas`
|
|
973
|
-
* under forced
|
|
1027
|
+
* under forced colors, so the current row's ground — this family's cursor,
|
|
974
1028
|
* not decoration — would disappear.
|
|
975
1029
|
*/
|
|
976
1030
|
@media (forced-colors: active) {
|
|
977
|
-
[data-ui
|
|
1031
|
+
[data-ui-command-palette] [data-part-item][data-current] {
|
|
978
1032
|
background-color: Highlight;
|
|
979
1033
|
color: HighlightText;
|
|
980
1034
|
forced-color-adjust: none;
|
|
981
1035
|
}
|
|
982
1036
|
|
|
983
|
-
[data-ui
|
|
1037
|
+
[data-ui-command-palette] [data-part-item][data-disabled][data-current] {
|
|
984
1038
|
background-color: Highlight;
|
|
985
1039
|
color: GrayText;
|
|
986
1040
|
}
|
|
987
1041
|
|
|
988
1042
|
/*
|
|
989
1043
|
* The focus bar under the field is painted with a background, and forced
|
|
990
|
-
*
|
|
991
|
-
*
|
|
1044
|
+
* colors replace a background that is not one of the system's own
|
|
1045
|
+
* colors. `forced-color-adjust: none` keeps its `currentColor` fallback,
|
|
992
1046
|
* the host's ink the system has already forced. The glyphs are `Glyph`
|
|
993
1047
|
* elements drawn in `currentColor` and need nothing here.
|
|
994
1048
|
*/
|
|
995
|
-
[data-ui
|
|
996
|
-
> [data-part='header']:has(> [data-part='input']:focus-visible)::after {
|
|
1049
|
+
[data-ui-command-palette] > [data-part-header]:has(> [data-part-input]:focus-visible)::after {
|
|
997
1050
|
forced-color-adjust: none;
|
|
998
1051
|
}
|
|
999
1052
|
}
|