@slotted/styles 0.1.0-beta.3 → 0.1.0-beta.30
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 +13 -1
- package/src/accordion/accordion.css +11 -11
- 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 +96 -96
- package/src/alert/alert.tokens.json +5 -0
- package/src/app-shell/app-shell.css +455 -328
- package/src/app-shell/app-shell.tokens.json +5 -2
- package/src/aspect-ratio/aspect-ratio.css +9 -9
- package/src/attachment/attachment.css +118 -114
- package/src/avatar/avatar.css +96 -66
- package/src/avatar/avatar.tokens.json +7 -0
- package/src/avatar-group/avatar-group.css +22 -23
- package/src/badge/badge.css +54 -46
- package/src/badge/badge.tokens.json +5 -0
- package/src/breadcrumb/breadcrumb.css +52 -52
- package/src/button/button.css +137 -89
- package/src/button/button.tokens.json +5 -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 +139 -109
- package/src/calendar/calendar.tokens.json +5 -1
- package/src/card/card.css +68 -65
- package/src/carousel/carousel.css +158 -169
- package/src/cascader/cascader.css +158 -157
- package/src/cascader/cascader.tokens.json +1 -0
- package/src/chart/chart.css +288 -267
- package/src/chart/chart.tokens.json +4 -0
- package/src/checkbox/checkbox.css +143 -148
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/code-block/code-block.css +85 -89
- package/src/collapsible/collapsible.css +76 -80
- package/src/color-picker/color-picker.css +106 -114
- package/src/column-manager/column-manager.css +111 -119
- package/src/combobox/combobox.css +203 -130
- package/src/combobox/combobox.tokens.json +3 -0
- package/src/command-palette/command-palette.css +155 -102
- package/src/command-palette/command-palette.tokens.json +2 -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 +185 -115
- package/src/data-grid/data-grid.css +598 -496
- package/src/data-grid/data-grid.tokens.json +5 -1
- package/src/data-list/data-list.css +82 -71
- 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 +117 -58
- package/src/date-picker/date-picker.tokens.json +5 -0
- package/src/date-range-picker/date-range-picker.css +157 -127
- package/src/date-range-picker/date-range-picker.tokens.json +4 -0
- 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 +123 -70
- package/src/datetime-picker/datetime-picker.tokens.json +4 -1
- package/src/datetime-range-picker/datetime-range-picker.css +191 -163
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
- package/src/description-list/description-list.css +105 -75
- 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 +434 -198
- package/src/dialog/dialog.tokens.json +7 -0
- package/src/divider/divider.css +20 -20
- package/src/drawer/drawer.css +597 -236
- package/src/drawer/drawer.tokens.json +13 -0
- package/src/entity-picker/entity-picker.css +323 -270
- package/src/entity-picker/entity-picker.tokens.json +3 -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 +43 -33
- package/src/field-group/field-group.tokens.json +3 -0
- package/src/filter-bar/filter-bar.css +200 -216
- package/src/form/form.css +99 -25
- package/src/form/form.tokens.json +5 -0
- package/src/fullscreen/fullscreen.css +26 -27
- package/src/grid/grid.css +29 -29
- 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 +144 -165
- package/src/inline/inline.css +28 -28
- package/src/inline-message/inline-message.css +162 -86
- package/src/inline-message/inline-message.tokens.json +4 -0
- package/src/kbd/kbd.css +62 -50
- package/src/kbd/kbd.tokens.json +3 -0
- package/src/link/link.css +54 -33
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +23 -23
- package/src/list-item/list-item.css +89 -75
- package/src/list-item/list-item.tokens.json +7 -0
- package/src/listbox/listbox.css +71 -70
- package/src/listbox/listbox.tokens.json +0 -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 +162 -82
- package/src/menu/menu.tokens.json +2 -1
- package/src/menubar/menubar.css +16 -16
- package/src/message/message.css +1250 -1253
- package/src/message/message.tokens.json +5 -0
- package/src/message-scroller/message-scroller.css +323 -320
- package/src/multi-select/multi-select.css +230 -172
- package/src/multi-select/multi-select.tokens.json +2 -0
- package/src/navigation-menu/navigation-menu.css +169 -190
- package/src/notification-center/notification-center.css +153 -161
- package/src/notification-center/notification-center.tokens.json +3 -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 +41 -27
- package/src/page/page.tokens.json +1 -0
- package/src/page-header/page-header.css +341 -286
- package/src/page-header/page-header.tokens.json +5 -0
- package/src/pagination/pagination.css +75 -79
- package/src/popover/popover.css +81 -64
- package/src/popover/popover.tokens.json +1 -0
- package/src/progress-indicator/progress-indicator.css +192 -136
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +260 -113
- 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 +146 -142
- package/src/rating/rating.tokens.json +1 -0
- package/src/result-state/result-state.css +94 -101
- package/src/runtime-properties.mjs +19 -6
- package/src/saved-views/saved-views.css +43 -49
- package/src/scroll-area/scroll-area.css +44 -37
- package/src/section/section.css +178 -43
- package/src/section/section.tokens.json +8 -2
- package/src/segmented-control/segmented-control.css +210 -133
- package/src/segmented-control/segmented-control.tokens.json +7 -11
- package/src/select/select.css +210 -147
- package/src/select/select.tokens.json +3 -0
- package/src/side-navigation/side-navigation.css +193 -196
- package/src/side-navigation/side-navigation.tokens.json +1 -0
- package/src/skeleton/skeleton.css +57 -58
- package/src/slider/slider.css +101 -103
- 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 +25 -25
- package/src/stat-card/stat-card.css +415 -245
- package/src/stat-card/stat-card.tokens.json +8 -0
- package/src/status-indicator/status-indicator.css +124 -100
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +78 -82
- package/src/switch/switch.css +100 -106
- package/src/table/table.css +270 -198
- package/src/table/table.tokens.json +2 -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 +109 -88
- package/src/tag/tag.tokens.json +10 -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 +116 -64
- package/src/time-picker/time-picker.tokens.json +4 -1
- package/src/time-range-picker/time-range-picker.css +168 -140
- package/src/time-range-picker/time-range-picker.tokens.json +4 -0
- package/src/timeline/timeline.css +280 -292
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +138 -121
- package/src/toast/toast.tokens.json +6 -0
- package/src/toggle/toggle.css +34 -38
- package/src/toggle-group/toggle-group.css +73 -77
- package/src/toolbar/toolbar.css +33 -38
- package/src/tooltip/tooltip.css +65 -39
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +252 -268
- package/src/tour/tour.css +64 -73
- package/src/transfer/transfer.css +164 -168
- package/src/tree/tree.css +113 -121
- package/src/typography/typography.css +42 -38
- package/src/typography/typography.tokens.json +1 -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,12 +233,12 @@
|
|
|
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);
|
|
234
240
|
padding-block: var(--_pad-block);
|
|
235
|
-
padding-inline: var(--
|
|
241
|
+
padding-inline: var(--_edge-inset);
|
|
236
242
|
text-align: start;
|
|
237
243
|
}
|
|
238
244
|
|
|
@@ -251,8 +257,11 @@
|
|
|
251
257
|
column header above the alignment rule that comes after it — a header
|
|
252
258
|
carrying data-align="end" computed text-align: start, so a numeric
|
|
253
259
|
column's digits ended at one edge and their name at the other. */
|
|
254
|
-
[data-ui
|
|
255
|
-
[data-ui
|
|
260
|
+
[data-ui-table] [data-part-column-header],
|
|
261
|
+
[data-ui-table] [data-part-head] [data-part-selection] {
|
|
262
|
+
/* What a pinned header cell paints, in place of its row's ground. */
|
|
263
|
+
--_pinned-ground: var(--_head-surface);
|
|
264
|
+
|
|
256
265
|
background-color: var(--_head-surface);
|
|
257
266
|
border-block-end: var(--_rule-width) solid var(--_rule-strong);
|
|
258
267
|
color: var(--_text);
|
|
@@ -272,15 +281,20 @@
|
|
|
272
281
|
vertical-align: bottom;
|
|
273
282
|
}
|
|
274
283
|
|
|
275
|
-
[data-ui
|
|
284
|
+
[data-ui-table][data-variant='plain'] [data-part-column-header] {
|
|
285
|
+
--_pinned-ground: transparent;
|
|
286
|
+
|
|
276
287
|
background-color: transparent;
|
|
277
288
|
}
|
|
278
289
|
|
|
279
290
|
/**
|
|
280
291
|
* ── Rows and cells ─────────────────────────────────────────────────────
|
|
281
292
|
*/
|
|
282
|
-
[data-ui
|
|
283
|
-
|
|
293
|
+
[data-ui-table] [data-part-row] {
|
|
294
|
+
/* Published for a pinned cell, which paints it over an opaque ground. */
|
|
295
|
+
--_row-ground: var(--_surface);
|
|
296
|
+
|
|
297
|
+
background-color: var(--_row-ground);
|
|
284
298
|
}
|
|
285
299
|
|
|
286
300
|
/**
|
|
@@ -288,7 +302,7 @@
|
|
|
288
302
|
*
|
|
289
303
|
* The middle, because a row is as tall as its tallest cell: a one-line value
|
|
290
304
|
* beside a three-line one reads as belonging to the same record when both are
|
|
291
|
-
*
|
|
305
|
+
* centerd, and reads as hanging from the ceiling when both are not. It is the
|
|
292
306
|
* answer Carbon, AG Grid and Material each arrive at, and the answer a table
|
|
293
307
|
* of one-line rows cannot tell apart.
|
|
294
308
|
*
|
|
@@ -299,35 +313,80 @@
|
|
|
299
313
|
* because the cell that wants the other answer is usually one: the actions
|
|
300
314
|
* pinned at the end of a tall row.
|
|
301
315
|
*/
|
|
302
|
-
[data-ui
|
|
316
|
+
[data-ui-table] {
|
|
303
317
|
--_cell-align: middle;
|
|
304
318
|
}
|
|
305
319
|
|
|
306
|
-
[data-ui
|
|
320
|
+
[data-ui-table][data-cell-align='start'] {
|
|
307
321
|
--_cell-align: top;
|
|
308
322
|
}
|
|
309
323
|
|
|
310
|
-
[data-ui
|
|
324
|
+
[data-ui-table][data-cell-align='end'] {
|
|
311
325
|
--_cell-align: bottom;
|
|
312
326
|
}
|
|
313
327
|
|
|
314
|
-
[data-ui
|
|
315
|
-
[data-ui
|
|
328
|
+
[data-ui-table] [data-part-cell],
|
|
329
|
+
[data-ui-table] [data-part-row-header] {
|
|
316
330
|
padding-block: var(--_pad-block);
|
|
317
331
|
padding-inline: var(--_pad-inline);
|
|
318
332
|
text-align: start;
|
|
319
333
|
vertical-align: var(--_cell-align);
|
|
320
334
|
}
|
|
321
335
|
|
|
322
|
-
|
|
336
|
+
/**
|
|
337
|
+
* ── The outer edges ────────────────────────────────────────────────────
|
|
338
|
+
*
|
|
339
|
+
* The first and the last column take `--_edge-inset` on their outer side:
|
|
340
|
+
* the cell's own inset by default, and under `edges="flush"` the theme's
|
|
341
|
+
* `--slotted-table-edge-inset`, nought when it sets none — so a `plain` or
|
|
342
|
+
* `ruled` table lines its text up with the heading above it. A `framed`
|
|
343
|
+
* table keeps the inset whatever `edges` says: its text stands against a
|
|
344
|
+
* border, and text touching a border is the cramped picture the frame
|
|
345
|
+
* exists to avoid. A pinned column keeps its own offset, which is a
|
|
346
|
+
* position rather than a padding, and the selection cell keeps its own
|
|
347
|
+
* inset because it is not one of the parts named here — a table that leads
|
|
348
|
+
* with a chooser has no text at its edge.
|
|
349
|
+
*/
|
|
350
|
+
[data-ui-table][data-part-root] {
|
|
351
|
+
--_edge-inset: var(--_pad-inline);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
[data-ui-table][data-part-root][data-edges='flush']:is(
|
|
355
|
+
[data-variant='plain'],
|
|
356
|
+
[data-variant='ruled']
|
|
357
|
+
) {
|
|
358
|
+
--_edge-inset: var(--slotted-table-edge-inset, 0px);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
[data-ui-table]
|
|
362
|
+
[data-part-row]
|
|
363
|
+
> :is([data-part-cell], [data-part-row-header], [data-part-group-header]):first-child,
|
|
364
|
+
[data-ui-table]
|
|
365
|
+
[data-part-row]
|
|
366
|
+
> [data-part-column-header]:first-child:not(:has(> [data-part-sort])),
|
|
367
|
+
[data-ui-table] [data-part-row] > [data-part-column-header]:first-child > [data-part-sort] {
|
|
368
|
+
padding-inline-start: var(--_edge-inset);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
[data-ui-table]
|
|
372
|
+
[data-part-row]
|
|
373
|
+
> :is([data-part-cell], [data-part-row-header], [data-part-group-header]):last-child,
|
|
374
|
+
[data-ui-table]
|
|
375
|
+
[data-part-row]
|
|
376
|
+
> [data-part-column-header]:last-child:not(:has(> [data-part-sort])),
|
|
377
|
+
[data-ui-table] [data-part-row] > [data-part-column-header]:last-child > [data-part-sort] {
|
|
378
|
+
padding-inline-end: var(--_edge-inset);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
[data-ui-table] [data-block-align='start'] {
|
|
323
382
|
vertical-align: top;
|
|
324
383
|
}
|
|
325
384
|
|
|
326
|
-
[data-ui
|
|
385
|
+
[data-ui-table] [data-block-align='center'] {
|
|
327
386
|
vertical-align: middle;
|
|
328
387
|
}
|
|
329
388
|
|
|
330
|
-
[data-ui
|
|
389
|
+
[data-ui-table] [data-block-align='end'] {
|
|
331
390
|
vertical-align: bottom;
|
|
332
391
|
}
|
|
333
392
|
|
|
@@ -356,24 +415,24 @@
|
|
|
356
415
|
* `timeline` or a nested table has a `plain` variant of its own and is not a
|
|
357
416
|
* control. `table.styles.test.mjs` holds the two lists against each other.
|
|
358
417
|
*/
|
|
359
|
-
[data-ui
|
|
360
|
-
:is([data-part
|
|
361
|
-
> [data-part
|
|
362
|
-
[data-ui
|
|
363
|
-
[data-ui
|
|
364
|
-
[data-ui
|
|
365
|
-
[data-ui
|
|
366
|
-
[data-ui
|
|
367
|
-
[data-ui
|
|
368
|
-
[data-ui
|
|
369
|
-
[data-ui
|
|
370
|
-
[data-ui
|
|
371
|
-
[data-ui
|
|
372
|
-
[data-ui
|
|
373
|
-
[data-ui
|
|
374
|
-
[data-ui
|
|
375
|
-
[data-ui
|
|
376
|
-
[data-ui
|
|
418
|
+
[data-ui-table]
|
|
419
|
+
:is([data-part-cell], [data-part-row-header]):has(
|
|
420
|
+
> [data-part-root][data-variant='plain']:is(
|
|
421
|
+
[data-ui-select],
|
|
422
|
+
[data-ui-combobox],
|
|
423
|
+
[data-ui-multi-select],
|
|
424
|
+
[data-ui-text-field],
|
|
425
|
+
[data-ui-textarea],
|
|
426
|
+
[data-ui-number-field],
|
|
427
|
+
[data-ui-currency-field],
|
|
428
|
+
[data-ui-date-field],
|
|
429
|
+
[data-ui-time-field],
|
|
430
|
+
[data-ui-datetime-field],
|
|
431
|
+
[data-ui-tags-input],
|
|
432
|
+
[data-ui-date-range-picker],
|
|
433
|
+
[data-ui-time-range-picker],
|
|
434
|
+
[data-ui-datetime-range-picker],
|
|
435
|
+
[data-ui-entity-picker]
|
|
377
436
|
)
|
|
378
437
|
) {
|
|
379
438
|
--slotted-control-padding-inline-sm: var(--_pad-inline);
|
|
@@ -387,11 +446,11 @@
|
|
|
387
446
|
}
|
|
388
447
|
|
|
389
448
|
/* A row header names the record, so it carries the weight one step above the
|
|
390
|
-
values beside it and nothing else. It states no
|
|
449
|
+
values beside it and nothing else. It states no color of its own: read
|
|
391
450
|
against the row's ink, a selected record's name stayed the page's black
|
|
392
451
|
while every value beside it turned accent, and a disabled row's name stayed
|
|
393
452
|
at full strength — the two states the row paints and this cell refused. */
|
|
394
|
-
[data-ui
|
|
453
|
+
[data-ui-table] [data-part-row-header] {
|
|
395
454
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
396
455
|
}
|
|
397
456
|
|
|
@@ -399,16 +458,16 @@
|
|
|
399
458
|
it under `border-collapse: separate`. The last row of the body gives its
|
|
400
459
|
rule up unless a footer follows, so a `ruled` table does not end in a line
|
|
401
460
|
with nothing under it. */
|
|
402
|
-
[data-ui
|
|
403
|
-
[data-part
|
|
404
|
-
> [data-part
|
|
461
|
+
[data-ui-table]:is([data-variant='ruled'], [data-variant='framed'])
|
|
462
|
+
[data-part-body]
|
|
463
|
+
> [data-part-row]
|
|
405
464
|
> * {
|
|
406
465
|
border-block-end: var(--_rule-width) solid var(--_rule);
|
|
407
466
|
}
|
|
408
467
|
|
|
409
|
-
[data-ui
|
|
410
|
-
[data-part
|
|
411
|
-
> [data-part
|
|
468
|
+
[data-ui-table]:is([data-variant='ruled'], [data-variant='framed'])
|
|
469
|
+
[data-part-body]
|
|
470
|
+
> [data-part-row]:last-child
|
|
412
471
|
> * {
|
|
413
472
|
border-block-end-color: transparent;
|
|
414
473
|
}
|
|
@@ -418,8 +477,8 @@
|
|
|
418
477
|
`nth-child(even)` counts rows the family renders; a detail row is a row of
|
|
419
478
|
the same body, so the stripe follows the record it belongs to rather than
|
|
420
479
|
alternating around it — see the detail rule below. */
|
|
421
|
-
[data-ui
|
|
422
|
-
|
|
480
|
+
[data-ui-table][data-striped] [data-part-body] > [data-part-row]:nth-child(even) {
|
|
481
|
+
--_row-ground: var(--_stripe);
|
|
423
482
|
}
|
|
424
483
|
|
|
425
484
|
/**
|
|
@@ -430,8 +489,8 @@
|
|
|
430
489
|
* every pointer state rather than a rule of its own: a row a consumer has
|
|
431
490
|
* disabled does not answer the pointer at all.
|
|
432
491
|
*/
|
|
433
|
-
[data-ui
|
|
434
|
-
|
|
492
|
+
[data-ui-table] [data-part-body] > [data-part-row]:not([data-disabled]):hover {
|
|
493
|
+
--_row-ground: var(--_hover);
|
|
435
494
|
}
|
|
436
495
|
|
|
437
496
|
/**
|
|
@@ -443,21 +502,19 @@
|
|
|
443
502
|
*
|
|
444
503
|
* The ink is what carries the state where the ground cannot: every tone
|
|
445
504
|
* ground is the page's own white in `high-contrast`, and the checkbox's mark
|
|
446
|
-
* is what survives forced
|
|
505
|
+
* is what survives forced colors, which is where WCAG 2.2 SC 1.4.1 puts the
|
|
447
506
|
* requirement anyway.
|
|
448
507
|
*/
|
|
449
|
-
[data-ui
|
|
450
|
-
|
|
508
|
+
[data-ui-table] [data-part-body] > [data-part-row][data-selected] {
|
|
509
|
+
--_row-ground: var(--_selected);
|
|
451
510
|
color: var(--_selected-text);
|
|
452
511
|
}
|
|
453
512
|
|
|
454
|
-
[data-ui
|
|
455
|
-
|
|
456
|
-
> [data-part='row'][data-selected]:not([data-disabled]):hover {
|
|
457
|
-
background-color: var(--_selected-hover);
|
|
513
|
+
[data-ui-table] [data-part-body] > [data-part-row][data-selected]:not([data-disabled]):hover {
|
|
514
|
+
--_row-ground: var(--_selected-hover);
|
|
458
515
|
}
|
|
459
516
|
|
|
460
|
-
[data-ui
|
|
517
|
+
[data-ui-table] [data-part-row][data-disabled] {
|
|
461
518
|
color: var(--slotted-disabled-foreground, GrayText);
|
|
462
519
|
}
|
|
463
520
|
|
|
@@ -468,15 +525,15 @@
|
|
|
468
525
|
* pinned cell copies the row's ground and a translucent one shows the
|
|
469
526
|
* scrolled cells through it. Selection is stronger and paints over it.
|
|
470
527
|
*/
|
|
471
|
-
[data-ui
|
|
472
|
-
|
|
528
|
+
[data-ui-table] [data-part-body] > [data-part-row][data-current]:not([data-selected]) {
|
|
529
|
+
--_row-ground: var(
|
|
473
530
|
--slotted-table-row-surface-current,
|
|
474
531
|
var(--slotted-tone-secondary-subtle-active, ButtonFace)
|
|
475
532
|
);
|
|
476
533
|
}
|
|
477
534
|
|
|
478
535
|
/* A row with an action of its own is a thing the pointer presses. */
|
|
479
|
-
[data-ui
|
|
536
|
+
[data-ui-table] [data-part-body] > [data-part-row][data-interactive]:not([data-disabled]) {
|
|
480
537
|
cursor: pointer;
|
|
481
538
|
}
|
|
482
539
|
|
|
@@ -488,7 +545,7 @@
|
|
|
488
545
|
* up. The ground is the stripe's step, opaque for the same reason a pinned
|
|
489
546
|
* cell's is, and the band stays where it is when the pointer passes.
|
|
490
547
|
*/
|
|
491
|
-
[data-ui
|
|
548
|
+
[data-ui-table] [data-part-group-header] {
|
|
492
549
|
background-color: var(--slotted-table-group-surface, var(--_stripe));
|
|
493
550
|
border-block-end: var(--_rule-width) solid var(--_rule);
|
|
494
551
|
color: var(--slotted-table-group-color, var(--_text));
|
|
@@ -498,7 +555,7 @@
|
|
|
498
555
|
text-align: start;
|
|
499
556
|
}
|
|
500
557
|
|
|
501
|
-
[data-ui
|
|
558
|
+
[data-ui-table] [data-part-group-content] {
|
|
502
559
|
align-items: baseline;
|
|
503
560
|
display: flex;
|
|
504
561
|
gap: var(--_gap);
|
|
@@ -506,7 +563,7 @@
|
|
|
506
563
|
min-inline-size: 0;
|
|
507
564
|
}
|
|
508
565
|
|
|
509
|
-
[data-ui
|
|
566
|
+
[data-ui-table] [data-part-group-end] {
|
|
510
567
|
font-variant-numeric: tabular-nums;
|
|
511
568
|
text-align: end;
|
|
512
569
|
white-space: nowrap;
|
|
@@ -517,15 +574,15 @@
|
|
|
517
574
|
* header's height is one row of the control scale and its rule; a header
|
|
518
575
|
* that wraps sets `--slotted-table-group-sticky-offset` itself.
|
|
519
576
|
*/
|
|
520
|
-
[data-ui
|
|
577
|
+
[data-ui-table] [data-part-group-row][data-sticky] > [data-part-group-header] {
|
|
521
578
|
inset-block-start: var(--slotted-table-group-sticky-offset, 0);
|
|
522
579
|
position: sticky;
|
|
523
580
|
z-index: var(--slotted-z-index-sticky, 100);
|
|
524
581
|
}
|
|
525
582
|
|
|
526
|
-
[data-ui
|
|
527
|
-
[data-part
|
|
528
|
-
> [data-part
|
|
583
|
+
[data-ui-table][data-sticky-header]
|
|
584
|
+
[data-part-group-row][data-sticky]
|
|
585
|
+
> [data-part-group-header] {
|
|
529
586
|
inset-block-start: var(
|
|
530
587
|
--slotted-table-group-sticky-offset,
|
|
531
588
|
calc(var(--_row-min-block) + var(--_rule-width))
|
|
@@ -533,7 +590,7 @@
|
|
|
533
590
|
}
|
|
534
591
|
|
|
535
592
|
@media (forced-colors: active) {
|
|
536
|
-
[data-ui
|
|
593
|
+
[data-ui-table] [data-part-body] > [data-part-row][data-current] {
|
|
537
594
|
outline: var(--_rule-width) solid Highlight;
|
|
538
595
|
outline-offset: calc(var(--_rule-width) * -1);
|
|
539
596
|
}
|
|
@@ -547,25 +604,25 @@
|
|
|
547
604
|
* `start` and `end` are the logical values, so a column aligned to the end is
|
|
548
605
|
* on the right in English and on the left in Arabic.
|
|
549
606
|
*/
|
|
550
|
-
[data-ui
|
|
607
|
+
[data-ui-table] [data-align='start'] {
|
|
551
608
|
text-align: start;
|
|
552
609
|
}
|
|
553
610
|
|
|
554
|
-
[data-ui
|
|
611
|
+
[data-ui-table] [data-align='center'] {
|
|
555
612
|
text-align: center;
|
|
556
613
|
}
|
|
557
614
|
|
|
558
|
-
[data-ui
|
|
615
|
+
[data-ui-table] [data-align='end'] {
|
|
559
616
|
text-align: end;
|
|
560
617
|
}
|
|
561
618
|
|
|
562
619
|
/* A ten under a nine is only a column if the digits are the same width. The
|
|
563
620
|
alignment is inferred once, and only where the consumer stated none. */
|
|
564
|
-
[data-ui
|
|
621
|
+
[data-ui-table] [data-numeric] {
|
|
565
622
|
font-variant-numeric: tabular-nums;
|
|
566
623
|
}
|
|
567
624
|
|
|
568
|
-
[data-ui
|
|
625
|
+
[data-ui-table] [data-numeric]:not([data-align]) {
|
|
569
626
|
text-align: end;
|
|
570
627
|
}
|
|
571
628
|
|
|
@@ -576,18 +633,18 @@
|
|
|
576
633
|
* decision is that a truncated string stays readable to assistive technology
|
|
577
634
|
* and reachable in full.
|
|
578
635
|
*/
|
|
579
|
-
[data-ui
|
|
636
|
+
[data-ui-table] [data-text='wrap'] {
|
|
580
637
|
/* An identifier, a hash or a URL is one unbroken token, and every surveyed
|
|
581
638
|
table lets it set the column's width and push the rest of the table
|
|
582
639
|
sideways. */
|
|
583
640
|
overflow-wrap: anywhere;
|
|
584
641
|
}
|
|
585
642
|
|
|
586
|
-
[data-ui
|
|
643
|
+
[data-ui-table] [data-text='nowrap'] {
|
|
587
644
|
white-space: nowrap;
|
|
588
645
|
}
|
|
589
646
|
|
|
590
|
-
[data-ui
|
|
647
|
+
[data-ui-table] [data-text='truncate'] {
|
|
591
648
|
overflow: hidden;
|
|
592
649
|
text-overflow: ellipsis;
|
|
593
650
|
white-space: nowrap;
|
|
@@ -629,24 +686,24 @@
|
|
|
629
686
|
* top, over the first rows. A `page` table inside a scrolling box of the
|
|
630
687
|
* consumer's own sets the offset on that box, `0` for its top edge.
|
|
631
688
|
*/
|
|
632
|
-
[data-ui
|
|
689
|
+
[data-ui-table][data-sticky-header] [data-part-column-header],
|
|
633
690
|
/* The chooser's own header is a `selection` cell and not a `column-header`,
|
|
634
691
|
and a rule naming only the second left the select-all scrolling away while
|
|
635
692
|
every column beside it stayed. */
|
|
636
|
-
[data-ui
|
|
693
|
+
[data-ui-table][data-sticky-header] [data-part-head] [data-part-selection] {
|
|
637
694
|
inset-block-start: 0;
|
|
638
695
|
position: sticky;
|
|
639
696
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 1);
|
|
640
697
|
}
|
|
641
698
|
|
|
642
|
-
[data-ui
|
|
643
|
-
[data-ui
|
|
644
|
-
[data-part
|
|
645
|
-
[data-part
|
|
699
|
+
[data-ui-table][data-sticky-to='page'][data-sticky-header] [data-part-column-header],
|
|
700
|
+
[data-ui-table][data-sticky-to='page'][data-sticky-header]
|
|
701
|
+
[data-part-head]
|
|
702
|
+
[data-part-selection] {
|
|
646
703
|
inset-block-start: var(--slotted-table-sticky-offset, 0);
|
|
647
704
|
}
|
|
648
705
|
|
|
649
|
-
[data-ui
|
|
706
|
+
[data-ui-table][data-sticky-to='page'] [data-part-scroll] {
|
|
650
707
|
overflow: visible;
|
|
651
708
|
}
|
|
652
709
|
|
|
@@ -661,30 +718,43 @@
|
|
|
661
718
|
* It is the `tfoot` that is pinned and not the footer bar: the bar is a
|
|
662
719
|
* sibling of the scroller and never leaves it in the first place.
|
|
663
720
|
*/
|
|
664
|
-
[data-ui
|
|
721
|
+
[data-ui-table][data-sticky-footer] [data-part-summary] > [data-part-row] > * {
|
|
665
722
|
inset-block-end: 0;
|
|
666
723
|
position: sticky;
|
|
667
724
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 1);
|
|
668
725
|
}
|
|
669
726
|
|
|
670
|
-
[data-ui
|
|
671
|
-
[data-part
|
|
672
|
-
> [data-part
|
|
727
|
+
[data-ui-table][data-sticky-to='page'][data-sticky-footer]
|
|
728
|
+
[data-part-summary]
|
|
729
|
+
> [data-part-row]
|
|
673
730
|
> * {
|
|
674
731
|
inset-block-end: var(--slotted-table-sticky-offset-end, 0);
|
|
675
732
|
}
|
|
676
733
|
|
|
677
734
|
/* The corner again, at the bottom: a summary cell that is also a pinned
|
|
678
735
|
column takes both insets and the step above both. */
|
|
679
|
-
[data-ui
|
|
736
|
+
[data-ui-table][data-sticky-footer] [data-part-summary] [data-sticky] {
|
|
680
737
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 2);
|
|
681
738
|
}
|
|
682
739
|
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
740
|
+
/* The ground the row is painted with, whatever state it is in, so a
|
|
741
|
+
hovered, striped or selected row keeps one color across the seam — over
|
|
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.
|
|
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. */
|
|
748
|
+
[data-ui-table] [data-sticky] {
|
|
749
|
+
background:
|
|
750
|
+
linear-gradient(
|
|
751
|
+
var(--_pinned-ground, var(--_row-ground)),
|
|
752
|
+
var(--_pinned-ground, var(--_row-ground))
|
|
753
|
+
),
|
|
754
|
+
var(--slotted-table-sticky-surface, var(--slotted-surface, Canvas));
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
[data-ui-table] [data-sticky='start'] {
|
|
688
758
|
/**
|
|
689
759
|
* Where the column stops, and it is stated rather than measured. Two
|
|
690
760
|
* columns pinned to the same edge both resolve against the scroller, so
|
|
@@ -698,15 +768,14 @@
|
|
|
698
768
|
z-index: var(--slotted-z-index-sticky, 100);
|
|
699
769
|
}
|
|
700
770
|
|
|
701
|
-
[data-ui
|
|
702
|
-
background-color: inherit;
|
|
771
|
+
[data-ui-table] [data-sticky='end'] {
|
|
703
772
|
inset-inline-end: var(--slotted-table-sticky-inset, 0);
|
|
704
773
|
position: sticky;
|
|
705
774
|
z-index: var(--slotted-z-index-sticky, 100);
|
|
706
775
|
}
|
|
707
776
|
|
|
708
|
-
[data-ui
|
|
709
|
-
[data-ui
|
|
777
|
+
[data-ui-table][data-sticky-header] [data-part-column-header][data-sticky],
|
|
778
|
+
[data-ui-table][data-sticky-header] [data-part-head] [data-part-selection][data-sticky] {
|
|
710
779
|
background-color: var(--_head-surface);
|
|
711
780
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 2);
|
|
712
781
|
}
|
|
@@ -739,7 +808,7 @@
|
|
|
739
808
|
positioned box, so the line below resolves against it — and a `relative`
|
|
740
809
|
written at this point in the file would land after the sticky rules and
|
|
741
810
|
unpin every pinned column. */
|
|
742
|
-
[data-ui
|
|
811
|
+
[data-ui-table] [data-sticky]::after {
|
|
743
812
|
background-color: var(--slotted-table-border-color, var(--slotted-border-subtle));
|
|
744
813
|
content: '';
|
|
745
814
|
inline-size: var(--_rule-width);
|
|
@@ -748,11 +817,11 @@
|
|
|
748
817
|
z-index: 1;
|
|
749
818
|
}
|
|
750
819
|
|
|
751
|
-
[data-ui
|
|
820
|
+
[data-ui-table] [data-sticky='start']::after {
|
|
752
821
|
inset-inline-end: 0;
|
|
753
822
|
}
|
|
754
823
|
|
|
755
|
-
[data-ui
|
|
824
|
+
[data-ui-table] [data-sticky='end']::after {
|
|
756
825
|
inset-inline-start: 0;
|
|
757
826
|
}
|
|
758
827
|
|
|
@@ -791,7 +860,7 @@
|
|
|
791
860
|
* so does this: the header cell gives up its inset and the control takes it,
|
|
792
861
|
* so the whole header is the target rather than the words inside it.
|
|
793
862
|
*/
|
|
794
|
-
[data-ui
|
|
863
|
+
[data-ui-table] [data-part-column-header]:has(> [data-part-sort]) {
|
|
795
864
|
padding: 0;
|
|
796
865
|
}
|
|
797
866
|
|
|
@@ -825,7 +894,7 @@
|
|
|
825
894
|
* consumer's own, so their width is not a fact this family holds, and
|
|
826
895
|
* measuring it would mean reading the layout during render.
|
|
827
896
|
*/
|
|
828
|
-
[data-ui
|
|
897
|
+
[data-ui-table] [data-part-column-header]:has(> [data-part-column-actions]) {
|
|
829
898
|
/**
|
|
830
899
|
* The room is what the slot actually occupies plus one gap: the slot stands
|
|
831
900
|
* `--_pad-inline` in from the cell's edge and its control is one target
|
|
@@ -842,7 +911,7 @@
|
|
|
842
911
|
padding-inline-end: var(--_actions-room);
|
|
843
912
|
}
|
|
844
913
|
|
|
845
|
-
[data-ui
|
|
914
|
+
[data-ui-table] [data-part-column-actions] {
|
|
846
915
|
align-items: center;
|
|
847
916
|
display: inline-flex;
|
|
848
917
|
gap: var(--_gap);
|
|
@@ -851,8 +920,8 @@
|
|
|
851
920
|
position: absolute;
|
|
852
921
|
}
|
|
853
922
|
|
|
854
|
-
[data-ui
|
|
855
|
-
/* The mark is
|
|
923
|
+
[data-ui-table] [data-part-sort] {
|
|
924
|
+
/* The mark is centerd on the text rather than dropped at the top of the
|
|
856
925
|
line: with the default `stretch` resolving to `flex-start` under a stated
|
|
857
926
|
block size, the chevron sat two pixels above the capitals and read as a
|
|
858
927
|
mark nobody had placed. */
|
|
@@ -885,13 +954,13 @@
|
|
|
885
954
|
}
|
|
886
955
|
|
|
887
956
|
/* An aligned column keeps its name over its values, and the mark follows the
|
|
888
|
-
name rather than the cell: a
|
|
957
|
+
name rather than the cell: a centerd column reads as a centerd pair, and a
|
|
889
958
|
numeric column's name and mark both stand at the edge its digits end on. */
|
|
890
|
-
[data-ui
|
|
959
|
+
[data-ui-table] [data-align='center'] > [data-part-sort] {
|
|
891
960
|
justify-content: center;
|
|
892
961
|
}
|
|
893
962
|
|
|
894
|
-
[data-ui
|
|
963
|
+
[data-ui-table] :is([data-align='end'], [data-numeric]:not([data-align])) > [data-part-sort] {
|
|
895
964
|
justify-content: end;
|
|
896
965
|
}
|
|
897
966
|
|
|
@@ -911,20 +980,20 @@
|
|
|
911
980
|
* scale holds a ground one step under this one, and mixing keeps the
|
|
912
981
|
* direction right in every scheme.
|
|
913
982
|
*/
|
|
914
|
-
[data-ui
|
|
983
|
+
[data-ui-table] [data-part-column-header]:has(> [data-part-sort]:not(:disabled)):hover {
|
|
915
984
|
background-color: var(
|
|
916
985
|
--slotted-table-header-surface-hover,
|
|
917
986
|
color-mix(in oklab, var(--slotted-text, CanvasText) 7%, var(--_head-surface))
|
|
918
987
|
);
|
|
919
988
|
}
|
|
920
989
|
|
|
921
|
-
[data-ui
|
|
990
|
+
[data-ui-table] [data-part-column-header] {
|
|
922
991
|
transition: background-color
|
|
923
992
|
var(--slotted-control-transition-duration, var(--slotted-duration-short))
|
|
924
993
|
var(--slotted-control-transition-easing, var(--slotted-easing-standard));
|
|
925
994
|
}
|
|
926
995
|
|
|
927
|
-
[data-ui
|
|
996
|
+
[data-ui-table] [data-part-sort]:focus-visible {
|
|
928
997
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
929
998
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
930
999
|
}
|
|
@@ -939,7 +1008,7 @@
|
|
|
939
1008
|
* pointer or under focus, so the column says it can be sorted without twelve
|
|
940
1009
|
* marks competing with twelve names. The sorted column keeps its mark drawn.
|
|
941
1010
|
*/
|
|
942
|
-
[data-ui
|
|
1011
|
+
[data-ui-table] [data-part-sort] > [data-ui-icon] {
|
|
943
1012
|
--slotted-icon-size: var(--_icon-size);
|
|
944
1013
|
opacity: 0;
|
|
945
1014
|
transition:
|
|
@@ -949,19 +1018,19 @@
|
|
|
949
1018
|
var(--slotted-control-transition-easing, var(--slotted-easing-standard));
|
|
950
1019
|
}
|
|
951
1020
|
|
|
952
|
-
[data-ui
|
|
953
|
-
[data-ui
|
|
1021
|
+
[data-ui-table] [data-part-sort]:not(:disabled):hover > [data-ui-icon],
|
|
1022
|
+
[data-ui-table] [data-part-sort]:focus-visible > [data-ui-icon] {
|
|
954
1023
|
opacity: 0.55;
|
|
955
1024
|
}
|
|
956
1025
|
|
|
957
|
-
[data-ui
|
|
1026
|
+
[data-ui-table] [aria-sort] > [data-part-sort] > [data-ui-icon] {
|
|
958
1027
|
opacity: 1;
|
|
959
1028
|
}
|
|
960
1029
|
|
|
961
1030
|
/* Ascending is the same mark turned over. The rotation is animated because it
|
|
962
1031
|
is the one movement in this family a reader has to follow: the column did
|
|
963
1032
|
not change, its direction did. */
|
|
964
|
-
[data-ui
|
|
1033
|
+
[data-ui-table] [aria-sort='ascending'] > [data-part-sort] > [data-ui-icon] {
|
|
965
1034
|
rotate: 180deg;
|
|
966
1035
|
}
|
|
967
1036
|
|
|
@@ -971,7 +1040,7 @@
|
|
|
971
1040
|
* The cell is the family's and the control is not: `checkbox` owns the square,
|
|
972
1041
|
* the check and the indeterminate bar, and a chooser drawn here would be a
|
|
973
1042
|
* second answer to a question that family answers. The cell holds it to the
|
|
974
|
-
* width of the control and
|
|
1043
|
+
* width of the control and centers it on the row's first line.
|
|
975
1044
|
*
|
|
976
1045
|
* The width is **stated** rather than shrink-wrapped, and that is the whole
|
|
977
1046
|
* reason it is a token. A listing pins the chooser and the identifier beside
|
|
@@ -981,12 +1050,12 @@
|
|
|
981
1050
|
* past the chooser and over the column behind it. Now one name answers both
|
|
982
1051
|
* places: this width, and the `stickyOffset` beside it.
|
|
983
1052
|
*/
|
|
984
|
-
[data-ui
|
|
1053
|
+
[data-ui-table] [data-part-selection] {
|
|
985
1054
|
inline-size: var(--slotted-table-selection-size, 3rem);
|
|
986
1055
|
padding-block: var(--_pad-block);
|
|
987
1056
|
padding-inline: var(--_pad-inline);
|
|
988
1057
|
text-align: center;
|
|
989
|
-
/* The chooser follows the table's own answer: a table that
|
|
1058
|
+
/* The chooser follows the table's own answer: a table that centers its
|
|
990
1059
|
values and hangs its checkboxes from the top is two decisions where the
|
|
991
1060
|
reader sees one row. */
|
|
992
1061
|
vertical-align: var(--_cell-align);
|
|
@@ -995,7 +1064,7 @@
|
|
|
995
1064
|
|
|
996
1065
|
/* The control is one line tall whatever the row is, so it sits on the line
|
|
997
1066
|
the axis puts it on rather than stretching down a three-line cell. */
|
|
998
|
-
[data-ui
|
|
1067
|
+
[data-ui-table] [data-part-selection] > [data-ui-checkbox] {
|
|
999
1068
|
block-size: var(--_line);
|
|
1000
1069
|
}
|
|
1001
1070
|
|
|
@@ -1014,7 +1083,7 @@
|
|
|
1014
1083
|
* be this stylesheet deciding how that one looks. The target is unaffected —
|
|
1015
1084
|
* it is a separate pseudo-element, and it stays at the WCAG minimum.
|
|
1016
1085
|
*/
|
|
1017
|
-
[data-ui
|
|
1086
|
+
[data-ui-table] [data-part-selection] {
|
|
1018
1087
|
--slotted-selection-halo-opacity: 0;
|
|
1019
1088
|
}
|
|
1020
1089
|
|
|
@@ -1026,7 +1095,7 @@
|
|
|
1026
1095
|
* expander inside the row header moved one identifier and left the column
|
|
1027
1096
|
* ragged.
|
|
1028
1097
|
*/
|
|
1029
|
-
[data-ui
|
|
1098
|
+
[data-ui-table] [data-part-cell]:has(> [data-part-expander]) {
|
|
1030
1099
|
inline-size: 1%;
|
|
1031
1100
|
padding-inline-end: 0;
|
|
1032
1101
|
white-space: nowrap;
|
|
@@ -1042,7 +1111,7 @@
|
|
|
1042
1111
|
* out. `display: contents` removes both wrappers from layout and leaves the
|
|
1043
1112
|
* button as the slot's own child, which is the box tree React already has.
|
|
1044
1113
|
*/
|
|
1045
|
-
[data-ui
|
|
1114
|
+
[data-ui-table] [data-part-column-actions] *:has([data-part-filter]) {
|
|
1046
1115
|
display: contents;
|
|
1047
1116
|
}
|
|
1048
1117
|
|
|
@@ -1054,10 +1123,10 @@
|
|
|
1054
1123
|
* turn when the detail is open — and mirrored in a right-to-left document,
|
|
1055
1124
|
* where a closed disclosure points the other way.
|
|
1056
1125
|
*/
|
|
1057
|
-
[data-ui
|
|
1058
|
-
[data-ui
|
|
1059
|
-
[data-ui
|
|
1060
|
-
[data-ui
|
|
1126
|
+
[data-ui-table] [data-part-expander],
|
|
1127
|
+
[data-ui-table] [data-part-column-actions] > button,
|
|
1128
|
+
[data-ui-table] button[data-part-column-actions],
|
|
1129
|
+
[data-ui-table] [data-part-filter] {
|
|
1061
1130
|
background-color: transparent;
|
|
1062
1131
|
border: 0;
|
|
1063
1132
|
border-radius: var(--slotted-table-control-radius, var(--slotted-radius-sm, 4px));
|
|
@@ -1079,7 +1148,7 @@
|
|
|
1079
1148
|
margin-block: calc((var(--_line) - var(--slotted-target-min, 24px)) / 2);
|
|
1080
1149
|
padding: 0;
|
|
1081
1150
|
/* Both axes, stated separately, because `place-content` is not the property
|
|
1082
|
-
that
|
|
1151
|
+
that centers a single item: `align-content` aligns lines and a single-line
|
|
1083
1152
|
flex container has one, so the mark fell back to `align-items: stretch`,
|
|
1084
1153
|
which a stated block size resolves to `flex-start`. Read on the capture,
|
|
1085
1154
|
the chevron sat against the top edge of its own 24-pixel box. */
|
|
@@ -1092,45 +1161,45 @@
|
|
|
1092
1161
|
|
|
1093
1162
|
/**
|
|
1094
1163
|
* On a finger the target is the comfortable size in both axes and the box
|
|
1095
|
-
* is the one a mouse sees: a transparent `::after`
|
|
1164
|
+
* is the one a mouse sees: a transparent `::after` centerd on the control
|
|
1096
1165
|
* reaches 44 pixels, and the ground and the ring stay square. A header's
|
|
1097
1166
|
* trigger stands after the sort button and its mark, so it does not reach
|
|
1098
1167
|
* back across them.
|
|
1099
1168
|
*/
|
|
1100
1169
|
@media (pointer: coarse) {
|
|
1101
|
-
[data-ui
|
|
1102
|
-
[data-ui
|
|
1103
|
-
[data-ui
|
|
1104
|
-
[data-ui
|
|
1170
|
+
[data-ui-table] [data-part-expander],
|
|
1171
|
+
[data-ui-table] [data-part-column-actions] > button,
|
|
1172
|
+
[data-ui-table] button[data-part-column-actions],
|
|
1173
|
+
[data-ui-table] [data-part-filter] {
|
|
1105
1174
|
position: relative;
|
|
1106
1175
|
}
|
|
1107
1176
|
|
|
1108
|
-
[data-ui
|
|
1109
|
-
[data-ui
|
|
1110
|
-
[data-ui
|
|
1111
|
-
[data-ui
|
|
1177
|
+
[data-ui-table] [data-part-expander]::after,
|
|
1178
|
+
[data-ui-table] [data-part-column-actions] > button::after,
|
|
1179
|
+
[data-ui-table] button[data-part-column-actions]::after,
|
|
1180
|
+
[data-ui-table] [data-part-filter]::after {
|
|
1112
1181
|
content: '';
|
|
1113
1182
|
inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
1114
1183
|
position: absolute;
|
|
1115
1184
|
}
|
|
1116
1185
|
|
|
1117
|
-
[data-ui
|
|
1118
|
-
[data-ui
|
|
1119
|
-
[data-ui
|
|
1186
|
+
[data-ui-table] [data-part-column-actions] > button::after,
|
|
1187
|
+
[data-ui-table] button[data-part-column-actions]::after,
|
|
1188
|
+
[data-ui-table] [data-part-filter]::after {
|
|
1120
1189
|
inset-inline-start: 0;
|
|
1121
1190
|
}
|
|
1122
1191
|
}
|
|
1123
1192
|
|
|
1124
|
-
[data-ui
|
|
1193
|
+
[data-ui-table] [data-part-expander]:not(:disabled):hover {
|
|
1125
1194
|
background-color: var(--_hover);
|
|
1126
1195
|
color: var(--_text);
|
|
1127
1196
|
}
|
|
1128
1197
|
|
|
1129
1198
|
/* On the band the hover darkens, for the reason the sort control's does: the
|
|
1130
1199
|
step a row hovers with is lighter than the band and reads as a hole in it. */
|
|
1131
|
-
[data-ui
|
|
1132
|
-
[data-ui
|
|
1133
|
-
[data-ui
|
|
1200
|
+
[data-ui-table] [data-part-column-actions] > button:not(:disabled):hover,
|
|
1201
|
+
[data-ui-table] button[data-part-column-actions]:not(:disabled):hover,
|
|
1202
|
+
[data-ui-table] [data-part-filter]:not(:disabled):hover {
|
|
1134
1203
|
background-color: var(
|
|
1135
1204
|
--slotted-table-header-surface-hover,
|
|
1136
1205
|
color-mix(in oklab, var(--slotted-text, CanvasText) 7%, var(--_head-surface))
|
|
@@ -1143,10 +1212,10 @@
|
|
|
1143
1212
|
because both stand against an edge the ring would otherwise cross; these
|
|
1144
1213
|
are 24-pixel boxes inside a cell's own inset, and read at that size an
|
|
1145
1214
|
inward ring closed on the chevron. */
|
|
1146
|
-
[data-ui
|
|
1147
|
-
[data-ui
|
|
1148
|
-
[data-ui
|
|
1149
|
-
[data-ui
|
|
1215
|
+
[data-ui-table] [data-part-expander]:focus-visible,
|
|
1216
|
+
[data-ui-table] [data-part-column-actions] > button:focus-visible,
|
|
1217
|
+
[data-ui-table] button[data-part-column-actions]:focus-visible,
|
|
1218
|
+
[data-ui-table] [data-part-filter]:focus-visible {
|
|
1150
1219
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
1151
1220
|
outline-offset: 0;
|
|
1152
1221
|
}
|
|
@@ -1159,7 +1228,7 @@
|
|
|
1159
1228
|
* nineteen and a half — the control scale is right for a control in a form
|
|
1160
1229
|
* and wrong for a mark in a header.
|
|
1161
1230
|
*/
|
|
1162
|
-
[data-ui
|
|
1231
|
+
[data-ui-table] :is([data-part-column-actions], [data-part-filter]) :is(svg, img) {
|
|
1163
1232
|
block-size: var(--_icon-size);
|
|
1164
1233
|
inline-size: var(--_icon-size);
|
|
1165
1234
|
}
|
|
@@ -1172,8 +1241,8 @@
|
|
|
1172
1241
|
* accent ink and holds it whether the pointer is on it or not, because a
|
|
1173
1242
|
* filter a reader forgot they set is the defect this state exists to prevent.
|
|
1174
1243
|
*/
|
|
1175
|
-
[data-ui
|
|
1176
|
-
[data-ui
|
|
1244
|
+
[data-ui-table] [data-part-filter][data-filtered],
|
|
1245
|
+
[data-ui-table] [data-part-filter][data-filtered]:not(:disabled):hover {
|
|
1177
1246
|
color: var(--slotted-tone-accent-text, LinkText);
|
|
1178
1247
|
}
|
|
1179
1248
|
|
|
@@ -1181,17 +1250,17 @@
|
|
|
1181
1250
|
* The panel, which is drawn wherever `popover` puts it — inside the header or
|
|
1182
1251
|
* portalled to the end of the document. So it carries the family's identity
|
|
1183
1252
|
* on itself rather than reading it from an ancestor: a rule that reached for
|
|
1184
|
-
* `[data-ui
|
|
1253
|
+
* `[data-ui-table]` above would style the panel in one of the two.
|
|
1185
1254
|
*
|
|
1186
1255
|
* And it declares the values it uses rather than reading them from the root,
|
|
1187
|
-
* for the same reason. Every `--_` above is declared on `[data-part
|
|
1256
|
+
* for the same reason. Every `--_` above is declared on `[data-part-root]`;
|
|
1188
1257
|
* portalled to the end of the document the panel is not inside it, and a
|
|
1189
1258
|
* custom property that resolves to nothing takes its whole declaration with
|
|
1190
1259
|
* it — `gap: var(--_gap)` became no gap at all, silently, in the one
|
|
1191
1260
|
* arrangement `popover` uses by default. The eight below are the panel's own,
|
|
1192
1261
|
* from the same theme tokens the root reads.
|
|
1193
1262
|
*/
|
|
1194
|
-
[data-ui
|
|
1263
|
+
[data-ui-table][data-part-filter-panel] {
|
|
1195
1264
|
--_gap: var(--slotted-table-gap, var(--slotted-control-gap-md, 8px));
|
|
1196
1265
|
--_font-size: var(--slotted-table-font-size, var(--slotted-control-font-size-md, 13px));
|
|
1197
1266
|
--_line: calc(var(--_font-size) * var(--slotted-line-height-md, 1.5));
|
|
@@ -1261,13 +1330,13 @@
|
|
|
1261
1330
|
* rather than set on a row, because an operator name is the widest thing in
|
|
1262
1331
|
* the panel and a row would give the value what was left of 15rem.
|
|
1263
1332
|
*/
|
|
1264
|
-
[data-ui
|
|
1333
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-condition] {
|
|
1265
1334
|
display: grid;
|
|
1266
1335
|
gap: calc(var(--_gap) / 2);
|
|
1267
1336
|
}
|
|
1268
1337
|
|
|
1269
|
-
[data-ui
|
|
1270
|
-
[data-ui
|
|
1338
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-operator],
|
|
1339
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-search] {
|
|
1271
1340
|
display: block;
|
|
1272
1341
|
}
|
|
1273
1342
|
|
|
@@ -1282,14 +1351,14 @@
|
|
|
1282
1351
|
* way round: two number fields side by side in a 15rem panel are two fields
|
|
1283
1352
|
* nobody can read.
|
|
1284
1353
|
*/
|
|
1285
|
-
[data-ui
|
|
1354
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-operand] {
|
|
1286
1355
|
display: grid;
|
|
1287
1356
|
gap: calc(var(--_gap) / 2);
|
|
1288
1357
|
grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
|
|
1289
1358
|
}
|
|
1290
1359
|
|
|
1291
1360
|
/* A set's operand is a search and a list, which own their own stacking. */
|
|
1292
|
-
[data-ui
|
|
1361
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-operand][data-kind='set'] {
|
|
1293
1362
|
grid-template-columns: 1fr;
|
|
1294
1363
|
gap: var(--_gap);
|
|
1295
1364
|
}
|
|
@@ -1307,9 +1376,9 @@
|
|
|
1307
1376
|
* one field, and the field takes the panel's width so the wrapping has
|
|
1308
1377
|
* somewhere to go.
|
|
1309
1378
|
*/
|
|
1310
|
-
[data-ui
|
|
1311
|
-
[data-ui
|
|
1312
|
-
[data-ui
|
|
1379
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-operand][data-range],
|
|
1380
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-operand][data-kind='datetime'],
|
|
1381
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-operand][data-operand='tags'] {
|
|
1313
1382
|
grid-template-columns: 1fr;
|
|
1314
1383
|
}
|
|
1315
1384
|
|
|
@@ -1322,8 +1391,8 @@
|
|
|
1322
1391
|
* `between` is one range picker, marked `data-range`, and this rule stands
|
|
1323
1392
|
* after the one above, so it steps aside for that mark.
|
|
1324
1393
|
*/
|
|
1325
|
-
[data-ui
|
|
1326
|
-
[data-part
|
|
1394
|
+
[data-ui-table][data-part-filter-panel]
|
|
1395
|
+
[data-part-filter-operand][data-kind='time']:not([data-range]) {
|
|
1327
1396
|
grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
|
|
1328
1397
|
}
|
|
1329
1398
|
|
|
@@ -1332,7 +1401,7 @@
|
|
|
1332
1401
|
* conditions are separate boxes and the reader has to see where the first ends
|
|
1333
1402
|
* before being asked how the second joins it.
|
|
1334
1403
|
*/
|
|
1335
|
-
[data-ui
|
|
1404
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-join] {
|
|
1336
1405
|
align-items: center;
|
|
1337
1406
|
border-block-start: var(--_rule-width) solid var(--_rule);
|
|
1338
1407
|
display: flex;
|
|
@@ -1341,7 +1410,7 @@
|
|
|
1341
1410
|
padding-block-start: var(--_gap);
|
|
1342
1411
|
}
|
|
1343
1412
|
|
|
1344
|
-
[data-ui
|
|
1413
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-join] > [data-label] {
|
|
1345
1414
|
color: var(--_muted);
|
|
1346
1415
|
}
|
|
1347
1416
|
|
|
@@ -1350,7 +1419,7 @@
|
|
|
1350
1419
|
* than the screen. Eight rows is the height a set filter opens at in AG Grid
|
|
1351
1420
|
* and about the height Excel's opens at; past that the reader searches.
|
|
1352
1421
|
*/
|
|
1353
|
-
[data-ui
|
|
1422
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-list] {
|
|
1354
1423
|
display: grid;
|
|
1355
1424
|
gap: var(--_gap);
|
|
1356
1425
|
max-block-size: calc(var(--_line) * 9);
|
|
@@ -1370,7 +1439,7 @@
|
|
|
1370
1439
|
* pulled out to the panel's inset so it reads as a row rather than as a box
|
|
1371
1440
|
* around the words.
|
|
1372
1441
|
*/
|
|
1373
|
-
[data-ui
|
|
1442
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-option] {
|
|
1374
1443
|
--slotted-selection-halo-opacity: 0;
|
|
1375
1444
|
|
|
1376
1445
|
align-items: center;
|
|
@@ -1382,26 +1451,25 @@
|
|
|
1382
1451
|
padding-inline: var(--_gap);
|
|
1383
1452
|
}
|
|
1384
1453
|
|
|
1385
|
-
[data-ui
|
|
1386
|
-
[data-part='filter-option']:not([data-disabled]):hover {
|
|
1454
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-option]:not([data-disabled]):hover {
|
|
1387
1455
|
background-color: var(--_hover);
|
|
1388
1456
|
}
|
|
1389
1457
|
|
|
1390
1458
|
/* The count is the consumer's fact about their own query, so it is set apart
|
|
1391
1459
|
from the value rather than beside it as a second label. */
|
|
1392
|
-
[data-ui
|
|
1460
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-option] > [data-count] {
|
|
1393
1461
|
color: var(--_muted);
|
|
1394
1462
|
font-variant-numeric: tabular-nums;
|
|
1395
1463
|
}
|
|
1396
1464
|
|
|
1397
1465
|
/* The covering checkbox is a row of the same list and a boundary at once: it
|
|
1398
1466
|
answers for everything under it, so the rule says where "everything" ends. */
|
|
1399
|
-
[data-ui
|
|
1467
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-option][data-covering] {
|
|
1400
1468
|
border-block-end: var(--_rule-width) solid var(--_rule);
|
|
1401
1469
|
padding-block-end: var(--_gap);
|
|
1402
1470
|
}
|
|
1403
1471
|
|
|
1404
|
-
[data-ui
|
|
1472
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-empty] {
|
|
1405
1473
|
color: var(--_muted);
|
|
1406
1474
|
padding-block: var(--_pad-block);
|
|
1407
1475
|
text-align: center;
|
|
@@ -1409,7 +1477,7 @@
|
|
|
1409
1477
|
|
|
1410
1478
|
/* Clear at the leading edge and Apply at the trailing one: the destructive
|
|
1411
1479
|
answer is farthest from the one a reader presses without reading. */
|
|
1412
|
-
[data-ui
|
|
1480
|
+
[data-ui-table][data-part-filter-panel] [data-part-filter-actions] {
|
|
1413
1481
|
border-block-start: var(--_rule-width) solid var(--_rule);
|
|
1414
1482
|
display: flex;
|
|
1415
1483
|
gap: var(--_gap);
|
|
@@ -1418,25 +1486,25 @@
|
|
|
1418
1486
|
}
|
|
1419
1487
|
|
|
1420
1488
|
/* The chevron is the `Glyph` the binding draws inside the button. */
|
|
1421
|
-
[data-ui
|
|
1489
|
+
[data-ui-table] [data-part-expander] > [data-ui-icon] {
|
|
1422
1490
|
--slotted-icon-size: var(--_icon-size);
|
|
1423
1491
|
rotate: 0deg;
|
|
1424
1492
|
transition: rotate var(--slotted-control-transition-duration, var(--slotted-duration-short))
|
|
1425
1493
|
var(--slotted-control-transition-easing, var(--slotted-easing-standard));
|
|
1426
1494
|
}
|
|
1427
1495
|
|
|
1428
|
-
[data-ui
|
|
1496
|
+
[data-ui-table] [data-part-expander][aria-expanded='true'] > [data-ui-icon] {
|
|
1429
1497
|
rotate: 90deg;
|
|
1430
1498
|
}
|
|
1431
1499
|
|
|
1432
1500
|
/* A chevron is direction-sensitive artwork, so it is mirrored rather than
|
|
1433
1501
|
reused: a closed row in Arabic points to the start of the line, which is
|
|
1434
1502
|
the right-hand side. */
|
|
1435
|
-
[data-ui
|
|
1503
|
+
[data-ui-table]:dir(rtl) [data-part-expander] > [data-ui-icon] {
|
|
1436
1504
|
scale: -1 1;
|
|
1437
1505
|
}
|
|
1438
1506
|
|
|
1439
|
-
[data-ui
|
|
1507
|
+
[data-ui-table]:dir(rtl) [data-part-expander][aria-expanded='true'] > [data-ui-icon] {
|
|
1440
1508
|
rotate: -90deg;
|
|
1441
1509
|
}
|
|
1442
1510
|
|
|
@@ -1448,25 +1516,25 @@
|
|
|
1448
1516
|
* reach, and it takes the sunken ground so the record it belongs to still
|
|
1449
1517
|
* reads as one thing.
|
|
1450
1518
|
*/
|
|
1451
|
-
[data-ui
|
|
1519
|
+
[data-ui-table] [data-part-detail] {
|
|
1452
1520
|
background-color: var(--_stripe);
|
|
1453
1521
|
}
|
|
1454
1522
|
|
|
1455
|
-
[data-ui
|
|
1523
|
+
[data-ui-table] [data-part-detail] > [data-part-cell] {
|
|
1456
1524
|
padding-block: var(--_pad-block);
|
|
1457
1525
|
padding-inline: var(--_pad-inline);
|
|
1458
1526
|
}
|
|
1459
1527
|
|
|
1460
1528
|
/* A detail row is not a record, so it takes no stripe of its own and never
|
|
1461
1529
|
shifts the alternation of the rows around it. */
|
|
1462
|
-
[data-ui
|
|
1530
|
+
[data-ui-table][data-striped] [data-part-body] > [data-part-detail] {
|
|
1463
1531
|
background-color: var(--_stripe);
|
|
1464
1532
|
}
|
|
1465
1533
|
|
|
1466
1534
|
/**
|
|
1467
1535
|
* ── Empty and loading ──────────────────────────────────────────────────
|
|
1468
1536
|
*/
|
|
1469
|
-
[data-ui
|
|
1537
|
+
[data-ui-table] [data-part-empty] {
|
|
1470
1538
|
color: var(--_muted);
|
|
1471
1539
|
padding-block: var(--slotted-space-9, 2rem);
|
|
1472
1540
|
padding-inline: var(--_pad-inline);
|
|
@@ -1476,7 +1544,7 @@
|
|
|
1476
1544
|
/* The skeleton rows of a first load. The shapes are `skeleton`'s own; what
|
|
1477
1545
|
this family supplies is the row that holds them, so the table's shape is
|
|
1478
1546
|
visible before its content arrives. */
|
|
1479
|
-
[data-ui
|
|
1547
|
+
[data-ui-table] [data-part-loader] > [data-part-row] > * {
|
|
1480
1548
|
padding-block: var(--_pad-block);
|
|
1481
1549
|
padding-inline: var(--_pad-inline);
|
|
1482
1550
|
}
|
|
@@ -1486,7 +1554,7 @@
|
|
|
1486
1554
|
* body dims and nothing moves: the column widths are the table's, the scroll
|
|
1487
1555
|
* position is the reader's, and swapping rows for skeletons would take both.
|
|
1488
1556
|
*/
|
|
1489
|
-
[data-ui
|
|
1557
|
+
[data-ui-table][data-loading] [data-part-body] {
|
|
1490
1558
|
opacity: 0.55;
|
|
1491
1559
|
transition: opacity var(--slotted-control-transition-duration, var(--slotted-duration-short))
|
|
1492
1560
|
var(--slotted-control-transition-easing, var(--slotted-easing-standard));
|
|
@@ -1501,7 +1569,9 @@
|
|
|
1501
1569
|
* kind of boundary — and it is not the `footer`, which is a bar outside the
|
|
1502
1570
|
* table holding the consumer's own controls.
|
|
1503
1571
|
*/
|
|
1504
|
-
[data-ui
|
|
1572
|
+
[data-ui-table] [data-part-summary] > [data-part-row] > * {
|
|
1573
|
+
--_pinned-ground: var(--_head-surface);
|
|
1574
|
+
|
|
1505
1575
|
background-color: var(--_head-surface);
|
|
1506
1576
|
border-block-start: var(--_rule-width) solid var(--_rule-strong);
|
|
1507
1577
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
@@ -1509,7 +1579,9 @@
|
|
|
1509
1579
|
padding-inline: var(--_pad-inline);
|
|
1510
1580
|
}
|
|
1511
1581
|
|
|
1512
|
-
[data-ui
|
|
1582
|
+
[data-ui-table][data-variant='plain'] [data-part-summary] > [data-part-row] > * {
|
|
1583
|
+
--_pinned-ground: transparent;
|
|
1584
|
+
|
|
1513
1585
|
background-color: transparent;
|
|
1514
1586
|
}
|
|
1515
1587
|
|
|
@@ -1525,7 +1597,7 @@
|
|
|
1525
1597
|
* a count, a bulk-action bar. The family draws the rule above it and the
|
|
1526
1598
|
* inset around it, and nothing else.
|
|
1527
1599
|
*/
|
|
1528
|
-
[data-ui
|
|
1600
|
+
[data-ui-table] [data-part-footer] {
|
|
1529
1601
|
align-items: center;
|
|
1530
1602
|
border-block-start: var(--_rule-width) solid var(--_rule);
|
|
1531
1603
|
display: flex;
|
|
@@ -1547,7 +1619,7 @@
|
|
|
1547
1619
|
* So the bar states the room instead of asking for it, and a control that
|
|
1548
1620
|
* wants to sit at the trailing edge justifies itself there.
|
|
1549
1621
|
*/
|
|
1550
|
-
[data-ui
|
|
1622
|
+
[data-ui-table] [data-part-footer] > :last-child {
|
|
1551
1623
|
flex: 1 1 auto;
|
|
1552
1624
|
/* And it aligns its own content to the trailing edge, which is where a
|
|
1553
1625
|
listing screen puts its paging control. The rule is structural rather
|
|
@@ -1564,15 +1636,15 @@
|
|
|
1564
1636
|
* repeats at the top of every printed page.
|
|
1565
1637
|
*/
|
|
1566
1638
|
@media print {
|
|
1567
|
-
[data-ui
|
|
1639
|
+
[data-ui-table] [data-part-scroll] {
|
|
1568
1640
|
max-block-size: none;
|
|
1569
1641
|
overflow: visible;
|
|
1570
1642
|
}
|
|
1571
1643
|
|
|
1572
|
-
[data-ui
|
|
1573
|
-
[data-ui
|
|
1574
|
-
[data-ui
|
|
1575
|
-
[data-ui
|
|
1644
|
+
[data-ui-table][data-sticky-header] [data-part-column-header],
|
|
1645
|
+
[data-ui-table][data-sticky-header] [data-part-head] [data-part-selection],
|
|
1646
|
+
[data-ui-table][data-sticky-footer] [data-part-summary] > [data-part-row] > *,
|
|
1647
|
+
[data-ui-table] [data-sticky] {
|
|
1576
1648
|
position: static;
|
|
1577
1649
|
}
|
|
1578
1650
|
}
|