@slotted/styles 0.1.0-beta.23 → 0.1.0-beta.25
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/combobox/combobox.css +5 -1
- package/src/command-palette/command-palette.css +5 -1
- package/src/data-grid/data-grid.css +52 -15
- package/src/data-grid/data-grid.tokens.json +1 -1
- package/src/datetime-picker/datetime-picker.css +14 -3
- package/src/datetime-picker/datetime-picker.tokens.json +0 -1
- package/src/field/field.css +15 -0
- package/src/field/field.tokens.json +2 -0
- package/src/form/form.css +64 -0
- package/src/form/form.tokens.json +4 -0
- package/src/listbox/listbox.css +5 -1
- package/src/listbox/listbox.tokens.json +0 -1
- package/src/menu/menu.css +5 -1
- package/src/menu/menu.tokens.json +0 -1
- package/src/multi-select/multi-select.css +5 -1
- package/src/select/select.css +5 -1
- package/src/table/table.css +6 -2
- package/src/table/table.tokens.json +1 -0
- package/src/time-picker/time-picker.css +15 -4
- package/src/time-picker/time-picker.tokens.json +0 -1
package/package.json
CHANGED
|
@@ -563,7 +563,11 @@
|
|
|
563
563
|
);
|
|
564
564
|
--_item-inset: var(--slotted-control-padding-inline-md, 0.8125rem);
|
|
565
565
|
--_item-height: var(--slotted-control-height-md, 34px);
|
|
566
|
-
|
|
566
|
+
/* Concentric with the panel: its radius less the inset, floored at 0. */
|
|
567
|
+
--_item-radius: var(
|
|
568
|
+
--slotted-combobox-item-radius,
|
|
569
|
+
max(0px, calc(var(--_radius) - var(--_inset-inline)))
|
|
570
|
+
);
|
|
567
571
|
--_content-font-size: var(--slotted-control-font-size-md, 13px);
|
|
568
572
|
--_secondary-font-size: var(--slotted-control-font-size-sm, 12px);
|
|
569
573
|
--_content-icon-size: var(--slotted-control-icon-size-md, 16px);
|
|
@@ -83,7 +83,11 @@
|
|
|
83
83
|
/* The row, at the family's size step; the header one step up. */
|
|
84
84
|
--_item-height: var(--slotted-control-height-md, 34px);
|
|
85
85
|
--_item-inset: var(--slotted-control-padding-inline-md, 13px);
|
|
86
|
-
|
|
86
|
+
/* Concentric with the panel: its radius less the inset, floored at 0. */
|
|
87
|
+
--_item-radius: var(
|
|
88
|
+
--slotted-command-palette-item-radius,
|
|
89
|
+
max(0px, calc(var(--_radius) - var(--_list-inset)))
|
|
90
|
+
);
|
|
87
91
|
--_font-size: var(--slotted-control-font-size-md, 13px);
|
|
88
92
|
--_secondary-font-size: var(--slotted-control-font-size-sm, 12px);
|
|
89
93
|
--_icon-size: var(--slotted-control-icon-size-md, 16px);
|
|
@@ -98,18 +98,31 @@
|
|
|
98
98
|
--slotted-data-grid-row-surface-hover,
|
|
99
99
|
var(--slotted-tone-secondary-subtle-hover, ButtonFace)
|
|
100
100
|
);
|
|
101
|
+
/**
|
|
102
|
+
* A run of selected rows reads as one block: the accent border mixed
|
|
103
|
+
* into the row's ground, the same border closing the run above and
|
|
104
|
+
* below, and every rule inside it — between rows and at a pinned zone's
|
|
105
|
+
* edge — tinted toward that border; no rail (R1). The ink stays the
|
|
106
|
+
* row's own. The ground mixes the border, which is the light accent in
|
|
107
|
+
* the dark scheme and the dark one in the light: at 20% it stands 1.3:1
|
|
108
|
+
* from the page in both on the default theme, above the stripe and the
|
|
109
|
+
* hover. The accent's surfaces read as nothing on a dark row, and its
|
|
110
|
+
* solid ink at any one share was twice as strong in light as in dark.
|
|
111
|
+
*/
|
|
112
|
+
--_selected-edge: var(
|
|
113
|
+
--slotted-data-grid-row-border-color-selected,
|
|
114
|
+
var(--slotted-tone-accent-border, Highlight)
|
|
115
|
+
);
|
|
101
116
|
--_selected: var(
|
|
102
117
|
--slotted-data-grid-row-surface-selected,
|
|
103
|
-
var(--
|
|
118
|
+
color-mix(in oklab, var(--_selected-edge) 20%, var(--_surface))
|
|
104
119
|
);
|
|
105
120
|
--_selected-hover: var(
|
|
106
121
|
--slotted-data-grid-row-surface-selected-hover,
|
|
107
|
-
var(--
|
|
108
|
-
);
|
|
109
|
-
--_selected-text: var(
|
|
110
|
-
--slotted-data-grid-row-color-selected,
|
|
111
|
-
var(--slotted-tone-accent-text, CanvasText)
|
|
122
|
+
color-mix(in oklab, var(--_selected-edge) 28%, var(--_surface))
|
|
112
123
|
);
|
|
124
|
+
--_selected-text: var(--slotted-data-grid-row-color-selected, var(--_text));
|
|
125
|
+
--_selected-rule: color-mix(in oklab, var(--_selected-edge) 30%, var(--_selected));
|
|
113
126
|
/**
|
|
114
127
|
* The cursor and the range are one colour: the accent border, which holds
|
|
115
128
|
* the non-text ratio against the page and against the accent ground it
|
|
@@ -1236,7 +1249,11 @@
|
|
|
1236
1249
|
|
|
1237
1250
|
[data-ui-data-grid] [data-part-row] {
|
|
1238
1251
|
background-color: var(--_surface);
|
|
1239
|
-
|
|
1252
|
+
/* The block's edges settle with its ground, not a frame before it. */
|
|
1253
|
+
transition:
|
|
1254
|
+
background-color var(--_transition),
|
|
1255
|
+
border-color var(--_transition),
|
|
1256
|
+
box-shadow var(--_transition);
|
|
1240
1257
|
}
|
|
1241
1258
|
|
|
1242
1259
|
/**
|
|
@@ -1421,6 +1438,31 @@
|
|
|
1421
1438
|
background-color: var(--_selected-hover);
|
|
1422
1439
|
}
|
|
1423
1440
|
|
|
1441
|
+
/* The block's edges. The bottom is the row's own rule; the top is drawn
|
|
1442
|
+
over the rule of the row above, by a shadow one rule tall, because a row
|
|
1443
|
+
cannot reach its previous sibling. Inside a run the shadow takes the
|
|
1444
|
+
inner tint. A head above, being sticky, paints over the shadow and its
|
|
1445
|
+
own rule closes the block; a frame below closes it the same way. */
|
|
1446
|
+
[data-ui-data-grid]:is([data-variant='ruled'], [data-variant='framed'])
|
|
1447
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1448
|
+
> [data-part-row][data-selected] {
|
|
1449
|
+
border-block-end-color: var(--_selected-edge);
|
|
1450
|
+
box-shadow: 0 calc(var(--_rule-width) * -1) 0 var(--_selected-edge);
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
[data-ui-data-grid]:is([data-variant='ruled'], [data-variant='framed'])
|
|
1454
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1455
|
+
> [data-part-row][data-selected]
|
|
1456
|
+
+ [data-part-row][data-selected] {
|
|
1457
|
+
box-shadow: 0 calc(var(--_rule-width) * -1) 0 var(--_selected-rule);
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
[data-ui-data-grid][data-variant='framed']
|
|
1461
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1462
|
+
> [data-part-row][data-selected]:last-child {
|
|
1463
|
+
border-block-end-color: transparent;
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1424
1466
|
[data-ui-data-grid] [data-part-row][data-disabled] {
|
|
1425
1467
|
color: var(--slotted-disabled-foreground, GrayText);
|
|
1426
1468
|
}
|
|
@@ -1772,7 +1814,9 @@
|
|
|
1772
1814
|
> :is([data-part-body], [data-part-pinned-rows])
|
|
1773
1815
|
> [data-part-row][data-selected]
|
|
1774
1816
|
> [data-pinned] {
|
|
1775
|
-
|
|
1817
|
+
/* The zone's edge inside the block is one of the block's inner rules. The
|
|
1818
|
+
ground is the row's, inherited, so it follows the row's hover. */
|
|
1819
|
+
--_rule: var(--_selected-rule);
|
|
1776
1820
|
}
|
|
1777
1821
|
|
|
1778
1822
|
/* The last pinned cell of each zone draws the edge: the same hairline as
|
|
@@ -1918,13 +1962,6 @@
|
|
|
1918
1962
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 2);
|
|
1919
1963
|
}
|
|
1920
1964
|
|
|
1921
|
-
[data-ui-data-grid]
|
|
1922
|
-
:is([data-part-body], [data-part-pinned-rows])
|
|
1923
|
-
> [data-part-row][data-selected]
|
|
1924
|
-
> [data-part-selection] {
|
|
1925
|
-
background-color: var(--_selected);
|
|
1926
|
-
}
|
|
1927
|
-
|
|
1928
1965
|
[data-ui-data-grid] [role='row'] > [data-part-selection] > [data-ui-checkbox] {
|
|
1929
1966
|
block-size: var(--_line);
|
|
1930
1967
|
}
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"--slotted-data-grid-resize-guide-color",
|
|
49
49
|
"--slotted-data-grid-resize-guide-width",
|
|
50
50
|
"--slotted-data-grid-row-block-size",
|
|
51
|
+
"--slotted-data-grid-row-border-color-selected",
|
|
51
52
|
"--slotted-data-grid-row-color-selected",
|
|
52
53
|
"--slotted-data-grid-row-max-block-size",
|
|
53
54
|
"--slotted-data-grid-row-surface-hover",
|
|
@@ -95,7 +96,6 @@
|
|
|
95
96
|
"--slotted-text-muted",
|
|
96
97
|
"--slotted-tone-accent-border",
|
|
97
98
|
"--slotted-tone-accent-solid",
|
|
98
|
-
"--slotted-tone-accent-subtle-hover",
|
|
99
99
|
"--slotted-tone-accent-surface",
|
|
100
100
|
"--slotted-tone-accent-text",
|
|
101
101
|
"--slotted-tone-danger-border",
|
|
@@ -304,13 +304,24 @@
|
|
|
304
304
|
* guess at and cannot be wrong at a width nobody tested.
|
|
305
305
|
*/
|
|
306
306
|
[data-ui-datetime-picker] [data-part-content] {
|
|
307
|
+
--_content-radius: var(--slotted-datetime-picker-content-radius, var(--slotted-radius-lg, 8px));
|
|
308
|
+
--_content-padding: var(
|
|
309
|
+
--slotted-datetime-picker-content-padding,
|
|
310
|
+
var(--slotted-space-3, 0.375rem)
|
|
311
|
+
);
|
|
312
|
+
/* Concentric with the panel: its radius less the inset, floored at 0. */
|
|
313
|
+
--_option-radius: var(
|
|
314
|
+
--slotted-datetime-picker-option-radius,
|
|
315
|
+
max(0px, calc(var(--_content-radius) - var(--_content-padding)))
|
|
316
|
+
);
|
|
317
|
+
|
|
307
318
|
background-color: var(--slotted-datetime-picker-surface, var(--slotted-surface-raised, Canvas));
|
|
308
319
|
border: var(--slotted-border-width-thin, 1px) solid
|
|
309
320
|
var(
|
|
310
321
|
--slotted-datetime-picker-content-border-color,
|
|
311
322
|
var(--slotted-border-subtle, ButtonBorder)
|
|
312
323
|
);
|
|
313
|
-
border-radius: var(--
|
|
324
|
+
border-radius: var(--_content-radius);
|
|
314
325
|
box-shadow: var(--slotted-datetime-picker-content-shadow, var(--slotted-shadow-md));
|
|
315
326
|
box-sizing: border-box;
|
|
316
327
|
color: var(--slotted-datetime-picker-content-color, var(--slotted-text, CanvasText));
|
|
@@ -332,7 +343,7 @@
|
|
|
332
343
|
grid-template-columns: minmax(0, 1fr);
|
|
333
344
|
inline-size: auto;
|
|
334
345
|
max-inline-size: min(34rem, var(--slotted-positioner-available-width, 34rem));
|
|
335
|
-
padding: var(--
|
|
346
|
+
padding: var(--_content-padding);
|
|
336
347
|
/* The layer above gave up the pointer; the surface takes it back. */
|
|
337
348
|
pointer-events: auto;
|
|
338
349
|
}
|
|
@@ -650,7 +661,7 @@
|
|
|
650
661
|
[data-ui-datetime-picker] [data-part-option] {
|
|
651
662
|
align-items: center;
|
|
652
663
|
background-color: transparent;
|
|
653
|
-
border-radius: var(--
|
|
664
|
+
border-radius: var(--_option-radius);
|
|
654
665
|
color: inherit;
|
|
655
666
|
cursor: pointer;
|
|
656
667
|
display: flex;
|
package/src/field/field.css
CHANGED
|
@@ -94,6 +94,21 @@
|
|
|
94
94
|
min-inline-size: 0;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
/**
|
|
98
|
+
* The width says what the field expects: the control stands no wider than
|
|
99
|
+
* the step, and still shrinks with a narrower field. The control is the
|
|
100
|
+
* child that is another family's root, or the part a consumer wrote.
|
|
101
|
+
*/
|
|
102
|
+
[data-ui-field][data-part-root][data-width='short']
|
|
103
|
+
> :is([data-part-control], [data-ui]:not([data-ui-inline-message])) {
|
|
104
|
+
max-inline-size: var(--slotted-field-width-short, 6rem);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
[data-ui-field][data-part-root][data-width='medium']
|
|
108
|
+
> :is([data-part-control], [data-ui]:not([data-ui-inline-message])) {
|
|
109
|
+
max-inline-size: var(--slotted-field-width-medium, 15rem);
|
|
110
|
+
}
|
|
111
|
+
|
|
97
112
|
/* ── Size ─────────────────────────────────────────────────────────────
|
|
98
113
|
*
|
|
99
114
|
* Three steps, matching the control the field wraps. Fluent ships the same
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
"--slotted-field-mark-gap",
|
|
37
37
|
"--slotted-field-mark-text-color",
|
|
38
38
|
"--slotted-field-row-gap",
|
|
39
|
+
"--slotted-field-width-medium",
|
|
40
|
+
"--slotted-field-width-short",
|
|
39
41
|
"--slotted-focus-ring-color",
|
|
40
42
|
"--slotted-focus-ring-offset",
|
|
41
43
|
"--slotted-focus-ring-width",
|
package/src/form/form.css
CHANGED
|
@@ -165,6 +165,70 @@
|
|
|
165
165
|
margin-block-start: var(--slotted-form-field-gap, var(--slotted-space-6, 1rem));
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
+
/**
|
|
169
|
+
* Two sections stand apart by a step larger than the one between two fields
|
|
170
|
+
* of a section: at the same 1rem, a form split into topics showed none.
|
|
171
|
+
*/
|
|
172
|
+
[data-ui-form][data-part-root] > [data-ui-field-group] + [data-ui-field-group] {
|
|
173
|
+
margin-block-start: var(--slotted-form-section-gap, var(--slotted-space-9, 2rem));
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* One column at a bounded measure: a field never spans a wide page, and the
|
|
178
|
+
* summary and the actions end where the fields end.
|
|
179
|
+
*/
|
|
180
|
+
[data-ui-form][data-part-root]
|
|
181
|
+
> :is(
|
|
182
|
+
[data-ui-field],
|
|
183
|
+
[data-ui-field-group],
|
|
184
|
+
[data-ui-form][data-part-summary],
|
|
185
|
+
[data-ui-form][data-part-actions]
|
|
186
|
+
) {
|
|
187
|
+
max-inline-size: var(--slotted-form-measure, 40rem);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* ── The aside ────────────────────────────────────────────────────────
|
|
191
|
+
*
|
|
192
|
+
* A form that holds one is a grid of one column at the measure. The aside's
|
|
193
|
+
* track is implicit: it exists only once the aside is placed in it, which
|
|
194
|
+
* happens from the form's own breakpoint, because the root cannot change its
|
|
195
|
+
* template under a query on itself. Below it the aside follows in source
|
|
196
|
+
* order, after the last field when it is written there.
|
|
197
|
+
*/
|
|
198
|
+
[data-ui-form][data-part-root]:has(> [data-ui-form][data-part-aside]) {
|
|
199
|
+
column-gap: var(--slotted-space-9, 2rem);
|
|
200
|
+
display: grid;
|
|
201
|
+
grid-auto-columns: minmax(0, var(--slotted-form-aside-size, 20rem));
|
|
202
|
+
grid-template-columns: minmax(0, var(--slotted-form-measure, 40rem));
|
|
203
|
+
justify-content: space-between;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
[data-ui-form][data-part-aside] {
|
|
207
|
+
margin-block-start: var(--slotted-form-section-gap, var(--slotted-space-9, 2rem));
|
|
208
|
+
min-inline-size: 0;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Beside the column, every child of the form keeps to the first track and
|
|
213
|
+
* the aside spans the rows they fill, so it stays in view under the page's
|
|
214
|
+
* chrome while the fields scroll. shortcut: the span covers 100 children of
|
|
215
|
+
* the form; past them the aside stops following.
|
|
216
|
+
*/
|
|
217
|
+
@container slotted-form (min-width: 75rem) {
|
|
218
|
+
[data-ui-form][data-part-root]:has(> [data-ui-form][data-part-aside]) > * {
|
|
219
|
+
grid-column: 1;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
[data-ui-form][data-part-root] > [data-ui-form][data-part-aside] {
|
|
223
|
+
align-self: start;
|
|
224
|
+
grid-column: 2;
|
|
225
|
+
grid-row: 1 / span 100;
|
|
226
|
+
inset-block-start: calc(var(--slotted-page-sticky-top, 0px) + var(--slotted-space-6, 1rem));
|
|
227
|
+
margin-block-start: 0;
|
|
228
|
+
position: sticky;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
168
232
|
/* ── The action row ───────────────────────────────────────────────────
|
|
169
233
|
*
|
|
170
234
|
* Its own container, because the question it answers is how much room the
|
|
@@ -9,8 +9,11 @@
|
|
|
9
9
|
"--slotted-font-family-heading",
|
|
10
10
|
"--slotted-font-family-sans",
|
|
11
11
|
"--slotted-font-weight-semibold",
|
|
12
|
+
"--slotted-form-aside-size",
|
|
12
13
|
"--slotted-form-color",
|
|
13
14
|
"--slotted-form-field-gap",
|
|
15
|
+
"--slotted-form-measure",
|
|
16
|
+
"--slotted-form-section-gap",
|
|
14
17
|
"--slotted-form-summary-background",
|
|
15
18
|
"--slotted-form-summary-border-color",
|
|
16
19
|
"--slotted-form-summary-color",
|
|
@@ -26,6 +29,7 @@
|
|
|
26
29
|
"--slotted-space-5",
|
|
27
30
|
"--slotted-space-6",
|
|
28
31
|
"--slotted-space-8",
|
|
32
|
+
"--slotted-space-9",
|
|
29
33
|
"--slotted-text",
|
|
30
34
|
"--slotted-tone-danger-border",
|
|
31
35
|
"--slotted-tone-danger-surface",
|
package/src/listbox/listbox.css
CHANGED
|
@@ -78,7 +78,11 @@
|
|
|
78
78
|
--_inset-inline: var(--slotted-listbox-padding-inline, var(--slotted-space-2, 0.25rem));
|
|
79
79
|
--_option-inset: var(--slotted-control-padding-inline-md, 0.8125rem);
|
|
80
80
|
--_option-height: var(--slotted-control-height-md, 34px);
|
|
81
|
-
|
|
81
|
+
/* Concentric with the panel: its radius less the inset, floored at 0. */
|
|
82
|
+
--_option-radius: var(
|
|
83
|
+
--slotted-listbox-option-radius,
|
|
84
|
+
max(0px, calc(var(--_radius) - var(--_inset-inline)))
|
|
85
|
+
);
|
|
82
86
|
--_font-size: var(--slotted-control-font-size-md, 13px);
|
|
83
87
|
--_secondary-font-size: var(--slotted-control-font-size-sm, 12px);
|
|
84
88
|
--_icon-size: var(--slotted-control-icon-size-md, 16px);
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
"--slotted-control-padding-inline-lg",
|
|
19
19
|
"--slotted-control-padding-inline-md",
|
|
20
20
|
"--slotted-control-padding-inline-sm",
|
|
21
|
-
"--slotted-control-radius",
|
|
22
21
|
"--slotted-control-shadow",
|
|
23
22
|
"--slotted-control-transition-duration",
|
|
24
23
|
"--slotted-control-transition-easing",
|
package/src/menu/menu.css
CHANGED
|
@@ -86,7 +86,11 @@
|
|
|
86
86
|
--_item-padding: var(--slotted-control-padding-inline-md, 0.8125rem);
|
|
87
87
|
--_item-inset: calc(var(--_item-padding) - var(--_inset-inline));
|
|
88
88
|
--_item-height: var(--slotted-control-height-md, 34px);
|
|
89
|
-
|
|
89
|
+
/* Concentric with the panel: its radius less the inset, floored at 0. */
|
|
90
|
+
--_item-radius: var(
|
|
91
|
+
--slotted-menu-item-radius,
|
|
92
|
+
max(0px, calc(var(--_radius) - var(--_inset-inline)))
|
|
93
|
+
);
|
|
90
94
|
--_font-size: var(--slotted-control-font-size-md, 13px);
|
|
91
95
|
--_secondary-font-size: var(--slotted-control-font-size-sm, 12px);
|
|
92
96
|
--_icon-size: var(--slotted-control-icon-size-md, 16px);
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"--slotted-control-padding-inline-lg",
|
|
17
17
|
"--slotted-control-padding-inline-md",
|
|
18
18
|
"--slotted-control-padding-inline-sm",
|
|
19
|
-
"--slotted-control-radius",
|
|
20
19
|
"--slotted-control-transition-duration",
|
|
21
20
|
"--slotted-control-transition-easing",
|
|
22
21
|
"--slotted-disabled-foreground",
|
|
@@ -889,7 +889,11 @@
|
|
|
889
889
|
);
|
|
890
890
|
--_item-inset: var(--slotted-control-padding-inline-md, 0.8125rem);
|
|
891
891
|
--_item-height: var(--slotted-control-height-md, 34px);
|
|
892
|
-
|
|
892
|
+
/* Concentric with the panel: its radius less the inset, floored at 0. */
|
|
893
|
+
--_item-radius: var(
|
|
894
|
+
--slotted-multi-select-item-radius,
|
|
895
|
+
max(0px, calc(var(--_radius) - var(--_inset-inline)))
|
|
896
|
+
);
|
|
893
897
|
--_content-font-size: var(--slotted-control-font-size-md, 13px);
|
|
894
898
|
--_secondary-font-size: var(--slotted-control-font-size-sm, 12px);
|
|
895
899
|
--_content-icon-size: var(--slotted-control-icon-size-md, 16px);
|
package/src/select/select.css
CHANGED
|
@@ -808,7 +808,11 @@
|
|
|
808
808
|
--_inset-inline: var(--slotted-select-content-padding-inline, var(--slotted-space-2, 0.25rem));
|
|
809
809
|
--_item-inset: var(--slotted-control-padding-inline-md, 0.8125rem);
|
|
810
810
|
--_item-height: var(--slotted-control-height-md, 34px);
|
|
811
|
-
|
|
811
|
+
/* Concentric with the panel: its radius less the inset, floored at 0. */
|
|
812
|
+
--_item-radius: var(
|
|
813
|
+
--slotted-select-item-radius,
|
|
814
|
+
max(0px, calc(var(--_radius) - var(--_inset-inline)))
|
|
815
|
+
);
|
|
812
816
|
--_content-font-size: var(--slotted-control-font-size-md, 13px);
|
|
813
817
|
--_secondary-font-size: var(--slotted-control-font-size-sm, 12px);
|
|
814
818
|
--_content-icon-size: var(--slotted-control-icon-size-md, 16px);
|
package/src/table/table.css
CHANGED
|
@@ -740,14 +740,18 @@
|
|
|
740
740
|
/* The ground the row is painted with, whatever state it is in, so a
|
|
741
741
|
hovered, striped or selected row keeps one colour across the seam — over
|
|
742
742
|
the page's own surface, so a row on a transparent table surface still
|
|
743
|
-
covers what scrolls under it. `inherit` copied a transparent row as is.
|
|
743
|
+
covers what scrolls under it. `inherit` copied a transparent row as is.
|
|
744
|
+
The layer under the row is the family's token, so a table drawn over a
|
|
745
|
+
card states the card's ground. It is painted whether the table overflows
|
|
746
|
+
or not: the overflow is known only after a measurement, and a column
|
|
747
|
+
pinned to the end has content under it from the first frame. */
|
|
744
748
|
[data-ui-table] [data-sticky] {
|
|
745
749
|
background:
|
|
746
750
|
linear-gradient(
|
|
747
751
|
var(--_pinned-ground, var(--_row-ground)),
|
|
748
752
|
var(--_pinned-ground, var(--_row-ground))
|
|
749
753
|
),
|
|
750
|
-
var(--slotted-surface, Canvas);
|
|
754
|
+
var(--slotted-table-sticky-surface, var(--slotted-surface, Canvas));
|
|
751
755
|
}
|
|
752
756
|
|
|
753
757
|
[data-ui-table] [data-sticky='start'] {
|
|
@@ -306,10 +306,21 @@
|
|
|
306
306
|
* does not stretch one column of times across a page.
|
|
307
307
|
*/
|
|
308
308
|
[data-ui-time-picker] [data-part-content] {
|
|
309
|
+
--_content-radius: var(--slotted-time-picker-content-radius, var(--slotted-radius-lg, 8px));
|
|
310
|
+
--_content-padding: var(
|
|
311
|
+
--slotted-time-picker-content-padding,
|
|
312
|
+
var(--slotted-space-3, 0.375rem)
|
|
313
|
+
);
|
|
314
|
+
/* Concentric with the panel: its radius less the inset, floored at 0. */
|
|
315
|
+
--_option-radius: var(
|
|
316
|
+
--slotted-time-picker-option-radius,
|
|
317
|
+
max(0px, calc(var(--_content-radius) - var(--_content-padding)))
|
|
318
|
+
);
|
|
319
|
+
|
|
309
320
|
background-color: var(--slotted-time-picker-surface, var(--slotted-surface-raised, Canvas));
|
|
310
321
|
border: var(--slotted-border-width-thin, 1px) solid
|
|
311
322
|
var(--slotted-time-picker-content-border-color, var(--slotted-border-subtle, ButtonBorder));
|
|
312
|
-
border-radius: var(--
|
|
323
|
+
border-radius: var(--_content-radius);
|
|
313
324
|
box-shadow: var(--slotted-time-picker-content-shadow, var(--slotted-shadow-md));
|
|
314
325
|
box-sizing: border-box;
|
|
315
326
|
color: var(--slotted-time-picker-content-color, var(--slotted-text, CanvasText));
|
|
@@ -349,7 +360,7 @@
|
|
|
349
360
|
var(--slotted-time-picker-content-min-inline-size, 11rem),
|
|
350
361
|
min(var(--slotted-positioner-anchor-width, 11rem), 20rem)
|
|
351
362
|
);
|
|
352
|
-
padding: var(--
|
|
363
|
+
padding: var(--_content-padding);
|
|
353
364
|
/* The layer above gave up the pointer; the surface takes it back. */
|
|
354
365
|
pointer-events: auto;
|
|
355
366
|
}
|
|
@@ -386,7 +397,7 @@
|
|
|
386
397
|
appearance: none;
|
|
387
398
|
background-color: transparent;
|
|
388
399
|
border: 0;
|
|
389
|
-
border-radius: var(--
|
|
400
|
+
border-radius: var(--_option-radius);
|
|
390
401
|
color: var(--slotted-time-picker-now-color, var(--slotted-tone-accent-text));
|
|
391
402
|
cursor: pointer;
|
|
392
403
|
font: inherit;
|
|
@@ -471,7 +482,7 @@
|
|
|
471
482
|
[data-ui-time-picker] [data-part-option] {
|
|
472
483
|
align-items: center;
|
|
473
484
|
background-color: transparent;
|
|
474
|
-
border-radius: var(--
|
|
485
|
+
border-radius: var(--_option-radius);
|
|
475
486
|
color: inherit;
|
|
476
487
|
cursor: pointer;
|
|
477
488
|
display: flex;
|