@slotted/styles 0.1.0-beta.4 → 0.1.0-beta.40
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 +21 -1
- package/src/accordion/accordion.css +31 -13
- package/src/accordion/accordion.tokens.json +2 -0
- package/src/action-bar/action-bar.css +47 -44
- package/src/action-bar/action-bar.tokens.json +1 -0
- package/src/action-sheet/action-sheet.css +39 -39
- package/src/alert/alert.css +97 -97
- package/src/alert/alert.tokens.json +6 -1
- package/src/app-shell/app-shell.css +472 -342
- package/src/app-shell/app-shell.tokens.json +6 -3
- package/src/aspect-ratio/aspect-ratio.css +24 -23
- package/src/attachment/attachment.css +118 -114
- package/src/avatar/avatar.css +97 -67
- package/src/avatar/avatar.tokens.json +8 -0
- package/src/avatar-group/avatar-group.css +22 -23
- package/src/badge/badge.css +58 -47
- package/src/badge/badge.tokens.json +6 -0
- package/src/breadcrumb/breadcrumb.css +52 -52
- package/src/button/button.css +408 -93
- package/src/button/button.tokens.json +13 -0
- package/src/button-group/button-group.css +80 -79
- package/src/button-group/button-group.tokens.json +1 -0
- package/src/calendar/calendar.css +594 -267
- package/src/calendar/calendar.tokens.json +35 -3
- package/src/card/card.css +133 -70
- package/src/card/card.tokens.json +1 -0
- package/src/carousel/carousel.css +158 -169
- package/src/cascader/cascader.css +174 -159
- package/src/cascader/cascader.tokens.json +2 -0
- package/src/chart/chart.css +300 -271
- package/src/chart/chart.tokens.json +5 -0
- package/src/checkbox/checkbox.css +190 -148
- package/src/checkbox/checkbox.tokens.json +4 -0
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/clock/clock.css +246 -0
- package/src/clock/clock.tokens.json +44 -0
- package/src/code-block/code-block.css +85 -89
- package/src/collapsible/collapsible.css +273 -85
- package/src/collapsible/collapsible.tokens.json +6 -0
- package/src/color-picker/color-picker.css +106 -114
- package/src/column-manager/column-manager.css +111 -119
- package/src/combobox/combobox.css +219 -132
- package/src/combobox/combobox.tokens.json +4 -0
- package/src/command-palette/command-palette.css +214 -102
- package/src/command-palette/command-palette.tokens.json +4 -0
- package/src/container/container.css +27 -27
- package/src/context-menu/context-menu.css +9 -9
- package/src/currency-field/currency-field.css +119 -119
- package/src/currency-field/currency-field.tokens.json +1 -0
- package/src/dashboard-grid/dashboard-grid.css +231 -115
- package/src/dashboard-grid/dashboard-grid.tokens.json +3 -1
- package/src/data-grid/data-grid.css +637 -496
- package/src/data-grid/data-grid.tokens.json +5 -1
- package/src/data-list/data-list.css +93 -76
- package/src/data-list/data-list.tokens.json +2 -1
- package/src/date-field/date-field.css +62 -57
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +31 -269
- package/src/date-picker/date-picker.tokens.json +1 -21
- package/src/date-range-picker/date-range-picker.css +72 -528
- package/src/date-range-picker/date-range-picker.tokens.json +1 -37
- package/src/datetime-field/datetime-field.css +90 -90
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +49 -711
- package/src/datetime-picker/datetime-picker.tokens.json +1 -50
- package/src/datetime-range-picker/datetime-range-picker.css +60 -985
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +1 -67
- package/src/description-list/description-list.css +120 -76
- package/src/description-list/description-list.tokens.json +1 -0
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +462 -199
- package/src/dialog/dialog.tokens.json +10 -0
- package/src/divider/divider.css +20 -20
- package/src/drawer/drawer.css +736 -237
- package/src/drawer/drawer.tokens.json +15 -0
- package/src/entity-picker/entity-picker.css +402 -272
- package/src/entity-picker/entity-picker.tokens.json +6 -0
- package/src/event-calendar/event-calendar.css +357 -399
- package/src/field/field.css +106 -93
- package/src/field/field.tokens.json +2 -0
- package/src/field-group/field-group.css +58 -38
- package/src/field-group/field-group.tokens.json +3 -0
- package/src/filter-bar/filter-bar.css +224 -216
- package/src/floating-panel/floating-panel.css +147 -0
- package/src/floating-panel/floating-panel.tokens.json +32 -0
- package/src/form/form.css +103 -26
- package/src/form/form.tokens.json +6 -1
- package/src/fullscreen/fullscreen.css +26 -27
- package/src/grid/grid.css +32 -31
- package/src/highlight/highlight.css +11 -11
- package/src/hover-card/hover-card.css +9 -9
- package/src/icon/icon.css +67 -20
- package/src/icon/icon.tokens.json +1 -0
- package/src/image/image.css +42 -42
- package/src/import-export-center/import-export-center.css +147 -168
- package/src/import-export-center/import-export-center.tokens.json +1 -0
- package/src/inline/inline.css +29 -29
- package/src/inline-message/inline-message.css +162 -86
- package/src/inline-message/inline-message.tokens.json +5 -0
- package/src/kbd/kbd.css +63 -51
- package/src/kbd/kbd.tokens.json +4 -0
- package/src/link/link.css +54 -33
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +55 -24
- package/src/list/list.tokens.json +2 -0
- package/src/list-item/list-item.css +195 -80
- package/src/list-item/list-item.tokens.json +10 -0
- package/src/listbox/listbox.css +121 -72
- package/src/listbox/listbox.tokens.json +6 -1
- package/src/loading-overlay/loading-overlay.css +86 -103
- package/src/markdown/markdown.css +20 -20
- package/src/media-viewer/media-viewer.css +790 -0
- package/src/media-viewer/media-viewer.tokens.json +53 -0
- package/src/menu/menu.css +166 -83
- package/src/menu/menu.tokens.json +3 -1
- package/src/menubar/menubar.css +16 -16
- package/src/message/message.css +1296 -1243
- package/src/message/message.tokens.json +14 -0
- package/src/message-scroller/message-scroller.css +323 -320
- package/src/meter/meter.css +136 -0
- package/src/meter/meter.tokens.json +23 -0
- package/src/multi-select/multi-select.css +246 -174
- package/src/multi-select/multi-select.tokens.json +3 -0
- package/src/navigation-menu/navigation-menu.css +170 -191
- package/src/navigation-menu/navigation-menu.tokens.json +1 -0
- package/src/notification-center/notification-center.css +155 -163
- package/src/notification-center/notification-center.tokens.json +4 -0
- package/src/number-field/number-field.css +93 -93
- package/src/number-field/number-field.tokens.json +1 -0
- package/src/otp-input/otp-input.css +74 -64
- package/src/otp-input/otp-input.tokens.json +1 -0
- package/src/page/page.css +109 -31
- package/src/page/page.tokens.json +8 -0
- package/src/page-header/page-header.css +342 -287
- package/src/page-header/page-header.tokens.json +6 -1
- package/src/pagination/pagination.css +75 -79
- package/src/picker-panel/picker-panel.css +1074 -0
- package/src/picker-panel/picker-panel.tokens.json +77 -0
- package/src/popover/popover.css +85 -65
- package/src/popover/popover.tokens.json +2 -0
- package/src/progress-indicator/progress-indicator.css +194 -137
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +274 -116
- package/src/prompt-composer/prompt-composer.tokens.json +15 -0
- package/src/prose/prose.css +77 -82
- package/src/radio-group/radio-group.css +107 -112
- package/src/rating/rating.css +147 -143
- package/src/rating/rating.tokens.json +2 -0
- package/src/result-state/result-state.css +95 -102
- package/src/result-state/result-state.tokens.json +1 -0
- package/src/runtime-properties.mjs +44 -6
- package/src/saved-views/saved-views.css +43 -49
- package/src/scroll-area/scroll-area.css +50 -37
- package/src/section/section.css +311 -46
- package/src/section/section.tokens.json +13 -1
- package/src/segmented-control/segmented-control.css +221 -133
- package/src/segmented-control/segmented-control.tokens.json +7 -11
- package/src/select/select.css +226 -149
- package/src/select/select.tokens.json +4 -0
- package/src/side-navigation/side-navigation.css +204 -201
- package/src/side-navigation/side-navigation.tokens.json +2 -0
- package/src/skeleton/skeleton.css +76 -58
- package/src/slider/slider.css +108 -104
- package/src/slider/slider.tokens.json +1 -0
- package/src/sparkline/sparkline.css +75 -53
- package/src/sparkline/sparkline.tokens.json +2 -0
- package/src/spinner/spinner.css +83 -180
- package/src/spinner/spinner.tokens.json +0 -1
- package/src/split-button/split-button.css +34 -35
- package/src/split-button/split-button.tokens.json +1 -0
- package/src/splitter/splitter.css +47 -48
- package/src/stack/stack.css +26 -26
- package/src/stat-card/stat-card.css +420 -245
- package/src/stat-card/stat-card.tokens.json +8 -0
- package/src/status-indicator/status-indicator.css +126 -101
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +78 -82
- package/src/switch/switch.css +143 -125
- package/src/switch/switch.tokens.json +4 -0
- package/src/table/table.css +653 -222
- package/src/table/table.tokens.json +10 -0
- package/src/table-of-contents/table-of-contents.css +60 -59
- package/src/table-of-contents/table-of-contents.tokens.json +1 -0
- package/src/tabs/tabs.css +327 -294
- package/src/tabs/tabs.tokens.json +7 -1
- package/src/tag/tag.css +113 -89
- package/src/tag/tag.tokens.json +11 -0
- package/src/tags-input/tags-input.css +152 -87
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +146 -148
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +38 -33
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +82 -77
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +30 -519
- package/src/time-picker/time-picker.tokens.json +1 -38
- package/src/time-range-picker/time-range-picker.css +53 -895
- package/src/time-range-picker/time-range-picker.tokens.json +1 -66
- package/src/timeline/timeline.css +280 -292
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +139 -122
- package/src/toast/toast.tokens.json +7 -0
- package/src/toggle/toggle.css +34 -38
- package/src/toggle-group/toggle-group.css +73 -77
- package/src/toolbar/toolbar.css +49 -40
- package/src/toolbar/toolbar.tokens.json +2 -1
- package/src/tooltip/tooltip.css +95 -39
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +253 -269
- package/src/top-navigation/top-navigation.tokens.json +1 -0
- package/src/tour/tour.css +68 -74
- package/src/tour/tour.tokens.json +1 -0
- package/src/transfer/transfer.css +164 -168
- package/src/tree/tree.css +118 -122
- package/src/typography/typography.css +67 -38
- package/src/typography/typography.tokens.json +2 -0
- package/src/upload/upload.css +256 -257
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +187 -199
package/src/table/table.css
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* `prose` makes the same division for the same reason, and every token below
|
|
15
15
|
* is declared here so both boxes and every cell read one set.
|
|
16
16
|
*/
|
|
17
|
-
[data-ui
|
|
17
|
+
[data-ui-table][data-part-root] {
|
|
18
18
|
/* Geometry. Every value is the control scale's, because a row is a
|
|
19
19
|
control-sized thing: one theme decision retunes the rows, the buttons and
|
|
20
20
|
the fields together, and `@media (pointer: coarse)` grows all three at
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
);
|
|
48
48
|
/* One line of the table's own text, which is what a mark beside a value is
|
|
49
49
|
aligned against — the row is taller than one line whenever a value wraps,
|
|
50
|
-
and a control
|
|
50
|
+
and a control centerd in the cell would then float away from the line it
|
|
51
51
|
belongs to. */
|
|
52
52
|
--_line: calc(var(--_font-size) * var(--slotted-line-height-md, 1.5));
|
|
53
53
|
--_radius: var(--slotted-table-radius, var(--slotted-radius-md, 6px));
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
max-inline-size: 100%;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
[data-ui
|
|
149
|
+
[data-ui-table][data-variant='framed'] {
|
|
150
150
|
border: var(--_rule-width) solid var(--_rule);
|
|
151
151
|
border-radius: var(--_radius);
|
|
152
152
|
/**
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
* press Tab for nothing, and a wide table with no tab stop is unreachable
|
|
181
181
|
* without a pointer.
|
|
182
182
|
*/
|
|
183
|
-
[data-ui
|
|
183
|
+
[data-ui-table] [data-part-scroll] {
|
|
184
184
|
/* `overscroll-behavior-inline: contain` keeps a sideways flick inside the
|
|
185
185
|
table instead of walking the page back a step, which is the gesture a
|
|
186
186
|
wide table on a trackpad produces constantly. */
|
|
@@ -189,8 +189,14 @@
|
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
/* The ring is drawn inside, because a scroller flush against the frame would
|
|
192
|
-
otherwise draw half its ring outside it.
|
|
193
|
-
|
|
192
|
+
otherwise draw half its ring outside it. It is drawn for a focus from the
|
|
193
|
+
keyboard: a click on a cell focuses the scroller too, and the next Shift
|
|
194
|
+
would make it match `:focus-visible` (`createFocusOrigin`). The browser's own
|
|
195
|
+
ring is suppressed for the same focus. */
|
|
196
|
+
[data-ui-table] [data-part-scroll]:focus {
|
|
197
|
+
outline: none;
|
|
198
|
+
}
|
|
199
|
+
[data-ui-table] [data-part-scroll]:focus-visible[data-focus-origin='keyboard'] {
|
|
194
200
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
195
201
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
196
202
|
}
|
|
@@ -204,7 +210,7 @@
|
|
|
204
210
|
* a border radius. The rules are therefore drawn as one edge on each cell,
|
|
205
211
|
* never as a border on the row.
|
|
206
212
|
*/
|
|
207
|
-
[data-ui
|
|
213
|
+
[data-ui-table] [data-part-table] {
|
|
208
214
|
border-collapse: separate;
|
|
209
215
|
border-spacing: 0;
|
|
210
216
|
/* The table fills the scroller and grows past it when its columns need
|
|
@@ -214,7 +220,7 @@
|
|
|
214
220
|
text-align: start;
|
|
215
221
|
}
|
|
216
222
|
|
|
217
|
-
[data-ui
|
|
223
|
+
[data-ui-table][data-layout='fixed'] [data-part-table] {
|
|
218
224
|
inline-size: 100%;
|
|
219
225
|
table-layout: fixed;
|
|
220
226
|
}
|
|
@@ -227,7 +233,7 @@
|
|
|
227
233
|
* consumer who hides it with `visually-hidden` loses the picture and keeps
|
|
228
234
|
* the name.
|
|
229
235
|
*/
|
|
230
|
-
[data-ui
|
|
236
|
+
[data-ui-table] [data-part-caption] {
|
|
231
237
|
caption-side: block-start;
|
|
232
238
|
color: var(--_muted);
|
|
233
239
|
font-size: var(--slotted-font-size-xs, 0.75rem);
|
|
@@ -236,6 +242,26 @@
|
|
|
236
242
|
text-align: start;
|
|
237
243
|
}
|
|
238
244
|
|
|
245
|
+
/* The name without the picture: a table under a heading that already names
|
|
246
|
+
it. The caption keeps naming the table and takes no box, so the space
|
|
247
|
+
above the header row is the space under the last row. */
|
|
248
|
+
/* Inside a frame the caption is the top of the same band as the header,
|
|
249
|
+
not a band of the table's surface above it. */
|
|
250
|
+
[data-ui-table][data-variant='framed'] [data-part-caption] {
|
|
251
|
+
background-color: var(--slotted-table-caption-surface, var(--_head-surface));
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
[data-ui-table] [data-part-caption][data-visually-hidden] {
|
|
255
|
+
block-size: 1px;
|
|
256
|
+
clip-path: inset(50%);
|
|
257
|
+
inline-size: 1px;
|
|
258
|
+
margin: -1px;
|
|
259
|
+
overflow: hidden;
|
|
260
|
+
padding: 0;
|
|
261
|
+
position: absolute;
|
|
262
|
+
white-space: nowrap;
|
|
263
|
+
}
|
|
264
|
+
|
|
239
265
|
/**
|
|
240
266
|
* ── The header ─────────────────────────────────────────────────────────
|
|
241
267
|
*
|
|
@@ -251,8 +277,11 @@
|
|
|
251
277
|
column header above the alignment rule that comes after it — a header
|
|
252
278
|
carrying data-align="end" computed text-align: start, so a numeric
|
|
253
279
|
column's digits ended at one edge and their name at the other. */
|
|
254
|
-
[data-ui
|
|
255
|
-
[data-ui
|
|
280
|
+
[data-ui-table] [data-part-column-header],
|
|
281
|
+
[data-ui-table] [data-part-head] [data-part-selection] {
|
|
282
|
+
/* What a pinned header cell paints, in place of its row's ground. */
|
|
283
|
+
--_pinned-ground: var(--_head-surface);
|
|
284
|
+
|
|
256
285
|
background-color: var(--_head-surface);
|
|
257
286
|
border-block-end: var(--_rule-width) solid var(--_rule-strong);
|
|
258
287
|
color: var(--_text);
|
|
@@ -272,15 +301,35 @@
|
|
|
272
301
|
vertical-align: bottom;
|
|
273
302
|
}
|
|
274
303
|
|
|
275
|
-
[data-ui
|
|
304
|
+
[data-ui-table][data-variant='plain'] [data-part-column-header] {
|
|
305
|
+
--_pinned-ground: transparent;
|
|
306
|
+
|
|
276
307
|
background-color: transparent;
|
|
277
308
|
}
|
|
278
309
|
|
|
279
310
|
/**
|
|
280
311
|
* ── Rows and cells ─────────────────────────────────────────────────────
|
|
281
312
|
*/
|
|
282
|
-
[data-ui
|
|
283
|
-
|
|
313
|
+
[data-ui-table] [data-part-row] {
|
|
314
|
+
/* Published for a pinned cell, which paints it over an opaque ground. */
|
|
315
|
+
--_row-ground: var(--_surface);
|
|
316
|
+
|
|
317
|
+
background-color: var(--_row-ground);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* In the body the cells paint the row's ground, not the row. A pinned cell
|
|
322
|
+
* paints that ground over its own surface, and above a row that painted it
|
|
323
|
+
* too a translucent ground showed twice on the pinned column: a hover of 6%
|
|
324
|
+
* read as 12% there. Each cell is one layer, pinned or not. `:where()` keeps
|
|
325
|
+
* the rule under every other ground a cell states.
|
|
326
|
+
*/
|
|
327
|
+
[data-ui-table] [data-part-body] > [data-part-row] {
|
|
328
|
+
background-color: transparent;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
[data-ui-table] :where([data-part-body] > [data-part-row] > *) {
|
|
332
|
+
background-color: var(--_row-ground);
|
|
284
333
|
}
|
|
285
334
|
|
|
286
335
|
/**
|
|
@@ -288,7 +337,7 @@
|
|
|
288
337
|
*
|
|
289
338
|
* The middle, because a row is as tall as its tallest cell: a one-line value
|
|
290
339
|
* beside a three-line one reads as belonging to the same record when both are
|
|
291
|
-
*
|
|
340
|
+
* centerd, and reads as hanging from the ceiling when both are not. It is the
|
|
292
341
|
* answer Carbon, AG Grid and Material each arrive at, and the answer a table
|
|
293
342
|
* of one-line rows cannot tell apart.
|
|
294
343
|
*
|
|
@@ -299,20 +348,26 @@
|
|
|
299
348
|
* because the cell that wants the other answer is usually one: the actions
|
|
300
349
|
* pinned at the end of a tall row.
|
|
301
350
|
*/
|
|
302
|
-
[data-ui
|
|
351
|
+
[data-ui-table] {
|
|
303
352
|
--_cell-align: middle;
|
|
304
353
|
}
|
|
305
354
|
|
|
306
|
-
[data-ui
|
|
355
|
+
[data-ui-table][data-cell-align='start'] {
|
|
307
356
|
--_cell-align: top;
|
|
308
357
|
}
|
|
309
358
|
|
|
310
|
-
[data-ui
|
|
359
|
+
[data-ui-table][data-cell-align='end'] {
|
|
311
360
|
--_cell-align: bottom;
|
|
312
361
|
}
|
|
313
362
|
|
|
314
|
-
[data-ui
|
|
315
|
-
[data-ui
|
|
363
|
+
[data-ui-table] [data-part-cell],
|
|
364
|
+
[data-ui-table] [data-part-row-header] {
|
|
365
|
+
/* Published on the cell and not on the root, where the private values
|
|
366
|
+
read these two names: content drawn inside a cell reads the padding in
|
|
367
|
+
use, and an override set by the application still wins. */
|
|
368
|
+
--slotted-table-cell-padding-block: var(--_pad-block);
|
|
369
|
+
--slotted-table-cell-padding-inline: var(--_pad-inline);
|
|
370
|
+
|
|
316
371
|
padding-block: var(--_pad-block);
|
|
317
372
|
padding-inline: var(--_pad-inline);
|
|
318
373
|
text-align: start;
|
|
@@ -333,52 +388,46 @@
|
|
|
333
388
|
* inset because it is not one of the parts named here — a table that leads
|
|
334
389
|
* with a chooser has no text at its edge.
|
|
335
390
|
*/
|
|
336
|
-
[data-ui
|
|
391
|
+
[data-ui-table][data-part-root] {
|
|
337
392
|
--_edge-inset: var(--_pad-inline);
|
|
338
393
|
}
|
|
339
394
|
|
|
340
|
-
[data-ui
|
|
395
|
+
[data-ui-table][data-part-root][data-edges='flush']:is(
|
|
341
396
|
[data-variant='plain'],
|
|
342
397
|
[data-variant='ruled']
|
|
343
398
|
) {
|
|
344
399
|
--_edge-inset: var(--slotted-table-edge-inset, 0px);
|
|
345
400
|
}
|
|
346
401
|
|
|
347
|
-
[data-ui
|
|
348
|
-
[data-part
|
|
349
|
-
> :is([data-part
|
|
350
|
-
[data-ui
|
|
351
|
-
[data-part
|
|
352
|
-
> [data-part
|
|
353
|
-
[data-ui
|
|
354
|
-
[data-part='row']
|
|
355
|
-
> [data-part='column-header']:first-child
|
|
356
|
-
> [data-part='sort'] {
|
|
402
|
+
[data-ui-table]
|
|
403
|
+
[data-part-row]
|
|
404
|
+
> :is([data-part-cell], [data-part-row-header], [data-part-group-header]):first-child,
|
|
405
|
+
[data-ui-table]
|
|
406
|
+
[data-part-row]
|
|
407
|
+
> [data-part-column-header]:first-child:not(:has(> [data-part-sort])),
|
|
408
|
+
[data-ui-table] [data-part-row] > [data-part-column-header]:first-child > [data-part-sort] {
|
|
357
409
|
padding-inline-start: var(--_edge-inset);
|
|
358
410
|
}
|
|
359
411
|
|
|
360
|
-
[data-ui
|
|
361
|
-
[data-part
|
|
362
|
-
> :is([data-part
|
|
363
|
-
[data-ui
|
|
364
|
-
[data-part
|
|
365
|
-
> [data-part
|
|
366
|
-
[data-ui
|
|
367
|
-
[data-part='row']
|
|
368
|
-
> [data-part='column-header']:last-child
|
|
369
|
-
> [data-part='sort'] {
|
|
412
|
+
[data-ui-table]
|
|
413
|
+
[data-part-row]
|
|
414
|
+
> :is([data-part-cell], [data-part-row-header], [data-part-group-header]):last-child,
|
|
415
|
+
[data-ui-table]
|
|
416
|
+
[data-part-row]
|
|
417
|
+
> [data-part-column-header]:last-child:not(:has(> [data-part-sort])),
|
|
418
|
+
[data-ui-table] [data-part-row] > [data-part-column-header]:last-child > [data-part-sort] {
|
|
370
419
|
padding-inline-end: var(--_edge-inset);
|
|
371
420
|
}
|
|
372
421
|
|
|
373
|
-
[data-ui
|
|
422
|
+
[data-ui-table] [data-block-align='start'] {
|
|
374
423
|
vertical-align: top;
|
|
375
424
|
}
|
|
376
425
|
|
|
377
|
-
[data-ui
|
|
426
|
+
[data-ui-table] [data-block-align='center'] {
|
|
378
427
|
vertical-align: middle;
|
|
379
428
|
}
|
|
380
429
|
|
|
381
|
-
[data-ui
|
|
430
|
+
[data-ui-table] [data-block-align='end'] {
|
|
382
431
|
vertical-align: bottom;
|
|
383
432
|
}
|
|
384
433
|
|
|
@@ -407,24 +456,24 @@
|
|
|
407
456
|
* `timeline` or a nested table has a `plain` variant of its own and is not a
|
|
408
457
|
* control. `table.styles.test.mjs` holds the two lists against each other.
|
|
409
458
|
*/
|
|
410
|
-
[data-ui
|
|
411
|
-
:is([data-part
|
|
412
|
-
> [data-part
|
|
413
|
-
[data-ui
|
|
414
|
-
[data-ui
|
|
415
|
-
[data-ui
|
|
416
|
-
[data-ui
|
|
417
|
-
[data-ui
|
|
418
|
-
[data-ui
|
|
419
|
-
[data-ui
|
|
420
|
-
[data-ui
|
|
421
|
-
[data-ui
|
|
422
|
-
[data-ui
|
|
423
|
-
[data-ui
|
|
424
|
-
[data-ui
|
|
425
|
-
[data-ui
|
|
426
|
-
[data-ui
|
|
427
|
-
[data-ui
|
|
459
|
+
[data-ui-table]
|
|
460
|
+
:is([data-part-cell], [data-part-row-header]):has(
|
|
461
|
+
> [data-part-root][data-variant='plain']:is(
|
|
462
|
+
[data-ui-select],
|
|
463
|
+
[data-ui-combobox],
|
|
464
|
+
[data-ui-multi-select],
|
|
465
|
+
[data-ui-text-field],
|
|
466
|
+
[data-ui-textarea],
|
|
467
|
+
[data-ui-number-field],
|
|
468
|
+
[data-ui-currency-field],
|
|
469
|
+
[data-ui-date-field],
|
|
470
|
+
[data-ui-time-field],
|
|
471
|
+
[data-ui-datetime-field],
|
|
472
|
+
[data-ui-tags-input],
|
|
473
|
+
[data-ui-date-range-picker],
|
|
474
|
+
[data-ui-time-range-picker],
|
|
475
|
+
[data-ui-datetime-range-picker],
|
|
476
|
+
[data-ui-entity-picker]
|
|
428
477
|
)
|
|
429
478
|
) {
|
|
430
479
|
--slotted-control-padding-inline-sm: var(--_pad-inline);
|
|
@@ -438,11 +487,11 @@
|
|
|
438
487
|
}
|
|
439
488
|
|
|
440
489
|
/* A row header names the record, so it carries the weight one step above the
|
|
441
|
-
values beside it and nothing else. It states no
|
|
490
|
+
values beside it and nothing else. It states no color of its own: read
|
|
442
491
|
against the row's ink, a selected record's name stayed the page's black
|
|
443
492
|
while every value beside it turned accent, and a disabled row's name stayed
|
|
444
493
|
at full strength — the two states the row paints and this cell refused. */
|
|
445
|
-
[data-ui
|
|
494
|
+
[data-ui-table] [data-part-row-header] {
|
|
446
495
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
447
496
|
}
|
|
448
497
|
|
|
@@ -450,16 +499,16 @@
|
|
|
450
499
|
it under `border-collapse: separate`. The last row of the body gives its
|
|
451
500
|
rule up unless a footer follows, so a `ruled` table does not end in a line
|
|
452
501
|
with nothing under it. */
|
|
453
|
-
[data-ui
|
|
454
|
-
[data-part
|
|
455
|
-
> [data-part
|
|
502
|
+
[data-ui-table]:is([data-variant='ruled'], [data-variant='framed'])
|
|
503
|
+
[data-part-body]
|
|
504
|
+
> [data-part-row]
|
|
456
505
|
> * {
|
|
457
506
|
border-block-end: var(--_rule-width) solid var(--_rule);
|
|
458
507
|
}
|
|
459
508
|
|
|
460
|
-
[data-ui
|
|
461
|
-
[data-part
|
|
462
|
-
> [data-part
|
|
509
|
+
[data-ui-table]:is([data-variant='ruled'], [data-variant='framed'])
|
|
510
|
+
[data-part-body]
|
|
511
|
+
> [data-part-row]:last-child
|
|
463
512
|
> * {
|
|
464
513
|
border-block-end-color: transparent;
|
|
465
514
|
}
|
|
@@ -469,8 +518,8 @@
|
|
|
469
518
|
`nth-child(even)` counts rows the family renders; a detail row is a row of
|
|
470
519
|
the same body, so the stripe follows the record it belongs to rather than
|
|
471
520
|
alternating around it — see the detail rule below. */
|
|
472
|
-
[data-ui
|
|
473
|
-
|
|
521
|
+
[data-ui-table][data-striped] [data-part-body] > [data-part-row]:nth-child(even) {
|
|
522
|
+
--_row-ground: var(--_stripe);
|
|
474
523
|
}
|
|
475
524
|
|
|
476
525
|
/**
|
|
@@ -481,8 +530,8 @@
|
|
|
481
530
|
* every pointer state rather than a rule of its own: a row a consumer has
|
|
482
531
|
* disabled does not answer the pointer at all.
|
|
483
532
|
*/
|
|
484
|
-
[data-ui
|
|
485
|
-
|
|
533
|
+
[data-ui-table] [data-part-body] > [data-part-row]:not([data-disabled]):hover {
|
|
534
|
+
--_row-ground: var(--_hover);
|
|
486
535
|
}
|
|
487
536
|
|
|
488
537
|
/**
|
|
@@ -494,21 +543,32 @@
|
|
|
494
543
|
*
|
|
495
544
|
* The ink is what carries the state where the ground cannot: every tone
|
|
496
545
|
* ground is the page's own white in `high-contrast`, and the checkbox's mark
|
|
497
|
-
* is what survives forced
|
|
546
|
+
* is what survives forced colors, which is where WCAG 2.2 SC 1.4.1 puts the
|
|
498
547
|
* requirement anyway.
|
|
499
548
|
*/
|
|
500
|
-
[data-ui
|
|
501
|
-
|
|
549
|
+
[data-ui-table] [data-part-body] > [data-part-row][data-selected] {
|
|
550
|
+
--_row-ground: var(--_selected);
|
|
502
551
|
color: var(--_selected-text);
|
|
503
552
|
}
|
|
504
553
|
|
|
505
|
-
[data-ui
|
|
506
|
-
|
|
507
|
-
> [data-part='row'][data-selected]:not([data-disabled]):hover {
|
|
508
|
-
background-color: var(--_selected-hover);
|
|
554
|
+
[data-ui-table] [data-part-body] > [data-part-row][data-selected]:not([data-disabled]):hover {
|
|
555
|
+
--_row-ground: var(--_selected-hover);
|
|
509
556
|
}
|
|
510
557
|
|
|
511
|
-
|
|
558
|
+
/**
|
|
559
|
+
* A record that is no longer active: the row's ink steps down to the muted
|
|
560
|
+
* ink, and every cell and the row header read it by inheritance. The rule
|
|
561
|
+
* stands above `selected` and `disabled`, which state their own ink and win.
|
|
562
|
+
* A link in the row takes the muted ink as its color at rest and keeps the
|
|
563
|
+
* accent under the pointer.
|
|
564
|
+
*/
|
|
565
|
+
[data-ui-table] [data-part-row][data-muted] {
|
|
566
|
+
--slotted-link-color: var(--_muted);
|
|
567
|
+
|
|
568
|
+
color: var(--_muted);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
[data-ui-table] [data-part-row][data-disabled] {
|
|
512
572
|
color: var(--slotted-disabled-foreground, GrayText);
|
|
513
573
|
}
|
|
514
574
|
|
|
@@ -519,15 +579,15 @@
|
|
|
519
579
|
* pinned cell copies the row's ground and a translucent one shows the
|
|
520
580
|
* scrolled cells through it. Selection is stronger and paints over it.
|
|
521
581
|
*/
|
|
522
|
-
[data-ui
|
|
523
|
-
|
|
582
|
+
[data-ui-table] [data-part-body] > [data-part-row][data-current]:not([data-selected]) {
|
|
583
|
+
--_row-ground: var(
|
|
524
584
|
--slotted-table-row-surface-current,
|
|
525
585
|
var(--slotted-tone-secondary-subtle-active, ButtonFace)
|
|
526
586
|
);
|
|
527
587
|
}
|
|
528
588
|
|
|
529
589
|
/* A row with an action of its own is a thing the pointer presses. */
|
|
530
|
-
[data-ui
|
|
590
|
+
[data-ui-table] [data-part-body] > [data-part-row][data-interactive]:not([data-disabled]) {
|
|
531
591
|
cursor: pointer;
|
|
532
592
|
}
|
|
533
593
|
|
|
@@ -539,7 +599,7 @@
|
|
|
539
599
|
* up. The ground is the stripe's step, opaque for the same reason a pinned
|
|
540
600
|
* cell's is, and the band stays where it is when the pointer passes.
|
|
541
601
|
*/
|
|
542
|
-
[data-ui
|
|
602
|
+
[data-ui-table] [data-part-group-header] {
|
|
543
603
|
background-color: var(--slotted-table-group-surface, var(--_stripe));
|
|
544
604
|
border-block-end: var(--_rule-width) solid var(--_rule);
|
|
545
605
|
color: var(--slotted-table-group-color, var(--_text));
|
|
@@ -549,7 +609,7 @@
|
|
|
549
609
|
text-align: start;
|
|
550
610
|
}
|
|
551
611
|
|
|
552
|
-
[data-ui
|
|
612
|
+
[data-ui-table] [data-part-group-content] {
|
|
553
613
|
align-items: baseline;
|
|
554
614
|
display: flex;
|
|
555
615
|
gap: var(--_gap);
|
|
@@ -557,7 +617,34 @@
|
|
|
557
617
|
min-inline-size: 0;
|
|
558
618
|
}
|
|
559
619
|
|
|
560
|
-
|
|
620
|
+
/*
|
|
621
|
+
* A table wider than its scroller kept the group's total at the end of the
|
|
622
|
+
* full table width, off screen until the reader scrolled all the way across,
|
|
623
|
+
* and the name left the view on the way. The band's ground and rule still
|
|
624
|
+
* span the table; its content is the scroller's width, pinned to its start,
|
|
625
|
+
* so the name and the total stay in view at every scroll position. The
|
|
626
|
+
* scroller is a size container only when it holds a group row.
|
|
627
|
+
*/
|
|
628
|
+
[data-ui-table] [data-part-scroll]:has([data-part-group-row]) {
|
|
629
|
+
container-type: inline-size;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
[data-ui-table]
|
|
633
|
+
[data-part-scroll]:has([data-part-group-row])
|
|
634
|
+
[data-part-group-row]
|
|
635
|
+
> [data-part-group-header] {
|
|
636
|
+
padding-inline: 0;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
[data-ui-table] [data-part-scroll]:has([data-part-group-row]) [data-part-group-content] {
|
|
640
|
+
box-sizing: border-box;
|
|
641
|
+
inline-size: min(100cqi, 100%);
|
|
642
|
+
inset-inline-start: 0;
|
|
643
|
+
padding-inline: var(--_pad-inline);
|
|
644
|
+
position: sticky;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
[data-ui-table] [data-part-group-end] {
|
|
561
648
|
font-variant-numeric: tabular-nums;
|
|
562
649
|
text-align: end;
|
|
563
650
|
white-space: nowrap;
|
|
@@ -568,15 +655,15 @@
|
|
|
568
655
|
* header's height is one row of the control scale and its rule; a header
|
|
569
656
|
* that wraps sets `--slotted-table-group-sticky-offset` itself.
|
|
570
657
|
*/
|
|
571
|
-
[data-ui
|
|
658
|
+
[data-ui-table] [data-part-group-row][data-sticky] > [data-part-group-header] {
|
|
572
659
|
inset-block-start: var(--slotted-table-group-sticky-offset, 0);
|
|
573
660
|
position: sticky;
|
|
574
661
|
z-index: var(--slotted-z-index-sticky, 100);
|
|
575
662
|
}
|
|
576
663
|
|
|
577
|
-
[data-ui
|
|
578
|
-
[data-part
|
|
579
|
-
> [data-part
|
|
664
|
+
[data-ui-table][data-sticky-header]
|
|
665
|
+
[data-part-group-row][data-sticky]
|
|
666
|
+
> [data-part-group-header] {
|
|
580
667
|
inset-block-start: var(
|
|
581
668
|
--slotted-table-group-sticky-offset,
|
|
582
669
|
calc(var(--_row-min-block) + var(--_rule-width))
|
|
@@ -584,7 +671,7 @@
|
|
|
584
671
|
}
|
|
585
672
|
|
|
586
673
|
@media (forced-colors: active) {
|
|
587
|
-
[data-ui
|
|
674
|
+
[data-ui-table] [data-part-body] > [data-part-row][data-current] {
|
|
588
675
|
outline: var(--_rule-width) solid Highlight;
|
|
589
676
|
outline-offset: calc(var(--_rule-width) * -1);
|
|
590
677
|
}
|
|
@@ -598,25 +685,25 @@
|
|
|
598
685
|
* `start` and `end` are the logical values, so a column aligned to the end is
|
|
599
686
|
* on the right in English and on the left in Arabic.
|
|
600
687
|
*/
|
|
601
|
-
[data-ui
|
|
688
|
+
[data-ui-table] [data-align='start'] {
|
|
602
689
|
text-align: start;
|
|
603
690
|
}
|
|
604
691
|
|
|
605
|
-
[data-ui
|
|
692
|
+
[data-ui-table] [data-align='center'] {
|
|
606
693
|
text-align: center;
|
|
607
694
|
}
|
|
608
695
|
|
|
609
|
-
[data-ui
|
|
696
|
+
[data-ui-table] [data-align='end'] {
|
|
610
697
|
text-align: end;
|
|
611
698
|
}
|
|
612
699
|
|
|
613
700
|
/* A ten under a nine is only a column if the digits are the same width. The
|
|
614
701
|
alignment is inferred once, and only where the consumer stated none. */
|
|
615
|
-
[data-ui
|
|
702
|
+
[data-ui-table] [data-numeric] {
|
|
616
703
|
font-variant-numeric: tabular-nums;
|
|
617
704
|
}
|
|
618
705
|
|
|
619
|
-
[data-ui
|
|
706
|
+
[data-ui-table] [data-numeric]:not([data-align]) {
|
|
620
707
|
text-align: end;
|
|
621
708
|
}
|
|
622
709
|
|
|
@@ -627,18 +714,18 @@
|
|
|
627
714
|
* decision is that a truncated string stays readable to assistive technology
|
|
628
715
|
* and reachable in full.
|
|
629
716
|
*/
|
|
630
|
-
[data-ui
|
|
717
|
+
[data-ui-table] [data-text='wrap'] {
|
|
631
718
|
/* An identifier, a hash or a URL is one unbroken token, and every surveyed
|
|
632
719
|
table lets it set the column's width and push the rest of the table
|
|
633
720
|
sideways. */
|
|
634
721
|
overflow-wrap: anywhere;
|
|
635
722
|
}
|
|
636
723
|
|
|
637
|
-
[data-ui
|
|
724
|
+
[data-ui-table] [data-text='nowrap'] {
|
|
638
725
|
white-space: nowrap;
|
|
639
726
|
}
|
|
640
727
|
|
|
641
|
-
[data-ui
|
|
728
|
+
[data-ui-table] [data-text='truncate'] {
|
|
642
729
|
overflow: hidden;
|
|
643
730
|
text-overflow: ellipsis;
|
|
644
731
|
white-space: nowrap;
|
|
@@ -680,24 +767,23 @@
|
|
|
680
767
|
* top, over the first rows. A `page` table inside a scrolling box of the
|
|
681
768
|
* consumer's own sets the offset on that box, `0` for its top edge.
|
|
682
769
|
*/
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
770
|
+
/* The `thead` is pinned as one element, not each cell: a backdrop filter
|
|
771
|
+
samples only inside the box that carries it, so a blur set per cell
|
|
772
|
+
restarted at every column boundary. Pinned as one, the head is the box a
|
|
773
|
+
theme blurs once (`--slotted-table-header-backdrop-filter`) and the
|
|
774
|
+
select-all moves with the columns beside it. */
|
|
775
|
+
[data-ui-table][data-sticky-header] [data-part-head] {
|
|
776
|
+
backdrop-filter: var(--slotted-table-header-backdrop-filter, none);
|
|
688
777
|
inset-block-start: 0;
|
|
689
778
|
position: sticky;
|
|
690
779
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 1);
|
|
691
780
|
}
|
|
692
781
|
|
|
693
|
-
[data-ui
|
|
694
|
-
[data-ui='table'][data-sticky-to='page'][data-sticky-header]
|
|
695
|
-
[data-part='head']
|
|
696
|
-
[data-part='selection'] {
|
|
782
|
+
[data-ui-table][data-sticky-to='page'][data-sticky-header] [data-part-head] {
|
|
697
783
|
inset-block-start: var(--slotted-table-sticky-offset, 0);
|
|
698
784
|
}
|
|
699
785
|
|
|
700
|
-
[data-ui
|
|
786
|
+
[data-ui-table][data-sticky-to='page'] [data-part-scroll] {
|
|
701
787
|
overflow: visible;
|
|
702
788
|
}
|
|
703
789
|
|
|
@@ -712,30 +798,43 @@
|
|
|
712
798
|
* It is the `tfoot` that is pinned and not the footer bar: the bar is a
|
|
713
799
|
* sibling of the scroller and never leaves it in the first place.
|
|
714
800
|
*/
|
|
715
|
-
[data-ui
|
|
801
|
+
[data-ui-table][data-sticky-footer] [data-part-summary] > [data-part-row] > * {
|
|
716
802
|
inset-block-end: 0;
|
|
717
803
|
position: sticky;
|
|
718
804
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 1);
|
|
719
805
|
}
|
|
720
806
|
|
|
721
|
-
[data-ui
|
|
722
|
-
[data-part
|
|
723
|
-
> [data-part
|
|
807
|
+
[data-ui-table][data-sticky-to='page'][data-sticky-footer]
|
|
808
|
+
[data-part-summary]
|
|
809
|
+
> [data-part-row]
|
|
724
810
|
> * {
|
|
725
811
|
inset-block-end: var(--slotted-table-sticky-offset-end, 0);
|
|
726
812
|
}
|
|
727
813
|
|
|
728
814
|
/* The corner again, at the bottom: a summary cell that is also a pinned
|
|
729
815
|
column takes both insets and the step above both. */
|
|
730
|
-
[data-ui
|
|
816
|
+
[data-ui-table][data-sticky-footer] [data-part-summary] [data-sticky] {
|
|
731
817
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 2);
|
|
732
818
|
}
|
|
733
819
|
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
820
|
+
/* The ground the row is painted with, whatever state it is in, so a
|
|
821
|
+
hovered, striped or selected row keeps one color across the seam — over
|
|
822
|
+
the page's own surface, so a row on a transparent table surface still
|
|
823
|
+
covers what scrolls under it. `inherit` copied a transparent row as is.
|
|
824
|
+
The layer under the row is the family's token, so a table drawn over a
|
|
825
|
+
card states the card's ground. It is painted whether the table overflows
|
|
826
|
+
or not: the overflow is known only after a measurement, and a column
|
|
827
|
+
pinned to the end has content under it from the first frame. */
|
|
828
|
+
[data-ui-table] [data-sticky] {
|
|
829
|
+
background:
|
|
830
|
+
linear-gradient(
|
|
831
|
+
var(--_pinned-ground, var(--_row-ground)),
|
|
832
|
+
var(--_pinned-ground, var(--_row-ground))
|
|
833
|
+
),
|
|
834
|
+
var(--slotted-table-sticky-surface, var(--slotted-ground, var(--slotted-surface, Canvas)));
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
[data-ui-table] [data-sticky='start'] {
|
|
739
838
|
/**
|
|
740
839
|
* Where the column stops, and it is stated rather than measured. Two
|
|
741
840
|
* columns pinned to the same edge both resolve against the scroller, so
|
|
@@ -749,15 +848,14 @@
|
|
|
749
848
|
z-index: var(--slotted-z-index-sticky, 100);
|
|
750
849
|
}
|
|
751
850
|
|
|
752
|
-
[data-ui
|
|
753
|
-
background-color: inherit;
|
|
851
|
+
[data-ui-table] [data-sticky='end'] {
|
|
754
852
|
inset-inline-end: var(--slotted-table-sticky-inset, 0);
|
|
755
853
|
position: sticky;
|
|
756
854
|
z-index: var(--slotted-z-index-sticky, 100);
|
|
757
855
|
}
|
|
758
856
|
|
|
759
|
-
[data-ui
|
|
760
|
-
[data-ui
|
|
857
|
+
[data-ui-table][data-sticky-header] [data-part-column-header][data-sticky],
|
|
858
|
+
[data-ui-table][data-sticky-header] [data-part-head] [data-part-selection][data-sticky] {
|
|
761
859
|
background-color: var(--_head-surface);
|
|
762
860
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 2);
|
|
763
861
|
}
|
|
@@ -790,7 +888,7 @@
|
|
|
790
888
|
positioned box, so the line below resolves against it — and a `relative`
|
|
791
889
|
written at this point in the file would land after the sticky rules and
|
|
792
890
|
unpin every pinned column. */
|
|
793
|
-
[data-ui
|
|
891
|
+
[data-ui-table] [data-sticky]::after {
|
|
794
892
|
background-color: var(--slotted-table-border-color, var(--slotted-border-subtle));
|
|
795
893
|
content: '';
|
|
796
894
|
inline-size: var(--_rule-width);
|
|
@@ -799,11 +897,11 @@
|
|
|
799
897
|
z-index: 1;
|
|
800
898
|
}
|
|
801
899
|
|
|
802
|
-
[data-ui
|
|
900
|
+
[data-ui-table] [data-sticky='start']::after {
|
|
803
901
|
inset-inline-end: 0;
|
|
804
902
|
}
|
|
805
903
|
|
|
806
|
-
[data-ui
|
|
904
|
+
[data-ui-table] [data-sticky='end']::after {
|
|
807
905
|
inset-inline-start: 0;
|
|
808
906
|
}
|
|
809
907
|
|
|
@@ -842,7 +940,7 @@
|
|
|
842
940
|
* so does this: the header cell gives up its inset and the control takes it,
|
|
843
941
|
* so the whole header is the target rather than the words inside it.
|
|
844
942
|
*/
|
|
845
|
-
[data-ui
|
|
943
|
+
[data-ui-table] [data-part-column-header]:has(> [data-part-sort]) {
|
|
846
944
|
padding: 0;
|
|
847
945
|
}
|
|
848
946
|
|
|
@@ -876,7 +974,7 @@
|
|
|
876
974
|
* consumer's own, so their width is not a fact this family holds, and
|
|
877
975
|
* measuring it would mean reading the layout during render.
|
|
878
976
|
*/
|
|
879
|
-
[data-ui
|
|
977
|
+
[data-ui-table] [data-part-column-header]:has(> [data-part-column-actions]) {
|
|
880
978
|
/**
|
|
881
979
|
* The room is what the slot actually occupies plus one gap: the slot stands
|
|
882
980
|
* `--_pad-inline` in from the cell's edge and its control is one target
|
|
@@ -893,7 +991,7 @@
|
|
|
893
991
|
padding-inline-end: var(--_actions-room);
|
|
894
992
|
}
|
|
895
993
|
|
|
896
|
-
[data-ui
|
|
994
|
+
[data-ui-table] [data-part-column-actions] {
|
|
897
995
|
align-items: center;
|
|
898
996
|
display: inline-flex;
|
|
899
997
|
gap: var(--_gap);
|
|
@@ -902,8 +1000,8 @@
|
|
|
902
1000
|
position: absolute;
|
|
903
1001
|
}
|
|
904
1002
|
|
|
905
|
-
[data-ui
|
|
906
|
-
/* The mark is
|
|
1003
|
+
[data-ui-table] [data-part-sort] {
|
|
1004
|
+
/* The mark is centerd on the text rather than dropped at the top of the
|
|
907
1005
|
line: with the default `stretch` resolving to `flex-start` under a stated
|
|
908
1006
|
block size, the chevron sat two pixels above the capitals and read as a
|
|
909
1007
|
mark nobody had placed. */
|
|
@@ -936,13 +1034,13 @@
|
|
|
936
1034
|
}
|
|
937
1035
|
|
|
938
1036
|
/* An aligned column keeps its name over its values, and the mark follows the
|
|
939
|
-
name rather than the cell: a
|
|
1037
|
+
name rather than the cell: a centerd column reads as a centerd pair, and a
|
|
940
1038
|
numeric column's name and mark both stand at the edge its digits end on. */
|
|
941
|
-
[data-ui
|
|
1039
|
+
[data-ui-table] [data-align='center'] > [data-part-sort] {
|
|
942
1040
|
justify-content: center;
|
|
943
1041
|
}
|
|
944
1042
|
|
|
945
|
-
[data-ui
|
|
1043
|
+
[data-ui-table] :is([data-align='end'], [data-numeric]:not([data-align])) > [data-part-sort] {
|
|
946
1044
|
justify-content: end;
|
|
947
1045
|
}
|
|
948
1046
|
|
|
@@ -962,20 +1060,20 @@
|
|
|
962
1060
|
* scale holds a ground one step under this one, and mixing keeps the
|
|
963
1061
|
* direction right in every scheme.
|
|
964
1062
|
*/
|
|
965
|
-
[data-ui
|
|
1063
|
+
[data-ui-table] [data-part-column-header]:has(> [data-part-sort]:not(:disabled)):hover {
|
|
966
1064
|
background-color: var(
|
|
967
1065
|
--slotted-table-header-surface-hover,
|
|
968
1066
|
color-mix(in oklab, var(--slotted-text, CanvasText) 7%, var(--_head-surface))
|
|
969
1067
|
);
|
|
970
1068
|
}
|
|
971
1069
|
|
|
972
|
-
[data-ui
|
|
1070
|
+
[data-ui-table] [data-part-column-header] {
|
|
973
1071
|
transition: background-color
|
|
974
1072
|
var(--slotted-control-transition-duration, var(--slotted-duration-short))
|
|
975
1073
|
var(--slotted-control-transition-easing, var(--slotted-easing-standard));
|
|
976
1074
|
}
|
|
977
1075
|
|
|
978
|
-
[data-ui
|
|
1076
|
+
[data-ui-table] [data-part-sort]:focus-visible {
|
|
979
1077
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
980
1078
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
981
1079
|
}
|
|
@@ -990,7 +1088,7 @@
|
|
|
990
1088
|
* pointer or under focus, so the column says it can be sorted without twelve
|
|
991
1089
|
* marks competing with twelve names. The sorted column keeps its mark drawn.
|
|
992
1090
|
*/
|
|
993
|
-
[data-ui
|
|
1091
|
+
[data-ui-table] [data-part-sort] > [data-ui-icon] {
|
|
994
1092
|
--slotted-icon-size: var(--_icon-size);
|
|
995
1093
|
opacity: 0;
|
|
996
1094
|
transition:
|
|
@@ -1000,19 +1098,19 @@
|
|
|
1000
1098
|
var(--slotted-control-transition-easing, var(--slotted-easing-standard));
|
|
1001
1099
|
}
|
|
1002
1100
|
|
|
1003
|
-
[data-ui
|
|
1004
|
-
[data-ui
|
|
1101
|
+
[data-ui-table] [data-part-sort]:not(:disabled):hover > [data-ui-icon],
|
|
1102
|
+
[data-ui-table] [data-part-sort]:focus-visible > [data-ui-icon] {
|
|
1005
1103
|
opacity: 0.55;
|
|
1006
1104
|
}
|
|
1007
1105
|
|
|
1008
|
-
[data-ui
|
|
1106
|
+
[data-ui-table] [aria-sort] > [data-part-sort] > [data-ui-icon] {
|
|
1009
1107
|
opacity: 1;
|
|
1010
1108
|
}
|
|
1011
1109
|
|
|
1012
1110
|
/* Ascending is the same mark turned over. The rotation is animated because it
|
|
1013
1111
|
is the one movement in this family a reader has to follow: the column did
|
|
1014
1112
|
not change, its direction did. */
|
|
1015
|
-
[data-ui
|
|
1113
|
+
[data-ui-table] [aria-sort='ascending'] > [data-part-sort] > [data-ui-icon] {
|
|
1016
1114
|
rotate: 180deg;
|
|
1017
1115
|
}
|
|
1018
1116
|
|
|
@@ -1022,7 +1120,7 @@
|
|
|
1022
1120
|
* The cell is the family's and the control is not: `checkbox` owns the square,
|
|
1023
1121
|
* the check and the indeterminate bar, and a chooser drawn here would be a
|
|
1024
1122
|
* second answer to a question that family answers. The cell holds it to the
|
|
1025
|
-
* width of the control and
|
|
1123
|
+
* width of the control and centers it on the row's first line.
|
|
1026
1124
|
*
|
|
1027
1125
|
* The width is **stated** rather than shrink-wrapped, and that is the whole
|
|
1028
1126
|
* reason it is a token. A listing pins the chooser and the identifier beside
|
|
@@ -1032,12 +1130,12 @@
|
|
|
1032
1130
|
* past the chooser and over the column behind it. Now one name answers both
|
|
1033
1131
|
* places: this width, and the `stickyOffset` beside it.
|
|
1034
1132
|
*/
|
|
1035
|
-
[data-ui
|
|
1133
|
+
[data-ui-table] [data-part-selection] {
|
|
1036
1134
|
inline-size: var(--slotted-table-selection-size, 3rem);
|
|
1037
1135
|
padding-block: var(--_pad-block);
|
|
1038
1136
|
padding-inline: var(--_pad-inline);
|
|
1039
1137
|
text-align: center;
|
|
1040
|
-
/* The chooser follows the table's own answer: a table that
|
|
1138
|
+
/* The chooser follows the table's own answer: a table that centers its
|
|
1041
1139
|
values and hangs its checkboxes from the top is two decisions where the
|
|
1042
1140
|
reader sees one row. */
|
|
1043
1141
|
vertical-align: var(--_cell-align);
|
|
@@ -1046,7 +1144,7 @@
|
|
|
1046
1144
|
|
|
1047
1145
|
/* The control is one line tall whatever the row is, so it sits on the line
|
|
1048
1146
|
the axis puts it on rather than stretching down a three-line cell. */
|
|
1049
|
-
[data-ui
|
|
1147
|
+
[data-ui-table] [data-part-selection] > [data-ui-checkbox] {
|
|
1050
1148
|
block-size: var(--_line);
|
|
1051
1149
|
}
|
|
1052
1150
|
|
|
@@ -1065,7 +1163,7 @@
|
|
|
1065
1163
|
* be this stylesheet deciding how that one looks. The target is unaffected —
|
|
1066
1164
|
* it is a separate pseudo-element, and it stays at the WCAG minimum.
|
|
1067
1165
|
*/
|
|
1068
|
-
[data-ui
|
|
1166
|
+
[data-ui-table] [data-part-selection] {
|
|
1069
1167
|
--slotted-selection-halo-opacity: 0;
|
|
1070
1168
|
}
|
|
1071
1169
|
|
|
@@ -1077,7 +1175,7 @@
|
|
|
1077
1175
|
* expander inside the row header moved one identifier and left the column
|
|
1078
1176
|
* ragged.
|
|
1079
1177
|
*/
|
|
1080
|
-
[data-ui
|
|
1178
|
+
[data-ui-table] [data-part-cell]:has(> [data-part-expander]) {
|
|
1081
1179
|
inline-size: 1%;
|
|
1082
1180
|
padding-inline-end: 0;
|
|
1083
1181
|
white-space: nowrap;
|
|
@@ -1093,10 +1191,341 @@
|
|
|
1093
1191
|
* out. `display: contents` removes both wrappers from layout and leaves the
|
|
1094
1192
|
* button as the slot's own child, which is the box tree React already has.
|
|
1095
1193
|
*/
|
|
1096
|
-
[data-ui
|
|
1194
|
+
[data-ui-table] [data-part-column-actions] *:has([data-part-filter]) {
|
|
1097
1195
|
display: contents;
|
|
1098
1196
|
}
|
|
1099
1197
|
|
|
1198
|
+
/**
|
|
1199
|
+
* ── Rows that fold their children ──────────────────────────────────────
|
|
1200
|
+
*
|
|
1201
|
+
* A row with a `level` is a node of a bounded hierarchy: accounts, folders,
|
|
1202
|
+
* cost centres. The first cell that is not the selection carries the
|
|
1203
|
+
* indent, and the indent and the guide are the `tree` family's: one step is
|
|
1204
|
+
* half the expander plus a step of the space scale, so the line one level up
|
|
1205
|
+
* sits on the expander's center and the row's own expander starts a fixed
|
|
1206
|
+
* distance past it. A row without an expander keeps the expander's box as
|
|
1207
|
+
* space, so a leaf's text lines up with a sibling's that has one. An expander
|
|
1208
|
+
* that leads a cell with no mark stands out of flow in that same space, on
|
|
1209
|
+
* the middle of the content where `cellAlign` places it: in flow it stood on
|
|
1210
|
+
* one line of text, above the middle of any content taller than that line.
|
|
1211
|
+
*
|
|
1212
|
+
* The guide is one box per row with a line per ancestor level, through the
|
|
1213
|
+
* whole row and over the rule above it, so it stays continuous across rows
|
|
1214
|
+
* of any height. It turns no elbow at a last child, which is the rule the
|
|
1215
|
+
* `tree` family settled: a chain of only children drew a staircase of short
|
|
1216
|
+
* segments with a gap under each.
|
|
1217
|
+
*/
|
|
1218
|
+
[data-ui-table] [data-part-row][data-level] {
|
|
1219
|
+
--_tree-step: var(
|
|
1220
|
+
--slotted-table-tree-indent,
|
|
1221
|
+
calc(var(--slotted-target-min, 24px) / 2 + var(--slotted-space-4, 0.5rem))
|
|
1222
|
+
);
|
|
1223
|
+
--_guide: var(
|
|
1224
|
+
--slotted-table-guide-color,
|
|
1225
|
+
color-mix(in oklab, var(--slotted-border-strong) 60%, var(--slotted-border-subtle))
|
|
1226
|
+
);
|
|
1227
|
+
/* Where the row's lead starts in its cell. */
|
|
1228
|
+
--_own: calc(var(--_pad-inline) + var(--_tree-step) * var(--slotted-table-depth, 0));
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* The middle the row's lead stands on: in the cell, in the box of the lines,
|
|
1233
|
+
* which starts a rule above it, and of a line placed there as a tile. A cell
|
|
1234
|
+
* that states `blockAlign` answers for its own lead.
|
|
1235
|
+
*/
|
|
1236
|
+
[data-ui-table] [data-part-row][data-level] > :nth-child(1 of :not([data-part-selection])) {
|
|
1237
|
+
--_y: 50%;
|
|
1238
|
+
--_at: calc(var(--_y) + var(--_rule-width) / 2);
|
|
1239
|
+
--_tile: calc(var(--_y) + var(--_rule-width) / 2);
|
|
1240
|
+
inline-size: auto;
|
|
1241
|
+
padding-inline-end: var(--_pad-inline);
|
|
1242
|
+
padding-inline-start: var(--_own);
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
[data-ui-table][data-cell-align='start']
|
|
1246
|
+
[data-part-row][data-level]
|
|
1247
|
+
> :nth-child(1 of :not([data-part-selection])):not([data-block-align]),
|
|
1248
|
+
[data-ui-table]
|
|
1249
|
+
[data-part-row][data-level]
|
|
1250
|
+
> :nth-child(1 of :not([data-part-selection]))[data-block-align='start'] {
|
|
1251
|
+
--_y: calc(var(--_pad-block) + var(--_line) / 2);
|
|
1252
|
+
--_at: calc(var(--_y) + var(--_rule-width));
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
[data-ui-table][data-cell-align='end']
|
|
1256
|
+
[data-part-row][data-level]
|
|
1257
|
+
> :nth-child(1 of :not([data-part-selection])):not([data-block-align]),
|
|
1258
|
+
[data-ui-table]
|
|
1259
|
+
[data-part-row][data-level]
|
|
1260
|
+
> :nth-child(1 of :not([data-part-selection]))[data-block-align='end'] {
|
|
1261
|
+
--_y: calc(100% - var(--_pad-block) - var(--_line) / 2);
|
|
1262
|
+
--_at: var(--_y);
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
[data-ui-table]
|
|
1266
|
+
[data-part-row][data-level]
|
|
1267
|
+
> :nth-child(1 of :not([data-part-selection])):not(:has(> [data-part-expander])),
|
|
1268
|
+
[data-ui-table]
|
|
1269
|
+
[data-part-row][data-level]
|
|
1270
|
+
> :nth-child(1 of :not([data-part-selection])):has(> [data-part-expander]:first-child):not(
|
|
1271
|
+
:has(> [data-part-mark])
|
|
1272
|
+
) {
|
|
1273
|
+
padding-inline-start: calc(var(--_own) + var(--slotted-target-min, 24px) + var(--_gap));
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
[data-ui-table]
|
|
1277
|
+
[data-part-row][data-level]
|
|
1278
|
+
> :nth-child(1 of :not([data-part-selection])):not([data-sticky]) {
|
|
1279
|
+
position: relative;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
[data-ui-table]
|
|
1283
|
+
[data-part-row][data-level]
|
|
1284
|
+
> :nth-child(1 of :not([data-part-selection]))::before {
|
|
1285
|
+
background-image: repeating-linear-gradient(
|
|
1286
|
+
to right,
|
|
1287
|
+
var(--_guide) 0 var(--_rule-width),
|
|
1288
|
+
transparent var(--_rule-width) var(--_tree-step)
|
|
1289
|
+
);
|
|
1290
|
+
content: '';
|
|
1291
|
+
inline-size: calc(var(--slotted-table-depth, 0) * var(--_tree-step));
|
|
1292
|
+
inset-block: calc(-1 * var(--_rule-width)) 0;
|
|
1293
|
+
inset-inline-start: calc(var(--_pad-inline) + var(--slotted-target-min, 24px) / 2);
|
|
1294
|
+
pointer-events: none;
|
|
1295
|
+
position: absolute;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
[data-ui-table]
|
|
1299
|
+
[data-part-row][data-level]
|
|
1300
|
+
> :nth-child(1 of :not([data-part-selection])):dir(rtl)::before {
|
|
1301
|
+
background-image: repeating-linear-gradient(
|
|
1302
|
+
to left,
|
|
1303
|
+
var(--_guide) 0 var(--_rule-width),
|
|
1304
|
+
transparent var(--_rule-width) var(--_tree-step)
|
|
1305
|
+
);
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
[data-ui-table] [data-part-row][data-level] > * > [data-part-expander] {
|
|
1309
|
+
margin-inline-end: var(--_gap);
|
|
1310
|
+
vertical-align: top;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
[data-ui-table]
|
|
1314
|
+
[data-part-row][data-level]
|
|
1315
|
+
> :nth-child(1 of :not([data-part-selection])):not(:has(> [data-part-mark]))
|
|
1316
|
+
> [data-part-expander]:first-child {
|
|
1317
|
+
inset-block-start: calc(var(--_y) - var(--slotted-target-min, 24px) / 2);
|
|
1318
|
+
inset-inline-start: var(--_own);
|
|
1319
|
+
margin: 0;
|
|
1320
|
+
position: absolute;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
[data-ui-table][data-guides='false']
|
|
1324
|
+
[data-part-row][data-level]
|
|
1325
|
+
> :nth-child(1 of :not([data-part-selection]))::before {
|
|
1326
|
+
background-image: none;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
/* A record's leading mark, an avatar or an icon: one box per level. The steps
|
|
1330
|
+
of an avatar that fit a row all measure the box. */
|
|
1331
|
+
[data-ui-table] [data-part-mark] {
|
|
1332
|
+
--_mark: round(var(--slotted-table-mark-size, 1.5rem), 1px);
|
|
1333
|
+
--slotted-avatar-size-xs: var(--_mark);
|
|
1334
|
+
--slotted-avatar-size-sm: var(--_mark);
|
|
1335
|
+
--slotted-avatar-size-md: var(--_mark);
|
|
1336
|
+
align-items: center;
|
|
1337
|
+
block-size: var(--_mark);
|
|
1338
|
+
display: inline-flex;
|
|
1339
|
+
inline-size: var(--_mark);
|
|
1340
|
+
justify-content: center;
|
|
1341
|
+
margin-block: calc((var(--_line) - var(--_mark)) / 2);
|
|
1342
|
+
margin-inline-end: var(--_gap);
|
|
1343
|
+
vertical-align: top;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
[data-ui-table] [data-part-row]:not([data-level='0'])[data-level] [data-part-mark] {
|
|
1347
|
+
--_mark: round(var(--slotted-table-mark-child-size, 1.25rem), 1px);
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* ── The branch of each child ───────────────────────────────────────────
|
|
1352
|
+
*
|
|
1353
|
+
* `guides="branch"`: a rail leaves the foot of the parent's mark and runs
|
|
1354
|
+
* down its center, each child has a branch from the rail to its own mark, and
|
|
1355
|
+
* the rail turns into the branch of the last child. The mark is the row's
|
|
1356
|
+
* `mark` part, or its expander where the cell holds none. Whether a row is
|
|
1357
|
+
* the last, starts a rail or is crossed by the rail of an ancestor is written
|
|
1358
|
+
* by the binding (`data-branch`, `data-branch-open`, `--slotted-tree-rails`).
|
|
1359
|
+
*
|
|
1360
|
+
* Every mark of a level stands in one column: what leads it, an expander or
|
|
1361
|
+
* the room of one, is taken out of the indent rather than added to it.
|
|
1362
|
+
* Positions are taken from the cell's padding box, so a rail is one line
|
|
1363
|
+
* through rows of any height.
|
|
1364
|
+
*/
|
|
1365
|
+
[data-ui-table][data-guides='branch'] {
|
|
1366
|
+
--_lead: 0px;
|
|
1367
|
+
--_branch: var(--slotted-table-branch-size, 1.25rem);
|
|
1368
|
+
--_node: var(--slotted-target-min, 24px);
|
|
1369
|
+
--_node-child: var(--_node);
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
[data-ui-table][data-guides='branch']:has([data-part-row][data-level] [data-part-mark]) {
|
|
1373
|
+
--_node: round(var(--slotted-table-mark-size, 1.5rem), 1px);
|
|
1374
|
+
--_node-child: round(var(--slotted-table-mark-child-size, 1.25rem), 1px);
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
/* An expander written before the mark keeps its room in every row, and in a
|
|
1378
|
+
table where no row folds when the table asks for it. */
|
|
1379
|
+
[data-ui-table][data-guides='branch'][data-expander-room='always']:has(
|
|
1380
|
+
[data-part-row][data-level] [data-part-mark]
|
|
1381
|
+
),
|
|
1382
|
+
[data-ui-table][data-guides='branch']:has(
|
|
1383
|
+
[data-part-row][data-level] > * > [data-part-expander] + [data-part-mark]
|
|
1384
|
+
) {
|
|
1385
|
+
--_lead: calc(var(--slotted-target-min, 24px) + var(--_gap));
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
/* A child that folds too has its expander between its branch and its mark. */
|
|
1389
|
+
[data-ui-table][data-guides='branch']:has(
|
|
1390
|
+
[data-part-row][data-level]:not([data-level='0'])
|
|
1391
|
+
> *
|
|
1392
|
+
> [data-part-expander]
|
|
1393
|
+
+ [data-part-mark]
|
|
1394
|
+
) {
|
|
1395
|
+
--_branch: calc(var(--slotted-target-min, 24px) + var(--_gap) + var(--slotted-space-2, 4px));
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
[data-ui-table][data-guides='branch'] [data-part-row][data-level] {
|
|
1399
|
+
--_guide: var(
|
|
1400
|
+
--slotted-table-guide-color,
|
|
1401
|
+
color-mix(in oklab, var(--slotted-text, CanvasText) 26%, var(--_surface))
|
|
1402
|
+
);
|
|
1403
|
+
/* The inline start of the first rail, and from one rail to the next. */
|
|
1404
|
+
--_rail: round(
|
|
1405
|
+
down,
|
|
1406
|
+
calc(var(--_pad-inline) + var(--_lead) + (var(--_node) - var(--_rule-width)) / 2),
|
|
1407
|
+
1px
|
|
1408
|
+
);
|
|
1409
|
+
--_rail-step: calc(var(--_branch) + var(--_node-child) / 2);
|
|
1410
|
+
/* Where the row's own mark starts, and the rail it hangs from. */
|
|
1411
|
+
--_own: calc(var(--_pad-inline) + var(--_lead));
|
|
1412
|
+
--_from: 0px;
|
|
1413
|
+
--_mark-size: var(--_node);
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
[data-ui-table][data-guides='branch'] [data-part-row][data-level]:not([data-level='0']) {
|
|
1417
|
+
--_from: calc(var(--_rail) + (var(--slotted-table-depth) - 1) * var(--_rail-step));
|
|
1418
|
+
--_own: calc(var(--_from) + var(--_branch));
|
|
1419
|
+
--_mark-size: var(--_node-child);
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
/* The row's lead: the mark stands out of flow at one place of its level, and
|
|
1423
|
+
the cell keeps its room. An expander before it stands inside the indent. */
|
|
1424
|
+
[data-ui-table][data-guides='branch']
|
|
1425
|
+
[data-part-row][data-level]
|
|
1426
|
+
> :nth-child(1 of :not([data-part-selection])) {
|
|
1427
|
+
block-size: calc(var(--_node) + 2 * var(--slotted-space-1, 2px));
|
|
1428
|
+
box-sizing: border-box;
|
|
1429
|
+
padding-inline-start: var(--_own);
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
[data-ui-table][data-guides='branch']
|
|
1433
|
+
[data-part-row][data-level]
|
|
1434
|
+
> :nth-child(1 of :not([data-part-selection])):has(> [data-part-mark]) {
|
|
1435
|
+
padding-inline-start: calc(var(--_own) + var(--_mark-size) + var(--_gap));
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
[data-ui-table][data-guides='branch']
|
|
1439
|
+
[data-part-row][data-level]
|
|
1440
|
+
> :nth-child(1 of :not([data-part-selection])):not(
|
|
1441
|
+
:has(> :is([data-part-expander], [data-part-mark]))
|
|
1442
|
+
) {
|
|
1443
|
+
padding-inline-start: calc(var(--_own) + var(--_mark-size) + var(--_gap));
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
[data-ui-table][data-guides='branch']
|
|
1447
|
+
[data-part-row][data-level]
|
|
1448
|
+
> :nth-child(1 of :not([data-part-selection]))
|
|
1449
|
+
> [data-part-mark] {
|
|
1450
|
+
inset-block-start: calc(var(--_y) - var(--_mark-size) / 2);
|
|
1451
|
+
inset-inline-start: var(--_own);
|
|
1452
|
+
margin: 0;
|
|
1453
|
+
position: absolute;
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
[data-ui-table][data-guides='branch']
|
|
1457
|
+
[data-part-row][data-level]
|
|
1458
|
+
> :nth-child(1 of :not([data-part-selection]))
|
|
1459
|
+
> [data-part-expander]:has(+ [data-part-mark]) {
|
|
1460
|
+
inset-block-start: calc(var(--_y) - var(--slotted-target-min, 24px) / 2);
|
|
1461
|
+
inset-inline-start: calc(var(--_own) - var(--_gap) - var(--slotted-target-min, 24px));
|
|
1462
|
+
margin: 0;
|
|
1463
|
+
position: absolute;
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
[data-ui-table][data-guides='branch']
|
|
1467
|
+
[data-part-row][data-level]
|
|
1468
|
+
> :nth-child(1 of :not([data-part-selection]))::before {
|
|
1469
|
+
--_ink: linear-gradient(var(--_guide) 0 0);
|
|
1470
|
+
--_trunk: none;
|
|
1471
|
+
--_twig: none;
|
|
1472
|
+
--_root: none;
|
|
1473
|
+
background: var(--_root), var(--_twig), var(--_trunk), var(--slotted-tree-rails, none);
|
|
1474
|
+
inline-size: calc(var(--_own) + var(--_mark-size));
|
|
1475
|
+
inset-inline-start: 0;
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
[data-ui-table][data-guides='branch']
|
|
1479
|
+
[data-part-row][data-level]:not([data-level='0'])
|
|
1480
|
+
> :nth-child(1 of :not([data-part-selection]))::before {
|
|
1481
|
+
--_reach: calc(var(--_branch) - var(--_rule-width) - var(--slotted-space-1, 2px));
|
|
1482
|
+
--_trunk: var(--_ink) var(--_from) 0 / var(--_rule-width) 100% no-repeat;
|
|
1483
|
+
--_twig: var(--_ink) var(--_from) var(--_tile) / calc(var(--_rule-width) + var(--_reach))
|
|
1484
|
+
var(--_rule-width) no-repeat;
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
/* An expander between the branch and the mark takes the rest of the way. */
|
|
1488
|
+
[data-ui-table][data-guides='branch']
|
|
1489
|
+
[data-part-row][data-level]:not([data-level='0'])
|
|
1490
|
+
> :nth-child(1 of :not([data-part-selection])):has(
|
|
1491
|
+
> [data-part-expander] + [data-part-mark]
|
|
1492
|
+
)::before {
|
|
1493
|
+
--_reach: var(--slotted-space-2, 4px);
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
[data-ui-table][data-guides='branch']
|
|
1497
|
+
[data-part-row][data-level]:not([data-level='0'])
|
|
1498
|
+
> :nth-child(1 of :not([data-part-selection])):not(
|
|
1499
|
+
:has(> :is([data-part-expander], [data-part-mark]))
|
|
1500
|
+
)::before {
|
|
1501
|
+
--_reach: calc(var(--_branch) + var(--_mark-size) - var(--_rule-width));
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
[data-ui-table][data-guides='branch']
|
|
1505
|
+
[data-part-row][data-level][data-branch='last']:not([data-level='0'])
|
|
1506
|
+
> :nth-child(1 of :not([data-part-selection]))::before {
|
|
1507
|
+
--_trunk: var(--_ink) var(--_from) 0 / var(--_rule-width)
|
|
1508
|
+
calc(var(--_at) + var(--_rule-width) / 2) no-repeat;
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
[data-ui-table][data-guides='branch']
|
|
1512
|
+
[data-part-row][data-level][data-branch-open]
|
|
1513
|
+
> :nth-child(1 of :not([data-part-selection]))::before {
|
|
1514
|
+
--_root: linear-gradient(
|
|
1515
|
+
to bottom,
|
|
1516
|
+
transparent calc(var(--_at) + var(--_mark-size) / 2),
|
|
1517
|
+
var(--_guide) calc(var(--_at) + var(--_mark-size) / 2)
|
|
1518
|
+
)
|
|
1519
|
+
calc(var(--_rail) + var(--slotted-table-depth) * var(--_rail-step)) 0 / var(--_rule-width)
|
|
1520
|
+
100% no-repeat;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
[data-ui-table][data-guides='branch']
|
|
1524
|
+
[data-part-row][data-level]
|
|
1525
|
+
> :nth-child(1 of :not([data-part-selection])):dir(rtl)::before {
|
|
1526
|
+
scale: -1 1;
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1100
1529
|
/**
|
|
1101
1530
|
* ── The expander ───────────────────────────────────────────────────────
|
|
1102
1531
|
*
|
|
@@ -1105,10 +1534,10 @@
|
|
|
1105
1534
|
* turn when the detail is open — and mirrored in a right-to-left document,
|
|
1106
1535
|
* where a closed disclosure points the other way.
|
|
1107
1536
|
*/
|
|
1108
|
-
[data-ui
|
|
1109
|
-
[data-ui
|
|
1110
|
-
[data-ui
|
|
1111
|
-
[data-ui
|
|
1537
|
+
[data-ui-table] [data-part-expander],
|
|
1538
|
+
[data-ui-table] [data-part-column-actions] > button,
|
|
1539
|
+
[data-ui-table] button[data-part-column-actions],
|
|
1540
|
+
[data-ui-table] [data-part-filter] {
|
|
1112
1541
|
background-color: transparent;
|
|
1113
1542
|
border: 0;
|
|
1114
1543
|
border-radius: var(--slotted-table-control-radius, var(--slotted-radius-sm, 4px));
|
|
@@ -1130,7 +1559,7 @@
|
|
|
1130
1559
|
margin-block: calc((var(--_line) - var(--slotted-target-min, 24px)) / 2);
|
|
1131
1560
|
padding: 0;
|
|
1132
1561
|
/* Both axes, stated separately, because `place-content` is not the property
|
|
1133
|
-
that
|
|
1562
|
+
that centers a single item: `align-content` aligns lines and a single-line
|
|
1134
1563
|
flex container has one, so the mark fell back to `align-items: stretch`,
|
|
1135
1564
|
which a stated block size resolves to `flex-start`. Read on the capture,
|
|
1136
1565
|
the chevron sat against the top edge of its own 24-pixel box. */
|
|
@@ -1143,45 +1572,45 @@
|
|
|
1143
1572
|
|
|
1144
1573
|
/**
|
|
1145
1574
|
* On a finger the target is the comfortable size in both axes and the box
|
|
1146
|
-
* is the one a mouse sees: a transparent `::after`
|
|
1575
|
+
* is the one a mouse sees: a transparent `::after` centerd on the control
|
|
1147
1576
|
* reaches 44 pixels, and the ground and the ring stay square. A header's
|
|
1148
1577
|
* trigger stands after the sort button and its mark, so it does not reach
|
|
1149
1578
|
* back across them.
|
|
1150
1579
|
*/
|
|
1151
1580
|
@media (pointer: coarse) {
|
|
1152
|
-
[data-ui
|
|
1153
|
-
[data-ui
|
|
1154
|
-
[data-ui
|
|
1155
|
-
[data-ui
|
|
1581
|
+
[data-ui-table] [data-part-expander],
|
|
1582
|
+
[data-ui-table] [data-part-column-actions] > button,
|
|
1583
|
+
[data-ui-table] button[data-part-column-actions],
|
|
1584
|
+
[data-ui-table] [data-part-filter] {
|
|
1156
1585
|
position: relative;
|
|
1157
1586
|
}
|
|
1158
1587
|
|
|
1159
|
-
[data-ui
|
|
1160
|
-
[data-ui
|
|
1161
|
-
[data-ui
|
|
1162
|
-
[data-ui
|
|
1588
|
+
[data-ui-table] [data-part-expander]::after,
|
|
1589
|
+
[data-ui-table] [data-part-column-actions] > button::after,
|
|
1590
|
+
[data-ui-table] button[data-part-column-actions]::after,
|
|
1591
|
+
[data-ui-table] [data-part-filter]::after {
|
|
1163
1592
|
content: '';
|
|
1164
1593
|
inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
1165
1594
|
position: absolute;
|
|
1166
1595
|
}
|
|
1167
1596
|
|
|
1168
|
-
[data-ui
|
|
1169
|
-
[data-ui
|
|
1170
|
-
[data-ui
|
|
1597
|
+
[data-ui-table] [data-part-column-actions] > button::after,
|
|
1598
|
+
[data-ui-table] button[data-part-column-actions]::after,
|
|
1599
|
+
[data-ui-table] [data-part-filter]::after {
|
|
1171
1600
|
inset-inline-start: 0;
|
|
1172
1601
|
}
|
|
1173
1602
|
}
|
|
1174
1603
|
|
|
1175
|
-
[data-ui
|
|
1604
|
+
[data-ui-table] [data-part-expander]:not(:disabled):hover {
|
|
1176
1605
|
background-color: var(--_hover);
|
|
1177
1606
|
color: var(--_text);
|
|
1178
1607
|
}
|
|
1179
1608
|
|
|
1180
1609
|
/* On the band the hover darkens, for the reason the sort control's does: the
|
|
1181
1610
|
step a row hovers with is lighter than the band and reads as a hole in it. */
|
|
1182
|
-
[data-ui
|
|
1183
|
-
[data-ui
|
|
1184
|
-
[data-ui
|
|
1611
|
+
[data-ui-table] [data-part-column-actions] > button:not(:disabled):hover,
|
|
1612
|
+
[data-ui-table] button[data-part-column-actions]:not(:disabled):hover,
|
|
1613
|
+
[data-ui-table] [data-part-filter]:not(:disabled):hover {
|
|
1185
1614
|
background-color: var(
|
|
1186
1615
|
--slotted-table-header-surface-hover,
|
|
1187
1616
|
color-mix(in oklab, var(--slotted-text, CanvasText) 7%, var(--_head-surface))
|
|
@@ -1194,10 +1623,10 @@
|
|
|
1194
1623
|
because both stand against an edge the ring would otherwise cross; these
|
|
1195
1624
|
are 24-pixel boxes inside a cell's own inset, and read at that size an
|
|
1196
1625
|
inward ring closed on the chevron. */
|
|
1197
|
-
[data-ui
|
|
1198
|
-
[data-ui
|
|
1199
|
-
[data-ui
|
|
1200
|
-
[data-ui
|
|
1626
|
+
[data-ui-table] [data-part-expander]:focus-visible,
|
|
1627
|
+
[data-ui-table] [data-part-column-actions] > button:focus-visible,
|
|
1628
|
+
[data-ui-table] button[data-part-column-actions]:focus-visible,
|
|
1629
|
+
[data-ui-table] [data-part-filter]:focus-visible {
|
|
1201
1630
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
1202
1631
|
outline-offset: 0;
|
|
1203
1632
|
}
|
|
@@ -1210,7 +1639,7 @@
|
|
|
1210
1639
|
* nineteen and a half — the control scale is right for a control in a form
|
|
1211
1640
|
* and wrong for a mark in a header.
|
|
1212
1641
|
*/
|
|
1213
|
-
[data-ui
|
|
1642
|
+
[data-ui-table] :is([data-part-column-actions], [data-part-filter]) :is(svg, img) {
|
|
1214
1643
|
block-size: var(--_icon-size);
|
|
1215
1644
|
inline-size: var(--_icon-size);
|
|
1216
1645
|
}
|
|
@@ -1223,8 +1652,8 @@
|
|
|
1223
1652
|
* accent ink and holds it whether the pointer is on it or not, because a
|
|
1224
1653
|
* filter a reader forgot they set is the defect this state exists to prevent.
|
|
1225
1654
|
*/
|
|
1226
|
-
[data-ui
|
|
1227
|
-
[data-ui
|
|
1655
|
+
[data-ui-table] [data-part-filter][data-filtered],
|
|
1656
|
+
[data-ui-table] [data-part-filter][data-filtered]:not(:disabled):hover {
|
|
1228
1657
|
color: var(--slotted-tone-accent-text, LinkText);
|
|
1229
1658
|
}
|
|
1230
1659
|
|
|
@@ -1232,17 +1661,17 @@
|
|
|
1232
1661
|
* The panel, which is drawn wherever `popover` puts it — inside the header or
|
|
1233
1662
|
* portalled to the end of the document. So it carries the family's identity
|
|
1234
1663
|
* on itself rather than reading it from an ancestor: a rule that reached for
|
|
1235
|
-
* `[data-ui
|
|
1664
|
+
* `[data-ui-table]` above would style the panel in one of the two.
|
|
1236
1665
|
*
|
|
1237
1666
|
* And it declares the values it uses rather than reading them from the root,
|
|
1238
|
-
* for the same reason. Every `--_` above is declared on `[data-part
|
|
1667
|
+
* for the same reason. Every `--_` above is declared on `[data-part-root]`;
|
|
1239
1668
|
* portalled to the end of the document the panel is not inside it, and a
|
|
1240
1669
|
* custom property that resolves to nothing takes its whole declaration with
|
|
1241
1670
|
* it — `gap: var(--_gap)` became no gap at all, silently, in the one
|
|
1242
1671
|
* arrangement `popover` uses by default. The eight below are the panel's own,
|
|
1243
1672
|
* from the same theme tokens the root reads.
|
|
1244
1673
|
*/
|
|
1245
|
-
[data-ui
|
|
1674
|
+
[data-ui-table][data-part-filter-panel] {
|
|
1246
1675
|
--_gap: var(--slotted-table-gap, var(--slotted-control-gap-md, 8px));
|
|
1247
1676
|
--_font-size: var(--slotted-table-font-size, var(--slotted-control-font-size-md, 13px));
|
|
1248
1677
|
--_line: calc(var(--_font-size) * var(--slotted-line-height-md, 1.5));
|
|
@@ -1312,13 +1741,13 @@
|
|
|
1312
1741
|
* rather than set on a row, because an operator name is the widest thing in
|
|
1313
1742
|
* the panel and a row would give the value what was left of 15rem.
|
|
1314
1743
|
*/
|
|
1315
|
-
[data-ui
|
|
1744
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-condition] {
|
|
1316
1745
|
display: grid;
|
|
1317
1746
|
gap: calc(var(--_gap) / 2);
|
|
1318
1747
|
}
|
|
1319
1748
|
|
|
1320
|
-
[data-ui
|
|
1321
|
-
[data-ui
|
|
1749
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-operator],
|
|
1750
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-search] {
|
|
1322
1751
|
display: block;
|
|
1323
1752
|
}
|
|
1324
1753
|
|
|
@@ -1333,14 +1762,14 @@
|
|
|
1333
1762
|
* way round: two number fields side by side in a 15rem panel are two fields
|
|
1334
1763
|
* nobody can read.
|
|
1335
1764
|
*/
|
|
1336
|
-
[data-ui
|
|
1765
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-operand] {
|
|
1337
1766
|
display: grid;
|
|
1338
1767
|
gap: calc(var(--_gap) / 2);
|
|
1339
1768
|
grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
|
|
1340
1769
|
}
|
|
1341
1770
|
|
|
1342
1771
|
/* A set's operand is a search and a list, which own their own stacking. */
|
|
1343
|
-
[data-ui
|
|
1772
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-operand][data-kind='set'] {
|
|
1344
1773
|
grid-template-columns: 1fr;
|
|
1345
1774
|
gap: var(--_gap);
|
|
1346
1775
|
}
|
|
@@ -1358,9 +1787,9 @@
|
|
|
1358
1787
|
* one field, and the field takes the panel's width so the wrapping has
|
|
1359
1788
|
* somewhere to go.
|
|
1360
1789
|
*/
|
|
1361
|
-
[data-ui
|
|
1362
|
-
[data-ui
|
|
1363
|
-
[data-ui
|
|
1790
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-operand][data-range],
|
|
1791
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-operand][data-kind='datetime'],
|
|
1792
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-operand][data-operand='tags'] {
|
|
1364
1793
|
grid-template-columns: 1fr;
|
|
1365
1794
|
}
|
|
1366
1795
|
|
|
@@ -1373,8 +1802,8 @@
|
|
|
1373
1802
|
* `between` is one range picker, marked `data-range`, and this rule stands
|
|
1374
1803
|
* after the one above, so it steps aside for that mark.
|
|
1375
1804
|
*/
|
|
1376
|
-
[data-ui
|
|
1377
|
-
[data-part
|
|
1805
|
+
[data-ui-table][data-part-filter-panel]
|
|
1806
|
+
[data-part-filter-operand][data-kind='time']:not([data-range]) {
|
|
1378
1807
|
grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
|
|
1379
1808
|
}
|
|
1380
1809
|
|
|
@@ -1383,7 +1812,7 @@
|
|
|
1383
1812
|
* conditions are separate boxes and the reader has to see where the first ends
|
|
1384
1813
|
* before being asked how the second joins it.
|
|
1385
1814
|
*/
|
|
1386
|
-
[data-ui
|
|
1815
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-join] {
|
|
1387
1816
|
align-items: center;
|
|
1388
1817
|
border-block-start: var(--_rule-width) solid var(--_rule);
|
|
1389
1818
|
display: flex;
|
|
@@ -1392,7 +1821,7 @@
|
|
|
1392
1821
|
padding-block-start: var(--_gap);
|
|
1393
1822
|
}
|
|
1394
1823
|
|
|
1395
|
-
[data-ui
|
|
1824
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-join] > [data-label] {
|
|
1396
1825
|
color: var(--_muted);
|
|
1397
1826
|
}
|
|
1398
1827
|
|
|
@@ -1401,7 +1830,7 @@
|
|
|
1401
1830
|
* than the screen. Eight rows is the height a set filter opens at in AG Grid
|
|
1402
1831
|
* and about the height Excel's opens at; past that the reader searches.
|
|
1403
1832
|
*/
|
|
1404
|
-
[data-ui
|
|
1833
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-list] {
|
|
1405
1834
|
display: grid;
|
|
1406
1835
|
gap: var(--_gap);
|
|
1407
1836
|
max-block-size: calc(var(--_line) * 9);
|
|
@@ -1421,7 +1850,7 @@
|
|
|
1421
1850
|
* pulled out to the panel's inset so it reads as a row rather than as a box
|
|
1422
1851
|
* around the words.
|
|
1423
1852
|
*/
|
|
1424
|
-
[data-ui
|
|
1853
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-option] {
|
|
1425
1854
|
--slotted-selection-halo-opacity: 0;
|
|
1426
1855
|
|
|
1427
1856
|
align-items: center;
|
|
@@ -1433,26 +1862,25 @@
|
|
|
1433
1862
|
padding-inline: var(--_gap);
|
|
1434
1863
|
}
|
|
1435
1864
|
|
|
1436
|
-
[data-ui
|
|
1437
|
-
[data-part='filter-option']:not([data-disabled]):hover {
|
|
1865
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-option]:not([data-disabled]):hover {
|
|
1438
1866
|
background-color: var(--_hover);
|
|
1439
1867
|
}
|
|
1440
1868
|
|
|
1441
1869
|
/* The count is the consumer's fact about their own query, so it is set apart
|
|
1442
1870
|
from the value rather than beside it as a second label. */
|
|
1443
|
-
[data-ui
|
|
1871
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-option] > [data-count] {
|
|
1444
1872
|
color: var(--_muted);
|
|
1445
1873
|
font-variant-numeric: tabular-nums;
|
|
1446
1874
|
}
|
|
1447
1875
|
|
|
1448
1876
|
/* The covering checkbox is a row of the same list and a boundary at once: it
|
|
1449
1877
|
answers for everything under it, so the rule says where "everything" ends. */
|
|
1450
|
-
[data-ui
|
|
1878
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-option][data-covering] {
|
|
1451
1879
|
border-block-end: var(--_rule-width) solid var(--_rule);
|
|
1452
1880
|
padding-block-end: var(--_gap);
|
|
1453
1881
|
}
|
|
1454
1882
|
|
|
1455
|
-
[data-ui
|
|
1883
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-empty] {
|
|
1456
1884
|
color: var(--_muted);
|
|
1457
1885
|
padding-block: var(--_pad-block);
|
|
1458
1886
|
text-align: center;
|
|
@@ -1460,7 +1888,7 @@
|
|
|
1460
1888
|
|
|
1461
1889
|
/* Clear at the leading edge and Apply at the trailing one: the destructive
|
|
1462
1890
|
answer is farthest from the one a reader presses without reading. */
|
|
1463
|
-
[data-ui
|
|
1891
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-actions] {
|
|
1464
1892
|
border-block-start: var(--_rule-width) solid var(--_rule);
|
|
1465
1893
|
display: flex;
|
|
1466
1894
|
gap: var(--_gap);
|
|
@@ -1469,25 +1897,25 @@
|
|
|
1469
1897
|
}
|
|
1470
1898
|
|
|
1471
1899
|
/* The chevron is the `Glyph` the binding draws inside the button. */
|
|
1472
|
-
[data-ui
|
|
1900
|
+
[data-ui-table] [data-part-expander] > [data-ui-icon] {
|
|
1473
1901
|
--slotted-icon-size: var(--_icon-size);
|
|
1474
1902
|
rotate: 0deg;
|
|
1475
1903
|
transition: rotate var(--slotted-control-transition-duration, var(--slotted-duration-short))
|
|
1476
1904
|
var(--slotted-control-transition-easing, var(--slotted-easing-standard));
|
|
1477
1905
|
}
|
|
1478
1906
|
|
|
1479
|
-
[data-ui
|
|
1907
|
+
[data-ui-table] [data-part-expander][aria-expanded='true'] > [data-ui-icon] {
|
|
1480
1908
|
rotate: 90deg;
|
|
1481
1909
|
}
|
|
1482
1910
|
|
|
1483
1911
|
/* A chevron is direction-sensitive artwork, so it is mirrored rather than
|
|
1484
1912
|
reused: a closed row in Arabic points to the start of the line, which is
|
|
1485
1913
|
the right-hand side. */
|
|
1486
|
-
[data-ui
|
|
1914
|
+
[data-ui-table]:dir(rtl) [data-part-expander] > [data-ui-icon] {
|
|
1487
1915
|
scale: -1 1;
|
|
1488
1916
|
}
|
|
1489
1917
|
|
|
1490
|
-
[data-ui
|
|
1918
|
+
[data-ui-table]:dir(rtl) [data-part-expander][aria-expanded='true'] > [data-ui-icon] {
|
|
1491
1919
|
rotate: -90deg;
|
|
1492
1920
|
}
|
|
1493
1921
|
|
|
@@ -1499,25 +1927,25 @@
|
|
|
1499
1927
|
* reach, and it takes the sunken ground so the record it belongs to still
|
|
1500
1928
|
* reads as one thing.
|
|
1501
1929
|
*/
|
|
1502
|
-
[data-ui
|
|
1930
|
+
[data-ui-table] [data-part-detail] {
|
|
1503
1931
|
background-color: var(--_stripe);
|
|
1504
1932
|
}
|
|
1505
1933
|
|
|
1506
|
-
[data-ui
|
|
1934
|
+
[data-ui-table] [data-part-detail] > [data-part-cell] {
|
|
1507
1935
|
padding-block: var(--_pad-block);
|
|
1508
1936
|
padding-inline: var(--_pad-inline);
|
|
1509
1937
|
}
|
|
1510
1938
|
|
|
1511
1939
|
/* A detail row is not a record, so it takes no stripe of its own and never
|
|
1512
1940
|
shifts the alternation of the rows around it. */
|
|
1513
|
-
[data-ui
|
|
1941
|
+
[data-ui-table][data-striped] [data-part-body] > [data-part-detail] {
|
|
1514
1942
|
background-color: var(--_stripe);
|
|
1515
1943
|
}
|
|
1516
1944
|
|
|
1517
1945
|
/**
|
|
1518
1946
|
* ── Empty and loading ──────────────────────────────────────────────────
|
|
1519
1947
|
*/
|
|
1520
|
-
[data-ui
|
|
1948
|
+
[data-ui-table] [data-part-empty] {
|
|
1521
1949
|
color: var(--_muted);
|
|
1522
1950
|
padding-block: var(--slotted-space-9, 2rem);
|
|
1523
1951
|
padding-inline: var(--_pad-inline);
|
|
@@ -1527,7 +1955,7 @@
|
|
|
1527
1955
|
/* The skeleton rows of a first load. The shapes are `skeleton`'s own; what
|
|
1528
1956
|
this family supplies is the row that holds them, so the table's shape is
|
|
1529
1957
|
visible before its content arrives. */
|
|
1530
|
-
[data-ui
|
|
1958
|
+
[data-ui-table] [data-part-loader] > [data-part-row] > * {
|
|
1531
1959
|
padding-block: var(--_pad-block);
|
|
1532
1960
|
padding-inline: var(--_pad-inline);
|
|
1533
1961
|
}
|
|
@@ -1537,7 +1965,7 @@
|
|
|
1537
1965
|
* body dims and nothing moves: the column widths are the table's, the scroll
|
|
1538
1966
|
* position is the reader's, and swapping rows for skeletons would take both.
|
|
1539
1967
|
*/
|
|
1540
|
-
[data-ui
|
|
1968
|
+
[data-ui-table][data-loading] [data-part-body] {
|
|
1541
1969
|
opacity: 0.55;
|
|
1542
1970
|
transition: opacity var(--slotted-control-transition-duration, var(--slotted-duration-short))
|
|
1543
1971
|
var(--slotted-control-transition-easing, var(--slotted-easing-standard));
|
|
@@ -1552,7 +1980,9 @@
|
|
|
1552
1980
|
* kind of boundary — and it is not the `footer`, which is a bar outside the
|
|
1553
1981
|
* table holding the consumer's own controls.
|
|
1554
1982
|
*/
|
|
1555
|
-
[data-ui
|
|
1983
|
+
[data-ui-table] [data-part-summary] > [data-part-row] > * {
|
|
1984
|
+
--_pinned-ground: var(--_head-surface);
|
|
1985
|
+
|
|
1556
1986
|
background-color: var(--_head-surface);
|
|
1557
1987
|
border-block-start: var(--_rule-width) solid var(--_rule-strong);
|
|
1558
1988
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
@@ -1560,7 +1990,9 @@
|
|
|
1560
1990
|
padding-inline: var(--_pad-inline);
|
|
1561
1991
|
}
|
|
1562
1992
|
|
|
1563
|
-
[data-ui
|
|
1993
|
+
[data-ui-table][data-variant='plain'] [data-part-summary] > [data-part-row] > * {
|
|
1994
|
+
--_pinned-ground: transparent;
|
|
1995
|
+
|
|
1564
1996
|
background-color: transparent;
|
|
1565
1997
|
}
|
|
1566
1998
|
|
|
@@ -1576,7 +2008,7 @@
|
|
|
1576
2008
|
* a count, a bulk-action bar. The family draws the rule above it and the
|
|
1577
2009
|
* inset around it, and nothing else.
|
|
1578
2010
|
*/
|
|
1579
|
-
[data-ui
|
|
2011
|
+
[data-ui-table] [data-part-footer] {
|
|
1580
2012
|
align-items: center;
|
|
1581
2013
|
border-block-start: var(--_rule-width) solid var(--_rule);
|
|
1582
2014
|
display: flex;
|
|
@@ -1598,7 +2030,7 @@
|
|
|
1598
2030
|
* So the bar states the room instead of asking for it, and a control that
|
|
1599
2031
|
* wants to sit at the trailing edge justifies itself there.
|
|
1600
2032
|
*/
|
|
1601
|
-
[data-ui
|
|
2033
|
+
[data-ui-table] [data-part-footer] > :last-child {
|
|
1602
2034
|
flex: 1 1 auto;
|
|
1603
2035
|
/* And it aligns its own content to the trailing edge, which is where a
|
|
1604
2036
|
listing screen puts its paging control. The rule is structural rather
|
|
@@ -1615,15 +2047,14 @@
|
|
|
1615
2047
|
* repeats at the top of every printed page.
|
|
1616
2048
|
*/
|
|
1617
2049
|
@media print {
|
|
1618
|
-
[data-ui
|
|
2050
|
+
[data-ui-table] [data-part-scroll] {
|
|
1619
2051
|
max-block-size: none;
|
|
1620
2052
|
overflow: visible;
|
|
1621
2053
|
}
|
|
1622
2054
|
|
|
1623
|
-
[data-ui
|
|
1624
|
-
[data-ui
|
|
1625
|
-
[data-ui
|
|
1626
|
-
[data-ui='table'] [data-sticky] {
|
|
2055
|
+
[data-ui-table][data-sticky-header] [data-part-head],
|
|
2056
|
+
[data-ui-table][data-sticky-footer] [data-part-summary] > [data-part-row] > *,
|
|
2057
|
+
[data-ui-table] [data-sticky] {
|
|
1627
2058
|
position: static;
|
|
1628
2059
|
}
|
|
1629
2060
|
}
|