@slotted/styles 0.1.0-beta.30 → 0.1.0-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/alert/alert.css +1 -1
- package/src/alert/alert.tokens.json +1 -1
- package/src/app-shell/app-shell.css +1 -1
- package/src/app-shell/app-shell.tokens.json +1 -1
- package/src/card/card.css +2 -2
- package/src/card/card.tokens.json +1 -0
- package/src/cascader/cascader.css +3 -2
- package/src/cascader/cascader.tokens.json +1 -0
- package/src/collapsible/collapsible.css +5 -0
- package/src/collapsible/collapsible.tokens.json +1 -0
- package/src/combobox/combobox.css +3 -2
- package/src/combobox/combobox.tokens.json +1 -0
- package/src/dashboard-grid/dashboard-grid.css +19 -0
- package/src/dialog/dialog.css +1 -1
- package/src/dialog/dialog.tokens.json +2 -0
- package/src/drawer/drawer.css +1 -1
- package/src/drawer/drawer.tokens.json +1 -0
- package/src/entity-picker/entity-picker.css +3 -2
- package/src/entity-picker/entity-picker.tokens.json +1 -0
- package/src/form/form.css +1 -1
- package/src/form/form.tokens.json +1 -1
- package/src/import-export-center/import-export-center.css +3 -3
- package/src/import-export-center/import-export-center.tokens.json +1 -0
- package/src/menu/menu.css +4 -1
- package/src/menu/menu.tokens.json +1 -0
- package/src/message/message.css +104 -94
- package/src/multi-select/multi-select.css +3 -2
- package/src/multi-select/multi-select.tokens.json +1 -0
- package/src/navigation-menu/navigation-menu.css +1 -1
- package/src/navigation-menu/navigation-menu.tokens.json +1 -0
- package/src/notification-center/notification-center.css +2 -2
- package/src/notification-center/notification-center.tokens.json +1 -0
- package/src/page-header/page-header.css +1 -1
- package/src/page-header/page-header.tokens.json +1 -1
- package/src/popover/popover.css +4 -1
- package/src/popover/popover.tokens.json +1 -0
- package/src/result-state/result-state.css +1 -1
- package/src/result-state/result-state.tokens.json +1 -0
- package/src/scroll-area/scroll-area.css +6 -0
- package/src/section/section.css +1 -1
- package/src/section/section.tokens.json +1 -1
- package/src/select/select.css +3 -2
- package/src/select/select.tokens.json +1 -0
- package/src/side-navigation/side-navigation.css +8 -2
- package/src/toast/toast.css +1 -1
- package/src/toast/toast.tokens.json +1 -0
- package/src/tour/tour.css +4 -1
- package/src/tour/tour.tokens.json +1 -0
package/package.json
CHANGED
package/src/alert/alert.css
CHANGED
|
@@ -537,7 +537,7 @@
|
|
|
537
537
|
align-items: center;
|
|
538
538
|
display: flex;
|
|
539
539
|
flex-wrap: wrap;
|
|
540
|
-
gap: var(--slotted-alert-actions-gap, var(--slotted-
|
|
540
|
+
gap: var(--slotted-alert-actions-gap, var(--slotted-action-gap, 8px));
|
|
541
541
|
grid-column: 2;
|
|
542
542
|
grid-row: 2;
|
|
543
543
|
min-inline-size: 0;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
[
|
|
2
|
+
"--slotted-action-gap",
|
|
2
3
|
"--slotted-alert-actions-gap",
|
|
3
4
|
"--slotted-alert-border-width",
|
|
4
5
|
"--slotted-alert-column-gap",
|
|
@@ -42,7 +43,6 @@
|
|
|
42
43
|
"--slotted-radius-md",
|
|
43
44
|
"--slotted-radius-sm",
|
|
44
45
|
"--slotted-space-2",
|
|
45
|
-
"--slotted-space-3",
|
|
46
46
|
"--slotted-space-4",
|
|
47
47
|
"--slotted-space-5",
|
|
48
48
|
"--slotted-space-6",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
[
|
|
2
|
+
"--slotted-action-gap",
|
|
2
3
|
"--slotted-app-shell-aside-color",
|
|
3
4
|
"--slotted-app-shell-aside-extent",
|
|
4
5
|
"--slotted-app-shell-aside-size-lg",
|
|
@@ -44,7 +45,6 @@
|
|
|
44
45
|
"--slotted-control-font-size-sm",
|
|
45
46
|
"--slotted-control-gap-lg",
|
|
46
47
|
"--slotted-control-gap-md",
|
|
47
|
-
"--slotted-control-gap-sm",
|
|
48
48
|
"--slotted-control-height-lg",
|
|
49
49
|
"--slotted-control-height-md",
|
|
50
50
|
"--slotted-control-icon-size-md",
|
package/src/card/card.css
CHANGED
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
/* Centerd on the title's own row rather than on the row's start edge: a
|
|
291
291
|
badge aligned to the line box sits optically high against cap height. */
|
|
292
292
|
align-self: center;
|
|
293
|
-
gap: var(--slotted-card-actions-gap, var(--slotted-
|
|
293
|
+
gap: var(--slotted-card-actions-gap, var(--slotted-action-gap, 8px));
|
|
294
294
|
grid-column: -2 / -1;
|
|
295
295
|
grid-row: 1;
|
|
296
296
|
/* Above the stretched hit area, like the footer: a control in the corner
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
align-items: center;
|
|
382
382
|
display: flex;
|
|
383
383
|
flex-wrap: wrap;
|
|
384
|
-
gap: var(--slotted-card-footer-gap, var(--slotted-
|
|
384
|
+
gap: var(--slotted-card-footer-gap, var(--slotted-action-gap, 8px));
|
|
385
385
|
/* Above the stretched hit area: a secondary action belongs in the footer
|
|
386
386
|
and has to stay operable while the card resolves to somewhere else. */
|
|
387
387
|
position: relative;
|
|
@@ -693,8 +693,9 @@
|
|
|
693
693
|
font-family: var(--slotted-font-family-sans);
|
|
694
694
|
font-size: var(--_content-font-size);
|
|
695
695
|
line-height: var(--_leading);
|
|
696
|
-
max-block-size:
|
|
697
|
-
var(--slotted-
|
|
696
|
+
max-block-size: min(
|
|
697
|
+
var(--slotted-overlay-max-block-size, 100vh),
|
|
698
|
+
calc(var(--slotted-positioner-available-height, 100vh) - var(--slotted-space-5, 0.75rem))
|
|
698
699
|
);
|
|
699
700
|
/* The columns' own rules meet the rounded edge rather than crossing it. */
|
|
700
701
|
overflow: hidden;
|
|
@@ -415,6 +415,7 @@
|
|
|
415
415
|
* showed as a gap between the last row and the rule that closes the set.
|
|
416
416
|
*/
|
|
417
417
|
padding-block-end: 0;
|
|
418
|
+
padding-block-start: 0;
|
|
418
419
|
padding-inline: var(--slotted-collapsible-padding-inline, var(--_padding-inline));
|
|
419
420
|
transition:
|
|
420
421
|
content-visibility var(--slotted-duration-medium) allow-discrete,
|
|
@@ -426,6 +427,10 @@
|
|
|
426
427
|
content-visibility: visible;
|
|
427
428
|
opacity: 1;
|
|
428
429
|
padding-block-end: var(--_padding-block);
|
|
430
|
+
padding-block-start: var(
|
|
431
|
+
--slotted-collapsible-panel-padding-block-start,
|
|
432
|
+
var(--_padding-block)
|
|
433
|
+
);
|
|
429
434
|
}
|
|
430
435
|
|
|
431
436
|
/**
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"--slotted-collapsible-indicator-color",
|
|
11
11
|
"--slotted-collapsible-padding-inline",
|
|
12
12
|
"--slotted-collapsible-panel-color",
|
|
13
|
+
"--slotted-collapsible-panel-padding-block-start",
|
|
13
14
|
"--slotted-collapsible-radius",
|
|
14
15
|
"--slotted-collapsible-rule-color",
|
|
15
16
|
"--slotted-collapsible-surface",
|
|
@@ -738,8 +738,9 @@
|
|
|
738
738
|
font-family: var(--slotted-font-family-sans);
|
|
739
739
|
font-size: var(--_content-font-size);
|
|
740
740
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
741
|
-
max-block-size:
|
|
742
|
-
var(--slotted-
|
|
741
|
+
max-block-size: min(
|
|
742
|
+
var(--slotted-overlay-max-block-size, 100vh),
|
|
743
|
+
calc(var(--slotted-positioner-available-height, 100vh) - var(--slotted-space-5, 0.75rem))
|
|
743
744
|
);
|
|
744
745
|
outline: none;
|
|
745
746
|
overflow-y: auto;
|
|
@@ -221,6 +221,25 @@
|
|
|
221
221
|
overflow-wrap: anywhere;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
+
/* The title and its help control on one row; the control centers on the
|
|
225
|
+
title's first line without adding to the row's height. */
|
|
226
|
+
[data-ui-dashboard-grid] [data-part-widget] [data-part-title-row] {
|
|
227
|
+
align-items: flex-start;
|
|
228
|
+
display: flex;
|
|
229
|
+
gap: var(--slotted-space-1, 0.125rem);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
[data-ui-dashboard-grid] [data-part-widget] [data-part-title-row] > [data-part-help] {
|
|
233
|
+
flex: none;
|
|
234
|
+
margin-block: calc(
|
|
235
|
+
(
|
|
236
|
+
var(--slotted-control-height-sm, 1.75rem) - var(--slotted-font-size-md, 0.8125rem) *
|
|
237
|
+
var(--slotted-line-height-md, 1.5)
|
|
238
|
+
) /
|
|
239
|
+
-2
|
|
240
|
+
);
|
|
241
|
+
}
|
|
242
|
+
|
|
224
243
|
[data-ui-dashboard-grid] [data-part-widget] [data-part-description] {
|
|
225
244
|
color: var(--slotted-dashboard-grid-description-color, var(--slotted-text-muted, GrayText));
|
|
226
245
|
font-size: var(--slotted-font-size-sm, 0.75rem);
|
package/src/dialog/dialog.css
CHANGED
|
@@ -1032,7 +1032,7 @@
|
|
|
1032
1032
|
flex-wrap: wrap;
|
|
1033
1033
|
align-items: center;
|
|
1034
1034
|
justify-content: flex-end;
|
|
1035
|
-
gap: var(--
|
|
1035
|
+
gap: var(--slotted-dialog-footer-gap, var(--slotted-action-gap, 8px));
|
|
1036
1036
|
padding-block: var(--_footer-padding-block);
|
|
1037
1037
|
padding-inline: var(--_padding-inline);
|
|
1038
1038
|
background: var(--slotted-dialog-footer-surface, var(--slotted-surface-sunken, Canvas));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
[
|
|
2
|
+
"--slotted-action-gap",
|
|
2
3
|
"--slotted-border-subtle",
|
|
3
4
|
"--slotted-border-width-thick",
|
|
4
5
|
"--slotted-border-width-thin",
|
|
@@ -16,6 +17,7 @@
|
|
|
16
17
|
"--slotted-dialog-close-hover-background",
|
|
17
18
|
"--slotted-dialog-color",
|
|
18
19
|
"--slotted-dialog-description-color",
|
|
20
|
+
"--slotted-dialog-footer-gap",
|
|
19
21
|
"--slotted-dialog-footer-surface",
|
|
20
22
|
"--slotted-dialog-measure",
|
|
21
23
|
"--slotted-dialog-measure-lg",
|
package/src/drawer/drawer.css
CHANGED
|
@@ -1303,7 +1303,7 @@
|
|
|
1303
1303
|
flex-wrap: wrap;
|
|
1304
1304
|
align-items: center;
|
|
1305
1305
|
justify-content: flex-end;
|
|
1306
|
-
gap: var(--
|
|
1306
|
+
gap: var(--slotted-action-gap, 8px);
|
|
1307
1307
|
padding-block: var(--_padding-block);
|
|
1308
1308
|
padding-inline: var(--_row-padding-inline-start) var(--_row-padding-inline-end);
|
|
1309
1309
|
background: var(--slotted-drawer-footer-surface, var(--slotted-surface-sunken, Canvas));
|
|
@@ -935,8 +935,9 @@
|
|
|
935
935
|
is cut before the name is, where an `auto` track kept "Finance" whole
|
|
936
936
|
and wrapped "Carla Mendes" onto two lines at 240 pixels. */
|
|
937
937
|
grid-template-columns: auto minmax(0, 1fr) fit-content(25%) auto;
|
|
938
|
-
max-block-size:
|
|
939
|
-
var(--slotted-
|
|
938
|
+
max-block-size: min(
|
|
939
|
+
var(--slotted-overlay-max-block-size, 100vh),
|
|
940
|
+
calc(var(--slotted-positioner-available-height, 100vh) - var(--slotted-space-5, 0.75rem))
|
|
940
941
|
);
|
|
941
942
|
outline: none;
|
|
942
943
|
overflow-y: auto;
|
package/src/form/form.css
CHANGED
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
[data-ui-form][data-part-actions] {
|
|
240
240
|
display: flex;
|
|
241
241
|
flex-wrap: wrap;
|
|
242
|
-
gap: var(--slotted-
|
|
242
|
+
gap: var(--slotted-action-gap, 8px);
|
|
243
243
|
justify-content: flex-end;
|
|
244
244
|
margin-block-start: var(--slotted-space-8, 1.5rem);
|
|
245
245
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
[
|
|
2
|
+
"--slotted-action-gap",
|
|
2
3
|
"--slotted-border-width-thick",
|
|
3
4
|
"--slotted-control-border-width",
|
|
4
5
|
"--slotted-control-font-family",
|
|
@@ -25,7 +26,6 @@
|
|
|
25
26
|
"--slotted-space-1",
|
|
26
27
|
"--slotted-space-2",
|
|
27
28
|
"--slotted-space-3",
|
|
28
|
-
"--slotted-space-4",
|
|
29
29
|
"--slotted-space-5",
|
|
30
30
|
"--slotted-space-6",
|
|
31
31
|
"--slotted-space-8",
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
align-items: center;
|
|
210
210
|
display: flex;
|
|
211
211
|
flex-wrap: wrap;
|
|
212
|
-
gap: var(--slotted-
|
|
212
|
+
gap: var(--slotted-action-gap, 8px);
|
|
213
213
|
justify-content: flex-end;
|
|
214
214
|
min-inline-size: 0;
|
|
215
215
|
}
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
align-items: center;
|
|
220
220
|
display: inline-flex;
|
|
221
221
|
flex-wrap: wrap;
|
|
222
|
-
gap: var(--slotted-
|
|
222
|
+
gap: var(--slotted-action-gap, 8px);
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
/* ── The views ───────────────────────────────────────────────────────── */
|
|
@@ -734,7 +734,7 @@
|
|
|
734
734
|
align-items: center;
|
|
735
735
|
display: flex;
|
|
736
736
|
flex-wrap: wrap;
|
|
737
|
-
gap: var(--slotted-
|
|
737
|
+
gap: var(--slotted-action-gap, 8px);
|
|
738
738
|
grid-area: controls;
|
|
739
739
|
min-inline-size: 0;
|
|
740
740
|
}
|
package/src/menu/menu.css
CHANGED
|
@@ -369,7 +369,10 @@
|
|
|
369
369
|
font-family: var(--slotted-font-family-sans);
|
|
370
370
|
font-size: var(--_font-size);
|
|
371
371
|
grid-template-columns: auto minmax(0, 1fr) auto auto;
|
|
372
|
-
max-block-size:
|
|
372
|
+
max-block-size: min(
|
|
373
|
+
var(--slotted-overlay-max-block-size, 100vh),
|
|
374
|
+
calc(var(--slotted-positioner-available-height, 100vh) - 2 * var(--_gap))
|
|
375
|
+
);
|
|
373
376
|
outline: none;
|
|
374
377
|
overflow-y: auto;
|
|
375
378
|
overscroll-behavior: contain;
|
package/src/message/message.css
CHANGED
|
@@ -231,94 +231,6 @@
|
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
/* ── Activity ───────────────────────────────────────────────────────────
|
|
235
|
-
*
|
|
236
|
-
* What a reply is doing before it has words, as a short log of steps on a
|
|
237
|
-
* raised card: the steps already done carry a tick and step back into the
|
|
238
|
-
* muted ink, and the step in progress carries the shared ring (`spinner`)
|
|
239
|
-
* and a band of light that travels across its words. A single step is the
|
|
240
|
-
* same card with one line. ReUI's `c-message-7` draws one muted line that
|
|
241
|
-
* pulses; the log says what has been done, not only that something is.
|
|
242
|
-
*
|
|
243
|
-
* The band is the one place the family paints text with a gradient, which
|
|
244
|
-
* the polish lens refuses as decoration: here it is the wait itself, it
|
|
245
|
-
* moves only while the step is current, and under reduced motion the words
|
|
246
|
-
* stand in the plain ink.
|
|
247
|
-
*/
|
|
248
|
-
:scope[data-part-root] [data-part-activity] {
|
|
249
|
-
display: inline-flex;
|
|
250
|
-
flex-direction: column;
|
|
251
|
-
gap: var(--slotted-space-3, 0.375rem);
|
|
252
|
-
box-sizing: border-box;
|
|
253
|
-
max-inline-size: 100%;
|
|
254
|
-
padding-block: var(--_pad-block);
|
|
255
|
-
padding-inline: var(--_pad-inline) calc(var(--_pad-inline) + var(--slotted-space-2, 0.25rem));
|
|
256
|
-
border: var(--slotted-border-width-thin, 1px) solid var(--slotted-border-subtle);
|
|
257
|
-
border-radius: calc(var(--_pad-block) * 2);
|
|
258
|
-
background-color: var(--slotted-surface-raised);
|
|
259
|
-
box-shadow: var(--slotted-shadow-xs);
|
|
260
|
-
color: var(--slotted-text-muted);
|
|
261
|
-
font-size: var(--slotted-control-font-size-md, 13px);
|
|
262
|
-
line-height: round(up, calc(1em * var(--slotted-line-height-md, 1.5)), 1px);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
:scope[data-part-root] [data-part-activity-step] {
|
|
266
|
-
display: flex;
|
|
267
|
-
align-items: center;
|
|
268
|
-
gap: var(--slotted-space-4, 0.5rem);
|
|
269
|
-
min-inline-size: 0;
|
|
270
|
-
transition:
|
|
271
|
-
opacity var(--slotted-duration-medium) var(--slotted-easing-enter, ease-out),
|
|
272
|
-
translate var(--slotted-duration-medium) var(--slotted-easing-enter, ease-out),
|
|
273
|
-
color var(--slotted-duration-medium) var(--slotted-easing-standard, ease);
|
|
274
|
-
|
|
275
|
-
@starting-style {
|
|
276
|
-
opacity: 0;
|
|
277
|
-
translate: 0 var(--slotted-space-2, 0.25rem);
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/** The mark column: a tick, or the ring, in one box so the words line up. */
|
|
282
|
-
:scope[data-part-root] [data-part-activity-step] > :first-child {
|
|
283
|
-
--slotted-icon-size: var(--_glyph-size);
|
|
284
|
-
--slotted-spinner-size: var(--_glyph-size);
|
|
285
|
-
|
|
286
|
-
display: inline-grid;
|
|
287
|
-
flex: none;
|
|
288
|
-
place-items: center;
|
|
289
|
-
inline-size: var(--_glyph-size);
|
|
290
|
-
block-size: var(--_glyph-size);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
:scope[data-part-root] [data-part-activity-step][data-complete] > :first-child {
|
|
294
|
-
color: var(--slotted-tone-success-text);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
:scope[data-part-root] [data-part-activity-step][data-current] {
|
|
298
|
-
color: var(--slotted-text);
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
:scope[data-part-root] [data-part-activity-step][data-current] > :first-child {
|
|
302
|
-
color: var(--slotted-tone-accent-text);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
:scope[data-part-root] [data-part-activity-step][data-current] > :last-child {
|
|
306
|
-
--_base: color-mix(in oklab, var(--slotted-text) 72%, var(--slotted-text-muted));
|
|
307
|
-
|
|
308
|
-
background-image: linear-gradient(
|
|
309
|
-
90deg,
|
|
310
|
-
var(--_base) 0%,
|
|
311
|
-
var(--_base) 38%,
|
|
312
|
-
var(--slotted-text-muted) 50%,
|
|
313
|
-
var(--_base) 62%,
|
|
314
|
-
var(--_base) 100%
|
|
315
|
-
);
|
|
316
|
-
background-size: 220% 100%;
|
|
317
|
-
background-clip: text;
|
|
318
|
-
color: transparent;
|
|
319
|
-
animation: slotted-message-sweep var(--slotted-duration-loop-slow) linear infinite;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
234
|
/* ── Versions ───────────────────────────────────────────────────────────
|
|
323
235
|
*
|
|
324
236
|
* `2 de 3` between two inner controls. The chevron is one glyph turned for
|
|
@@ -1150,12 +1062,6 @@
|
|
|
1150
1062
|
animation: none;
|
|
1151
1063
|
}
|
|
1152
1064
|
|
|
1153
|
-
:scope[data-part-root] [data-part-activity-step][data-current] > :last-child {
|
|
1154
|
-
animation: none;
|
|
1155
|
-
background-image: none;
|
|
1156
|
-
color: inherit;
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
1065
|
:scope[data-part-bubble] [data-part-typing] > span:nth-child(2) {
|
|
1160
1066
|
opacity: 0.55;
|
|
1161
1067
|
}
|
|
@@ -1333,6 +1239,110 @@
|
|
|
1333
1239
|
}
|
|
1334
1240
|
}
|
|
1335
1241
|
|
|
1242
|
+
/**
|
|
1243
|
+
* The activity is scoped to itself rather than to the message root. A body
|
|
1244
|
+
* can fold it inside another family (a `Collapsible` panel), and that
|
|
1245
|
+
* family's parts end the message scope above it. The row's custom
|
|
1246
|
+
* properties reach it by inheritance.
|
|
1247
|
+
*/
|
|
1248
|
+
@scope ([data-part-activity]) {
|
|
1249
|
+
/* ── Activity ───────────────────────────────────────────────────────────
|
|
1250
|
+
*
|
|
1251
|
+
* What a reply is doing before it has words, as a short log of steps on a
|
|
1252
|
+
* raised card: the steps already done carry a tick and step back into the
|
|
1253
|
+
* muted ink, and the step in progress carries the shared ring (`spinner`)
|
|
1254
|
+
* and a band of light that travels across its words. A single step is the
|
|
1255
|
+
* same card with one line. ReUI's `c-message-7` draws one muted line that
|
|
1256
|
+
* pulses; the log says what has been done, not only that something is.
|
|
1257
|
+
*
|
|
1258
|
+
* The band is the one place the family paints text with a gradient, which
|
|
1259
|
+
* the polish lens refuses as decoration: here it is the wait itself, it
|
|
1260
|
+
* moves only while the step is current, and under reduced motion the words
|
|
1261
|
+
* stand in the plain ink.
|
|
1262
|
+
*/
|
|
1263
|
+
:scope {
|
|
1264
|
+
display: inline-flex;
|
|
1265
|
+
flex-direction: column;
|
|
1266
|
+
gap: var(--slotted-space-3, 0.375rem);
|
|
1267
|
+
box-sizing: border-box;
|
|
1268
|
+
max-inline-size: 100%;
|
|
1269
|
+
padding-block: var(--_pad-block);
|
|
1270
|
+
padding-inline: var(--_pad-inline) calc(var(--_pad-inline) + var(--slotted-space-2, 0.25rem));
|
|
1271
|
+
border: var(--slotted-border-width-thin, 1px) solid var(--slotted-border-subtle);
|
|
1272
|
+
border-radius: calc(var(--_pad-block) * 2);
|
|
1273
|
+
background-color: var(--slotted-surface-raised);
|
|
1274
|
+
box-shadow: var(--slotted-shadow-xs);
|
|
1275
|
+
color: var(--slotted-text-muted);
|
|
1276
|
+
font-size: var(--slotted-control-font-size-md, 13px);
|
|
1277
|
+
line-height: round(up, calc(1em * var(--slotted-line-height-md, 1.5)), 1px);
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
[data-part-activity-step] {
|
|
1281
|
+
display: flex;
|
|
1282
|
+
align-items: center;
|
|
1283
|
+
gap: var(--slotted-space-4, 0.5rem);
|
|
1284
|
+
min-inline-size: 0;
|
|
1285
|
+
transition:
|
|
1286
|
+
opacity var(--slotted-duration-medium) var(--slotted-easing-enter, ease-out),
|
|
1287
|
+
translate var(--slotted-duration-medium) var(--slotted-easing-enter, ease-out),
|
|
1288
|
+
color var(--slotted-duration-medium) var(--slotted-easing-standard, ease);
|
|
1289
|
+
|
|
1290
|
+
@starting-style {
|
|
1291
|
+
opacity: 0;
|
|
1292
|
+
translate: 0 var(--slotted-space-2, 0.25rem);
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
/** The mark column: a tick, or the ring, in one box so the words line up. */
|
|
1297
|
+
[data-part-activity-step] > :first-child {
|
|
1298
|
+
--slotted-icon-size: var(--_glyph-size);
|
|
1299
|
+
--slotted-spinner-size: var(--_glyph-size);
|
|
1300
|
+
|
|
1301
|
+
display: inline-grid;
|
|
1302
|
+
flex: none;
|
|
1303
|
+
place-items: center;
|
|
1304
|
+
inline-size: var(--_glyph-size);
|
|
1305
|
+
block-size: var(--_glyph-size);
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
[data-part-activity-step][data-complete] > :first-child {
|
|
1309
|
+
color: var(--slotted-tone-success-text);
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
[data-part-activity-step][data-current] {
|
|
1313
|
+
color: var(--slotted-text);
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
[data-part-activity-step][data-current] > :first-child {
|
|
1317
|
+
color: var(--slotted-tone-accent-text);
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
[data-part-activity-step][data-current] > :last-child {
|
|
1321
|
+
--_base: color-mix(in oklab, var(--slotted-text) 72%, var(--slotted-text-muted));
|
|
1322
|
+
|
|
1323
|
+
background-image: linear-gradient(
|
|
1324
|
+
90deg,
|
|
1325
|
+
var(--_base) 0%,
|
|
1326
|
+
var(--_base) 38%,
|
|
1327
|
+
var(--slotted-text-muted) 50%,
|
|
1328
|
+
var(--_base) 62%,
|
|
1329
|
+
var(--_base) 100%
|
|
1330
|
+
);
|
|
1331
|
+
background-size: 220% 100%;
|
|
1332
|
+
background-clip: text;
|
|
1333
|
+
color: transparent;
|
|
1334
|
+
animation: slotted-message-sweep var(--slotted-duration-loop-slow) linear infinite;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1338
|
+
[data-part-activity-step][data-current] > :last-child {
|
|
1339
|
+
animation: none;
|
|
1340
|
+
background-image: none;
|
|
1341
|
+
color: inherit;
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1336
1346
|
/**
|
|
1337
1347
|
* ── The corners of a run ───────────────────────────────────────────────
|
|
1338
1348
|
*
|
|
@@ -1063,8 +1063,9 @@
|
|
|
1063
1063
|
font-family: var(--slotted-font-family-sans);
|
|
1064
1064
|
font-size: var(--_content-font-size);
|
|
1065
1065
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
1066
|
-
max-block-size:
|
|
1067
|
-
var(--slotted-
|
|
1066
|
+
max-block-size: min(
|
|
1067
|
+
var(--slotted-overlay-max-block-size, 100vh),
|
|
1068
|
+
calc(var(--slotted-positioner-available-height, 100vh) - var(--slotted-space-5, 0.75rem))
|
|
1068
1069
|
);
|
|
1069
1070
|
outline: none;
|
|
1070
1071
|
overflow-y: auto;
|
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
align-items: center;
|
|
815
815
|
border-block-start: var(--_border-width) solid var(--_border-color);
|
|
816
816
|
display: flex;
|
|
817
|
-
gap: var(--slotted-
|
|
817
|
+
gap: var(--slotted-action-gap, 8px);
|
|
818
818
|
justify-content: space-between;
|
|
819
819
|
margin-inline: calc(-1 * var(--_inset));
|
|
820
820
|
padding-block: var(--_inset) 0;
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
align-items: center;
|
|
239
239
|
display: inline-flex;
|
|
240
240
|
font-size: var(--_meta-size);
|
|
241
|
-
gap: var(--slotted-
|
|
241
|
+
gap: var(--slotted-action-gap, 8px);
|
|
242
242
|
line-height: var(--_meta-line-height);
|
|
243
243
|
}
|
|
244
244
|
|
|
@@ -645,7 +645,7 @@
|
|
|
645
645
|
align-items: center;
|
|
646
646
|
display: flex;
|
|
647
647
|
flex-wrap: wrap;
|
|
648
|
-
gap: var(--slotted-
|
|
648
|
+
gap: var(--slotted-action-gap, 8px);
|
|
649
649
|
margin-block-start: var(--slotted-space-2, 0.25rem);
|
|
650
650
|
position: relative;
|
|
651
651
|
z-index: 1;
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
/* Loose buttons wrap rather than breaking their own words; a toolbar in
|
|
568
568
|
here folds what does not fit into its menu before that happens. */
|
|
569
569
|
flex-wrap: wrap;
|
|
570
|
-
gap: var(--slotted-
|
|
570
|
+
gap: var(--slotted-action-gap, 8px);
|
|
571
571
|
min-inline-size: 0;
|
|
572
572
|
}
|
|
573
573
|
|
package/src/popover/popover.css
CHANGED
|
@@ -224,7 +224,10 @@
|
|
|
224
224
|
* The room the positioner says is left, less the layer's own padding at
|
|
225
225
|
* both ends. Only the body scrolls inside it.
|
|
226
226
|
*/
|
|
227
|
-
max-block-size:
|
|
227
|
+
max-block-size: min(
|
|
228
|
+
var(--slotted-overlay-max-block-size, 100vh),
|
|
229
|
+
calc(var(--slotted-positioner-available-height, 100vh) - 2 * var(--_gap))
|
|
230
|
+
);
|
|
228
231
|
|
|
229
232
|
border: var(--_border-width) solid var(--_border-color);
|
|
230
233
|
border-radius: var(--_radius);
|
|
@@ -780,7 +780,7 @@
|
|
|
780
780
|
align-items: center;
|
|
781
781
|
display: flex;
|
|
782
782
|
flex-wrap: wrap;
|
|
783
|
-
gap: var(--slotted-result-state-actions-gap, var(--slotted-
|
|
783
|
+
gap: var(--slotted-result-state-actions-gap, var(--slotted-action-gap, 8px));
|
|
784
784
|
min-inline-size: 0;
|
|
785
785
|
}
|
|
786
786
|
|
|
@@ -68,10 +68,16 @@
|
|
|
68
68
|
* automatic minimum is its content, and without the override a scrollport
|
|
69
69
|
* inside a bounded box grows to its content and scrolls nothing.
|
|
70
70
|
*
|
|
71
|
+
* The row is a flexible track, not the implicit `auto` one: an `auto` row
|
|
72
|
+
* sizes to its content and ignores a `max-block-size`, so a box bounded by
|
|
73
|
+
* `maxBlockSize` stopped at the bound while the scrollport overflowed it.
|
|
74
|
+
* A flexible track is the one grid sizing clamps to the container's maximum.
|
|
75
|
+
*
|
|
71
76
|
* The family paints no frame of its own. A border, a radius and a ground
|
|
72
77
|
* are the consumer's, and they go here — on the element the mask is not on.
|
|
73
78
|
*/
|
|
74
79
|
display: grid;
|
|
80
|
+
grid-template-rows: minmax(0, 1fr);
|
|
75
81
|
box-sizing: border-box;
|
|
76
82
|
min-block-size: 0;
|
|
77
83
|
min-inline-size: 0;
|
package/src/section/section.css
CHANGED
package/src/select/select.css
CHANGED
|
@@ -1005,8 +1005,9 @@
|
|
|
1005
1005
|
color: var(--_text);
|
|
1006
1006
|
font-family: var(--slotted-font-family-sans);
|
|
1007
1007
|
font-size: var(--_content-font-size);
|
|
1008
|
-
max-block-size:
|
|
1009
|
-
var(--slotted-
|
|
1008
|
+
max-block-size: min(
|
|
1009
|
+
var(--slotted-overlay-max-block-size, 100vh),
|
|
1010
|
+
calc(var(--slotted-positioner-available-height, 100vh) - var(--slotted-space-5, 0.75rem))
|
|
1010
1011
|
);
|
|
1011
1012
|
outline: none;
|
|
1012
1013
|
pointer-events: auto;
|
|
@@ -193,8 +193,8 @@
|
|
|
193
193
|
/**
|
|
194
194
|
* The section's title starts where the mark's ink starts — the row's inset
|
|
195
195
|
* plus the air the box keeps around the glyph — rather than on the label
|
|
196
|
-
* column
|
|
197
|
-
*
|
|
196
|
+
* column. A section whose rows carry no mark has no glyph to line up with:
|
|
197
|
+
* its title starts at the inset, where its rows' words start.
|
|
198
198
|
*/
|
|
199
199
|
[data-ui-side-navigation] [data-part-section-label] {
|
|
200
200
|
color: var(--_section-color);
|
|
@@ -213,6 +213,12 @@
|
|
|
213
213
|
padding-inline: calc(var(--_inset) + (var(--_mark) - var(--_icon-size)) / 2);
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
+
[data-ui-side-navigation]
|
|
217
|
+
[data-part-section]:not(:has([data-part-icon]))
|
|
218
|
+
> [data-part-section-label] {
|
|
219
|
+
padding-inline: var(--_inset);
|
|
220
|
+
}
|
|
221
|
+
|
|
216
222
|
[data-ui-side-navigation] [data-part-list],
|
|
217
223
|
[data-ui-side-navigation] [data-part-group] {
|
|
218
224
|
display: flex;
|
package/src/toast/toast.css
CHANGED
|
@@ -551,7 +551,7 @@
|
|
|
551
551
|
align-items: center;
|
|
552
552
|
display: flex;
|
|
553
553
|
flex-wrap: wrap;
|
|
554
|
-
gap: var(--slotted-toast-actions-gap, var(--slotted-
|
|
554
|
+
gap: var(--slotted-toast-actions-gap, var(--slotted-action-gap, 8px));
|
|
555
555
|
grid-column: 2;
|
|
556
556
|
grid-row: 2;
|
|
557
557
|
min-inline-size: 0;
|
package/src/tour/tour.css
CHANGED
|
@@ -316,7 +316,10 @@
|
|
|
316
316
|
display: flex;
|
|
317
317
|
flex-direction: column;
|
|
318
318
|
max-inline-size: 100%;
|
|
319
|
-
max-block-size:
|
|
319
|
+
max-block-size: min(
|
|
320
|
+
var(--slotted-overlay-max-block-size, 100vh),
|
|
321
|
+
calc(var(--slotted-positioner-available-height, 100vh) - 2 * var(--_gap))
|
|
322
|
+
);
|
|
320
323
|
|
|
321
324
|
border: var(--_border-width) solid var(--_border-color);
|
|
322
325
|
border-radius: var(--_radius);
|