@slotted/styles 0.1.0-beta.35 → 0.1.0-beta.37
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/app-shell/app-shell.css +16 -13
- package/src/button/button.css +164 -61
- package/src/button/button.tokens.json +5 -2
- package/src/calendar/calendar.css +17 -0
- package/src/calendar/calendar.tokens.json +1 -0
- package/src/chart/chart.css +3 -2
- package/src/collapsible/collapsible.css +24 -6
- package/src/collapsible/collapsible.tokens.json +1 -0
- package/src/command-palette/command-palette.css +51 -1
- package/src/command-palette/command-palette.tokens.json +1 -0
- package/src/dashboard-grid/dashboard-grid.css +28 -6
- package/src/dashboard-grid/dashboard-grid.tokens.json +2 -1
- package/src/entity-picker/entity-picker.css +48 -1
- package/src/entity-picker/entity-picker.tokens.json +1 -0
- package/src/field-group/field-group.css +17 -7
- package/src/floating-panel/floating-panel.css +31 -7
- package/src/floating-panel/floating-panel.tokens.json +2 -0
- package/src/list/list.css +22 -0
- package/src/list/list.tokens.json +1 -0
- package/src/list-item/list-item.css +21 -27
- package/src/message/message.css +9 -0
- package/src/page/page.css +10 -0
- package/src/progress-indicator/progress-indicator.css +0 -70
- package/src/progress-indicator/progress-indicator.tokens.json +0 -3
- package/src/radio-group/radio-group.css +0 -50
- package/src/radio-group/radio-group.tokens.json +0 -2
- package/src/runtime-properties.mjs +6 -0
- package/src/section/section.css +31 -0
- package/src/sparkline/sparkline.css +0 -207
- package/src/sparkline/sparkline.tokens.json +0 -10
- package/src/table/table.css +213 -0
- package/src/table/table.tokens.json +4 -0
- package/src/tooltip/tooltip.css +30 -0
|
@@ -1013,10 +1013,57 @@
|
|
|
1013
1013
|
/**
|
|
1014
1014
|
* At rest the label stands on the panel's own surface and paints none, so a
|
|
1015
1015
|
* translucent panel does not draw a second layer under every label. Only
|
|
1016
|
-
* while it is stuck, with rows passing under it, does it fill.
|
|
1016
|
+
* while it is stuck, with rows passing under it, does it fill. Under a
|
|
1017
|
+
* material panel that fill is translucent, so the label blurs the rows with
|
|
1018
|
+
* the panel's filter, or with one the theme states for it.
|
|
1019
|
+
*
|
|
1020
|
+
* A blur leaves part of a sharp row in view. Where the engine times an
|
|
1021
|
+
* animation by the scroll, the rows end at the label instead: each one is cut
|
|
1022
|
+
* by the share of it that has passed the label's bottom edge, which is the
|
|
1023
|
+
* list's scroll padding. Nothing is under the label then, so it paints no
|
|
1024
|
+
* fill and no filter but the ones a theme states.
|
|
1017
1025
|
*/
|
|
1018
1026
|
[data-ui-entity-picker][data-part-positioner] [data-part-group-label][data-stuck] {
|
|
1019
1027
|
background: var(--slotted-entity-picker-group-label-stuck-surface, var(--_surface));
|
|
1028
|
+
-webkit-backdrop-filter: var(
|
|
1029
|
+
--slotted-entity-picker-group-label-stuck-backdrop-filter,
|
|
1030
|
+
var(--slotted-entity-picker-content-backdrop-filter, none)
|
|
1031
|
+
);
|
|
1032
|
+
backdrop-filter: var(
|
|
1033
|
+
--slotted-entity-picker-group-label-stuck-backdrop-filter,
|
|
1034
|
+
var(--slotted-entity-picker-content-backdrop-filter, none)
|
|
1035
|
+
);
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
@supports (animation-timeline: view()) {
|
|
1039
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-group-label][data-stuck] {
|
|
1040
|
+
background: var(--slotted-entity-picker-group-label-stuck-surface, transparent);
|
|
1041
|
+
-webkit-backdrop-filter: var(--slotted-entity-picker-group-label-stuck-backdrop-filter, none);
|
|
1042
|
+
backdrop-filter: var(--slotted-entity-picker-group-label-stuck-backdrop-filter, none);
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-group-label][data-stuck] ~ * {
|
|
1046
|
+
animation: slotted-entity-picker-under-label linear forwards;
|
|
1047
|
+
animation-range: exit;
|
|
1048
|
+
animation-timeline: view();
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
@keyframes slotted-entity-picker-under-label {
|
|
1053
|
+
from {
|
|
1054
|
+
clip-path: inset(0);
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
to {
|
|
1058
|
+
clip-path: inset(100% 0 0);
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
|
|
1063
|
+
[data-ui-entity-picker][data-part-positioner] [data-part-group-label][data-stuck] {
|
|
1064
|
+
-webkit-backdrop-filter: none;
|
|
1065
|
+
backdrop-filter: none;
|
|
1066
|
+
}
|
|
1020
1067
|
}
|
|
1021
1068
|
|
|
1022
1069
|
@media (forced-colors: active) {
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"--slotted-entity-picker-field-basis",
|
|
63
63
|
"--slotted-entity-picker-field-min",
|
|
64
64
|
"--slotted-entity-picker-group-label-height",
|
|
65
|
+
"--slotted-entity-picker-group-label-stuck-backdrop-filter",
|
|
65
66
|
"--slotted-entity-picker-group-label-stuck-surface",
|
|
66
67
|
"--slotted-entity-picker-highlight",
|
|
67
68
|
"--slotted-entity-picker-highlight-active",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* competes with it.
|
|
21
21
|
*/
|
|
22
22
|
[data-ui-field-group][data-part-root] {
|
|
23
|
-
--_font-size: var(--slotted-control-font-size-
|
|
23
|
+
--_font-size: var(--slotted-control-font-size-md, 13px);
|
|
24
24
|
/** Legend to its own description, and description to error. */
|
|
25
25
|
--_message-gap: var(--slotted-field-group-message-gap, var(--slotted-space-2, 0.25rem));
|
|
26
26
|
/**
|
|
@@ -76,24 +76,34 @@
|
|
|
76
76
|
/* ── Size ─────────────────────────────────────────────────────────────
|
|
77
77
|
*
|
|
78
78
|
* The same three steps a field has, and for the same reason: a group in a
|
|
79
|
-
* dense table shrinks with the controls it holds.
|
|
80
|
-
* type
|
|
81
|
-
*
|
|
82
|
-
* because a third type scale would be a fourth thing for a theme to retune.
|
|
79
|
+
* dense table shrinks with the controls it holds. A question's legend takes
|
|
80
|
+
* the type of a field's label, because it names one answer as a label does. A
|
|
81
|
+
* section's legend stands one step above the labels under it.
|
|
83
82
|
*/
|
|
84
83
|
|
|
85
84
|
[data-ui-field-group][data-part-root][data-size='sm'] {
|
|
86
|
-
--_font-size: var(--slotted-control-font-size-
|
|
85
|
+
--_font-size: var(--slotted-control-font-size-sm, 12px);
|
|
87
86
|
}
|
|
88
87
|
|
|
89
88
|
[data-ui-field-group][data-part-root][data-size='md'] {
|
|
90
|
-
--_font-size: var(--slotted-control-font-size-
|
|
89
|
+
--_font-size: var(--slotted-control-font-size-md, 13px);
|
|
91
90
|
}
|
|
92
91
|
|
|
93
92
|
[data-ui-field-group][data-part-root][data-size='lg'] {
|
|
94
93
|
--_font-size: var(--slotted-control-font-size-lg, 14px);
|
|
95
94
|
}
|
|
96
95
|
|
|
96
|
+
[data-ui-field-group][data-part-root][data-kind='section']:is(
|
|
97
|
+
[data-size='md'],
|
|
98
|
+
[data-size='lg']
|
|
99
|
+
) {
|
|
100
|
+
--_font-size: var(--slotted-control-font-size-lg, 14px);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
[data-ui-field-group][data-part-root][data-kind='section'][data-size='sm'] {
|
|
104
|
+
--_font-size: var(--slotted-control-font-size-md, 13px);
|
|
105
|
+
}
|
|
106
|
+
|
|
97
107
|
/* ── The legend ───────────────────────────────────────────────────────
|
|
98
108
|
*
|
|
99
109
|
* The name of the set. The user agent gives a legend an inline padding of its
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
@layer slotted.components {
|
|
2
2
|
/**
|
|
3
3
|
* A tool that floats over the page and holds nobody: no scrim, no focus
|
|
4
|
-
* trap, no inert page. It
|
|
5
|
-
* `--_y`, the top-left corner in viewport
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* outside it, with no script on
|
|
4
|
+
* trap, no inert page. It opens in a corner (`data-corner`), and once it has
|
|
5
|
+
* a place it stands there (`--_x`, `--_y`, the top-left corner in viewport
|
|
6
|
+
* pixels, written by the binding); the translation is clamped by the viewport
|
|
7
|
+
* and its own size, so the whole panel stays in view while it moves, when the
|
|
8
|
+
* window shrinks and when a stored place lies outside it, with no script on
|
|
9
|
+
* resize.
|
|
9
10
|
*
|
|
10
11
|
* [data-ui-floating-panel] ▸ handle ▸ grip · title · close
|
|
11
12
|
* ▸ body
|
|
12
13
|
*/
|
|
13
14
|
[data-ui-floating-panel][data-part-root] {
|
|
15
|
+
--_inset: var(--slotted-floating-panel-inset, var(--slotted-space-6, 16px));
|
|
14
16
|
background-color: var(--slotted-floating-panel-surface, var(--slotted-surface-raised, Canvas));
|
|
15
17
|
border: var(--slotted-border-width-thin, 1px) solid
|
|
16
18
|
var(--slotted-floating-panel-border-color, var(--slotted-border-strong, CanvasText));
|
|
@@ -28,8 +30,9 @@
|
|
|
28
30
|
at the viewport's left edge in either direction before it moves. */
|
|
29
31
|
inset-block-start: 0;
|
|
30
32
|
inset-inline-start: 0;
|
|
31
|
-
|
|
32
|
-
max-
|
|
33
|
+
/* One limit in a corner and at a place: a move never resizes the panel. */
|
|
34
|
+
max-block-size: calc(100dvh - 2 * var(--_inset));
|
|
35
|
+
max-inline-size: calc(100vw - 2 * var(--_inset));
|
|
33
36
|
position: fixed;
|
|
34
37
|
translate: clamp(0px, var(--_x, 0px), calc(100vw - 100%))
|
|
35
38
|
clamp(0px, var(--_y, 0px), calc(100dvh - 100%));
|
|
@@ -42,6 +45,27 @@
|
|
|
42
45
|
inset-inline-start: auto;
|
|
43
46
|
}
|
|
44
47
|
|
|
48
|
+
[data-ui-floating-panel][data-part-root][data-corner] {
|
|
49
|
+
inset: auto;
|
|
50
|
+
translate: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[data-ui-floating-panel][data-part-root][data-corner^='top'] {
|
|
54
|
+
inset-block-start: var(--_inset);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[data-ui-floating-panel][data-part-root][data-corner^='bottom'] {
|
|
58
|
+
inset-block-end: var(--_inset);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[data-ui-floating-panel][data-part-root][data-corner$='start'] {
|
|
62
|
+
inset-inline-start: var(--_inset);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
[data-ui-floating-panel][data-part-root][data-corner$='end'] {
|
|
66
|
+
inset-inline-end: var(--_inset);
|
|
67
|
+
}
|
|
68
|
+
|
|
45
69
|
[data-ui-floating-panel] > [data-part-handle] {
|
|
46
70
|
align-items: center;
|
|
47
71
|
border-block-end: var(--slotted-border-width-thin, 1px) solid
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"--slotted-control-inner-size-md",
|
|
6
6
|
"--slotted-floating-panel-backdrop-filter",
|
|
7
7
|
"--slotted-floating-panel-border-color",
|
|
8
|
+
"--slotted-floating-panel-inset",
|
|
8
9
|
"--slotted-floating-panel-radius",
|
|
9
10
|
"--slotted-floating-panel-rule-color",
|
|
10
11
|
"--slotted-floating-panel-shadow",
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
"--slotted-space-2",
|
|
23
24
|
"--slotted-space-3",
|
|
24
25
|
"--slotted-space-5",
|
|
26
|
+
"--slotted-space-6",
|
|
25
27
|
"--slotted-surface-raised",
|
|
26
28
|
"--slotted-text",
|
|
27
29
|
"--slotted-text-muted",
|
package/src/list/list.css
CHANGED
|
@@ -192,6 +192,28 @@
|
|
|
192
192
|
padding-inline: 0;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
+
/**
|
|
196
|
+
* `fill="inset"` is the form of a list on a phone: a pressed row reads as a
|
|
197
|
+
* rounded tile that reaches past the content, not as a stripe. The set bleeds
|
|
198
|
+
* by the tile's reach and its rows pad their content back by as much, so the
|
|
199
|
+
* icons, the names and the group headings keep the inline edge of the
|
|
200
|
+
* container, which pads its content by at least that. A framed or separated
|
|
201
|
+
* list draws its own box and keeps to it.
|
|
202
|
+
*/
|
|
203
|
+
[data-ui-list][data-part-root][data-fill='inset']:is(
|
|
204
|
+
[data-variant='plain'],
|
|
205
|
+
[data-variant='ruled']
|
|
206
|
+
) {
|
|
207
|
+
--_row-inset-inline: var(--slotted-list-fill-inset, var(--slotted-space-3, 0.375rem));
|
|
208
|
+
|
|
209
|
+
margin-inline: calc(-1 * var(--_row-inset-inline));
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
[data-ui-list][data-inset][data-fill='inset']:is([data-variant='plain'], [data-variant='ruled'])
|
|
213
|
+
:is([data-part-section-label], [data-part-empty]) {
|
|
214
|
+
padding-inline: var(--_row-inset-inline);
|
|
215
|
+
}
|
|
216
|
+
|
|
195
217
|
/**
|
|
196
218
|
* A heading that stays while its own rows scroll past. MUI ships it and is
|
|
197
219
|
* the only surveyed source that does; composing it needs the family's ground
|
|
@@ -979,37 +979,36 @@
|
|
|
979
979
|
/**
|
|
980
980
|
* ── The inset fill ─────────────────────────────────────────────────────
|
|
981
981
|
*
|
|
982
|
-
* `fill="inset"` on
|
|
983
|
-
*
|
|
984
|
-
*
|
|
985
|
-
*
|
|
986
|
-
*
|
|
987
|
-
*
|
|
982
|
+
* `fill="inset"` on a plain or ruled list: the list reaches past its content
|
|
983
|
+
* by `--slotted-list-fill-inset` on each side (its own stylesheet), and the
|
|
984
|
+
* row gives that distance back as its inline padding. The content keeps the
|
|
985
|
+
* inline edge of the container, and the row's box, with its radius, is the
|
|
986
|
+
* tile its grounds are painted on and the target the finger lands on. The
|
|
987
|
+
* rule between rows stays as wide as the content.
|
|
988
988
|
*/
|
|
989
|
-
[data-ui-list-item][data-fill='inset'] {
|
|
990
|
-
--
|
|
989
|
+
[data-ui-list-item][data-fill='inset']:is([data-variant='plain'], [data-variant='ruled']) {
|
|
990
|
+
--_pad-inline: var(--slotted-list-fill-inset, var(--slotted-space-3, 0.375rem));
|
|
991
991
|
|
|
992
|
-
|
|
993
|
-
box-shadow:
|
|
994
|
-
isolation: isolate;
|
|
992
|
+
border-radius: var(--_radius);
|
|
993
|
+
box-shadow: var(--_edge-shadow);
|
|
995
994
|
position: relative;
|
|
996
995
|
}
|
|
997
996
|
|
|
998
|
-
[data-ui-list-item][data-fill='inset']
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
997
|
+
[data-ui-list-item][data-fill='inset'][data-inset]:is(
|
|
998
|
+
[data-variant='plain'],
|
|
999
|
+
[data-variant='ruled']
|
|
1000
|
+
)
|
|
1001
|
+
> [data-part-content] {
|
|
1002
|
+
padding-inline: var(--_pad-inline);
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
[data-ui-list-item][data-fill='inset'][data-variant='ruled']:not(:first-child)::after {
|
|
1006
|
+
box-shadow: var(--_rule-shadow);
|
|
1002
1007
|
content: '';
|
|
1003
1008
|
inset-block: 0;
|
|
1004
|
-
inset-inline: var(--
|
|
1009
|
+
inset-inline: var(--_pad-inline);
|
|
1005
1010
|
pointer-events: none;
|
|
1006
1011
|
position: absolute;
|
|
1007
|
-
transition:
|
|
1008
|
-
background-color var(--slotted-control-transition-duration, var(--slotted-duration-short))
|
|
1009
|
-
var(--slotted-control-transition-easing, var(--slotted-easing-standard)),
|
|
1010
|
-
box-shadow var(--slotted-control-transition-duration, var(--slotted-duration-short))
|
|
1011
|
-
var(--slotted-control-transition-easing, var(--slotted-easing-standard));
|
|
1012
|
-
z-index: -1;
|
|
1013
1012
|
}
|
|
1014
1013
|
|
|
1015
1014
|
/**
|
|
@@ -1030,11 +1029,6 @@
|
|
|
1030
1029
|
background-color: Highlight;
|
|
1031
1030
|
}
|
|
1032
1031
|
|
|
1033
|
-
/* The tile would be forced to Canvas over that ground. */
|
|
1034
|
-
[data-ui-list-item][data-fill='inset']::after {
|
|
1035
|
-
display: none;
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
1032
|
[data-ui-list-item][data-selected] > [data-part-content] {
|
|
1039
1033
|
color: HighlightText;
|
|
1040
1034
|
}
|
package/src/message/message.css
CHANGED
|
@@ -1277,6 +1277,15 @@
|
|
|
1277
1277
|
line-height: round(up, calc(1em * var(--slotted-line-height-md, 1.5)), 1px);
|
|
1278
1278
|
}
|
|
1279
1279
|
|
|
1280
|
+
/* On a rail, with no bubbles, a frame is a block floating in the turn. */
|
|
1281
|
+
:scope[data-variant='plain'] {
|
|
1282
|
+
padding: 0;
|
|
1283
|
+
border: 0;
|
|
1284
|
+
border-radius: 0;
|
|
1285
|
+
background-color: transparent;
|
|
1286
|
+
box-shadow: none;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1280
1289
|
[data-part-activity-step] {
|
|
1281
1290
|
display: flex;
|
|
1282
1291
|
align-items: center;
|
package/src/page/page.css
CHANGED
|
@@ -131,6 +131,16 @@
|
|
|
131
131
|
* body that is not a list of blocks (a workspace, a split) to its own
|
|
132
132
|
* layout.
|
|
133
133
|
*/
|
|
134
|
+
/**
|
|
135
|
+
* The two gaps as resolved here, the compact step taken: a stack of blocks
|
|
136
|
+
* deeper in the page (a tab panel, a column beside an aside) reads them. On
|
|
137
|
+
* the body, because a container query reaches the page's descendants only.
|
|
138
|
+
*/
|
|
139
|
+
[data-ui-page] > [data-part-scroll] > [data-part-body] {
|
|
140
|
+
--slotted-page-gap: var(--_block-gap);
|
|
141
|
+
--slotted-page-section-space: var(--_section-gap);
|
|
142
|
+
}
|
|
143
|
+
|
|
134
144
|
[data-ui-page]
|
|
135
145
|
> [data-part-scroll]
|
|
136
146
|
> [data-part-body]:not([data-flow='none'])
|
|
@@ -1638,74 +1638,4 @@
|
|
|
1638
1638
|
background-color: Canvas;
|
|
1639
1639
|
}
|
|
1640
1640
|
}
|
|
1641
|
-
|
|
1642
|
-
/* ── Segmented ────────────────────────────────────────────────────────
|
|
1643
|
-
*
|
|
1644
|
-
* One total in parts: the track is a row of segments whose flex growth is
|
|
1645
|
-
* each part's value, so their widths keep the parts' ratio at any width,
|
|
1646
|
-
* with a hairline of the ground between two of them. A segment's color is
|
|
1647
|
-
* a data palette slot; a remainder is hatched in the muted ink, so it is
|
|
1648
|
-
* told apart by more than color. Marking one part dims the others with the
|
|
1649
|
-
* motion tokens, and at once under reduced motion.
|
|
1650
|
-
*/
|
|
1651
|
-
[data-ui-progress-indicator][data-shape='segmented'] {
|
|
1652
|
-
--_thickness: var(--slotted-progress-indicator-thickness, var(--slotted-space-4, 0.5rem));
|
|
1653
|
-
|
|
1654
|
-
display: grid;
|
|
1655
|
-
row-gap: var(--slotted-space-2, 0.25rem);
|
|
1656
|
-
}
|
|
1657
|
-
|
|
1658
|
-
[data-ui-progress-indicator][data-shape='segmented'] > [data-part-track] {
|
|
1659
|
-
block-size: var(--_thickness);
|
|
1660
|
-
border-radius: var(--_radius);
|
|
1661
|
-
column-gap: var(--slotted-segmented-bar-gap, var(--slotted-border-width-medium, 2px));
|
|
1662
|
-
display: flex;
|
|
1663
|
-
overflow: clip;
|
|
1664
|
-
}
|
|
1665
|
-
|
|
1666
|
-
[data-ui-progress-indicator][data-shape='segmented'] [data-part-segment] {
|
|
1667
|
-
background-color: var(--_segment-color, var(--slotted-text-muted, GrayText));
|
|
1668
|
-
flex-basis: 0;
|
|
1669
|
-
min-inline-size: 0;
|
|
1670
|
-
transition: opacity var(--slotted-duration-short) var(--slotted-easing-standard);
|
|
1671
|
-
}
|
|
1672
|
-
|
|
1673
|
-
[data-ui-progress-indicator][data-shape='segmented'] [data-part-segment][data-pattern='hatch'] {
|
|
1674
|
-
background: repeating-linear-gradient(
|
|
1675
|
-
-45deg,
|
|
1676
|
-
var(--slotted-text-muted, GrayText) 0 2px,
|
|
1677
|
-
transparent 2px 5px
|
|
1678
|
-
);
|
|
1679
|
-
}
|
|
1680
|
-
|
|
1681
|
-
[data-ui-progress-indicator][data-shape='segmented'][data-current]
|
|
1682
|
-
[data-part-segment]:not([data-current]) {
|
|
1683
|
-
opacity: var(--slotted-segmented-bar-dimmed-opacity, 0.35);
|
|
1684
|
-
}
|
|
1685
|
-
|
|
1686
|
-
[data-ui-progress-indicator][data-shape='segmented'] > [data-part-scale] {
|
|
1687
|
-
color: var(--slotted-text-muted, GrayText);
|
|
1688
|
-
display: flex;
|
|
1689
|
-
font-size: var(--_font-size);
|
|
1690
|
-
font-variant-numeric: tabular-nums;
|
|
1691
|
-
justify-content: space-between;
|
|
1692
|
-
}
|
|
1693
|
-
|
|
1694
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1695
|
-
[data-ui-progress-indicator][data-shape='segmented'] [data-part-segment] {
|
|
1696
|
-
transition: none;
|
|
1697
|
-
}
|
|
1698
|
-
}
|
|
1699
|
-
|
|
1700
|
-
@media (forced-colors: active) {
|
|
1701
|
-
[data-ui-progress-indicator][data-shape='segmented'] [data-part-segment] {
|
|
1702
|
-
outline: 1px solid CanvasText;
|
|
1703
|
-
outline-offset: -1px;
|
|
1704
|
-
}
|
|
1705
|
-
|
|
1706
|
-
[data-ui-progress-indicator][data-shape='segmented'] [data-part-segment][data-current] {
|
|
1707
|
-
background-color: Highlight;
|
|
1708
|
-
forced-color-adjust: none;
|
|
1709
|
-
}
|
|
1710
|
-
}
|
|
1711
1641
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
[
|
|
2
2
|
"--slotted-border-strong",
|
|
3
|
-
"--slotted-border-width-medium",
|
|
4
3
|
"--slotted-border-width-thin",
|
|
5
4
|
"--slotted-control-font-family",
|
|
6
5
|
"--slotted-control-font-size-lg",
|
|
@@ -36,8 +35,6 @@
|
|
|
36
35
|
"--slotted-progress-indicator-wave-phase",
|
|
37
36
|
"--slotted-radius-full",
|
|
38
37
|
"--slotted-radius-none",
|
|
39
|
-
"--slotted-segmented-bar-dimmed-opacity",
|
|
40
|
-
"--slotted-segmented-bar-gap",
|
|
41
38
|
"--slotted-space-2",
|
|
42
39
|
"--slotted-space-3",
|
|
43
40
|
"--slotted-space-4",
|
|
@@ -553,56 +553,6 @@
|
|
|
553
553
|
position: absolute;
|
|
554
554
|
}
|
|
555
555
|
|
|
556
|
-
/**
|
|
557
|
-
* A tile without its circle. The frame and the chosen edge say the choice,
|
|
558
|
-
* so the input leaves the layout and keeps its role, its name and its tab
|
|
559
|
-
* stop; the ring the tile draws on focus stays the visible focus. The text
|
|
560
|
-
* takes the column the circle held.
|
|
561
|
-
*/
|
|
562
|
-
[data-ui-radio-group][data-part-root][data-variant='tile'][data-mark='hidden']
|
|
563
|
-
[data-part-control] {
|
|
564
|
-
block-size: 1px;
|
|
565
|
-
clip-path: inset(50%);
|
|
566
|
-
inline-size: 1px;
|
|
567
|
-
margin: 0;
|
|
568
|
-
overflow: hidden;
|
|
569
|
-
position: absolute;
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
[data-ui-radio-group][data-part-root][data-variant='tile'][data-mark='hidden']
|
|
573
|
-
:is([data-part-label], [data-part-description]) {
|
|
574
|
-
grid-column: 1 / -1;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* A picture above the label, across the tile. It is a row of its own, so
|
|
579
|
-
* the circle, the label and the description move one row down and keep
|
|
580
|
-
* their order.
|
|
581
|
-
*/
|
|
582
|
-
[data-ui-radio-group][data-part-root][data-variant='tile'] [data-part-media] {
|
|
583
|
-
display: block;
|
|
584
|
-
grid-column: 1 / -1;
|
|
585
|
-
grid-row: 1;
|
|
586
|
-
margin-block-end: var(--slotted-radio-group-tile-media-gap, var(--slotted-space-4, 0.5rem));
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
[data-ui-radio-group][data-part-root][data-variant='tile'] [data-part-media] > :is(img, svg) {
|
|
590
|
-
display: block;
|
|
591
|
-
max-inline-size: 100%;
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
[data-ui-radio-group][data-part-root][data-variant='tile']
|
|
595
|
-
[data-part-item]:has(> [data-part-media])
|
|
596
|
-
> :is([data-part-control], [data-part-indicator], [data-part-label]) {
|
|
597
|
-
grid-row: 2;
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
[data-ui-radio-group][data-part-root][data-variant='tile']
|
|
601
|
-
[data-part-item]:has(> [data-part-media])
|
|
602
|
-
> [data-part-description] {
|
|
603
|
-
grid-row: 3;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
556
|
/* ── The tile's states ────────────────────────────────────────────────
|
|
607
557
|
*
|
|
608
558
|
* Read on the item rather than on the control, because the stretched
|
|
@@ -73,7 +73,6 @@
|
|
|
73
73
|
"--slotted-radio-group-tile-invalid-border-color",
|
|
74
74
|
"--slotted-radio-group-tile-invalid-checked-background",
|
|
75
75
|
"--slotted-radio-group-tile-invalid-checked-border-color",
|
|
76
|
-
"--slotted-radio-group-tile-media-gap",
|
|
77
76
|
"--slotted-radio-group-tile-radius",
|
|
78
77
|
"--slotted-radio-group-tile-readonly-background",
|
|
79
78
|
"--slotted-radio-group-tile-readonly-border-color",
|
|
@@ -85,7 +84,6 @@
|
|
|
85
84
|
"--slotted-selection-size-sm",
|
|
86
85
|
"--slotted-space-2",
|
|
87
86
|
"--slotted-space-3",
|
|
88
|
-
"--slotted-space-4",
|
|
89
87
|
"--slotted-surface",
|
|
90
88
|
"--slotted-target-min",
|
|
91
89
|
"--slotted-text",
|
|
@@ -87,6 +87,12 @@ export const RUNTIME_PROPERTY_PREFIXES = [
|
|
|
87
87
|
* file every one of them as unreachable by a theme.
|
|
88
88
|
*/
|
|
89
89
|
'--slotted-tree-depth',
|
|
90
|
+
/**
|
|
91
|
+
* `table` — the rails of ancestors that cross one row of a hierarchy, as
|
|
92
|
+
* layers of a background: `@slotted/core/tree-branches` writes it from the
|
|
93
|
+
* order and the levels of the rows in the document.
|
|
94
|
+
*/
|
|
95
|
+
'--slotted-tree-rails',
|
|
90
96
|
/**
|
|
91
97
|
* `tree` — where one row sits on a windowed canvas, in pixels. It is written
|
|
92
98
|
* only on a row the window does not cover and the family renders anyway: the
|
package/src/section/section.css
CHANGED
|
@@ -366,4 +366,35 @@
|
|
|
366
366
|
border-end-start-radius: var(--_inner-radius);
|
|
367
367
|
margin-block-end: calc(-1 * var(--slotted-section-inset, var(--slotted-space-6, 1rem)));
|
|
368
368
|
}
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* A child of the body that bleeds alone, for a body that holds more than its
|
|
372
|
+
* table: the same margins on the child, in the body or in the one stack the
|
|
373
|
+
* body holds, and the same corners when it is the last of the panel.
|
|
374
|
+
*/
|
|
375
|
+
[data-ui-section][data-ground='surface'] > [data-part-body] > [data-part-bleed],
|
|
376
|
+
[data-ui-section][data-ground='surface'] > [data-part-body] > * > [data-part-bleed] {
|
|
377
|
+
--_inner-radius: calc(
|
|
378
|
+
var(--slotted-section-radius, var(--slotted-radius-lg, 8px)) -
|
|
379
|
+
var(--slotted-border-width-thin, 1px)
|
|
380
|
+
);
|
|
381
|
+
|
|
382
|
+
justify-self: stretch;
|
|
383
|
+
margin-inline: calc(-1 * var(--slotted-section-inset, var(--slotted-space-6, 1rem)));
|
|
384
|
+
max-inline-size: none;
|
|
385
|
+
min-inline-size: 0;
|
|
386
|
+
overflow: clip;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
[data-ui-section][data-ground='surface']
|
|
390
|
+
> [data-part-body]:last-child
|
|
391
|
+
> [data-part-bleed]:last-child,
|
|
392
|
+
[data-ui-section][data-ground='surface']
|
|
393
|
+
> [data-part-body]:last-child
|
|
394
|
+
> :last-child
|
|
395
|
+
> [data-part-bleed]:last-child {
|
|
396
|
+
border-end-end-radius: var(--_inner-radius);
|
|
397
|
+
border-end-start-radius: var(--_inner-radius);
|
|
398
|
+
margin-block-end: calc(-1 * var(--slotted-section-inset, var(--slotted-space-6, 1rem)));
|
|
399
|
+
}
|
|
369
400
|
}
|