@slotted/styles 0.1.0-beta.33 → 0.1.0-beta.35
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 +168 -4
- package/src/button/button.tokens.json +5 -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 +10 -1
- package/src/command-palette/command-palette.tokens.json +1 -0
- package/src/dashboard-grid/dashboard-grid.css +12 -7
- package/src/dashboard-grid/dashboard-grid.tokens.json +1 -0
- 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/drawer/drawer.css +91 -0
- package/src/entity-picker/entity-picker.css +23 -1
- package/src/entity-picker/entity-picker.tokens.json +1 -0
- 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/form/form.css +19 -16
- 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 +10 -1
- package/src/list/list.tokens.json +1 -0
- package/src/list-item/list-item.css +108 -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/progress-indicator/progress-indicator.css +70 -0
- package/src/progress-indicator/progress-indicator.tokens.json +3 -0
- package/src/prompt-composer/prompt-composer.css +18 -7
- package/src/radio-group/radio-group.css +50 -0
- package/src/radio-group/radio-group.tokens.json +2 -0
- 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/sparkline/sparkline.css +207 -0
- package/src/sparkline/sparkline.tokens.json +10 -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/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
|
@@ -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,15 @@
|
|
|
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.
|
|
581
|
+
*/
|
|
582
|
+
[data-ui-command-palette] [data-part-group-label][data-stuck] {
|
|
583
|
+
background: var(--slotted-command-palette-group-label-stuck-surface, var(--_surface));
|
|
584
|
+
}
|
|
585
|
+
|
|
577
586
|
@media (forced-colors: active) {
|
|
578
587
|
[data-ui-command-palette] [data-part-group-label] {
|
|
579
588
|
background: Canvas;
|
|
@@ -6,6 +6,7 @@
|
|
|
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-surface",
|
|
9
10
|
"--slotted-command-palette-highlight",
|
|
10
11
|
"--slotted-command-palette-highlight-ring",
|
|
11
12
|
"--slotted-command-palette-hover",
|
|
@@ -229,15 +229,20 @@
|
|
|
229
229
|
gap: var(--slotted-space-1, 0.125rem);
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
+
/* An annotation of the title rather than a button beside it: the inline
|
|
233
|
+
icon button is one line of the title tall, muted until hovered. */
|
|
232
234
|
[data-ui-dashboard-grid] [data-part-widget] [data-part-title-row] > [data-part-help] {
|
|
235
|
+
color: var(--slotted-dashboard-grid-description-color, var(--slotted-text-muted, GrayText));
|
|
233
236
|
flex: none;
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* The note behind it holds a few sentences, wider than the small popover's
|
|
241
|
+
* measure. The layer is portaled out of the grid, so the rule finds it by
|
|
242
|
+
* the note it holds, and the width is a theme token for every widget.
|
|
243
|
+
*/
|
|
244
|
+
[data-ui-popover][data-size]:has([data-part-help-note]) {
|
|
245
|
+
--_measure: var(--slotted-dashboard-grid-help-measure, 20rem);
|
|
241
246
|
}
|
|
242
247
|
|
|
243
248
|
[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",
|
|
@@ -537,6 +537,23 @@
|
|
|
537
537
|
margin-inline-start: auto;
|
|
538
538
|
}
|
|
539
539
|
|
|
540
|
+
/**
|
|
541
|
+
* An end-aligned header ends its name where its values end, so the slot
|
|
542
|
+
* leaves the flow and stands over the start side of the name, where the name
|
|
543
|
+
* is short of the column's width. Reserved at the trailing edge it left the
|
|
544
|
+
* name the slot's width short of the numbers under it.
|
|
545
|
+
*/
|
|
546
|
+
[data-ui-data-grid]
|
|
547
|
+
[data-part-column-header]:is([data-align='end'], [data-numeric]:not([data-align]))
|
|
548
|
+
> [data-part-column-actions] {
|
|
549
|
+
inset-block-start: 50%;
|
|
550
|
+
inset-inline-start: var(--_pad-inline);
|
|
551
|
+
margin-block: 0;
|
|
552
|
+
margin-inline-start: 0;
|
|
553
|
+
position: absolute;
|
|
554
|
+
translate: 0 -50%;
|
|
555
|
+
}
|
|
556
|
+
|
|
540
557
|
[data-ui-data-grid] [data-part-column-actions] *:has([data-part-filter]) {
|
|
541
558
|
display: contents;
|
|
542
559
|
}
|
|
@@ -1715,27 +1732,31 @@
|
|
|
1715
1732
|
|
|
1716
1733
|
/**
|
|
1717
1734
|
* ── Alignment, numerals and the text treatment ─────────────────────────
|
|
1735
|
+
*
|
|
1736
|
+
* Every rule is keyed on `data-column`, which only the grid's own cells
|
|
1737
|
+
* carry: `data-align` is a generic name, and a layout primitive rendered
|
|
1738
|
+
* inside a cell writes it with another meaning.
|
|
1718
1739
|
*/
|
|
1719
|
-
[data-ui-data-grid] [data-align='start'] {
|
|
1740
|
+
[data-ui-data-grid] [data-column][data-align='start'] {
|
|
1720
1741
|
justify-content: start;
|
|
1721
1742
|
text-align: start;
|
|
1722
1743
|
}
|
|
1723
1744
|
|
|
1724
|
-
[data-ui-data-grid] [data-align='center'] {
|
|
1745
|
+
[data-ui-data-grid] [data-column][data-align='center'] {
|
|
1725
1746
|
justify-content: center;
|
|
1726
1747
|
text-align: center;
|
|
1727
1748
|
}
|
|
1728
1749
|
|
|
1729
|
-
[data-ui-data-grid] [data-align='end'] {
|
|
1750
|
+
[data-ui-data-grid] [data-column][data-align='end'] {
|
|
1730
1751
|
justify-content: end;
|
|
1731
1752
|
text-align: end;
|
|
1732
1753
|
}
|
|
1733
1754
|
|
|
1734
|
-
[data-ui-data-grid] [data-numeric] {
|
|
1755
|
+
[data-ui-data-grid] [data-column][data-numeric] {
|
|
1735
1756
|
font-variant-numeric: tabular-nums;
|
|
1736
1757
|
}
|
|
1737
1758
|
|
|
1738
|
-
[data-ui-data-grid] [data-numeric]:not([data-align]) {
|
|
1759
|
+
[data-ui-data-grid] [data-column][data-numeric]:not([data-align]) {
|
|
1739
1760
|
justify-content: end;
|
|
1740
1761
|
text-align: end;
|
|
1741
1762
|
}
|
|
@@ -2413,6 +2434,24 @@
|
|
|
2413
2434
|
padding-inline: var(--_pad-inline);
|
|
2414
2435
|
}
|
|
2415
2436
|
|
|
2437
|
+
/* A placeholder stands where the value will: at the end of a numeric or
|
|
2438
|
+
end-aligned column, so the box does not move when the data arrives. */
|
|
2439
|
+
[data-ui-data-grid]
|
|
2440
|
+
> [data-part-scroll]
|
|
2441
|
+
> [data-part-loader]
|
|
2442
|
+
> [data-part-row]
|
|
2443
|
+
> :is([data-align='end'], [data-numeric]:not([data-align])) {
|
|
2444
|
+
justify-content: end;
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
[data-ui-data-grid]
|
|
2448
|
+
> [data-part-scroll]
|
|
2449
|
+
> [data-part-loader]
|
|
2450
|
+
> [data-part-row]
|
|
2451
|
+
> [data-align='center'] {
|
|
2452
|
+
justify-content: center;
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2416
2455
|
[data-ui-data-grid][aria-busy='true'] > [data-part-scroll] > [data-part-body] {
|
|
2417
2456
|
opacity: 0.55;
|
|
2418
2457
|
transition: opacity var(--_transition);
|
|
@@ -197,12 +197,16 @@
|
|
|
197
197
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
200
|
+
/* Behind (hover: hover), as `list-item` gates its wash: a tap leaves the
|
|
201
|
+
title in `:hover` on a touch screen. */
|
|
202
|
+
@media (hover: hover) {
|
|
203
|
+
[data-ui-data-list]
|
|
204
|
+
[data-ui-list-item]:not([data-disabled]):not([data-loading])
|
|
205
|
+
:is(a[href], button:not(:disabled))[data-part-title]:hover {
|
|
206
|
+
text-decoration: underline;
|
|
207
|
+
text-decoration-thickness: from-font;
|
|
208
|
+
text-underline-offset: 0.2em;
|
|
209
|
+
}
|
|
206
210
|
}
|
|
207
211
|
|
|
208
212
|
/**
|
|
@@ -212,11 +216,13 @@
|
|
|
212
216
|
* through the row's own `--_fill`, which already knows the tone and the
|
|
213
217
|
* selection it is painted over. Both hold back for `disabled` and `loading`.
|
|
214
218
|
*/
|
|
215
|
-
|
|
216
|
-
[data-ui-
|
|
217
|
-
[data-
|
|
218
|
-
|
|
219
|
-
|
|
219
|
+
@media (hover: hover) {
|
|
220
|
+
[data-ui-data-list]
|
|
221
|
+
[data-ui-list-item]:not([data-disabled]):not([data-loading]):has(
|
|
222
|
+
[data-part-title]:is(a[href], button:not(:disabled)):hover
|
|
223
|
+
) {
|
|
224
|
+
--_fill: var(--_hover, ButtonFace);
|
|
225
|
+
}
|
|
220
226
|
}
|
|
221
227
|
|
|
222
228
|
[data-ui-data-list]
|
|
@@ -180,6 +180,7 @@
|
|
|
180
180
|
* width.
|
|
181
181
|
*/
|
|
182
182
|
[data-ui-description-list][data-layout='stack'] [data-part-list] {
|
|
183
|
+
--_value-align: start;
|
|
183
184
|
--_pair: minmax(0, 1fr);
|
|
184
185
|
--_term-floor: 0px;
|
|
185
186
|
--_span-1: 1;
|
|
@@ -301,6 +302,16 @@
|
|
|
301
302
|
vertical-align: text-bottom;
|
|
302
303
|
}
|
|
303
304
|
|
|
305
|
+
/**
|
|
306
|
+
* Values a reader compares down the list end on one vertical line at the
|
|
307
|
+
* inline end of their rows. Set on the root, so a stacked list and a row
|
|
308
|
+
* list folded to a stack reset it on the list and keep their values at the
|
|
309
|
+
* start, under the term.
|
|
310
|
+
*/
|
|
311
|
+
[data-ui-description-list][data-value-align='end'] {
|
|
312
|
+
--_value-align: end;
|
|
313
|
+
}
|
|
314
|
+
|
|
304
315
|
[data-ui-description-list] [data-part-description] {
|
|
305
316
|
align-items: baseline;
|
|
306
317
|
/**
|
|
@@ -315,7 +326,8 @@
|
|
|
315
326
|
grid-column: var(--_desc-col);
|
|
316
327
|
grid-row: var(--_desc-row);
|
|
317
328
|
grid-template-columns: minmax(0, max-content) auto;
|
|
318
|
-
justify-content: start;
|
|
329
|
+
justify-content: var(--_value-align, start);
|
|
330
|
+
text-align: var(--_value-align, start);
|
|
319
331
|
/* `dd` carries a user-agent inline margin of forty pixels. */
|
|
320
332
|
margin: 0;
|
|
321
333
|
min-inline-size: 0;
|
|
@@ -655,6 +667,7 @@
|
|
|
655
667
|
* cannot share one rule.
|
|
656
668
|
*/
|
|
657
669
|
[data-ui-description-list][data-layout='row'] [data-part-list]:has([data-part-hint]) {
|
|
670
|
+
--_value-align: start;
|
|
658
671
|
--_pair: minmax(0, 1fr);
|
|
659
672
|
--_term-floor: 0px;
|
|
660
673
|
--_span-1: 1;
|
|
@@ -681,6 +694,7 @@
|
|
|
681
694
|
|
|
682
695
|
@container slotted-description-list (max-width: 1em) {
|
|
683
696
|
[data-ui-description-list][data-layout='row'] [data-part-list] {
|
|
697
|
+
--_value-align: start;
|
|
684
698
|
--_pair: minmax(0, 1fr);
|
|
685
699
|
--_term-floor: 0px;
|
|
686
700
|
--_span-1: 1;
|