@slotted/styles 0.1.0-beta.34 → 0.1.0-beta.36
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 +5 -1
- package/src/accordion/accordion.css +20 -2
- package/src/accordion/accordion.tokens.json +2 -0
- package/src/avatar/avatar.css +1 -1
- package/src/avatar/avatar.tokens.json +1 -0
- package/src/badge/badge.css +1 -1
- package/src/badge/badge.tokens.json +1 -0
- package/src/button/button.css +247 -4
- package/src/button/button.tokens.json +8 -0
- package/src/calendar/calendar.css +131 -0
- package/src/calendar/calendar.tokens.json +10 -0
- package/src/card/card.css +63 -3
- package/src/cascader/cascader.css +13 -0
- package/src/chart/chart.css +3 -3
- package/src/chart/chart.tokens.json +1 -0
- package/src/checkbox/checkbox.css +47 -0
- package/src/checkbox/checkbox.tokens.json +4 -0
- package/src/collapsible/collapsible.css +174 -5
- package/src/collapsible/collapsible.tokens.json +4 -0
- package/src/combobox/combobox.css +13 -0
- package/src/command-palette/command-palette.css +60 -1
- package/src/command-palette/command-palette.tokens.json +2 -0
- package/src/dashboard-grid/dashboard-grid.css +29 -9
- package/src/dashboard-grid/dashboard-grid.tokens.json +3 -1
- package/src/data-grid/data-grid.css +44 -5
- package/src/data-list/data-list.css +17 -11
- package/src/description-list/description-list.css +15 -1
- package/src/entity-picker/entity-picker.css +70 -1
- package/src/entity-picker/entity-picker.tokens.json +2 -0
- package/src/field-group/field-group.css +17 -7
- package/src/filter-bar/filter-bar.css +24 -0
- package/src/floating-panel/floating-panel.css +123 -0
- package/src/floating-panel/floating-panel.tokens.json +30 -0
- package/src/inline-message/inline-message.css +1 -1
- package/src/inline-message/inline-message.tokens.json +1 -0
- package/src/kbd/kbd.css +1 -1
- package/src/kbd/kbd.tokens.json +1 -0
- package/src/list/list.css +32 -1
- package/src/list/list.tokens.json +2 -0
- package/src/list-item/list-item.css +102 -7
- package/src/list-item/list-item.tokens.json +3 -0
- package/src/listbox/listbox.css +50 -2
- package/src/listbox/listbox.tokens.json +6 -0
- package/src/message/message.css +20 -0
- package/src/message/message.tokens.json +1 -0
- package/src/meter/meter.css +136 -0
- package/src/meter/meter.tokens.json +23 -0
- package/src/multi-select/multi-select.css +13 -0
- package/src/page/page.css +58 -4
- package/src/page/page.tokens.json +7 -0
- package/src/prompt-composer/prompt-composer.css +18 -7
- package/src/rating/rating.css +1 -1
- package/src/rating/rating.tokens.json +1 -0
- package/src/runtime-properties.mjs +19 -0
- package/src/section/section.css +61 -4
- package/src/section/section.tokens.json +6 -0
- package/src/segmented-control/segmented-control.css +11 -0
- package/src/select/select.css +13 -0
- package/src/side-navigation/side-navigation.css +3 -3
- package/src/side-navigation/side-navigation.tokens.json +1 -0
- package/src/slider/slider.css +7 -1
- package/src/slider/slider.tokens.json +1 -0
- package/src/stat-card/stat-card.css +5 -0
- package/src/status-indicator/status-indicator.css +3 -2
- package/src/switch/switch.css +49 -25
- package/src/switch/switch.tokens.json +4 -0
- package/src/table/table.css +166 -12
- package/src/table/table.tokens.json +5 -0
- package/src/tag/tag.css +4 -1
- package/src/tag/tag.tokens.json +1 -0
- package/src/toolbar/toolbar.css +16 -2
- package/src/toolbar/toolbar.tokens.json +2 -1
- package/src/tooltip/tooltip.css +30 -0
- package/src/top-navigation/top-navigation.css +1 -1
- package/src/top-navigation/top-navigation.tokens.json +1 -0
- package/src/typography/typography.css +25 -0
- package/src/typography/typography.tokens.json +1 -0
|
@@ -1299,6 +1299,19 @@
|
|
|
1299
1299
|
display: none;
|
|
1300
1300
|
}
|
|
1301
1301
|
|
|
1302
|
+
/* Beside the empty message the status says the same thing to the eye. It
|
|
1303
|
+
stays the live region that announces the count, clipped to one pixel. */
|
|
1304
|
+
[data-ui-cascader] [data-part-empty] ~ [data-part-status] {
|
|
1305
|
+
block-size: 1px;
|
|
1306
|
+
clip-path: inset(50%);
|
|
1307
|
+
inline-size: 1px;
|
|
1308
|
+
min-inline-size: 0;
|
|
1309
|
+
overflow: hidden;
|
|
1310
|
+
padding: 0;
|
|
1311
|
+
position: absolute;
|
|
1312
|
+
white-space: nowrap;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1302
1315
|
/* ── Forced colors ───────────────────────────────────────────────────── */
|
|
1303
1316
|
|
|
1304
1317
|
@media (forced-colors: active) {
|
package/src/chart/chart.css
CHANGED
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
align-content: start;
|
|
192
192
|
display: grid;
|
|
193
193
|
flex: 1 1 auto;
|
|
194
|
-
gap: var(--slotted-space-1, 0.125rem);
|
|
194
|
+
gap: var(--slotted-chart-header-gap, var(--slotted-space-1, 0.125rem));
|
|
195
195
|
min-inline-size: 0;
|
|
196
196
|
}
|
|
197
197
|
|
|
@@ -243,8 +243,8 @@
|
|
|
243
243
|
[data-ui-chart][data-variant='card'] > [data-part-header] > :first-child {
|
|
244
244
|
min-block-size: calc(
|
|
245
245
|
var(--slotted-font-size-md, 0.875rem) * var(--slotted-line-height-md, 1.5) +
|
|
246
|
-
var(--slotted-
|
|
247
|
-
var(--slotted-line-height-sm, 1.45)
|
|
246
|
+
var(--slotted-chart-header-gap, var(--slotted-space-1, 0.125rem)) +
|
|
247
|
+
var(--slotted-font-size-sm, 0.8125rem) * var(--slotted-line-height-sm, 1.45)
|
|
248
248
|
);
|
|
249
249
|
}
|
|
250
250
|
|
|
@@ -128,6 +128,7 @@
|
|
|
128
128
|
--_size: var(--slotted-checkbox-size, var(--slotted-selection-size-sm, 14px));
|
|
129
129
|
--_font-size: var(--slotted-control-font-size-sm, 12px);
|
|
130
130
|
--_gap: var(--slotted-control-label-gap-sm, 8px);
|
|
131
|
+
--_control-height: var(--slotted-control-height-sm, 1.75rem);
|
|
131
132
|
--_tile-inset: var(
|
|
132
133
|
--slotted-checkbox-tile-inset,
|
|
133
134
|
var(--slotted-control-padding-inline-sm, 10px)
|
|
@@ -138,6 +139,7 @@
|
|
|
138
139
|
--_size: var(--slotted-checkbox-size, var(--slotted-selection-size-md, 16px));
|
|
139
140
|
--_font-size: var(--slotted-control-font-size-md, 13px);
|
|
140
141
|
--_gap: var(--slotted-control-label-gap-md, 12px);
|
|
142
|
+
--_control-height: var(--slotted-control-height-md, 2rem);
|
|
141
143
|
--_tile-inset: var(
|
|
142
144
|
--slotted-checkbox-tile-inset,
|
|
143
145
|
var(--slotted-control-padding-inline-md, 13px)
|
|
@@ -148,6 +150,7 @@
|
|
|
148
150
|
--_size: var(--slotted-checkbox-size, var(--slotted-selection-size-lg, 18px));
|
|
149
151
|
--_font-size: var(--slotted-control-font-size-lg, 14px);
|
|
150
152
|
--_gap: var(--slotted-control-label-gap-lg, 12px);
|
|
153
|
+
--_control-height: var(--slotted-control-height-lg, 2.5rem);
|
|
151
154
|
--_tile-inset: var(
|
|
152
155
|
--slotted-checkbox-tile-inset,
|
|
153
156
|
var(--slotted-control-padding-inline-lg, 16px)
|
|
@@ -275,6 +278,10 @@
|
|
|
275
278
|
cursor: pointer;
|
|
276
279
|
grid-column: 2;
|
|
277
280
|
grid-row: 1;
|
|
281
|
+
/* A child that does not wrap (a one-line row cut with an ellipsis) shrinks
|
|
282
|
+
to the column instead of drawing past the root. */
|
|
283
|
+
max-inline-size: 100%;
|
|
284
|
+
min-inline-size: 0;
|
|
278
285
|
/** A label that is one unbroken token — an id, a hash, a URL — breaks. */
|
|
279
286
|
overflow-wrap: anywhere;
|
|
280
287
|
}
|
|
@@ -415,6 +422,7 @@
|
|
|
415
422
|
grid-row: 2;
|
|
416
423
|
line-height: var(--slotted-line-height-xs, 1.4);
|
|
417
424
|
margin: 0;
|
|
425
|
+
min-inline-size: 0;
|
|
418
426
|
overflow-wrap: anywhere;
|
|
419
427
|
padding-block-start: var(--_description-gap);
|
|
420
428
|
}
|
|
@@ -463,6 +471,45 @@
|
|
|
463
471
|
inset-inline-start: calc(-1.5 * var(--_halo-spread));
|
|
464
472
|
}
|
|
465
473
|
|
|
474
|
+
/* ── A control among controls ─────────────────────────────────────────
|
|
475
|
+
*
|
|
476
|
+
* `variant="control"`: the choice beside fields and buttons on one row. The
|
|
477
|
+
* plain root is its line of text, and its halo stands outside that box, so
|
|
478
|
+
* a stack of choices keeps the square on the edge of the form. On a row the
|
|
479
|
+
* same halo is shorter than the controls beside it and paints into the
|
|
480
|
+
* row's gap. Here the root is a box one control tall that holds the halo:
|
|
481
|
+
* the halo's overhang becomes the root's own padding, and the gap of the
|
|
482
|
+
* row is the space a reader sees between the halo and its neighbors.
|
|
483
|
+
*
|
|
484
|
+
* The block padding is what remains of the control height past one line, so
|
|
485
|
+
* a label that wraps adds lines and the halo still ends where the root ends.
|
|
486
|
+
*/
|
|
487
|
+
[data-ui-checkbox][data-part-root][data-variant='control'] {
|
|
488
|
+
--_control-pad: max(
|
|
489
|
+
0px,
|
|
490
|
+
(var(--_control-height) - var(--_font-size) * var(--_line-height)) / 2
|
|
491
|
+
);
|
|
492
|
+
|
|
493
|
+
padding-block: var(--_control-pad);
|
|
494
|
+
padding-inline: var(--_halo-spread) calc(1.5 * var(--_halo-spread));
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
[data-ui-checkbox][data-part-root][data-variant='control'][data-label-placement='start'] {
|
|
498
|
+
padding-inline: calc(1.5 * var(--_halo-spread)) var(--_halo-spread);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
[data-ui-checkbox][data-part-root][data-variant='control']:is(
|
|
502
|
+
[data-label-hidden],
|
|
503
|
+
:has(> [data-part-label]:empty)
|
|
504
|
+
):not([data-label-placement='start']) {
|
|
505
|
+
padding-inline: var(--_halo-spread);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
[data-ui-checkbox][data-part-root][data-variant='control'] [data-part-label]::after {
|
|
509
|
+
border-radius: var(--slotted-control-radius, 4px);
|
|
510
|
+
inset-block: calc(-1 * var(--_control-pad));
|
|
511
|
+
}
|
|
512
|
+
|
|
466
513
|
/* ── States ───────────────────────────────────────────────────────────
|
|
467
514
|
*
|
|
468
515
|
* In the order `STATE_PRECEDENCE` declares, each weaker one held back for
|
|
@@ -53,6 +53,9 @@
|
|
|
53
53
|
"--slotted-control-font-size-lg",
|
|
54
54
|
"--slotted-control-font-size-md",
|
|
55
55
|
"--slotted-control-font-size-sm",
|
|
56
|
+
"--slotted-control-height-lg",
|
|
57
|
+
"--slotted-control-height-md",
|
|
58
|
+
"--slotted-control-height-sm",
|
|
56
59
|
"--slotted-control-invalid-edge-width",
|
|
57
60
|
"--slotted-control-label-gap-lg",
|
|
58
61
|
"--slotted-control-label-gap-md",
|
|
@@ -60,6 +63,7 @@
|
|
|
60
63
|
"--slotted-control-padding-inline-lg",
|
|
61
64
|
"--slotted-control-padding-inline-md",
|
|
62
65
|
"--slotted-control-padding-inline-sm",
|
|
66
|
+
"--slotted-control-radius",
|
|
63
67
|
"--slotted-control-shadow",
|
|
64
68
|
"--slotted-control-transition-duration",
|
|
65
69
|
"--slotted-control-transition-easing",
|
|
@@ -72,6 +72,8 @@
|
|
|
72
72
|
*/
|
|
73
73
|
inline-size: 100%;
|
|
74
74
|
min-inline-size: 0;
|
|
75
|
+
/* The framed border sits inside that width, not beside it. */
|
|
76
|
+
box-sizing: border-box;
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
[data-ui-collapsible][data-size='sm'] {
|
|
@@ -128,6 +130,7 @@
|
|
|
128
130
|
appearance: none;
|
|
129
131
|
background-color: var(--slotted-collapsible-background, transparent);
|
|
130
132
|
border: 0;
|
|
133
|
+
border-radius: var(--slotted-collapsible-radius, var(--slotted-control-radius, 4px));
|
|
131
134
|
color: var(--slotted-collapsible-color, var(--slotted-text, CanvasText));
|
|
132
135
|
column-gap: var(--_gap);
|
|
133
136
|
cursor: pointer;
|
|
@@ -232,6 +235,49 @@
|
|
|
232
235
|
white-space: nowrap;
|
|
233
236
|
}
|
|
234
237
|
|
|
238
|
+
/**
|
|
239
|
+
* ── The summary ────────────────────────────────────────────────────────
|
|
240
|
+
*
|
|
241
|
+
* What a closed disclosure holds, stated at the end of the title's line:
|
|
242
|
+
* "Usage and limits … 65 requests today · 1 paused". It is one line, cut
|
|
243
|
+
* with an ellipsis, in the description's ink, and inside the trigger, so a
|
|
244
|
+
* reader hears it after the title as they hear the description.
|
|
245
|
+
*
|
|
246
|
+
* The title's column is as wide as the title and no wider, and the summary
|
|
247
|
+
* takes what remains, so a long summary is cut before the title is.
|
|
248
|
+
*/
|
|
249
|
+
[data-ui-collapsible] > [data-part-header] > [data-part-trigger]:has(> [data-part-summary]) {
|
|
250
|
+
grid-template-columns: minmax(0, max-content) minmax(0, 1fr) auto;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
[data-ui-collapsible] > [data-part-header] > [data-part-trigger] > [data-part-summary] {
|
|
254
|
+
color: var(--slotted-collapsible-description-color, var(--slotted-text-muted, GrayText));
|
|
255
|
+
font-size: var(--_description-font-size);
|
|
256
|
+
font-weight: var(--slotted-font-weight-regular, 400);
|
|
257
|
+
grid-column: 2;
|
|
258
|
+
grid-row: 1;
|
|
259
|
+
min-inline-size: 0;
|
|
260
|
+
overflow: hidden;
|
|
261
|
+
text-align: end;
|
|
262
|
+
text-overflow: ellipsis;
|
|
263
|
+
unicode-bidi: isolate;
|
|
264
|
+
white-space: nowrap;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
[data-ui-collapsible]
|
|
268
|
+
> [data-part-header]
|
|
269
|
+
> [data-part-trigger]:has(> [data-part-summary])
|
|
270
|
+
> [data-part-description] {
|
|
271
|
+
grid-column: 1 / span 2;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
[data-ui-collapsible]
|
|
275
|
+
> [data-part-header]
|
|
276
|
+
> [data-part-trigger]:has(> [data-part-summary])
|
|
277
|
+
> [data-part-indicator] {
|
|
278
|
+
grid-column: 3;
|
|
279
|
+
}
|
|
280
|
+
|
|
235
281
|
/* ── The indicator ────────────────────────────────────────────────────── */
|
|
236
282
|
|
|
237
283
|
/**
|
|
@@ -257,17 +303,32 @@
|
|
|
257
303
|
* inherits the trigger's font and line-height, so the line it measures is
|
|
258
304
|
* the line the title sets. The mark keeps its own row: spanning both put it
|
|
259
305
|
* in a box the description made taller, which is what centerd it there.
|
|
306
|
+
*
|
|
307
|
+
* The mark is one line of the title tall, centered in it, and shares the
|
|
308
|
+
* title's first baseline: `::before` gives the box the baseline of that
|
|
309
|
+
* line. A fixed offset from the top missed the line whenever the title
|
|
310
|
+
* held an element taller than it (a tag with a count), which centers the
|
|
311
|
+
* text lower in the label box.
|
|
260
312
|
*/
|
|
261
313
|
--slotted-icon-size: var(--_icon-size);
|
|
262
|
-
align-
|
|
263
|
-
|
|
314
|
+
align-items: center;
|
|
315
|
+
align-self: first baseline;
|
|
316
|
+
block-size: 1lh;
|
|
264
317
|
color: var(--slotted-collapsible-indicator-color, currentColor);
|
|
265
318
|
display: flex;
|
|
266
319
|
flex: none;
|
|
267
320
|
grid-column: 2;
|
|
268
321
|
grid-row: 1;
|
|
269
322
|
inline-size: var(--_icon-size);
|
|
270
|
-
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
[data-ui-collapsible] > [data-part-header] > [data-part-trigger] > [data-part-indicator]::before {
|
|
326
|
+
content: '\200b';
|
|
327
|
+
inline-size: 0;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
[data-ui-collapsible] > [data-part-header] > [data-part-trigger] > [data-part-label] {
|
|
331
|
+
align-self: first baseline;
|
|
271
332
|
}
|
|
272
333
|
|
|
273
334
|
[data-ui-collapsible]
|
|
@@ -327,6 +388,35 @@
|
|
|
327
388
|
grid-column: 2;
|
|
328
389
|
}
|
|
329
390
|
|
|
391
|
+
/* With the mark first, the summary takes the third column and the second
|
|
392
|
+
line runs under the title and the summary. */
|
|
393
|
+
[data-ui-collapsible][data-toggle-placement='start']
|
|
394
|
+
> [data-part-header]
|
|
395
|
+
> [data-part-trigger]:has(> [data-part-summary]) {
|
|
396
|
+
grid-template-columns: auto minmax(0, max-content) minmax(0, 1fr);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
[data-ui-collapsible][data-toggle-placement='start']
|
|
400
|
+
> [data-part-header]
|
|
401
|
+
> [data-part-trigger]:has(> [data-part-summary])
|
|
402
|
+
> [data-part-indicator] {
|
|
403
|
+
grid-column: 1;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
[data-ui-collapsible][data-toggle-placement='start']
|
|
407
|
+
> [data-part-header]
|
|
408
|
+
> [data-part-trigger]
|
|
409
|
+
> [data-part-summary] {
|
|
410
|
+
grid-column: 3;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
[data-ui-collapsible][data-toggle-placement='start']
|
|
414
|
+
> [data-part-header]
|
|
415
|
+
> [data-part-trigger]:has(> [data-part-summary])
|
|
416
|
+
> [data-part-description] {
|
|
417
|
+
grid-column: 2 / span 2;
|
|
418
|
+
}
|
|
419
|
+
|
|
330
420
|
/**
|
|
331
421
|
* The body lines up with the title rather than with the mark. With the mark
|
|
332
422
|
* at the end the two edges are already the same; with it at the start the
|
|
@@ -433,6 +523,54 @@
|
|
|
433
523
|
);
|
|
434
524
|
}
|
|
435
525
|
|
|
526
|
+
/**
|
|
527
|
+
* ── Peek ────────────────────────────────────────────────────────────────
|
|
528
|
+
*
|
|
529
|
+
* A closed panel that keeps the start of its content in view: the track's
|
|
530
|
+
* minimum is the peek, so `minmax(peek, 0fr)` closed and `minmax(peek, 1fr)`
|
|
531
|
+
* open interpolate as the plain panel's `0fr` and `1fr` do, with the same
|
|
532
|
+
* duration. The content is drawn, clipped at the peek and faded at its end;
|
|
533
|
+
* the binding keeps it inert, so nothing in the clipped part takes focus.
|
|
534
|
+
* Forced colors drop the fade and keep the clip.
|
|
535
|
+
*/
|
|
536
|
+
[data-ui-collapsible][data-peek] > [data-part-panel] {
|
|
537
|
+
grid-template-rows: minmax(var(--_peek), 0fr);
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
[data-ui-collapsible][data-peek][data-open] > [data-part-panel] {
|
|
541
|
+
grid-template-rows: minmax(var(--_peek), 1fr);
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
[data-ui-collapsible][data-peek]:not([data-open]) > [data-part-panel] > [data-part-content] {
|
|
545
|
+
content-visibility: visible;
|
|
546
|
+
mask-image: linear-gradient(
|
|
547
|
+
to bottom,
|
|
548
|
+
#000 calc(100% - var(--slotted-collapsible-peek-fade, 3rem)),
|
|
549
|
+
transparent
|
|
550
|
+
);
|
|
551
|
+
opacity: 1;
|
|
552
|
+
padding-block-start: var(
|
|
553
|
+
--slotted-collapsible-panel-padding-block-start,
|
|
554
|
+
var(--_padding-block)
|
|
555
|
+
);
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
/* Over the fade, at the end of what is in view. */
|
|
559
|
+
[data-ui-collapsible] > [data-part-more] {
|
|
560
|
+
grid-column: 1 / -1;
|
|
561
|
+
grid-row: 3;
|
|
562
|
+
justify-self: center;
|
|
563
|
+
margin-block: calc(-1 * var(--slotted-collapsible-peek-fade, 3rem) / 2) var(--_padding-block);
|
|
564
|
+
position: relative;
|
|
565
|
+
z-index: 1;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
@media (forced-colors: active) {
|
|
569
|
+
[data-ui-collapsible][data-peek]:not([data-open]) > [data-part-panel] > [data-part-content] {
|
|
570
|
+
mask-image: none;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
436
574
|
/**
|
|
437
575
|
* A panel whose content has not arrived. The box is held open at a line's
|
|
438
576
|
* height so the reader is not handed an empty frame, and `aria-busy` on the
|
|
@@ -510,14 +648,41 @@
|
|
|
510
648
|
*/
|
|
511
649
|
[data-ui-collapsible][data-variant='framed'] {
|
|
512
650
|
background-color: var(--slotted-collapsible-surface, var(--slotted-surface-raised, Canvas));
|
|
513
|
-
border: var(--_rule-size) solid
|
|
514
|
-
var(--slotted-collapsible-rule-color, var(--slotted-border-subtle, ButtonBorder));
|
|
515
651
|
border-radius: var(--slotted-collapsible-radius, var(--slotted-radius-md, 6px));
|
|
652
|
+
--_frame-edge: var(
|
|
653
|
+
--slotted-collapsible-border-color,
|
|
654
|
+
var(--slotted-collapsible-rule-color, var(--slotted-border-subtle, ButtonBorder))
|
|
655
|
+
);
|
|
656
|
+
|
|
657
|
+
box-shadow: var(--slotted-collapsible-shadow, none);
|
|
658
|
+
/* The containing block of the edge. */
|
|
659
|
+
position: relative;
|
|
516
660
|
/* The trigger's own background is drawn to the frame's edge, so the corner
|
|
517
661
|
it meets has to be the corner the frame draws. */
|
|
518
662
|
overflow: clip;
|
|
519
663
|
}
|
|
520
664
|
|
|
665
|
+
/**
|
|
666
|
+
* The frame's edge is drawn as a card's is: by `::before` over the box and
|
|
667
|
+
* out of flow, in its own color, so a theme that gives cards a hairline and
|
|
668
|
+
* a shadow with an inset top line gives the frame the same two rows of
|
|
669
|
+
* pixels. A real border put that inset line one border width lower.
|
|
670
|
+
*/
|
|
671
|
+
[data-ui-collapsible][data-variant='framed']::before {
|
|
672
|
+
border: var(--_rule-size) solid var(--_frame-edge);
|
|
673
|
+
border-radius: inherit;
|
|
674
|
+
content: '';
|
|
675
|
+
inset: 0;
|
|
676
|
+
pointer-events: none;
|
|
677
|
+
position: absolute;
|
|
678
|
+
z-index: 1;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
/* The frame clips the trigger, so its hover fill meets the frame's own corner. */
|
|
682
|
+
[data-ui-collapsible][data-variant='framed'] > [data-part-header] > [data-part-trigger] {
|
|
683
|
+
border-radius: 0;
|
|
684
|
+
}
|
|
685
|
+
|
|
521
686
|
/* ── Density, direction and the narrow container ──────────────────────── */
|
|
522
687
|
|
|
523
688
|
/**
|
|
@@ -543,5 +708,9 @@
|
|
|
543
708
|
[data-ui-collapsible] > [data-part-panel] {
|
|
544
709
|
grid-row: 3;
|
|
545
710
|
}
|
|
711
|
+
|
|
712
|
+
[data-ui-collapsible] > [data-part-more] {
|
|
713
|
+
grid-row: 4;
|
|
714
|
+
}
|
|
546
715
|
}
|
|
547
716
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"--slotted-border-width-thin",
|
|
4
4
|
"--slotted-collapsible-active-background",
|
|
5
5
|
"--slotted-collapsible-background",
|
|
6
|
+
"--slotted-collapsible-border-color",
|
|
6
7
|
"--slotted-collapsible-color",
|
|
7
8
|
"--slotted-collapsible-description-color",
|
|
8
9
|
"--slotted-collapsible-hover-background",
|
|
@@ -11,8 +12,10 @@
|
|
|
11
12
|
"--slotted-collapsible-padding-inline",
|
|
12
13
|
"--slotted-collapsible-panel-color",
|
|
13
14
|
"--slotted-collapsible-panel-padding-block-start",
|
|
15
|
+
"--slotted-collapsible-peek-fade",
|
|
14
16
|
"--slotted-collapsible-radius",
|
|
15
17
|
"--slotted-collapsible-rule-color",
|
|
18
|
+
"--slotted-collapsible-shadow",
|
|
16
19
|
"--slotted-collapsible-surface",
|
|
17
20
|
"--slotted-control-font-family",
|
|
18
21
|
"--slotted-control-gap-lg",
|
|
@@ -28,6 +31,7 @@
|
|
|
28
31
|
"--slotted-control-padding-inline-lg",
|
|
29
32
|
"--slotted-control-padding-inline-md",
|
|
30
33
|
"--slotted-control-padding-inline-sm",
|
|
34
|
+
"--slotted-control-radius",
|
|
31
35
|
"--slotted-control-transition-duration",
|
|
32
36
|
"--slotted-control-transition-easing",
|
|
33
37
|
"--slotted-disabled-foreground",
|
|
@@ -1068,6 +1068,19 @@
|
|
|
1068
1068
|
display: none;
|
|
1069
1069
|
}
|
|
1070
1070
|
|
|
1071
|
+
/* Beside the empty message the status says the same thing to the eye. It
|
|
1072
|
+
stays the live region that announces the count, clipped to one pixel. */
|
|
1073
|
+
[data-ui-combobox] [data-part-empty] ~ [data-part-status] {
|
|
1074
|
+
block-size: 1px;
|
|
1075
|
+
clip-path: inset(50%);
|
|
1076
|
+
inline-size: 1px;
|
|
1077
|
+
min-inline-size: 0;
|
|
1078
|
+
overflow: hidden;
|
|
1079
|
+
padding: 0;
|
|
1080
|
+
position: absolute;
|
|
1081
|
+
white-space: nowrap;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1071
1084
|
/**
|
|
1072
1085
|
* The wait, as the shape of the list that is coming. `select`'s decision and
|
|
1073
1086
|
* `select`'s reasons (SL6/CB5): three rows the height of an option rather
|
|
@@ -559,7 +559,7 @@
|
|
|
559
559
|
* the items and below the parts the surface draws over them.
|
|
560
560
|
*/
|
|
561
561
|
[data-ui-command-palette] [data-part-group-label] {
|
|
562
|
-
background:
|
|
562
|
+
background: transparent;
|
|
563
563
|
box-sizing: border-box;
|
|
564
564
|
color: var(--_muted);
|
|
565
565
|
font-size: var(--_secondary-font-size);
|
|
@@ -574,6 +574,65 @@
|
|
|
574
574
|
z-index: 1;
|
|
575
575
|
}
|
|
576
576
|
|
|
577
|
+
/**
|
|
578
|
+
* At rest the label stands on the panel's own surface and paints none, so a
|
|
579
|
+
* translucent panel does not draw a second layer under every label. Only
|
|
580
|
+
* while it is stuck, with rows passing under it, does it fill. Under a
|
|
581
|
+
* material panel that fill is translucent, so the label blurs the rows with
|
|
582
|
+
* the panel's filter, or with one the theme states for it.
|
|
583
|
+
*
|
|
584
|
+
* A blur leaves part of a sharp row in view. Where the engine times an
|
|
585
|
+
* animation by the scroll, the rows end at the label instead: each one is cut
|
|
586
|
+
* by the share of it that has passed the label's bottom edge, which is the
|
|
587
|
+
* list's scroll padding. Nothing is under the label then, so it paints no
|
|
588
|
+
* fill and no filter but the ones a theme states.
|
|
589
|
+
*/
|
|
590
|
+
[data-ui-command-palette] [data-part-group-label][data-stuck] {
|
|
591
|
+
background: var(--slotted-command-palette-group-label-stuck-surface, var(--_surface));
|
|
592
|
+
-webkit-backdrop-filter: var(
|
|
593
|
+
--slotted-command-palette-group-label-stuck-backdrop-filter,
|
|
594
|
+
var(--slotted-command-palette-backdrop-filter, none)
|
|
595
|
+
);
|
|
596
|
+
backdrop-filter: var(
|
|
597
|
+
--slotted-command-palette-group-label-stuck-backdrop-filter,
|
|
598
|
+
var(--slotted-command-palette-backdrop-filter, none)
|
|
599
|
+
);
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
@supports (animation-timeline: view()) {
|
|
603
|
+
[data-ui-command-palette] [data-part-group-label][data-stuck] {
|
|
604
|
+
background: var(--slotted-command-palette-group-label-stuck-surface, transparent);
|
|
605
|
+
-webkit-backdrop-filter: var(
|
|
606
|
+
--slotted-command-palette-group-label-stuck-backdrop-filter,
|
|
607
|
+
none
|
|
608
|
+
);
|
|
609
|
+
backdrop-filter: var(--slotted-command-palette-group-label-stuck-backdrop-filter, none);
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
[data-ui-command-palette] [data-part-group-label][data-stuck] ~ * {
|
|
613
|
+
animation: slotted-command-palette-under-label linear forwards;
|
|
614
|
+
animation-range: exit;
|
|
615
|
+
animation-timeline: view();
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
@keyframes slotted-command-palette-under-label {
|
|
620
|
+
from {
|
|
621
|
+
clip-path: inset(0);
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
to {
|
|
625
|
+
clip-path: inset(100% 0 0);
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
|
|
630
|
+
[data-ui-command-palette] [data-part-group-label][data-stuck] {
|
|
631
|
+
-webkit-backdrop-filter: none;
|
|
632
|
+
backdrop-filter: none;
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
|
|
577
636
|
@media (forced-colors: active) {
|
|
578
637
|
[data-ui-command-palette] [data-part-group-label] {
|
|
579
638
|
background: Canvas;
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
"--slotted-command-palette-border-color",
|
|
7
7
|
"--slotted-command-palette-footer-surface",
|
|
8
8
|
"--slotted-command-palette-group-label-height",
|
|
9
|
+
"--slotted-command-palette-group-label-stuck-backdrop-filter",
|
|
10
|
+
"--slotted-command-palette-group-label-stuck-surface",
|
|
9
11
|
"--slotted-command-palette-highlight",
|
|
10
12
|
"--slotted-command-palette-highlight-ring",
|
|
11
13
|
"--slotted-command-palette-hover",
|
|
@@ -221,23 +221,43 @@
|
|
|
221
221
|
overflow-wrap: anywhere;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
/* The title and its help control on one row
|
|
225
|
-
|
|
224
|
+
/* The title and its help control on one row. The row takes the title's type,
|
|
225
|
+
so the inline icon button is one line of the title tall and centers on the
|
|
226
|
+
first of them without adding to the row's height. */
|
|
226
227
|
[data-ui-dashboard-grid] [data-part-widget] [data-part-title-row] {
|
|
227
228
|
align-items: flex-start;
|
|
228
229
|
display: flex;
|
|
230
|
+
font-size: var(
|
|
231
|
+
--slotted-dashboard-grid-title-font-size,
|
|
232
|
+
var(--slotted-font-size-md, 0.8125rem)
|
|
233
|
+
);
|
|
229
234
|
gap: var(--slotted-space-1, 0.125rem);
|
|
235
|
+
line-height: var(--slotted-line-height-md, 1.5);
|
|
230
236
|
}
|
|
231
237
|
|
|
238
|
+
/* An annotation of the title rather than a button beside it. Its ground says
|
|
239
|
+
it is a control under the pointer, and that the note is its own when open. */
|
|
232
240
|
[data-ui-dashboard-grid] [data-part-widget] [data-part-title-row] > [data-part-help] {
|
|
233
241
|
flex: none;
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
[data-ui-dashboard-grid]
|
|
245
|
+
[data-part-widget]
|
|
246
|
+
[data-part-title-row]
|
|
247
|
+
> [data-part-help][data-inline][data-variant]:hover:not(:disabled):not([data-disabled]):not(
|
|
248
|
+
[data-loading]
|
|
249
|
+
),
|
|
250
|
+
[data-ui-dashboard-grid] [data-part-widget] [data-part-title-row] > [data-part-help][data-open] {
|
|
251
|
+
background: var(--slotted-tone-secondary-subtle-hover, ButtonFace);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* The note behind it holds a few sentences, wider than the small popover's
|
|
256
|
+
* measure. The layer is portaled out of the grid, so the rule finds it by
|
|
257
|
+
* the note it holds, and the width is a theme token for every widget.
|
|
258
|
+
*/
|
|
259
|
+
[data-ui-popover][data-size]:has([data-part-help-note]) {
|
|
260
|
+
--_measure: var(--slotted-dashboard-grid-help-measure, 20rem);
|
|
241
261
|
}
|
|
242
262
|
|
|
243
263
|
[data-ui-dashboard-grid] [data-part-widget] [data-part-description] {
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"--slotted-dashboard-grid-handle-glyph-size",
|
|
20
20
|
"--slotted-dashboard-grid-handle-inline-size",
|
|
21
21
|
"--slotted-dashboard-grid-handle-inline-size-coarse",
|
|
22
|
+
"--slotted-dashboard-grid-help-measure",
|
|
22
23
|
"--slotted-dashboard-grid-lattice-color",
|
|
23
24
|
"--slotted-dashboard-grid-lattice-dot",
|
|
24
25
|
"--slotted-dashboard-grid-resize-hit",
|
|
@@ -63,5 +64,6 @@
|
|
|
63
64
|
"--slotted-text",
|
|
64
65
|
"--slotted-text-muted",
|
|
65
66
|
"--slotted-tone-accent-on-solid",
|
|
66
|
-
"--slotted-tone-accent-solid"
|
|
67
|
+
"--slotted-tone-accent-solid",
|
|
68
|
+
"--slotted-tone-secondary-subtle-hover"
|
|
67
69
|
]
|