@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
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* indicator, the group and the filter row — is declared after the shared
|
|
17
17
|
* set.
|
|
18
18
|
*/
|
|
19
|
-
[data-ui
|
|
19
|
+
[data-ui-data-grid][data-part-root] {
|
|
20
20
|
/* Geometry. Every value is the control scale's, so one theme decision
|
|
21
21
|
retunes the rows, the buttons and the fields together, and
|
|
22
22
|
`@media (pointer: coarse)` grows all three at once. */
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
/* What is left of the control's height around one line of text, so a
|
|
38
38
|
one-line row is exactly the control height at every density. A floor of
|
|
39
39
|
one space step keeps a wrapped row from losing its inset. Derived from
|
|
40
|
-
the head's height, not the row's: a stated row height
|
|
40
|
+
the head's height, not the row's: a stated row height centers its cells
|
|
41
41
|
and pads nothing. */
|
|
42
42
|
--_pad-block: var(
|
|
43
43
|
--slotted-data-grid-cell-padding-block,
|
|
@@ -98,22 +98,35 @@
|
|
|
98
98
|
--slotted-data-grid-row-surface-hover,
|
|
99
99
|
var(--slotted-tone-secondary-subtle-hover, ButtonFace)
|
|
100
100
|
);
|
|
101
|
+
/**
|
|
102
|
+
* A run of selected rows reads as one block: the accent border mixed
|
|
103
|
+
* into the row's ground, the same border closing the run above and
|
|
104
|
+
* below, and every rule inside it — between rows and at a pinned zone's
|
|
105
|
+
* edge — tinted toward that border; no rail (R1). The ink stays the
|
|
106
|
+
* row's own. The ground mixes the border, which is the light accent in
|
|
107
|
+
* the dark scheme and the dark one in the light: at 20% it stands 1.3:1
|
|
108
|
+
* from the page in both on the default theme, above the stripe and the
|
|
109
|
+
* hover. The accent's surfaces read as nothing on a dark row, and its
|
|
110
|
+
* solid ink at any one share was twice as strong in light as in dark.
|
|
111
|
+
*/
|
|
112
|
+
--_selected-edge: var(
|
|
113
|
+
--slotted-data-grid-row-border-color-selected,
|
|
114
|
+
var(--slotted-tone-accent-border, Highlight)
|
|
115
|
+
);
|
|
101
116
|
--_selected: var(
|
|
102
117
|
--slotted-data-grid-row-surface-selected,
|
|
103
|
-
var(--
|
|
118
|
+
color-mix(in oklab, var(--_selected-edge) 20%, var(--_surface))
|
|
104
119
|
);
|
|
105
120
|
--_selected-hover: var(
|
|
106
121
|
--slotted-data-grid-row-surface-selected-hover,
|
|
107
|
-
var(--
|
|
108
|
-
);
|
|
109
|
-
--_selected-text: var(
|
|
110
|
-
--slotted-data-grid-row-color-selected,
|
|
111
|
-
var(--slotted-tone-accent-text, CanvasText)
|
|
122
|
+
color-mix(in oklab, var(--_selected-edge) 28%, var(--_surface))
|
|
112
123
|
);
|
|
124
|
+
--_selected-text: var(--slotted-data-grid-row-color-selected, var(--_text));
|
|
125
|
+
--_selected-rule: color-mix(in oklab, var(--_selected-edge) 30%, var(--_selected));
|
|
113
126
|
/**
|
|
114
|
-
* The cursor and the range are one
|
|
127
|
+
* The cursor and the range are one color: the accent border, which holds
|
|
115
128
|
* the non-text ratio against the page and against the accent ground it
|
|
116
|
-
* encloses (`docs/token-foundation.md`, Semantic
|
|
129
|
+
* encloses (`docs/token-foundation.md`, Semantic color). The cursor is
|
|
117
130
|
* drawn at 60% while the grid has no focus — a reader back from a popover
|
|
118
131
|
* finds where they were — and whole under `:focus-visible`.
|
|
119
132
|
*/
|
|
@@ -147,6 +160,13 @@
|
|
|
147
160
|
var(--slotted-space-1, 0.125rem) * 2
|
|
148
161
|
)
|
|
149
162
|
);
|
|
163
|
+
/* The control scale as the theme states it, read here once: a body row
|
|
164
|
+
restates the scale for what its cells hold (below), and a property
|
|
165
|
+
cannot read its own inherited value. */
|
|
166
|
+
--_control-height-sm: var(--slotted-control-height-sm, 30px);
|
|
167
|
+
--_control-height-md: var(--slotted-control-height-md, 34px);
|
|
168
|
+
--_control-height-lg: var(--slotted-control-height-lg, 38px);
|
|
169
|
+
--_target-min: var(--slotted-target-min, 24px);
|
|
150
170
|
/* Its glyph keeps two pixels of air inside the control's ground, so at
|
|
151
171
|
dense — a 17-pixel control in a 25-pixel track — the ground reads as a
|
|
152
172
|
button and not as a filled cell. */
|
|
@@ -183,7 +203,7 @@
|
|
|
183
203
|
position: relative;
|
|
184
204
|
}
|
|
185
205
|
|
|
186
|
-
[data-ui
|
|
206
|
+
[data-ui-data-grid][data-variant='framed'] {
|
|
187
207
|
border: var(--_rule-width) solid var(--_rule);
|
|
188
208
|
border-radius: var(--_radius);
|
|
189
209
|
/* A box standing on the page takes the surface step, as table's frame does. */
|
|
@@ -199,12 +219,13 @@
|
|
|
199
219
|
* Both axes. It is the window the virtualiser measures, so it takes the room
|
|
200
220
|
* the frame leaves after the footer and scrolls what does not fit.
|
|
201
221
|
*/
|
|
202
|
-
[data-ui
|
|
203
|
-
/*
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
222
|
+
[data-ui-data-grid] > [data-part-scroll] {
|
|
223
|
+
/* No `container-type`. A detail row, a group row and the empty state are
|
|
224
|
+
held to the frame by `--slotted-data-grid-viewport`, the scroller's
|
|
225
|
+
width the binding measures. As a size container the scroller made the
|
|
226
|
+
browser recalculate and lay out everything inside it whenever a row
|
|
227
|
+
entered or left: 45 ms of layout per scroll step on a grid of 29 mounted
|
|
228
|
+
rows, against 3 ms without it. */
|
|
208
229
|
flex: 1 1 auto;
|
|
209
230
|
min-block-size: 0;
|
|
210
231
|
overflow: auto;
|
|
@@ -223,7 +244,7 @@
|
|
|
223
244
|
position: relative;
|
|
224
245
|
}
|
|
225
246
|
|
|
226
|
-
[data-ui
|
|
247
|
+
[data-ui-data-grid][data-sticky-to='page'] > [data-part-scroll] {
|
|
227
248
|
overflow: visible;
|
|
228
249
|
}
|
|
229
250
|
|
|
@@ -251,14 +272,14 @@
|
|
|
251
272
|
other: a widget inside a cell may hold rows of its own — a multi-select's
|
|
252
273
|
chips are a `row` of a grid pattern — and a descendant selector laid its
|
|
253
274
|
chips out on this grid's column template. */
|
|
254
|
-
[data-ui
|
|
255
|
-
> [data-part
|
|
275
|
+
[data-ui-data-grid]
|
|
276
|
+
> [data-part-scroll]
|
|
256
277
|
> :is(
|
|
257
|
-
[data-part
|
|
258
|
-
[data-part
|
|
259
|
-
[data-part
|
|
260
|
-
[data-part
|
|
261
|
-
[data-part
|
|
278
|
+
[data-part-head],
|
|
279
|
+
[data-part-body],
|
|
280
|
+
[data-part-pinned-rows],
|
|
281
|
+
[data-part-summary],
|
|
282
|
+
[data-part-loader]
|
|
262
283
|
)
|
|
263
284
|
> [role='row'] {
|
|
264
285
|
box-sizing: border-box;
|
|
@@ -279,7 +300,7 @@
|
|
|
279
300
|
|
|
280
301
|
/* The rules between rows are the rows' own: a row is a block box, unlike a
|
|
281
302
|
table row, so its border runs the whole width, filler included. */
|
|
282
|
-
[data-ui
|
|
303
|
+
[data-ui-data-grid] [data-part-header-row] {
|
|
283
304
|
background-color: var(--_head-surface);
|
|
284
305
|
border-block-end: var(--_rule-width) solid var(--_rule-strong);
|
|
285
306
|
}
|
|
@@ -287,27 +308,27 @@
|
|
|
287
308
|
/* A row of column groups stands above the row of names, and the rule
|
|
288
309
|
between the two is the lighter one; the strong rule is the last header
|
|
289
310
|
row's, over the values. */
|
|
290
|
-
[data-ui
|
|
311
|
+
[data-ui-data-grid] [data-part-header-row]:not(:last-of-type) {
|
|
291
312
|
border-block-end-color: var(--_rule);
|
|
292
313
|
}
|
|
293
314
|
|
|
294
|
-
[data-ui
|
|
315
|
+
[data-ui-data-grid][data-variant='plain'] [data-part-header-row] {
|
|
295
316
|
background-color: transparent;
|
|
296
317
|
}
|
|
297
318
|
|
|
298
|
-
[data-ui
|
|
319
|
+
[data-ui-data-grid] [data-part-filter-row] {
|
|
299
320
|
background-color: var(--_band-surface);
|
|
300
321
|
border-block-end: var(--_rule-width) solid var(--_rule);
|
|
301
322
|
}
|
|
302
323
|
|
|
303
|
-
[data-ui
|
|
304
|
-
> [data-part
|
|
324
|
+
[data-ui-data-grid]
|
|
325
|
+
> [data-part-scroll]
|
|
305
326
|
> :is(
|
|
306
|
-
[data-part
|
|
307
|
-
[data-part
|
|
308
|
-
[data-part
|
|
309
|
-
[data-part
|
|
310
|
-
[data-part
|
|
327
|
+
[data-part-head],
|
|
328
|
+
[data-part-body],
|
|
329
|
+
[data-part-pinned-rows],
|
|
330
|
+
[data-part-summary],
|
|
331
|
+
[data-part-loader]
|
|
311
332
|
)
|
|
312
333
|
> [role='row']
|
|
313
334
|
> * {
|
|
@@ -318,14 +339,14 @@
|
|
|
318
339
|
scroller's width with wider rows inside it is a box its own rows overflow,
|
|
319
340
|
which the page audit reads as a defect and a reader never sees. Sized to
|
|
320
341
|
the rows, the only thing that scrolls is the scroller. */
|
|
321
|
-
[data-ui
|
|
322
|
-
> [data-part
|
|
342
|
+
[data-ui-data-grid]
|
|
343
|
+
> [data-part-scroll]
|
|
323
344
|
> :is(
|
|
324
|
-
[data-part
|
|
325
|
-
[data-part
|
|
326
|
-
[data-part
|
|
327
|
-
[data-part
|
|
328
|
-
[data-part
|
|
345
|
+
[data-part-head],
|
|
346
|
+
[data-part-body],
|
|
347
|
+
[data-part-pinned-rows],
|
|
348
|
+
[data-part-summary],
|
|
349
|
+
[data-part-loader]
|
|
329
350
|
) {
|
|
330
351
|
inline-size: fit-content;
|
|
331
352
|
min-inline-size: 100%;
|
|
@@ -342,23 +363,23 @@
|
|
|
342
363
|
* `button` inside a `columnheader` would be a widget the cursor has to
|
|
343
364
|
* enter.
|
|
344
365
|
*/
|
|
345
|
-
[data-ui
|
|
366
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-head] {
|
|
346
367
|
inset-block-start: var(--slotted-data-grid-sticky-offset, 0);
|
|
347
368
|
position: sticky;
|
|
348
369
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 1);
|
|
349
370
|
}
|
|
350
371
|
|
|
351
|
-
[data-ui
|
|
372
|
+
[data-ui-data-grid]:not([data-sticky-header]) > [data-part-scroll] > [data-part-head] {
|
|
352
373
|
position: static;
|
|
353
374
|
}
|
|
354
375
|
|
|
355
|
-
[data-ui
|
|
356
|
-
[data-ui
|
|
357
|
-
[data-ui
|
|
358
|
-
> [data-part
|
|
359
|
-
> [data-part
|
|
376
|
+
[data-ui-data-grid] [data-part-column-header],
|
|
377
|
+
[data-ui-data-grid] [data-part-column-group],
|
|
378
|
+
[data-ui-data-grid]
|
|
379
|
+
> [data-part-scroll]
|
|
380
|
+
> [data-part-head]
|
|
360
381
|
> [role='row']
|
|
361
|
-
> [data-part
|
|
382
|
+
> [data-part-selection] {
|
|
362
383
|
align-items: center;
|
|
363
384
|
background-color: var(--_head-surface);
|
|
364
385
|
box-sizing: border-box;
|
|
@@ -378,21 +399,21 @@
|
|
|
378
399
|
transition: background-color var(--_transition);
|
|
379
400
|
}
|
|
380
401
|
|
|
381
|
-
[data-ui
|
|
382
|
-
:is([data-part
|
|
402
|
+
[data-ui-data-grid][data-variant='plain']
|
|
403
|
+
:is([data-part-column-header], [data-part-column-group]) {
|
|
383
404
|
background-color: transparent;
|
|
384
405
|
}
|
|
385
406
|
|
|
386
|
-
/* A group header is
|
|
407
|
+
/* A group header is centerd over the columns it spans and separated from
|
|
387
408
|
the row of column names by the same rule that separates the names from
|
|
388
409
|
the values, one step lighter. */
|
|
389
|
-
[data-ui
|
|
410
|
+
[data-ui-data-grid] [data-part-column-group] {
|
|
390
411
|
justify-content: center;
|
|
391
412
|
}
|
|
392
413
|
|
|
393
414
|
/* The name takes what is left and truncates: a column name is two or three
|
|
394
415
|
words and its full text is the header's own accessible name. */
|
|
395
|
-
[data-ui
|
|
416
|
+
[data-ui-data-grid] [data-part-column-header] > span:first-child {
|
|
396
417
|
flex: 1 1 auto;
|
|
397
418
|
min-inline-size: 0;
|
|
398
419
|
overflow: hidden;
|
|
@@ -401,30 +422,30 @@
|
|
|
401
422
|
}
|
|
402
423
|
|
|
403
424
|
/* An aligned column keeps its name over its values. */
|
|
404
|
-
[data-ui
|
|
425
|
+
[data-ui-data-grid] [data-part-column-header][data-align='center'] {
|
|
405
426
|
justify-content: center;
|
|
406
427
|
}
|
|
407
428
|
|
|
408
|
-
[data-ui
|
|
429
|
+
[data-ui-data-grid] [data-part-column-header][data-align='center'] > span:first-child {
|
|
409
430
|
flex: 0 1 auto;
|
|
410
431
|
margin-inline-start: auto;
|
|
411
432
|
}
|
|
412
433
|
|
|
413
|
-
[data-ui
|
|
414
|
-
[data-part
|
|
434
|
+
[data-ui-data-grid]
|
|
435
|
+
[data-part-column-header]:is([data-align='end'], [data-numeric]:not([data-align]))
|
|
415
436
|
> span:first-child {
|
|
416
437
|
text-align: end;
|
|
417
438
|
}
|
|
418
439
|
|
|
419
440
|
/* A sortable header is a control and takes the hand. */
|
|
420
|
-
[data-ui
|
|
441
|
+
[data-ui-data-grid] [data-part-column-header][data-sortable] {
|
|
421
442
|
cursor: pointer;
|
|
422
443
|
}
|
|
423
444
|
|
|
424
445
|
/* A header, a filter cell and a summary cell are controls, not prose: a
|
|
425
446
|
Shift-press that appends a sort key must not also select its name. */
|
|
426
|
-
[data-ui
|
|
427
|
-
[data-ui
|
|
447
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-head] > [role='row'] > *,
|
|
448
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-summary] > [role='row'] > * {
|
|
428
449
|
user-select: none;
|
|
429
450
|
}
|
|
430
451
|
|
|
@@ -432,12 +453,12 @@
|
|
|
432
453
|
selection of the grid's own and not of text: the browser's selection is
|
|
433
454
|
put out of the body for the two modes that press across cells. Ctrl+C
|
|
434
455
|
copies the range; a grid with no selection keeps its text selectable. */
|
|
435
|
-
[data-ui
|
|
436
|
-
:is([data-part
|
|
456
|
+
[data-ui-data-grid]:is([data-selection='multiple'], [data-selection='range'])
|
|
457
|
+
:is([data-part-body], [data-part-pinned-rows]) {
|
|
437
458
|
user-select: none;
|
|
438
459
|
}
|
|
439
460
|
|
|
440
|
-
[data-ui
|
|
461
|
+
[data-ui-data-grid] [data-part-column-header][data-sortable]:not([data-disabled]):hover {
|
|
441
462
|
background-color: var(--_head-surface-hover);
|
|
442
463
|
}
|
|
443
464
|
|
|
@@ -451,7 +472,7 @@
|
|
|
451
472
|
* header can be sorted is the hand, the darker band and the menu it
|
|
452
473
|
* reveals — the answer AG Grid gives.
|
|
453
474
|
*/
|
|
454
|
-
[data-ui
|
|
475
|
+
[data-ui-data-grid] [data-part-column-header] > [data-part-sort] {
|
|
455
476
|
--slotted-icon-size: var(--_icon-size);
|
|
456
477
|
align-items: center;
|
|
457
478
|
color: var(--_text);
|
|
@@ -463,29 +484,29 @@
|
|
|
463
484
|
line-height: 1;
|
|
464
485
|
}
|
|
465
486
|
|
|
466
|
-
[data-ui
|
|
487
|
+
[data-ui-data-grid] [data-part-column-header] > [data-part-sort] > [data-ui-icon] {
|
|
467
488
|
transition: rotate var(--_transition);
|
|
468
489
|
}
|
|
469
490
|
|
|
470
|
-
[data-ui
|
|
491
|
+
[data-ui-data-grid] [data-part-column-header][data-sorted] > [data-part-sort] {
|
|
471
492
|
display: inline-flex;
|
|
472
493
|
}
|
|
473
494
|
|
|
474
|
-
[data-ui
|
|
475
|
-
[data-part
|
|
476
|
-
> [data-part
|
|
477
|
-
> [data-ui
|
|
495
|
+
[data-ui-data-grid]
|
|
496
|
+
[data-part-column-header][data-sorted='ascending']
|
|
497
|
+
> [data-part-sort]
|
|
498
|
+
> [data-ui-icon] {
|
|
478
499
|
rotate: 180deg;
|
|
479
500
|
}
|
|
480
501
|
|
|
481
502
|
/* The index of a key past the first, drawn only then: `aria-sort` cannot say
|
|
482
503
|
which key came first, and the number is what says it. */
|
|
483
|
-
[data-ui
|
|
504
|
+
[data-ui-data-grid] [data-part-column-header] > [data-part-sort]::before {
|
|
484
505
|
content: attr(data-index);
|
|
485
506
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
486
507
|
}
|
|
487
508
|
|
|
488
|
-
[data-ui
|
|
509
|
+
[data-ui-data-grid] [data-part-column-header] > [data-part-sort]:not([data-index])::before {
|
|
489
510
|
content: none;
|
|
490
511
|
}
|
|
491
512
|
|
|
@@ -505,7 +526,7 @@
|
|
|
505
526
|
* filter row. Read on the first capture with both controls reserving room,
|
|
506
527
|
* a 120-pixel column had 34 pixels left for its name.
|
|
507
528
|
*/
|
|
508
|
-
[data-ui
|
|
529
|
+
[data-ui-data-grid] [data-part-column-actions] {
|
|
509
530
|
align-items: center;
|
|
510
531
|
display: inline-flex;
|
|
511
532
|
flex: none;
|
|
@@ -516,16 +537,16 @@
|
|
|
516
537
|
margin-inline-start: auto;
|
|
517
538
|
}
|
|
518
539
|
|
|
519
|
-
[data-ui
|
|
540
|
+
[data-ui-data-grid] [data-part-column-actions] *:has([data-part-filter]) {
|
|
520
541
|
display: contents;
|
|
521
542
|
}
|
|
522
543
|
|
|
523
|
-
[data-ui
|
|
524
|
-
[data-ui
|
|
525
|
-
[data-ui
|
|
526
|
-
[data-ui
|
|
527
|
-
[data-ui
|
|
528
|
-
[data-ui
|
|
544
|
+
[data-ui-data-grid] [data-part-column-help],
|
|
545
|
+
[data-ui-data-grid] [data-part-column-menu],
|
|
546
|
+
[data-ui-data-grid] [data-part-column-header] [data-part-filter],
|
|
547
|
+
[data-ui-data-grid] [data-part-expander],
|
|
548
|
+
[data-ui-data-grid] [data-part-group-toggle],
|
|
549
|
+
[data-ui-data-grid] [data-part-tree-toggle] {
|
|
529
550
|
/* The mark inside is the `Glyph` the binding draws, at the controls' own
|
|
530
551
|
icon step rather than the box's. */
|
|
531
552
|
--slotted-icon-size: var(--_control-icon);
|
|
@@ -547,44 +568,42 @@
|
|
|
547
568
|
opacity var(--_transition);
|
|
548
569
|
}
|
|
549
570
|
|
|
550
|
-
[data-ui
|
|
571
|
+
[data-ui-data-grid] [data-part-column-menu] {
|
|
551
572
|
opacity: 0;
|
|
552
573
|
}
|
|
553
574
|
|
|
554
|
-
[data-ui
|
|
555
|
-
[data-part
|
|
556
|
-
[data-part
|
|
575
|
+
[data-ui-data-grid]
|
|
576
|
+
[data-part-column-header]
|
|
577
|
+
[data-part-filter]:not([data-filtered], [data-open]) {
|
|
557
578
|
display: none;
|
|
558
579
|
}
|
|
559
580
|
|
|
560
|
-
[data-ui
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
[data-ui
|
|
564
|
-
[data-ui='data-grid'] [data-part='column-header'][data-current] [data-part='column-menu'],
|
|
565
|
-
[data-ui='data-grid'] [data-part='column-menu'][data-open] {
|
|
581
|
+
[data-ui-data-grid] [data-part-column-header]:not([data-disabled]):hover [data-part-column-menu],
|
|
582
|
+
[data-ui-data-grid] [data-part-column-header]:focus-within [data-part-column-menu],
|
|
583
|
+
[data-ui-data-grid] [data-part-column-header][data-current] [data-part-column-menu],
|
|
584
|
+
[data-ui-data-grid] [data-part-column-menu][data-open] {
|
|
566
585
|
opacity: 1;
|
|
567
586
|
}
|
|
568
587
|
|
|
569
|
-
[data-ui
|
|
570
|
-
[data-ui
|
|
571
|
-
[data-ui
|
|
572
|
-
[data-ui
|
|
573
|
-
[data-ui
|
|
588
|
+
[data-ui-data-grid] [data-part-column-help]:not(:disabled):hover,
|
|
589
|
+
[data-ui-data-grid] [data-part-column-help][data-open],
|
|
590
|
+
[data-ui-data-grid] [data-part-column-menu]:not(:disabled):hover,
|
|
591
|
+
[data-ui-data-grid] [data-part-column-header] [data-part-filter]:not(:disabled):hover,
|
|
592
|
+
[data-ui-data-grid] [data-part-group-toggle]:not(:disabled):hover {
|
|
574
593
|
background-color: var(--_head-surface-hover);
|
|
575
594
|
color: var(--_text);
|
|
576
595
|
}
|
|
577
596
|
|
|
578
|
-
[data-ui
|
|
597
|
+
[data-ui-data-grid] [data-part-expander]:not(:disabled):hover {
|
|
579
598
|
background-color: var(--_hover);
|
|
580
599
|
color: var(--_text);
|
|
581
600
|
}
|
|
582
601
|
|
|
583
|
-
[data-ui
|
|
584
|
-
[data-ui
|
|
585
|
-
[data-ui
|
|
586
|
-
[data-ui
|
|
587
|
-
[data-ui
|
|
602
|
+
[data-ui-data-grid] [data-part-column-help]:focus-visible,
|
|
603
|
+
[data-ui-data-grid] [data-part-column-menu]:focus-visible,
|
|
604
|
+
[data-ui-data-grid] [data-part-column-header] [data-part-filter]:focus-visible,
|
|
605
|
+
[data-ui-data-grid] [data-part-expander]:focus-visible,
|
|
606
|
+
[data-ui-data-grid] [data-part-group-toggle]:focus-visible {
|
|
588
607
|
outline: var(--_ring-width) solid var(--slotted-focus-ring-color, Highlight);
|
|
589
608
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
590
609
|
}
|
|
@@ -596,7 +615,7 @@
|
|
|
596
615
|
|
|
597
616
|
/* The description is the header's `aria-describedby`: read, never drawn,
|
|
598
617
|
and out of the header's flow so it asks for no room beside the name. */
|
|
599
|
-
[data-ui
|
|
618
|
+
[data-ui-data-grid] [data-part-column-description] {
|
|
600
619
|
block-size: 1px;
|
|
601
620
|
border: 0;
|
|
602
621
|
clip-path: inset(50%);
|
|
@@ -610,7 +629,7 @@
|
|
|
610
629
|
|
|
611
630
|
/* The pop-in's column header names the pop-in for a reader: read, never
|
|
612
631
|
drawn, and out of the row's flow so it takes no track of the template. */
|
|
613
|
-
[data-ui
|
|
632
|
+
[data-ui-data-grid] [data-part-popin-header] {
|
|
614
633
|
block-size: 1px;
|
|
615
634
|
border: 0;
|
|
616
635
|
clip-path: inset(50%);
|
|
@@ -627,7 +646,7 @@
|
|
|
627
646
|
is set as a caption over the items, in the muted ink, on the items' inset.
|
|
628
647
|
The screen reader hears it once, through the menu's `aria-describedby`.
|
|
629
648
|
The menu lays its items on a grid of tracks; the caption spans them all. */
|
|
630
|
-
[data-ui
|
|
649
|
+
[data-ui-menu] [data-part-column-menu-description] {
|
|
631
650
|
grid-column: 1 / -1;
|
|
632
651
|
border-block-end: var(--slotted-border-width-thin, 1px) solid
|
|
633
652
|
var(--slotted-border-subtle, GrayText);
|
|
@@ -645,49 +664,47 @@
|
|
|
645
664
|
glyph scale for this family: `table` takes the artwork from the consumer,
|
|
646
665
|
and a control this family draws itself owes its glyph to the scale. */
|
|
647
666
|
|
|
648
|
-
[data-ui
|
|
649
|
-
[data-ui
|
|
667
|
+
[data-ui-data-grid] [data-part-column-header] [data-part-filter][data-filtered],
|
|
668
|
+
[data-ui-data-grid] [data-part-column-header] [data-part-filter][data-open] {
|
|
650
669
|
color: var(--slotted-tone-accent-text, CanvasText);
|
|
651
670
|
}
|
|
652
671
|
|
|
653
|
-
[data-ui
|
|
654
|
-
[data-part
|
|
655
|
-
[data-part
|
|
672
|
+
[data-ui-data-grid]
|
|
673
|
+
[data-part-column-header]
|
|
674
|
+
[data-part-filter][data-filtered]:not(:disabled):hover {
|
|
656
675
|
background-color: var(--slotted-tone-accent-surface, Canvas);
|
|
657
676
|
}
|
|
658
677
|
|
|
659
678
|
/* The expander and the group toggle are the `chevron-right` `Glyph` the
|
|
660
679
|
binding draws, turned a quarter turn when open and mirrored in a
|
|
661
680
|
right-to-left document. */
|
|
662
|
-
[data-ui
|
|
663
|
-
[data-ui
|
|
664
|
-
[data-ui
|
|
681
|
+
[data-ui-data-grid] [data-part-expander] > [data-ui-icon],
|
|
682
|
+
[data-ui-data-grid] [data-part-group-toggle] > [data-ui-icon],
|
|
683
|
+
[data-ui-data-grid] button[data-part-tree-toggle] > [data-ui-icon] {
|
|
665
684
|
transition: rotate var(--_transition);
|
|
666
685
|
}
|
|
667
686
|
|
|
668
|
-
[data-ui
|
|
669
|
-
[data-ui
|
|
670
|
-
[data-ui
|
|
671
|
-
[data-part
|
|
672
|
-
[data-part
|
|
673
|
-
> [data-ui
|
|
687
|
+
[data-ui-data-grid] [data-part-expander][aria-expanded='true'] > [data-ui-icon],
|
|
688
|
+
[data-ui-data-grid] button[data-part-tree-toggle][aria-expanded='true'] > [data-ui-icon],
|
|
689
|
+
[data-ui-data-grid]
|
|
690
|
+
[data-part-group-row][aria-expanded='true']
|
|
691
|
+
[data-part-group-toggle]
|
|
692
|
+
> [data-ui-icon] {
|
|
674
693
|
rotate: 90deg;
|
|
675
694
|
}
|
|
676
695
|
|
|
677
|
-
[data-ui
|
|
678
|
-
[data-ui
|
|
679
|
-
[data-ui
|
|
696
|
+
[data-ui-data-grid]:dir(rtl) [data-part-expander] > [data-ui-icon],
|
|
697
|
+
[data-ui-data-grid]:dir(rtl) [data-part-group-toggle] > [data-ui-icon],
|
|
698
|
+
[data-ui-data-grid]:dir(rtl) button[data-part-tree-toggle] > [data-ui-icon] {
|
|
680
699
|
rotate: 180deg;
|
|
681
700
|
}
|
|
682
701
|
|
|
683
|
-
[data-ui
|
|
684
|
-
[data-ui
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
[data-
|
|
689
|
-
[data-part='group-toggle']
|
|
690
|
-
> [data-ui='icon'] {
|
|
702
|
+
[data-ui-data-grid]:dir(rtl) [data-part-expander][aria-expanded='true'] > [data-ui-icon],
|
|
703
|
+
[data-ui-data-grid]:dir(rtl) button[data-part-tree-toggle][aria-expanded='true'] > [data-ui-icon],
|
|
704
|
+
[data-ui-data-grid]:dir(rtl)
|
|
705
|
+
[data-part-group-row][aria-expanded='true']
|
|
706
|
+
[data-part-group-toggle]
|
|
707
|
+
> [data-ui-icon] {
|
|
691
708
|
rotate: 90deg;
|
|
692
709
|
}
|
|
693
710
|
|
|
@@ -700,26 +717,26 @@
|
|
|
700
717
|
* horizontal arrows there open and close. A row waiting for its children
|
|
701
718
|
* turns the chevron into the loader's ring.
|
|
702
719
|
*/
|
|
703
|
-
[data-ui
|
|
704
|
-
[data-ui
|
|
720
|
+
[data-ui-data-grid] [data-part-cell][data-tree],
|
|
721
|
+
[data-ui-data-grid] [data-part-row-header][data-tree] {
|
|
705
722
|
gap: var(--slotted-space-1, 0.125rem);
|
|
706
723
|
padding-inline-start: calc(
|
|
707
724
|
var(--_pad-inline) + var(--_indent) * (var(--slotted-data-grid-level, 1) - 1)
|
|
708
725
|
);
|
|
709
726
|
}
|
|
710
727
|
|
|
711
|
-
[data-ui
|
|
728
|
+
[data-ui-data-grid] [data-part-tree-toggle][data-empty] {
|
|
712
729
|
/* The room, and nothing in it. */
|
|
713
730
|
cursor: default;
|
|
714
731
|
}
|
|
715
732
|
|
|
716
|
-
[data-ui
|
|
733
|
+
[data-ui-data-grid] button[data-part-tree-toggle]:not(:disabled):hover {
|
|
717
734
|
background-color: var(--_hover);
|
|
718
735
|
color: var(--_text);
|
|
719
736
|
}
|
|
720
737
|
|
|
721
738
|
/* The binding draws the loader's ring in place of the chevron. */
|
|
722
|
-
[data-ui
|
|
739
|
+
[data-ui-data-grid] button[data-part-tree-toggle][data-loading] > [data-ui-icon] {
|
|
723
740
|
animation: slotted-data-grid-turn var(--slotted-duration-loop) linear infinite;
|
|
724
741
|
rotate: 0deg;
|
|
725
742
|
}
|
|
@@ -739,12 +756,12 @@
|
|
|
739
756
|
* width and the reader hears why nothing moves. A row on its way is
|
|
740
757
|
* dimmed, as a column is.
|
|
741
758
|
*/
|
|
742
|
-
[data-ui
|
|
759
|
+
[data-ui-data-grid] [data-part-cell][data-kind='drag'] {
|
|
743
760
|
justify-content: center;
|
|
744
761
|
padding-inline: 0;
|
|
745
762
|
}
|
|
746
763
|
|
|
747
|
-
[data-ui
|
|
764
|
+
[data-ui-data-grid] [data-part-row-handle] {
|
|
748
765
|
/* The grip is the `Glyph` the binding draws, at the controls' icon step. */
|
|
749
766
|
--slotted-icon-size: var(--_control-icon);
|
|
750
767
|
align-items: center;
|
|
@@ -766,21 +783,21 @@
|
|
|
766
783
|
opacity var(--_transition);
|
|
767
784
|
}
|
|
768
785
|
|
|
769
|
-
[data-ui
|
|
786
|
+
[data-ui-data-grid] [data-part-row-handle]:not([data-disabled]):hover {
|
|
770
787
|
background-color: var(--_hover);
|
|
771
788
|
color: var(--_text);
|
|
772
789
|
}
|
|
773
790
|
|
|
774
|
-
[data-ui
|
|
791
|
+
[data-ui-data-grid] [data-part-row-handle][data-disabled] {
|
|
775
792
|
cursor: default;
|
|
776
793
|
opacity: 0.5;
|
|
777
794
|
}
|
|
778
795
|
|
|
779
|
-
[data-ui
|
|
796
|
+
[data-ui-data-grid] [data-part-row][data-dragging] {
|
|
780
797
|
opacity: 0.5;
|
|
781
798
|
}
|
|
782
799
|
|
|
783
|
-
[data-ui
|
|
800
|
+
[data-ui-data-grid] [data-part-row][data-dragging] [data-part-row-handle] {
|
|
784
801
|
cursor: grabbing;
|
|
785
802
|
}
|
|
786
803
|
|
|
@@ -788,13 +805,13 @@
|
|
|
788
805
|
* ── The resizer ────────────────────────────────────────────────────────
|
|
789
806
|
*
|
|
790
807
|
* Invisible at rest, a strong line under the pointer, the accent line while
|
|
791
|
-
* it is dragged. The target is `--slotted-target-min` wide and
|
|
808
|
+
* it is dragged. The target is `--slotted-target-min` wide and centerd on
|
|
792
809
|
* the column's trailing edge, so half of it stands over the next column;
|
|
793
810
|
* it is pointer-only — `aria-hidden`, no tab stop — because the keyboard
|
|
794
811
|
* resizes from the header cell itself, and a focusable handle inside a
|
|
795
812
|
* composite widget would be a second tab stop.
|
|
796
813
|
*/
|
|
797
|
-
[data-ui
|
|
814
|
+
[data-ui-data-grid] [data-part-resizer] {
|
|
798
815
|
cursor: col-resize;
|
|
799
816
|
inline-size: var(--slotted-target-min, 24px);
|
|
800
817
|
inset-block: 0;
|
|
@@ -808,16 +825,17 @@
|
|
|
808
825
|
|
|
809
826
|
/* The last column's handle stays inside the row: half a target hanging
|
|
810
827
|
past the last cell was twelve pixels of overflow on a row nothing could
|
|
811
|
-
scroll to.
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
> [data-part
|
|
828
|
+
scroll to. The last column header, not the row's last child: the pop-in
|
|
829
|
+
header follows it when columns yield to the frame. */
|
|
830
|
+
[data-ui-data-grid]
|
|
831
|
+
[data-part-header-row]
|
|
832
|
+
> [data-part-column-header]:not(:has(~ [data-part-column-header]))
|
|
833
|
+
> [data-part-resizer] {
|
|
816
834
|
inline-size: calc(var(--slotted-target-min, 24px) / 2);
|
|
817
835
|
inset-inline-end: 0;
|
|
818
836
|
}
|
|
819
837
|
|
|
820
|
-
[data-ui
|
|
838
|
+
[data-ui-data-grid] [data-part-resizer]::after {
|
|
821
839
|
background-color: transparent;
|
|
822
840
|
block-size: 100%;
|
|
823
841
|
content: '';
|
|
@@ -827,31 +845,55 @@
|
|
|
827
845
|
transition: background-color var(--_transition);
|
|
828
846
|
}
|
|
829
847
|
|
|
830
|
-
[data-ui
|
|
848
|
+
[data-ui-data-grid] [data-part-resizer]:not([data-disabled]):hover::after {
|
|
831
849
|
background-color: var(--_rule-strong);
|
|
832
850
|
}
|
|
833
851
|
|
|
834
|
-
[data-ui
|
|
835
|
-
[data-ui
|
|
852
|
+
[data-ui-data-grid] [data-part-resizer][data-resizing]::after,
|
|
853
|
+
[data-ui-data-grid] [data-part-column-header][data-resizing] > [data-part-resizer]::after {
|
|
836
854
|
background-color: var(--_cursor);
|
|
837
855
|
}
|
|
838
856
|
|
|
857
|
+
/**
|
|
858
|
+
* A drag of the resizer moves this line and nothing else:
|
|
859
|
+
* it stands on the column's edge, spans the scroller's visible height and
|
|
860
|
+
* slides by `translate`, which lays nothing out; the width is applied once,
|
|
861
|
+
* on release.
|
|
862
|
+
*/
|
|
863
|
+
[data-ui-data-grid] [data-part-resizer] > [data-part-resize-guide] {
|
|
864
|
+
background-color: var(
|
|
865
|
+
--slotted-data-grid-resize-guide-color,
|
|
866
|
+
var(--slotted-focus-ring-color, Highlight)
|
|
867
|
+
);
|
|
868
|
+
inline-size: var(
|
|
869
|
+
--slotted-data-grid-resize-guide-width,
|
|
870
|
+
var(--slotted-border-width-thick, 2px)
|
|
871
|
+
);
|
|
872
|
+
inset-block-start: 0;
|
|
873
|
+
inset-inline-start: calc(
|
|
874
|
+
50% - var(--slotted-data-grid-resize-guide-width, var(--slotted-border-width-thick, 2px)) / 2
|
|
875
|
+
);
|
|
876
|
+
pointer-events: none;
|
|
877
|
+
position: absolute;
|
|
878
|
+
z-index: 2;
|
|
879
|
+
}
|
|
880
|
+
|
|
839
881
|
/**
|
|
840
882
|
* ── Reordering ─────────────────────────────────────────────────────────
|
|
841
883
|
*
|
|
842
884
|
* The dragged header dims; the drop indicator is a line of the accent
|
|
843
|
-
*
|
|
885
|
+
* color between two columns, positioned by the binding through
|
|
844
886
|
* `--slotted-data-grid-drop-offset` from the scroller's start edge.
|
|
845
887
|
*/
|
|
846
|
-
[data-ui
|
|
888
|
+
[data-ui-data-grid] [data-part-column-header][data-dragging] {
|
|
847
889
|
opacity: 0.5;
|
|
848
890
|
}
|
|
849
891
|
|
|
850
|
-
[data-ui
|
|
892
|
+
[data-ui-data-grid] [data-part-column-header][data-drop-target] {
|
|
851
893
|
background-color: var(--_head-surface-hover);
|
|
852
894
|
}
|
|
853
895
|
|
|
854
|
-
[data-ui
|
|
896
|
+
[data-ui-data-grid] [data-part-drop-indicator] {
|
|
855
897
|
background-color: var(--_cursor);
|
|
856
898
|
/* Absolute in the scroller: its box is the content's, so the line is
|
|
857
899
|
moved down by the scrolled distance to span the viewport. */
|
|
@@ -868,9 +910,9 @@
|
|
|
868
910
|
|
|
869
911
|
/* The same line for a row on its way: horizontal, in the gap the drop
|
|
870
912
|
lands in, as wide as the viewport and moved by the sideways scroll. */
|
|
871
|
-
[data-ui
|
|
913
|
+
[data-ui-data-grid] [data-part-drop-indicator][data-axis='row'] {
|
|
872
914
|
block-size: var(--slotted-border-width-thick, 2px);
|
|
873
|
-
inline-size:
|
|
915
|
+
inline-size: var(--slotted-data-grid-viewport, 100%);
|
|
874
916
|
inset-block-start: calc(
|
|
875
917
|
var(--slotted-data-grid-drop-offset, 0px) - var(--slotted-border-width-thick, 2px) / 2
|
|
876
918
|
);
|
|
@@ -886,7 +928,7 @@
|
|
|
886
928
|
* head. It is a row of the grid — `role="row"`, one `gridcell` per column —
|
|
887
929
|
* so the cursor walks it.
|
|
888
930
|
*/
|
|
889
|
-
[data-ui
|
|
931
|
+
[data-ui-data-grid] [data-part-filter-row] > [data-part-filter-cell] {
|
|
890
932
|
/* The control inside draws no ring of its own: the cell draws the trace
|
|
891
933
|
around the whole of it while anything inside has the focus, so a field
|
|
892
934
|
in the row and the cell it fills are not two rings. The accent edge a
|
|
@@ -906,7 +948,7 @@
|
|
|
906
948
|
position: relative;
|
|
907
949
|
}
|
|
908
950
|
|
|
909
|
-
[data-ui
|
|
951
|
+
[data-ui-data-grid] [data-part-filter-row] > [data-part-filter-cell]:focus-within {
|
|
910
952
|
box-shadow: none;
|
|
911
953
|
outline: var(--_ring-width) solid var(--slotted-focus-ring-color, Highlight);
|
|
912
954
|
outline-offset: calc(var(--_ring-width) * -1);
|
|
@@ -923,11 +965,8 @@
|
|
|
923
965
|
named there, and `A > :is(host > B)` asks B to be A's child and the
|
|
924
966
|
host's at once. `data-grid.styles.test.mjs` holds the rule for every
|
|
925
967
|
hosted part. */
|
|
926
|
-
[data-ui
|
|
927
|
-
[data-ui
|
|
928
|
-
[data-part='filter-cell']
|
|
929
|
-
> :not([data-part])
|
|
930
|
-
> [data-part='filter-operand'] {
|
|
968
|
+
[data-ui-data-grid] [data-part-filter-cell] > [data-part-filter-operand],
|
|
969
|
+
[data-ui-data-grid] [data-part-filter-cell] > :not([data-part]) > [data-part-filter-operand] {
|
|
931
970
|
align-items: center;
|
|
932
971
|
display: flex;
|
|
933
972
|
flex: 1 1 auto;
|
|
@@ -944,15 +983,15 @@
|
|
|
944
983
|
/* The plain control inside takes what the trace leaves of the row's
|
|
945
984
|
height and a short inset after the operator, the rule every cell
|
|
946
985
|
holding a plain control applies. */
|
|
947
|
-
[data-ui
|
|
948
|
-
[data-part
|
|
949
|
-
[data-part
|
|
950
|
-
> [data-part
|
|
951
|
-
[data-ui
|
|
952
|
-
[data-part
|
|
953
|
-
[data-part
|
|
986
|
+
[data-ui-data-grid]
|
|
987
|
+
[data-part-filter-cell]
|
|
988
|
+
[data-part-filter-operand]
|
|
989
|
+
> [data-part-root][data-variant='plain'],
|
|
990
|
+
[data-ui-data-grid]
|
|
991
|
+
[data-part-filter-cell]
|
|
992
|
+
[data-part-filter-operand]
|
|
954
993
|
> :not([data-part])
|
|
955
|
-
> [data-part
|
|
994
|
+
> [data-part-root][data-variant='plain'] {
|
|
956
995
|
--slotted-control-padding-inline-sm: var(--slotted-space-3, 0.375rem);
|
|
957
996
|
--slotted-control-height-sm: calc(var(--_head-block) - var(--_ring-width) * 2);
|
|
958
997
|
|
|
@@ -963,34 +1002,34 @@
|
|
|
963
1002
|
/* Both fields of a numeric `between` share the line, a dash between them;
|
|
964
1003
|
a date, a time or a date-time `between` is one range picker and carries
|
|
965
1004
|
no `data-range`. */
|
|
966
|
-
[data-ui
|
|
967
|
-
[data-part
|
|
968
|
-
[data-part
|
|
969
|
-
> [data-part
|
|
970
|
-
[data-ui
|
|
971
|
-
[data-part
|
|
972
|
-
[data-part
|
|
1005
|
+
[data-ui-data-grid]
|
|
1006
|
+
[data-part-filter-cell]
|
|
1007
|
+
[data-part-filter-operand][data-range]
|
|
1008
|
+
> [data-part-root],
|
|
1009
|
+
[data-ui-data-grid]
|
|
1010
|
+
[data-part-filter-cell]
|
|
1011
|
+
[data-part-filter-operand][data-range]
|
|
973
1012
|
> :not([data-part])
|
|
974
|
-
> [data-part
|
|
1013
|
+
> [data-part-root] {
|
|
975
1014
|
flex: 1 1 0;
|
|
976
1015
|
inline-size: 0;
|
|
977
1016
|
}
|
|
978
1017
|
|
|
979
|
-
[data-ui
|
|
1018
|
+
[data-ui-data-grid] [data-part-filter-cell] [data-part-filter-operand][data-range]::before {
|
|
980
1019
|
color: var(--_muted);
|
|
981
1020
|
content: '–';
|
|
982
1021
|
order: 2;
|
|
983
1022
|
}
|
|
984
1023
|
|
|
985
|
-
[data-ui
|
|
986
|
-
[data-part
|
|
987
|
-
[data-part
|
|
988
|
-
> [data-part
|
|
989
|
-
[data-ui
|
|
990
|
-
[data-part
|
|
991
|
-
[data-part
|
|
1024
|
+
[data-ui-data-grid]
|
|
1025
|
+
[data-part-filter-cell]
|
|
1026
|
+
[data-part-filter-operand][data-range]
|
|
1027
|
+
> [data-part-root]:last-child,
|
|
1028
|
+
[data-ui-data-grid]
|
|
1029
|
+
[data-part-filter-cell]
|
|
1030
|
+
[data-part-filter-operand][data-range]
|
|
992
1031
|
> :not([data-part]):last-child
|
|
993
|
-
> [data-part
|
|
1032
|
+
> [data-part-root] {
|
|
994
1033
|
order: 3;
|
|
995
1034
|
}
|
|
996
1035
|
|
|
@@ -999,7 +1038,7 @@
|
|
|
999
1038
|
* square target the height of the inner control; it opens a `menu` naming
|
|
1000
1039
|
* every operator in full, and its accessible name is the operator in full.
|
|
1001
1040
|
*/
|
|
1002
|
-
[data-ui
|
|
1041
|
+
[data-ui-data-grid] [data-part-filter-cell] [data-part-filter-operator] {
|
|
1003
1042
|
display: inline-flex;
|
|
1004
1043
|
flex: none;
|
|
1005
1044
|
/* One space step off the cell's edge: glued to it, the symbol read as
|
|
@@ -1007,7 +1046,7 @@
|
|
|
1007
1046
|
padding-inline-start: var(--slotted-space-3, 0.375rem);
|
|
1008
1047
|
}
|
|
1009
1048
|
|
|
1010
|
-
[data-ui
|
|
1049
|
+
[data-ui-data-grid] [data-part-filter-cell] [data-part-filter-operator] > button {
|
|
1011
1050
|
align-items: center;
|
|
1012
1051
|
background-color: transparent;
|
|
1013
1052
|
block-size: var(--slotted-control-inner-size-sm, 22px);
|
|
@@ -1028,26 +1067,20 @@
|
|
|
1028
1067
|
color var(--_transition);
|
|
1029
1068
|
}
|
|
1030
1069
|
|
|
1031
|
-
[data-ui
|
|
1032
|
-
[data-part
|
|
1033
|
-
[data-part
|
|
1070
|
+
[data-ui-data-grid]
|
|
1071
|
+
[data-part-filter-cell]
|
|
1072
|
+
[data-part-filter-operator]
|
|
1034
1073
|
> button:not(:disabled):hover {
|
|
1035
1074
|
background-color: var(--_head-surface-hover);
|
|
1036
1075
|
color: var(--_text);
|
|
1037
1076
|
}
|
|
1038
1077
|
|
|
1039
|
-
[data-ui
|
|
1040
|
-
[data-part='filter-cell']
|
|
1041
|
-
[data-part='filter-operator']
|
|
1042
|
-
> button:focus-visible {
|
|
1078
|
+
[data-ui-data-grid] [data-part-filter-cell] [data-part-filter-operator] > button:focus-visible {
|
|
1043
1079
|
outline: var(--_ring-width) solid var(--slotted-focus-ring-color, Highlight);
|
|
1044
1080
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
1045
1081
|
}
|
|
1046
1082
|
|
|
1047
|
-
[data-ui
|
|
1048
|
-
[data-part='filter-cell'][data-filtered]
|
|
1049
|
-
[data-part='filter-operator']
|
|
1050
|
-
> button {
|
|
1083
|
+
[data-ui-data-grid] [data-part-filter-cell][data-filtered] [data-part-filter-operator] > button {
|
|
1051
1084
|
color: var(--slotted-tone-accent-text, CanvasText);
|
|
1052
1085
|
}
|
|
1053
1086
|
|
|
@@ -1069,7 +1102,7 @@
|
|
|
1069
1102
|
binding draws it inside a host element of its own (`display: contents`),
|
|
1070
1103
|
and a child combinator here left that popover at sixteen rem with the
|
|
1071
1104
|
panel standing out of it. */
|
|
1072
|
-
[data-ui
|
|
1105
|
+
[data-ui-popover]:has(> [data-part-content] [data-ui-data-grid][data-part-filter-panel]) {
|
|
1073
1106
|
--slotted-popover-measure-sm: calc(
|
|
1074
1107
|
var(--slotted-data-grid-filter-panel-size, 24rem) + 2 *
|
|
1075
1108
|
(var(--slotted-popover-gap, 0.5rem) + var(--slotted-border-width-thin, 1px))
|
|
@@ -1079,14 +1112,14 @@
|
|
|
1079
1112
|
/* A date's `between` is two dates in one frame and a date-time's two
|
|
1080
1113
|
date-times: the panel widens for the kinds whose operand is long, so the
|
|
1081
1114
|
range is read whole rather than clipped. */
|
|
1082
|
-
[data-ui
|
|
1083
|
-
> [data-part
|
|
1115
|
+
[data-ui-popover]:has(
|
|
1116
|
+
> [data-part-content] [data-ui-data-grid][data-part-filter-panel][data-kind='date']
|
|
1084
1117
|
) {
|
|
1085
1118
|
--slotted-data-grid-filter-panel-size: var(--slotted-data-grid-filter-panel-size-date, 28rem);
|
|
1086
1119
|
}
|
|
1087
1120
|
|
|
1088
|
-
[data-ui
|
|
1089
|
-
> [data-part
|
|
1121
|
+
[data-ui-popover]:has(
|
|
1122
|
+
> [data-part-content] [data-ui-data-grid][data-part-filter-panel][data-kind='datetime']
|
|
1090
1123
|
) {
|
|
1091
1124
|
--slotted-data-grid-filter-panel-size: var(
|
|
1092
1125
|
--slotted-data-grid-filter-panel-size-datetime,
|
|
@@ -1094,7 +1127,7 @@
|
|
|
1094
1127
|
);
|
|
1095
1128
|
}
|
|
1096
1129
|
|
|
1097
|
-
[data-ui
|
|
1130
|
+
[data-ui-data-grid][data-part-filter-panel] {
|
|
1098
1131
|
--_operator-size: var(--slotted-data-grid-filter-operator-size, 7rem);
|
|
1099
1132
|
--_panel-gap: var(--slotted-space-3, 0.375rem);
|
|
1100
1133
|
|
|
@@ -1119,7 +1152,7 @@
|
|
|
1119
1152
|
var(--slotted-popover-padding-inline-sm, var(--slotted-space-5, 0.75rem));
|
|
1120
1153
|
}
|
|
1121
1154
|
|
|
1122
|
-
[data-ui
|
|
1155
|
+
[data-ui-data-grid][data-part-filter-panel] > [data-part-filter-condition] {
|
|
1123
1156
|
align-items: center;
|
|
1124
1157
|
display: grid;
|
|
1125
1158
|
gap: var(--_panel-gap);
|
|
@@ -1129,22 +1162,22 @@
|
|
|
1129
1162
|
|
|
1130
1163
|
/* The first condition has no join: its operator starts in the second
|
|
1131
1164
|
column. A set filter has one condition and no join at all. */
|
|
1132
|
-
[data-ui
|
|
1133
|
-
> [data-part
|
|
1134
|
-
> [data-part
|
|
1165
|
+
[data-ui-data-grid][data-part-filter-panel]
|
|
1166
|
+
> [data-part-filter-condition]:first-child
|
|
1167
|
+
> [data-part-filter-operator] {
|
|
1135
1168
|
grid-column: 2;
|
|
1136
1169
|
}
|
|
1137
1170
|
|
|
1138
|
-
[data-ui
|
|
1171
|
+
[data-ui-data-grid][data-part-filter-panel] [data-part-filter-join] {
|
|
1139
1172
|
grid-column: 1;
|
|
1140
1173
|
}
|
|
1141
1174
|
|
|
1142
|
-
[data-ui
|
|
1175
|
+
[data-ui-data-grid][data-part-filter-panel] [data-part-filter-operator] {
|
|
1143
1176
|
grid-column: 2;
|
|
1144
1177
|
min-inline-size: 0;
|
|
1145
1178
|
}
|
|
1146
1179
|
|
|
1147
|
-
[data-ui
|
|
1180
|
+
[data-ui-data-grid][data-part-filter-panel] [data-part-filter-operand] {
|
|
1148
1181
|
align-items: center;
|
|
1149
1182
|
display: flex;
|
|
1150
1183
|
gap: var(--_panel-gap);
|
|
@@ -1154,46 +1187,44 @@
|
|
|
1154
1187
|
|
|
1155
1188
|
/* An operator taking no operand leaves the operand column empty rather than
|
|
1156
1189
|
drawing a disabled field. */
|
|
1157
|
-
[data-ui
|
|
1158
|
-
[data-part
|
|
1159
|
-
> [data-part
|
|
1190
|
+
[data-ui-data-grid][data-part-filter-panel]
|
|
1191
|
+
[data-part-filter-condition][data-operands='0']
|
|
1192
|
+
> [data-part-filter-operand] {
|
|
1160
1193
|
display: none;
|
|
1161
1194
|
}
|
|
1162
1195
|
|
|
1163
1196
|
/* Both operands of a `between` stand on the line with a dash between them:
|
|
1164
1197
|
the pair is one thought and one line says so. */
|
|
1165
|
-
[data-ui
|
|
1198
|
+
[data-ui-data-grid][data-part-filter-panel] [data-part-filter-operand][data-range] > * {
|
|
1166
1199
|
flex: 1 1 0;
|
|
1167
1200
|
inline-size: 0;
|
|
1168
1201
|
min-inline-size: 0;
|
|
1169
1202
|
}
|
|
1170
1203
|
|
|
1171
|
-
[data-ui
|
|
1204
|
+
[data-ui-data-grid][data-part-filter-panel] [data-part-filter-operand][data-range]::before {
|
|
1172
1205
|
color: var(--slotted-text-muted);
|
|
1173
1206
|
content: '–';
|
|
1174
1207
|
order: 1;
|
|
1175
1208
|
}
|
|
1176
1209
|
|
|
1177
|
-
[data-ui
|
|
1178
|
-
[data-part='filter-operand'][data-range]
|
|
1179
|
-
> :last-child {
|
|
1210
|
+
[data-ui-data-grid][data-part-filter-panel] [data-part-filter-operand][data-range] > :last-child {
|
|
1180
1211
|
order: 2;
|
|
1181
1212
|
}
|
|
1182
1213
|
|
|
1183
|
-
[data-ui
|
|
1184
|
-
[data-ui
|
|
1185
|
-
[data-part
|
|
1214
|
+
[data-ui-data-grid][data-part-filter-panel] [data-part-filter-operand] > [data-part-root],
|
|
1215
|
+
[data-ui-data-grid][data-part-filter-panel]
|
|
1216
|
+
[data-part-filter-operand]
|
|
1186
1217
|
> :not([data-part])
|
|
1187
|
-
> [data-part
|
|
1218
|
+
> [data-part-root] {
|
|
1188
1219
|
flex: 1 1 auto;
|
|
1189
1220
|
min-inline-size: 0;
|
|
1190
1221
|
}
|
|
1191
1222
|
|
|
1192
|
-
[data-ui
|
|
1223
|
+
[data-ui-data-grid][data-part-filter-panel] [data-part-filter-operand] [data-part-input] {
|
|
1193
1224
|
min-inline-size: 0;
|
|
1194
1225
|
}
|
|
1195
1226
|
|
|
1196
|
-
[data-ui
|
|
1227
|
+
[data-ui-data-grid][data-part-filter-panel] [data-part-filter-actions] {
|
|
1197
1228
|
display: flex;
|
|
1198
1229
|
gap: var(--_panel-gap);
|
|
1199
1230
|
grid-column: 1 / -1;
|
|
@@ -1204,8 +1235,10 @@
|
|
|
1204
1235
|
/**
|
|
1205
1236
|
* ── Rows and cells ─────────────────────────────────────────────────────
|
|
1206
1237
|
*/
|
|
1207
|
-
[data-ui
|
|
1238
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-body] {
|
|
1208
1239
|
box-sizing: border-box;
|
|
1240
|
+
/* The containing block of the veil a busy grid lays over its rows. */
|
|
1241
|
+
position: relative;
|
|
1209
1242
|
/* The virtual window: the body is as tall as every row and its padding is
|
|
1210
1243
|
the offset of the first mounted one, so the mounted rows stand where the
|
|
1211
1244
|
unmounted ones would. No transform, so a pinned column's `sticky`
|
|
@@ -1214,9 +1247,13 @@
|
|
|
1214
1247
|
padding-block-start: var(--slotted-data-grid-window-start, 0);
|
|
1215
1248
|
}
|
|
1216
1249
|
|
|
1217
|
-
[data-ui
|
|
1250
|
+
[data-ui-data-grid] [data-part-row] {
|
|
1218
1251
|
background-color: var(--_surface);
|
|
1219
|
-
|
|
1252
|
+
/* The block's edges settle with its ground, not a frame before it. */
|
|
1253
|
+
transition:
|
|
1254
|
+
background-color var(--_transition),
|
|
1255
|
+
border-color var(--_transition),
|
|
1256
|
+
box-shadow var(--_transition);
|
|
1220
1257
|
}
|
|
1221
1258
|
|
|
1222
1259
|
/**
|
|
@@ -1234,66 +1271,85 @@
|
|
|
1234
1271
|
* content grows a `minmax(row, cap)` track to the cap — read on the content
|
|
1235
1272
|
* scene, every auto row was four rows tall, one line of text in each.
|
|
1236
1273
|
*/
|
|
1237
|
-
[data-ui
|
|
1238
|
-
> [data-part
|
|
1239
|
-
> :is([data-part
|
|
1240
|
-
> [data-part
|
|
1274
|
+
[data-ui-data-grid][data-rows='fixed']
|
|
1275
|
+
> [data-part-scroll]
|
|
1276
|
+
> :is([data-part-body], [data-part-pinned-rows])
|
|
1277
|
+
> [data-part-row] {
|
|
1241
1278
|
block-size: var(--_row-block);
|
|
1242
1279
|
grid-auto-rows: var(--_track);
|
|
1243
1280
|
}
|
|
1244
1281
|
|
|
1245
|
-
[data-ui
|
|
1246
|
-
> [data-part
|
|
1247
|
-
> :is([data-part
|
|
1248
|
-
> [data-part
|
|
1282
|
+
[data-ui-data-grid][data-rows='auto']
|
|
1283
|
+
> [data-part-scroll]
|
|
1284
|
+
> :is([data-part-body], [data-part-pinned-rows])
|
|
1285
|
+
> [data-part-row] {
|
|
1249
1286
|
grid-auto-rows: minmax(var(--_track), auto);
|
|
1250
1287
|
}
|
|
1251
1288
|
|
|
1252
1289
|
/* A value taller than the cap is clipped at it, on the block axis only: a
|
|
1253
1290
|
pinned cell's edge shadow is drawn past its inline end. The pop-in is not
|
|
1254
1291
|
a value of the row and has no cap. */
|
|
1255
|
-
[data-ui
|
|
1256
|
-
:is([data-part
|
|
1257
|
-
> [data-part
|
|
1258
|
-
> :is([role='gridcell'], [role='rowheader']):not([data-part
|
|
1292
|
+
[data-ui-data-grid][data-rows='auto']
|
|
1293
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1294
|
+
> [data-part-row]
|
|
1295
|
+
> :is([role='gridcell'], [role='rowheader']):not([data-part-popin]) {
|
|
1259
1296
|
max-block-size: var(--_row-max-block);
|
|
1260
1297
|
overflow-y: clip;
|
|
1261
1298
|
}
|
|
1262
1299
|
|
|
1263
1300
|
/* A row that grows to its text aligns its cells to the top: a one-line
|
|
1264
|
-
value
|
|
1265
|
-
and the eye reads a row from its first line. Fixed rows stay
|
|
1266
|
-
[data-ui
|
|
1267
|
-
:is([data-part
|
|
1268
|
-
> [data-part
|
|
1301
|
+
value centerd beside a four-line one floats in the middle of nothing,
|
|
1302
|
+
and the eye reads a row from its first line. Fixed rows stay centerd. */
|
|
1303
|
+
[data-ui-data-grid][data-rows='auto']
|
|
1304
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1305
|
+
> [data-part-row]
|
|
1269
1306
|
> [role='gridcell'],
|
|
1270
|
-
[data-ui
|
|
1271
|
-
:is([data-part
|
|
1272
|
-
> [data-part
|
|
1307
|
+
[data-ui-data-grid][data-rows='auto']
|
|
1308
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1309
|
+
> [data-part-row]
|
|
1273
1310
|
> [role='rowheader'] {
|
|
1274
1311
|
align-items: start;
|
|
1275
1312
|
}
|
|
1276
1313
|
|
|
1277
|
-
[data-ui
|
|
1278
|
-
> [data-part
|
|
1279
|
-
> :is([data-part
|
|
1314
|
+
[data-ui-data-grid]:is([data-variant='ruled'], [data-variant='framed'])
|
|
1315
|
+
> [data-part-scroll]
|
|
1316
|
+
> :is([data-part-body], [data-part-pinned-rows]) {
|
|
1280
1317
|
--_track: calc(var(--_row-block) - var(--_rule-width));
|
|
1281
1318
|
}
|
|
1282
1319
|
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1320
|
+
/**
|
|
1321
|
+
* A control a cell renderer draws — a `Button`, an `IconButton`, a `Select` —
|
|
1322
|
+
* stands inside the cursor's trace: the row restates the control scale as
|
|
1323
|
+
* the track less the ring and one space step on each side, so a hovered
|
|
1324
|
+
* ground never covers the trace, at every density. The restatement is on
|
|
1325
|
+
* the row and not on each cell, so a row of eight cells computes it once.
|
|
1326
|
+
* A cell in edit states its own, the track less the ring.
|
|
1327
|
+
*/
|
|
1328
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-body] > [data-part-row],
|
|
1329
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-pinned-rows] > [data-part-row] {
|
|
1330
|
+
--_cell-control: calc(
|
|
1331
|
+
var(--_track) - var(--_ring-width) * 2 - var(--slotted-space-1, 0.125rem) * 2
|
|
1332
|
+
);
|
|
1333
|
+
--slotted-control-height-sm: min(var(--_control-height-sm), var(--_cell-control));
|
|
1334
|
+
--slotted-control-height-md: min(var(--_control-height-md), var(--_cell-control));
|
|
1335
|
+
--slotted-control-height-lg: min(var(--_control-height-lg), var(--_cell-control));
|
|
1336
|
+
--slotted-target-min: min(var(--_target-min), var(--_cell-control));
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-head] > [role='row'],
|
|
1340
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-summary] > [role='row'],
|
|
1341
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-loader] > [role='row'] {
|
|
1286
1342
|
grid-auto-rows: minmax(var(--_head-block), auto);
|
|
1287
1343
|
}
|
|
1288
1344
|
|
|
1289
|
-
[data-ui
|
|
1290
|
-
[data-ui
|
|
1291
|
-
[data-ui
|
|
1292
|
-
[data-ui
|
|
1293
|
-
> [data-part
|
|
1294
|
-
> :is([data-part
|
|
1345
|
+
[data-ui-data-grid] [data-part-cell],
|
|
1346
|
+
[data-ui-data-grid] [data-part-row-header],
|
|
1347
|
+
[data-ui-data-grid] [data-part-summary-cell],
|
|
1348
|
+
[data-ui-data-grid]
|
|
1349
|
+
> [data-part-scroll]
|
|
1350
|
+
> :is([data-part-body], [data-part-pinned-rows])
|
|
1295
1351
|
> [role='row']
|
|
1296
|
-
> [data-part
|
|
1352
|
+
> [data-part-selection] {
|
|
1297
1353
|
align-items: center;
|
|
1298
1354
|
box-sizing: border-box;
|
|
1299
1355
|
display: flex;
|
|
@@ -1305,7 +1361,7 @@
|
|
|
1305
1361
|
|
|
1306
1362
|
/* Every cell but a pinned one is a containing block, for the range edges
|
|
1307
1363
|
and the invalid mark; a pinned cell is already positioned by `sticky`. */
|
|
1308
|
-
[data-ui
|
|
1364
|
+
[data-ui-data-grid] [data-part-cell]:not([data-pinned]) {
|
|
1309
1365
|
position: relative;
|
|
1310
1366
|
}
|
|
1311
1367
|
|
|
@@ -1313,9 +1369,9 @@
|
|
|
1313
1369
|
keeps its own direction: an identifier, an email or a price in a
|
|
1314
1370
|
right-to-left document is left-to-right text, and read in `dir="rtl"`
|
|
1315
1371
|
"Bloom & Co." had its full stop moved to the front. */
|
|
1316
|
-
[data-ui
|
|
1317
|
-
[data-ui
|
|
1318
|
-
[data-ui
|
|
1372
|
+
[data-ui-data-grid] [data-part-cell] > span:not([data-ui], [data-part]),
|
|
1373
|
+
[data-ui-data-grid] [data-part-row-header] > span:not([data-ui], [data-part]),
|
|
1374
|
+
[data-ui-data-grid] [data-part-summary-cell] > span:not([data-ui], [data-part]) {
|
|
1319
1375
|
flex: 1 1 auto;
|
|
1320
1376
|
min-inline-size: 0;
|
|
1321
1377
|
unicode-bidi: plaintext;
|
|
@@ -1324,35 +1380,35 @@
|
|
|
1324
1380
|
/* A family drawn in a cell by a renderer — a badge, a tag — keeps its own
|
|
1325
1381
|
size: read on the status column, a badge filled the cell's whole width
|
|
1326
1382
|
because it was a span standing where the value stands. */
|
|
1327
|
-
[data-ui
|
|
1383
|
+
[data-ui-data-grid] [data-part-cell] > [data-ui]:not([data-part]) {
|
|
1328
1384
|
flex: 0 0 auto;
|
|
1329
1385
|
max-inline-size: 100%;
|
|
1330
1386
|
}
|
|
1331
1387
|
|
|
1332
1388
|
/* A row header names the record and carries one step of weight. */
|
|
1333
|
-
[data-ui
|
|
1389
|
+
[data-ui-data-grid] [data-part-row-header] {
|
|
1334
1390
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
1335
1391
|
}
|
|
1336
1392
|
|
|
1337
1393
|
/* The rule between two rows, on the row; the last gives its rule up so a
|
|
1338
1394
|
ruled grid does not end in a line with nothing under it. */
|
|
1339
|
-
[data-ui
|
|
1340
|
-
:is([data-part
|
|
1395
|
+
[data-ui-data-grid]:is([data-variant='ruled'], [data-variant='framed'])
|
|
1396
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1341
1397
|
> [role='row'] {
|
|
1342
1398
|
border-block-end: var(--_rule-width) solid var(--_rule);
|
|
1343
1399
|
}
|
|
1344
1400
|
|
|
1345
|
-
[data-ui
|
|
1346
|
-
:is([data-part
|
|
1401
|
+
[data-ui-data-grid]:is([data-variant='ruled'], [data-variant='framed'])
|
|
1402
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1347
1403
|
> [role='row']:last-child {
|
|
1348
1404
|
border-block-end-color: transparent;
|
|
1349
1405
|
}
|
|
1350
1406
|
|
|
1351
1407
|
/* The stripe, declared before every state. */
|
|
1352
|
-
[data-ui
|
|
1353
|
-
> [data-part
|
|
1354
|
-
> :is([data-part
|
|
1355
|
-
> [data-part
|
|
1408
|
+
[data-ui-data-grid][data-striped]
|
|
1409
|
+
> [data-part-scroll]
|
|
1410
|
+
> :is([data-part-body], [data-part-pinned-rows])
|
|
1411
|
+
> [data-part-row]:nth-child(even) {
|
|
1356
1412
|
background-color: var(--_stripe);
|
|
1357
1413
|
}
|
|
1358
1414
|
|
|
@@ -1361,28 +1417,53 @@
|
|
|
1361
1417
|
*
|
|
1362
1418
|
* In the order `STATE_PRECEDENCE` declares them, weakest last.
|
|
1363
1419
|
*/
|
|
1364
|
-
[data-ui
|
|
1365
|
-
> [data-part
|
|
1366
|
-
> :is([data-part
|
|
1367
|
-
> [data-part
|
|
1420
|
+
[data-ui-data-grid]
|
|
1421
|
+
> [data-part-scroll]
|
|
1422
|
+
> :is([data-part-body], [data-part-pinned-rows])
|
|
1423
|
+
> [data-part-row]:not([data-disabled]):hover {
|
|
1368
1424
|
background-color: var(--_hover);
|
|
1369
1425
|
}
|
|
1370
1426
|
|
|
1371
|
-
[data-ui
|
|
1372
|
-
> [data-part
|
|
1373
|
-
> :is([data-part
|
|
1374
|
-
> [data-part
|
|
1427
|
+
[data-ui-data-grid]
|
|
1428
|
+
> [data-part-scroll]
|
|
1429
|
+
> :is([data-part-body], [data-part-pinned-rows])
|
|
1430
|
+
> [data-part-row][data-selected] {
|
|
1375
1431
|
background-color: var(--_selected);
|
|
1376
1432
|
color: var(--_selected-text);
|
|
1377
1433
|
}
|
|
1378
1434
|
|
|
1379
|
-
[data-ui
|
|
1380
|
-
:is([data-part
|
|
1381
|
-
> [data-part
|
|
1435
|
+
[data-ui-data-grid]
|
|
1436
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1437
|
+
> [data-part-row][data-selected]:not([data-disabled]):hover {
|
|
1382
1438
|
background-color: var(--_selected-hover);
|
|
1383
1439
|
}
|
|
1384
1440
|
|
|
1385
|
-
|
|
1441
|
+
/* The block's edges. The bottom is the row's own rule; the top is drawn
|
|
1442
|
+
over the rule of the row above, by a shadow one rule tall, because a row
|
|
1443
|
+
cannot reach its previous sibling. Inside a run the shadow takes the
|
|
1444
|
+
inner tint. A head above, being sticky, paints over the shadow and its
|
|
1445
|
+
own rule closes the block; a frame below closes it the same way. */
|
|
1446
|
+
[data-ui-data-grid]:is([data-variant='ruled'], [data-variant='framed'])
|
|
1447
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1448
|
+
> [data-part-row][data-selected] {
|
|
1449
|
+
border-block-end-color: var(--_selected-edge);
|
|
1450
|
+
box-shadow: 0 calc(var(--_rule-width) * -1) 0 var(--_selected-edge);
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
[data-ui-data-grid]:is([data-variant='ruled'], [data-variant='framed'])
|
|
1454
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1455
|
+
> [data-part-row][data-selected]
|
|
1456
|
+
+ [data-part-row][data-selected] {
|
|
1457
|
+
box-shadow: 0 calc(var(--_rule-width) * -1) 0 var(--_selected-rule);
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
[data-ui-data-grid][data-variant='framed']
|
|
1461
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
1462
|
+
> [data-part-row][data-selected]:last-child {
|
|
1463
|
+
border-block-end-color: transparent;
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
[data-ui-data-grid] [data-part-row][data-disabled] {
|
|
1386
1467
|
color: var(--slotted-disabled-foreground, GrayText);
|
|
1387
1468
|
}
|
|
1388
1469
|
|
|
@@ -1395,11 +1476,11 @@
|
|
|
1395
1476
|
* cell has no margin for an outer ring and the row below would cover it.
|
|
1396
1477
|
* A cell in edit draws nothing: its control draws the inner ring.
|
|
1397
1478
|
*/
|
|
1398
|
-
[data-ui
|
|
1399
|
-
[data-ui
|
|
1400
|
-
[data-ui
|
|
1479
|
+
[data-ui-data-grid] [role='gridcell'][data-current]:not([data-editing]),
|
|
1480
|
+
[data-ui-data-grid] [role='rowheader'][data-current]:not([data-editing]),
|
|
1481
|
+
[data-ui-data-grid] [role='columnheader'][data-current] {
|
|
1401
1482
|
/* An inset shadow rather than an outline: an outline is a focus ring by
|
|
1402
|
-
the library's rule and is drawn in the ring
|
|
1483
|
+
the library's rule and is drawn in the ring color whole; this is the
|
|
1403
1484
|
place the reader left, at rest. */
|
|
1404
1485
|
box-shadow: inset 0 0 0 var(--_ring-width) var(--_cursor-rest);
|
|
1405
1486
|
}
|
|
@@ -1407,9 +1488,9 @@
|
|
|
1407
1488
|
/* The grid's own cells, the children of its rows: a chip in a multi-select
|
|
1408
1489
|
is a `gridcell` too, of the grid pattern the chips row is, and must keep
|
|
1409
1490
|
its own ring rather than take this one. */
|
|
1410
|
-
[data-ui
|
|
1411
|
-
[data-ui
|
|
1412
|
-
[data-ui
|
|
1491
|
+
[data-ui-data-grid] [role='row'] > [role='gridcell']:focus-visible:not([data-editing]),
|
|
1492
|
+
[data-ui-data-grid] [role='row'] > [role='rowheader']:focus-visible:not([data-editing]),
|
|
1493
|
+
[data-ui-data-grid] [role='row'] > [role='columnheader']:focus-visible {
|
|
1413
1494
|
box-shadow: none;
|
|
1414
1495
|
outline: var(--_ring-width) solid var(--slotted-focus-ring-color, Highlight);
|
|
1415
1496
|
outline-offset: calc(var(--_ring-width) * -1);
|
|
@@ -1419,8 +1500,8 @@
|
|
|
1419
1500
|
draws none, so there are not two. A cell in edit and a filter cell are
|
|
1420
1501
|
the other way round — the control inside is silenced and the cell draws
|
|
1421
1502
|
the trace — so they are left out. */
|
|
1422
|
-
[data-ui
|
|
1423
|
-
[role='gridcell'][data-current]:not([data-editing], [data-part
|
|
1503
|
+
[data-ui-data-grid]
|
|
1504
|
+
[role='gridcell'][data-current]:not([data-editing], [data-part-filter-cell]):focus-within:not(
|
|
1424
1505
|
:focus
|
|
1425
1506
|
) {
|
|
1426
1507
|
outline: none;
|
|
@@ -1435,11 +1516,11 @@
|
|
|
1435
1516
|
* pseudo-element rather than a border, because the cell's own bottom border
|
|
1436
1517
|
* is the rule between rows.
|
|
1437
1518
|
*/
|
|
1438
|
-
[data-ui
|
|
1519
|
+
[data-ui-data-grid] [data-part-cell][data-in-range] {
|
|
1439
1520
|
background-color: var(--_range);
|
|
1440
1521
|
}
|
|
1441
1522
|
|
|
1442
|
-
[data-ui
|
|
1523
|
+
[data-ui-data-grid] [data-part-cell][data-range-edge]::before {
|
|
1443
1524
|
border: 0 solid var(--_cursor);
|
|
1444
1525
|
content: '';
|
|
1445
1526
|
/* Past the cell's own bottom border, so a vertical edge runs unbroken
|
|
@@ -1449,22 +1530,22 @@
|
|
|
1449
1530
|
position: absolute;
|
|
1450
1531
|
}
|
|
1451
1532
|
|
|
1452
|
-
[data-ui
|
|
1533
|
+
[data-ui-data-grid] [data-part-cell][data-range-edge~='top']::before {
|
|
1453
1534
|
border-block-start-width: var(--_ring-width);
|
|
1454
1535
|
}
|
|
1455
1536
|
|
|
1456
1537
|
/* The bottom edge ends at the cell: run past it, over the row's rule, it
|
|
1457
1538
|
read one pixel thicker than the other three. */
|
|
1458
|
-
[data-ui
|
|
1539
|
+
[data-ui-data-grid] [data-part-cell][data-range-edge~='bottom']::before {
|
|
1459
1540
|
border-block-end-width: var(--_ring-width);
|
|
1460
1541
|
inset-block-end: 0;
|
|
1461
1542
|
}
|
|
1462
1543
|
|
|
1463
|
-
[data-ui
|
|
1544
|
+
[data-ui-data-grid] [data-part-cell][data-range-edge~='start']::before {
|
|
1464
1545
|
border-inline-start-width: var(--_ring-width);
|
|
1465
1546
|
}
|
|
1466
1547
|
|
|
1467
|
-
[data-ui
|
|
1548
|
+
[data-ui-data-grid] [data-part-cell][data-range-edge~='end']::before {
|
|
1468
1549
|
border-inline-end-width: var(--_ring-width);
|
|
1469
1550
|
}
|
|
1470
1551
|
|
|
@@ -1476,7 +1557,7 @@
|
|
|
1476
1557
|
* The control is the row's height, so a row in edit is as tall as one that
|
|
1477
1558
|
* is not.
|
|
1478
1559
|
*/
|
|
1479
|
-
[data-ui
|
|
1560
|
+
[data-ui-data-grid] [data-part-cell][data-editing] {
|
|
1480
1561
|
--slotted-control-padding-inline-sm: var(--_pad-inline);
|
|
1481
1562
|
--slotted-control-padding-inline-md: var(--_pad-inline);
|
|
1482
1563
|
--slotted-control-padding-inline-lg: var(--_pad-inline);
|
|
@@ -1507,19 +1588,19 @@
|
|
|
1507
1588
|
padding: 0;
|
|
1508
1589
|
}
|
|
1509
1590
|
|
|
1510
|
-
[data-ui
|
|
1591
|
+
[data-ui-data-grid] [data-part-cell][data-editing][data-current] {
|
|
1511
1592
|
box-shadow: none;
|
|
1512
1593
|
outline: var(--_ring-width) solid var(--slotted-focus-ring-color, Highlight);
|
|
1513
1594
|
outline-offset: calc(var(--_ring-width) * -1);
|
|
1514
1595
|
}
|
|
1515
1596
|
|
|
1516
|
-
/* An invalid draft keeps the cursor and
|
|
1597
|
+
/* An invalid draft keeps the cursor and recolors it the way every field
|
|
1517
1598
|
does — by pointing the ring at the invalid step: `invalid` does not erase
|
|
1518
1599
|
focus. The descendants' ring width is already zero, so the token moves
|
|
1519
1600
|
only this cell's own trace. */
|
|
1520
|
-
[data-ui
|
|
1601
|
+
[data-ui-data-grid] [data-part-cell][data-editing][data-invalid] {
|
|
1521
1602
|
--slotted-focus-ring-color: var(--slotted-focus-ring-color-invalid);
|
|
1522
|
-
/* Width as well as
|
|
1603
|
+
/* Width as well as color (WCAG 1.4.1): in `high-contrast` the invalid ring
|
|
1523
1604
|
is the valid ring's black, and the corner mark is withdrawn while the
|
|
1524
1605
|
cell edits. The trace widens inward by the edge every invalid control
|
|
1525
1606
|
adds, so the cell's box and its draft stay where they are. */
|
|
@@ -1532,11 +1613,11 @@
|
|
|
1532
1613
|
|
|
1533
1614
|
/* The editor of a numeric column keeps the digits at the end, where the
|
|
1534
1615
|
read value stood. */
|
|
1535
|
-
[data-ui
|
|
1616
|
+
[data-ui-data-grid] [data-numeric][data-editing] [data-part-input] {
|
|
1536
1617
|
text-align: end;
|
|
1537
1618
|
}
|
|
1538
1619
|
|
|
1539
|
-
[data-ui
|
|
1620
|
+
[data-ui-data-grid] [data-part-cell] > [data-part-editor] {
|
|
1540
1621
|
display: flex;
|
|
1541
1622
|
flex: 1 1 auto;
|
|
1542
1623
|
/* Inside the cell's trace, at every density. */
|
|
@@ -1544,12 +1625,8 @@
|
|
|
1544
1625
|
min-inline-size: 0;
|
|
1545
1626
|
}
|
|
1546
1627
|
|
|
1547
|
-
[data-ui
|
|
1548
|
-
[data-ui
|
|
1549
|
-
[data-part='cell']
|
|
1550
|
-
> [data-part='editor']
|
|
1551
|
-
> :not([data-part])
|
|
1552
|
-
> [data-part='root'] {
|
|
1628
|
+
[data-ui-data-grid] [data-part-cell] > [data-part-editor] > [data-part-root],
|
|
1629
|
+
[data-ui-data-grid] [data-part-cell] > [data-part-editor] > :not([data-part]) > [data-part-root] {
|
|
1553
1630
|
flex: 1 1 auto;
|
|
1554
1631
|
min-inline-size: 0;
|
|
1555
1632
|
}
|
|
@@ -1563,13 +1640,13 @@
|
|
|
1563
1640
|
* outside the motion scale; under reduced motion the ground stays flat and
|
|
1564
1641
|
* leaves when the mark does.
|
|
1565
1642
|
*/
|
|
1566
|
-
[data-ui
|
|
1643
|
+
[data-ui-data-grid] [data-part-cell][data-changed='a'] {
|
|
1567
1644
|
animation: slotted-data-grid-changed-a
|
|
1568
1645
|
var(--slotted-data-grid-changed-duration, var(--slotted-duration-long))
|
|
1569
1646
|
var(--slotted-easing-standard, ease-out) forwards;
|
|
1570
1647
|
}
|
|
1571
1648
|
|
|
1572
|
-
[data-ui
|
|
1649
|
+
[data-ui-data-grid] [data-part-cell][data-changed='b'] {
|
|
1573
1650
|
animation: slotted-data-grid-changed-b
|
|
1574
1651
|
var(--slotted-data-grid-changed-duration, var(--slotted-duration-long))
|
|
1575
1652
|
var(--slotted-easing-standard, ease-out) forwards;
|
|
@@ -1600,12 +1677,12 @@
|
|
|
1600
1677
|
}
|
|
1601
1678
|
|
|
1602
1679
|
@media (prefers-reduced-motion: reduce) {
|
|
1603
|
-
[data-ui
|
|
1680
|
+
[data-ui-data-grid] [data-part-cell][data-changed] {
|
|
1604
1681
|
animation: none;
|
|
1605
1682
|
background-color: var(--_changed);
|
|
1606
1683
|
}
|
|
1607
1684
|
|
|
1608
|
-
[data-ui
|
|
1685
|
+
[data-ui-data-grid] button[data-part-tree-toggle][data-loading] > [data-ui-icon] {
|
|
1609
1686
|
animation: none;
|
|
1610
1687
|
}
|
|
1611
1688
|
}
|
|
@@ -1613,7 +1690,7 @@
|
|
|
1613
1690
|
/* A cell whose draft failed, or whose value changed under the reader. The
|
|
1614
1691
|
mark is a corner in the danger ink, and the message is the control's own
|
|
1615
1692
|
`aria-errormessage`; the cell keeps the draft. */
|
|
1616
|
-
[data-ui
|
|
1693
|
+
[data-ui-data-grid] [data-part-cell][data-invalid]:not([data-editing])::after {
|
|
1617
1694
|
border-block-start: var(--slotted-space-3, 0.375rem) solid var(--slotted-tone-danger-border);
|
|
1618
1695
|
border-inline-start: var(--slotted-space-3, 0.375rem) solid transparent;
|
|
1619
1696
|
content: '';
|
|
@@ -1626,39 +1703,39 @@
|
|
|
1626
1703
|
}
|
|
1627
1704
|
|
|
1628
1705
|
/* A cell whose commit is pending dims its value; nothing moves. */
|
|
1629
|
-
[data-ui
|
|
1706
|
+
[data-ui-data-grid] [data-part-cell][data-loading] {
|
|
1630
1707
|
color: var(--_muted);
|
|
1631
1708
|
}
|
|
1632
1709
|
|
|
1633
1710
|
/* A cell that does not edit in a grid that does: no mark, no hand. It is a
|
|
1634
1711
|
fact the reader hears, not one the eye needs. */
|
|
1635
|
-
[data-ui
|
|
1712
|
+
[data-ui-data-grid] [data-part-cell][data-readonly] {
|
|
1636
1713
|
cursor: default;
|
|
1637
1714
|
}
|
|
1638
1715
|
|
|
1639
1716
|
/**
|
|
1640
1717
|
* ── Alignment, numerals and the text treatment ─────────────────────────
|
|
1641
1718
|
*/
|
|
1642
|
-
[data-ui
|
|
1719
|
+
[data-ui-data-grid] [data-align='start'] {
|
|
1643
1720
|
justify-content: start;
|
|
1644
1721
|
text-align: start;
|
|
1645
1722
|
}
|
|
1646
1723
|
|
|
1647
|
-
[data-ui
|
|
1724
|
+
[data-ui-data-grid] [data-align='center'] {
|
|
1648
1725
|
justify-content: center;
|
|
1649
1726
|
text-align: center;
|
|
1650
1727
|
}
|
|
1651
1728
|
|
|
1652
|
-
[data-ui
|
|
1729
|
+
[data-ui-data-grid] [data-align='end'] {
|
|
1653
1730
|
justify-content: end;
|
|
1654
1731
|
text-align: end;
|
|
1655
1732
|
}
|
|
1656
1733
|
|
|
1657
|
-
[data-ui
|
|
1734
|
+
[data-ui-data-grid] [data-numeric] {
|
|
1658
1735
|
font-variant-numeric: tabular-nums;
|
|
1659
1736
|
}
|
|
1660
1737
|
|
|
1661
|
-
[data-ui
|
|
1738
|
+
[data-ui-data-grid] [data-numeric]:not([data-align]) {
|
|
1662
1739
|
justify-content: end;
|
|
1663
1740
|
text-align: end;
|
|
1664
1741
|
}
|
|
@@ -1668,7 +1745,7 @@
|
|
|
1668
1745
|
is the span with no part of its own — in a tree column the toggle comes
|
|
1669
1746
|
first, and a rule on `:first-child` left "Barcelona" drawn over the next
|
|
1670
1747
|
column once the column was narrower than the name. */
|
|
1671
|
-
[data-ui
|
|
1748
|
+
[data-ui-data-grid] [data-text='truncate'] > span:not([data-ui], [data-part]) {
|
|
1672
1749
|
overflow: hidden;
|
|
1673
1750
|
text-overflow: ellipsis;
|
|
1674
1751
|
white-space: nowrap;
|
|
@@ -1677,12 +1754,12 @@
|
|
|
1677
1754
|
/* A value that is never broken is clipped at its cell rather than drawn over
|
|
1678
1755
|
the next one: a grid's columns are its layout, and a value crossing one is
|
|
1679
1756
|
a value in the wrong column. */
|
|
1680
|
-
[data-ui
|
|
1757
|
+
[data-ui-data-grid] [data-text='nowrap'] > span:not([data-ui], [data-part]) {
|
|
1681
1758
|
overflow: hidden;
|
|
1682
1759
|
white-space: nowrap;
|
|
1683
1760
|
}
|
|
1684
1761
|
|
|
1685
|
-
[data-ui
|
|
1762
|
+
[data-ui-data-grid] [data-text='wrap'] > span:not([data-ui], [data-part]) {
|
|
1686
1763
|
overflow-wrap: anywhere;
|
|
1687
1764
|
}
|
|
1688
1765
|
|
|
@@ -1696,14 +1773,14 @@
|
|
|
1696
1773
|
* the rules rather than as a border, for the reason `table` records: two
|
|
1697
1774
|
* borders of one box are mitred at the corner.
|
|
1698
1775
|
*/
|
|
1699
|
-
[data-ui
|
|
1776
|
+
[data-ui-data-grid] [data-pinned='start'] {
|
|
1700
1777
|
background-color: inherit;
|
|
1701
1778
|
inset-inline-start: var(--slotted-data-grid-pin-offset, 0);
|
|
1702
1779
|
position: sticky;
|
|
1703
1780
|
z-index: var(--slotted-z-index-sticky, 100);
|
|
1704
1781
|
}
|
|
1705
1782
|
|
|
1706
|
-
[data-ui
|
|
1783
|
+
[data-ui-data-grid] [data-pinned='end'] {
|
|
1707
1784
|
background-color: inherit;
|
|
1708
1785
|
inset-inline-end: var(--slotted-data-grid-pin-offset, 0);
|
|
1709
1786
|
position: sticky;
|
|
@@ -1711,7 +1788,7 @@
|
|
|
1711
1788
|
}
|
|
1712
1789
|
|
|
1713
1790
|
/* The corner: a header cell that is also pinned takes the step above both. */
|
|
1714
|
-
[data-ui
|
|
1791
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-head] [data-pinned] {
|
|
1715
1792
|
background-color: var(--_head-surface);
|
|
1716
1793
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 2);
|
|
1717
1794
|
}
|
|
@@ -1719,33 +1796,32 @@
|
|
|
1719
1796
|
/* A plain header has no band: a pinned header cell takes the page's ground,
|
|
1720
1797
|
opaque over the names sliding under it, and not the band it would be the
|
|
1721
1798
|
only piece of — read on the pop-in scene, a grey block behind one name. */
|
|
1722
|
-
[data-ui
|
|
1723
|
-
|
|
1724
|
-
> [data-part
|
|
1725
|
-
[data-
|
|
1726
|
-
[data-ui='data-grid'][data-variant='plain']
|
|
1727
|
-
> [data-part='scroll']
|
|
1728
|
-
> [data-part='head']
|
|
1799
|
+
[data-ui-data-grid][data-variant='plain'] > [data-part-scroll] > [data-part-head] [data-pinned],
|
|
1800
|
+
[data-ui-data-grid][data-variant='plain']
|
|
1801
|
+
> [data-part-scroll]
|
|
1802
|
+
> [data-part-head]
|
|
1729
1803
|
> [role='row']
|
|
1730
|
-
> [data-part
|
|
1804
|
+
> [data-part-selection] {
|
|
1731
1805
|
background-color: var(--_surface);
|
|
1732
1806
|
}
|
|
1733
1807
|
|
|
1734
|
-
[data-ui
|
|
1808
|
+
[data-ui-data-grid] [data-part-filter-row] > [data-pinned] {
|
|
1735
1809
|
background-color: var(--_band-surface);
|
|
1736
1810
|
}
|
|
1737
1811
|
|
|
1738
|
-
[data-ui
|
|
1739
|
-
> [data-part
|
|
1740
|
-
> :is([data-part
|
|
1741
|
-
> [data-part
|
|
1812
|
+
[data-ui-data-grid]
|
|
1813
|
+
> [data-part-scroll]
|
|
1814
|
+
> :is([data-part-body], [data-part-pinned-rows])
|
|
1815
|
+
> [data-part-row][data-selected]
|
|
1742
1816
|
> [data-pinned] {
|
|
1743
|
-
|
|
1817
|
+
/* The zone's edge inside the block is one of the block's inner rules. The
|
|
1818
|
+
ground is the row's, inherited, so it follows the row's hover. */
|
|
1819
|
+
--_rule: var(--_selected-rule);
|
|
1744
1820
|
}
|
|
1745
1821
|
|
|
1746
1822
|
/* The last pinned cell of each zone draws the edge: the same hairline as
|
|
1747
1823
|
the rules between rows, and no more. */
|
|
1748
|
-
[data-ui
|
|
1824
|
+
[data-ui-data-grid] [data-pinned][data-pin-edge]::after {
|
|
1749
1825
|
background-color: var(--_rule);
|
|
1750
1826
|
content: '';
|
|
1751
1827
|
inline-size: var(--_rule-width);
|
|
@@ -1756,19 +1832,19 @@
|
|
|
1756
1832
|
z-index: 1;
|
|
1757
1833
|
}
|
|
1758
1834
|
|
|
1759
|
-
[data-ui
|
|
1760
|
-
> [data-part
|
|
1761
|
-
> :is([data-part
|
|
1835
|
+
[data-ui-data-grid]
|
|
1836
|
+
> [data-part-scroll]
|
|
1837
|
+
> :is([data-part-body], [data-part-pinned-rows])
|
|
1762
1838
|
> [role='row']:last-child
|
|
1763
1839
|
> [data-pin-edge]::after {
|
|
1764
1840
|
inset-block-end: 0;
|
|
1765
1841
|
}
|
|
1766
1842
|
|
|
1767
|
-
[data-ui
|
|
1843
|
+
[data-ui-data-grid] [data-pinned='start'][data-pin-edge]::after {
|
|
1768
1844
|
inset-inline-end: 0;
|
|
1769
1845
|
}
|
|
1770
1846
|
|
|
1771
|
-
[data-ui
|
|
1847
|
+
[data-ui-data-grid] [data-pinned='end'][data-pin-edge]::after {
|
|
1772
1848
|
inset-inline-start: 0;
|
|
1773
1849
|
}
|
|
1774
1850
|
|
|
@@ -1776,7 +1852,7 @@
|
|
|
1776
1852
|
run down the body: it stood as a stub beside each values' line. At rest
|
|
1777
1853
|
a grid with a pop-in draws no edge; the shadow below still marks what
|
|
1778
1854
|
slides under a zone. */
|
|
1779
|
-
[data-ui
|
|
1855
|
+
[data-ui-data-grid][data-popin] [data-pinned][data-pin-edge]::after {
|
|
1780
1856
|
background-color: transparent;
|
|
1781
1857
|
}
|
|
1782
1858
|
|
|
@@ -1786,20 +1862,20 @@
|
|
|
1786
1862
|
mid-word is not always there to be seen. A shadow and not a stronger
|
|
1787
1863
|
line: read on the pinning scene, a dark rule down the body read as a
|
|
1788
1864
|
frame inside the frame. */
|
|
1789
|
-
[data-ui
|
|
1790
|
-
[data-part
|
|
1865
|
+
[data-ui-data-grid]
|
|
1866
|
+
[data-part-scroll][data-overflowing]:not([data-at-start])
|
|
1791
1867
|
[data-pinned='start'][data-pin-edge]::after,
|
|
1792
|
-
[data-ui
|
|
1793
|
-
[data-part
|
|
1868
|
+
[data-ui-data-grid]
|
|
1869
|
+
[data-part-scroll][data-overflowing]:not([data-at-end])
|
|
1794
1870
|
[data-pinned='end'][data-pin-edge]::after {
|
|
1795
|
-
/* The
|
|
1871
|
+
/* The color is the gradient's alone: with the hairline's color still
|
|
1796
1872
|
under the widened box, the shadow read as a solid grey band. */
|
|
1797
1873
|
background-color: transparent;
|
|
1798
1874
|
inline-size: calc(var(--_rule-width) + var(--_edge-shadow-size));
|
|
1799
1875
|
}
|
|
1800
1876
|
|
|
1801
|
-
[data-ui
|
|
1802
|
-
[data-part
|
|
1877
|
+
[data-ui-data-grid]
|
|
1878
|
+
[data-part-scroll][data-overflowing]:not([data-at-start])
|
|
1803
1879
|
[data-pinned='start'][data-pin-edge]::after {
|
|
1804
1880
|
background-image: linear-gradient(
|
|
1805
1881
|
to right,
|
|
@@ -1810,8 +1886,8 @@
|
|
|
1810
1886
|
inset-inline-end: calc(var(--_edge-shadow-size) * -1);
|
|
1811
1887
|
}
|
|
1812
1888
|
|
|
1813
|
-
[data-ui
|
|
1814
|
-
[data-part
|
|
1889
|
+
[data-ui-data-grid]
|
|
1890
|
+
[data-part-scroll][data-overflowing]:not([data-at-end])
|
|
1815
1891
|
[data-pinned='end'][data-pin-edge]::after {
|
|
1816
1892
|
background-image: linear-gradient(
|
|
1817
1893
|
to left,
|
|
@@ -1822,8 +1898,8 @@
|
|
|
1822
1898
|
inset-inline-start: calc(var(--_edge-shadow-size) * -1);
|
|
1823
1899
|
}
|
|
1824
1900
|
|
|
1825
|
-
[data-ui
|
|
1826
|
-
[data-part
|
|
1901
|
+
[data-ui-data-grid]:dir(rtl)
|
|
1902
|
+
[data-part-scroll][data-overflowing]:not([data-at-start])
|
|
1827
1903
|
[data-pinned='start'][data-pin-edge]::after {
|
|
1828
1904
|
background-image: linear-gradient(
|
|
1829
1905
|
to left,
|
|
@@ -1833,8 +1909,8 @@
|
|
|
1833
1909
|
);
|
|
1834
1910
|
}
|
|
1835
1911
|
|
|
1836
|
-
[data-ui
|
|
1837
|
-
[data-part
|
|
1912
|
+
[data-ui-data-grid]:dir(rtl)
|
|
1913
|
+
[data-part-scroll][data-overflowing]:not([data-at-end])
|
|
1838
1914
|
[data-pinned='end'][data-pin-edge]::after {
|
|
1839
1915
|
background-image: linear-gradient(
|
|
1840
1916
|
to right,
|
|
@@ -1850,7 +1926,7 @@
|
|
|
1850
1926
|
* The cell is the family's and the control is `checkbox`'s. The width is
|
|
1851
1927
|
* stated so a column pinned beside it has a length to state.
|
|
1852
1928
|
*/
|
|
1853
|
-
[data-ui
|
|
1929
|
+
[data-ui-data-grid] [role='row'] > [data-part-selection] {
|
|
1854
1930
|
--slotted-selection-halo-opacity: 0;
|
|
1855
1931
|
|
|
1856
1932
|
justify-content: center;
|
|
@@ -1865,7 +1941,7 @@
|
|
|
1865
1941
|
* X both pin it with the first pinned column; here it is pinned always, so a
|
|
1866
1942
|
* consumer never has to say it.
|
|
1867
1943
|
*/
|
|
1868
|
-
[data-ui
|
|
1944
|
+
[data-ui-data-grid] [role='row'] > [data-part-selection] {
|
|
1869
1945
|
background-color: inherit;
|
|
1870
1946
|
inset-inline-start: 0;
|
|
1871
1947
|
position: sticky;
|
|
@@ -1875,25 +1951,18 @@
|
|
|
1875
1951
|
/* Restated for the head's chooser, whose header rule above made it
|
|
1876
1952
|
`relative` at a higher specificity: read scrolled, the select-all left
|
|
1877
1953
|
with the columns while every row's chooser stayed. */
|
|
1878
|
-
[data-ui
|
|
1879
|
-
> [data-part
|
|
1880
|
-
> [data-part
|
|
1954
|
+
[data-ui-data-grid]
|
|
1955
|
+
> [data-part-scroll]
|
|
1956
|
+
> [data-part-head]
|
|
1881
1957
|
> [role='row']
|
|
1882
|
-
> [data-part
|
|
1958
|
+
> [data-part-selection] {
|
|
1883
1959
|
background-color: var(--_head-surface);
|
|
1884
1960
|
inset-inline-start: 0;
|
|
1885
1961
|
position: sticky;
|
|
1886
1962
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 2);
|
|
1887
1963
|
}
|
|
1888
1964
|
|
|
1889
|
-
[data-ui
|
|
1890
|
-
:is([data-part='body'], [data-part='pinned-rows'])
|
|
1891
|
-
> [data-part='row'][data-selected]
|
|
1892
|
-
> [data-part='selection'] {
|
|
1893
|
-
background-color: var(--_selected);
|
|
1894
|
-
}
|
|
1895
|
-
|
|
1896
|
-
[data-ui='data-grid'] [role='row'] > [data-part='selection'] > [data-ui='checkbox'] {
|
|
1965
|
+
[data-ui-data-grid] [role='row'] > [data-part-selection] > [data-ui-checkbox] {
|
|
1897
1966
|
block-size: var(--_line);
|
|
1898
1967
|
}
|
|
1899
1968
|
|
|
@@ -1901,7 +1970,7 @@
|
|
|
1901
1970
|
it rather than the stylesheet asking every cell what it holds: `:has()`
|
|
1902
1971
|
on every cell of a windowed body is a question asked a thousand times per
|
|
1903
1972
|
style pass. */
|
|
1904
|
-
[data-ui
|
|
1973
|
+
[data-ui-data-grid] [data-part-cell][data-kind='expander'] {
|
|
1905
1974
|
justify-content: center;
|
|
1906
1975
|
padding-inline: 0;
|
|
1907
1976
|
}
|
|
@@ -1912,11 +1981,11 @@
|
|
|
1912
1981
|
* One cell spanning every column, on the sunken ground, with the record's
|
|
1913
1982
|
* own inset so what is inside reads as belonging to the row above.
|
|
1914
1983
|
*/
|
|
1915
|
-
[data-ui
|
|
1984
|
+
[data-ui-data-grid] [data-part-detail] {
|
|
1916
1985
|
background-color: var(--slotted-surface-sunken, Canvas);
|
|
1917
1986
|
}
|
|
1918
1987
|
|
|
1919
|
-
[data-ui
|
|
1988
|
+
[data-ui-data-grid] [data-part-detail] > * {
|
|
1920
1989
|
background-color: var(--slotted-surface-sunken, Canvas);
|
|
1921
1990
|
box-sizing: border-box;
|
|
1922
1991
|
grid-column: 1 / -1;
|
|
@@ -1926,7 +1995,7 @@
|
|
|
1926
1995
|
the consumer's own layout and not a column. */
|
|
1927
1996
|
position: sticky;
|
|
1928
1997
|
inset-inline-start: 0;
|
|
1929
|
-
max-inline-size:
|
|
1998
|
+
max-inline-size: var(--slotted-data-grid-viewport, 100%);
|
|
1930
1999
|
}
|
|
1931
2000
|
|
|
1932
2001
|
/**
|
|
@@ -1946,28 +2015,28 @@
|
|
|
1946
2015
|
*/
|
|
1947
2016
|
/* The values' line is the density's row, grown to its content; the
|
|
1948
2017
|
pop-in's line is as tall as its fields. */
|
|
1949
|
-
[data-ui
|
|
1950
|
-
> [data-part
|
|
1951
|
-
> :is([data-part
|
|
1952
|
-
> [data-part
|
|
2018
|
+
[data-ui-data-grid][data-popin]
|
|
2019
|
+
> [data-part-scroll]
|
|
2020
|
+
> :is([data-part-body], [data-part-pinned-rows])
|
|
2021
|
+
> [data-part-row] {
|
|
1953
2022
|
grid-template-rows: minmax(var(--_track), auto) auto;
|
|
1954
2023
|
}
|
|
1955
2024
|
|
|
1956
|
-
[data-ui
|
|
2025
|
+
[data-ui-data-grid][data-popin] > [data-part-scroll] > [data-part-summary] > [role='row'] {
|
|
1957
2026
|
grid-template-rows: minmax(var(--_head-block), auto) auto;
|
|
1958
2027
|
}
|
|
1959
2028
|
|
|
1960
2029
|
/* The chooser, the expander, the values and the actions stand on the
|
|
1961
|
-
values' line
|
|
2030
|
+
values' line centerd, as in a fixed row: the line is the row's own
|
|
1962
2031
|
height, and a wrapped value is the only thing that grows it. */
|
|
1963
|
-
[data-ui
|
|
1964
|
-
:is([data-part
|
|
1965
|
-
> [data-part
|
|
1966
|
-
> :is([role='gridcell'], [role='rowheader']):not([data-part
|
|
2032
|
+
[data-ui-data-grid][data-popin]
|
|
2033
|
+
:is([data-part-body], [data-part-pinned-rows])
|
|
2034
|
+
> [data-part-row]
|
|
2035
|
+
> :is([role='gridcell'], [role='rowheader']):not([data-part-popin]) {
|
|
1967
2036
|
align-items: center;
|
|
1968
2037
|
}
|
|
1969
2038
|
|
|
1970
|
-
[data-ui
|
|
2039
|
+
[data-ui-data-grid] [data-part-popin] {
|
|
1971
2040
|
align-content: start;
|
|
1972
2041
|
box-sizing: border-box;
|
|
1973
2042
|
column-gap: var(--slotted-space-4, 0.5rem);
|
|
@@ -1976,7 +2045,7 @@
|
|
|
1976
2045
|
grid-row: 2;
|
|
1977
2046
|
grid-template-columns: repeat(auto-fill, minmax(min(9rem, 100%), 1fr));
|
|
1978
2047
|
inset-inline-start: 0;
|
|
1979
|
-
max-inline-size:
|
|
2048
|
+
max-inline-size: var(--slotted-data-grid-viewport, 100%);
|
|
1980
2049
|
min-inline-size: 0;
|
|
1981
2050
|
padding-block: 0 var(--_pad-block);
|
|
1982
2051
|
padding-inline: calc(var(--slotted-data-grid-leading, 0px) + var(--_pad-inline))
|
|
@@ -1990,15 +2059,13 @@
|
|
|
1990
2059
|
indent: with the chooser and the expander, 88 of 360 pixels left one
|
|
1991
2060
|
column of fields where the row's whole width holds two. The fields start
|
|
1992
2061
|
at the row's own padding, under the chooser. */
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
padding-inline-start: var(--_pad-inline);
|
|
1996
|
-
}
|
|
2062
|
+
[data-ui-data-grid][data-narrow] [data-part-popin] {
|
|
2063
|
+
padding-inline-start: var(--_pad-inline);
|
|
1997
2064
|
}
|
|
1998
2065
|
|
|
1999
2066
|
/* The label above the value, as a form reads, so a narrow field keeps the
|
|
2000
2067
|
value's whole width. */
|
|
2001
|
-
[data-ui
|
|
2068
|
+
[data-ui-data-grid] [data-part-popin-field] {
|
|
2002
2069
|
display: flex;
|
|
2003
2070
|
flex-direction: column;
|
|
2004
2071
|
min-inline-size: 0;
|
|
@@ -2007,7 +2074,7 @@
|
|
|
2007
2074
|
/* Room for one column of fields only (two need 2 × 9rem and the gap): the
|
|
2008
2075
|
label goes beside its value, so each field takes one line instead of two. */
|
|
2009
2076
|
@container slotted-data-grid-popin (width < 19rem) {
|
|
2010
|
-
[data-ui
|
|
2077
|
+
[data-ui-data-grid] [data-part-popin-field] {
|
|
2011
2078
|
align-items: baseline;
|
|
2012
2079
|
column-gap: var(--slotted-space-3, 0.375rem);
|
|
2013
2080
|
display: grid;
|
|
@@ -2015,7 +2082,7 @@
|
|
|
2015
2082
|
}
|
|
2016
2083
|
}
|
|
2017
2084
|
|
|
2018
|
-
[data-ui
|
|
2085
|
+
[data-ui-data-grid] [data-part-popin-label] {
|
|
2019
2086
|
color: var(--_muted);
|
|
2020
2087
|
font-size: var(--slotted-font-size-xs, 0.75rem);
|
|
2021
2088
|
font-weight: var(--slotted-font-weight-regular, 400);
|
|
@@ -2026,7 +2093,7 @@
|
|
|
2026
2093
|
field under a label at its start reads as the next field's. One line tall
|
|
2027
2094
|
when empty, so an empty value keeps its place under its label, as the
|
|
2028
2095
|
empty cell keeps its row. */
|
|
2029
|
-
[data-ui
|
|
2096
|
+
[data-ui-data-grid] [data-part-popin-value] {
|
|
2030
2097
|
align-items: center;
|
|
2031
2098
|
display: flex;
|
|
2032
2099
|
gap: var(--_gap);
|
|
@@ -2042,8 +2109,8 @@
|
|
|
2042
2109
|
aligns its lines to the grid's start, under its label: read in `rtl`, a
|
|
2043
2110
|
company name set by its own direction ran from the far edge of the field,
|
|
2044
2111
|
and `match-parent` did not move it. */
|
|
2045
|
-
[data-ui
|
|
2046
|
-
[data-ui
|
|
2112
|
+
[data-ui-data-grid] [data-part-popin-value][data-text] > span:not([data-ui], [data-part]),
|
|
2113
|
+
[data-ui-data-grid] [data-part-popin-value] > span:not([data-ui], [data-part]) {
|
|
2047
2114
|
flex: 0 1 auto;
|
|
2048
2115
|
min-inline-size: 0;
|
|
2049
2116
|
overflow: visible;
|
|
@@ -2055,11 +2122,11 @@
|
|
|
2055
2122
|
}
|
|
2056
2123
|
|
|
2057
2124
|
/* Physical, because `start` under `plaintext` is the value's own start. */
|
|
2058
|
-
[data-ui
|
|
2125
|
+
[data-ui-data-grid]:dir(rtl) [data-part-popin-value] > span:not([data-ui], [data-part]) {
|
|
2059
2126
|
text-align: right;
|
|
2060
2127
|
}
|
|
2061
2128
|
|
|
2062
|
-
[data-ui
|
|
2129
|
+
[data-ui-data-grid] [data-part-popin-value] > [data-ui]:not([data-part]) {
|
|
2063
2130
|
flex: 0 0 auto;
|
|
2064
2131
|
max-inline-size: 100%;
|
|
2065
2132
|
}
|
|
@@ -2071,13 +2138,13 @@
|
|
|
2071
2138
|
* indented by its level. The ground is the band at 4%, and the text is
|
|
2072
2139
|
* semibold, so a reader scanning for a group finds it without reading.
|
|
2073
2140
|
*/
|
|
2074
|
-
[data-ui
|
|
2141
|
+
[data-ui-data-grid] [data-part-group-row] {
|
|
2075
2142
|
background-color: var(--_band-surface);
|
|
2076
2143
|
color: var(--_text);
|
|
2077
2144
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
2078
2145
|
}
|
|
2079
2146
|
|
|
2080
|
-
[data-ui
|
|
2147
|
+
[data-ui-data-grid] [data-part-group-row] > [role='gridcell'] {
|
|
2081
2148
|
align-items: center;
|
|
2082
2149
|
box-sizing: border-box;
|
|
2083
2150
|
display: flex;
|
|
@@ -2090,7 +2157,7 @@
|
|
|
2090
2157
|
|
|
2091
2158
|
/* The first cell of a group row spans to the first aggregate, indented by
|
|
2092
2159
|
its level; the aggregates stand in their own columns. */
|
|
2093
|
-
[data-ui
|
|
2160
|
+
[data-ui-data-grid] [data-part-group-row] > [role='gridcell']:first-child {
|
|
2094
2161
|
padding-inline-start: calc(
|
|
2095
2162
|
var(--_pad-inline) + var(--_indent) * (var(--slotted-data-grid-level, 1) - 1)
|
|
2096
2163
|
);
|
|
@@ -2098,25 +2165,25 @@
|
|
|
2098
2165
|
inset-inline-start: 0;
|
|
2099
2166
|
}
|
|
2100
2167
|
|
|
2101
|
-
[data-ui
|
|
2168
|
+
[data-ui-data-grid] [data-part-group-row] > [role='gridcell']:first-child > span {
|
|
2102
2169
|
overflow: hidden;
|
|
2103
2170
|
text-overflow: ellipsis;
|
|
2104
2171
|
white-space: nowrap;
|
|
2105
2172
|
}
|
|
2106
2173
|
|
|
2107
2174
|
/* The count, one step lighter than the value. */
|
|
2108
|
-
[data-ui
|
|
2175
|
+
[data-ui-data-grid] [data-part-group-row] [data-count] {
|
|
2109
2176
|
color: var(--_muted);
|
|
2110
2177
|
font-weight: var(--slotted-font-weight-regular, 400);
|
|
2111
2178
|
}
|
|
2112
2179
|
|
|
2113
|
-
[data-ui
|
|
2180
|
+
[data-ui-data-grid] [data-part-group-row] [data-aggregate] {
|
|
2114
2181
|
color: var(--_muted);
|
|
2115
2182
|
font-variant-numeric: tabular-nums;
|
|
2116
2183
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
2117
2184
|
}
|
|
2118
2185
|
|
|
2119
|
-
[data-ui
|
|
2186
|
+
[data-ui-data-grid] [data-part-group-toggle] {
|
|
2120
2187
|
margin-block: calc((var(--_line) - var(--slotted-target-min, 24px)) / 2);
|
|
2121
2188
|
margin-inline-start: calc(var(--slotted-space-2, 0.25rem) * -1);
|
|
2122
2189
|
}
|
|
@@ -2127,13 +2194,13 @@
|
|
|
2127
2194
|
* The aggregates of the whole query, pinned to the end of the scroller, on
|
|
2128
2195
|
* the band with a strong rule above — the header of the other end.
|
|
2129
2196
|
*/
|
|
2130
|
-
[data-ui
|
|
2197
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-summary] {
|
|
2131
2198
|
inset-block-end: var(--slotted-data-grid-sticky-offset-end, 0);
|
|
2132
2199
|
position: sticky;
|
|
2133
2200
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 1);
|
|
2134
2201
|
}
|
|
2135
2202
|
|
|
2136
|
-
[data-ui
|
|
2203
|
+
[data-ui-data-grid]:not([data-sticky-header]) > [data-part-scroll] > [data-part-summary] {
|
|
2137
2204
|
position: static;
|
|
2138
2205
|
}
|
|
2139
2206
|
|
|
@@ -2145,20 +2212,20 @@
|
|
|
2145
2212
|
* surface so the body scrolls under it, with a rule on the side it faces
|
|
2146
2213
|
* the body. Their rows are the body's rows.
|
|
2147
2214
|
*/
|
|
2148
|
-
[data-ui
|
|
2215
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-pinned-rows] {
|
|
2149
2216
|
background-color: var(--_surface);
|
|
2150
2217
|
position: sticky;
|
|
2151
2218
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 1);
|
|
2152
2219
|
}
|
|
2153
2220
|
|
|
2154
|
-
[data-ui
|
|
2221
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-pinned-rows][data-edge='top'] {
|
|
2155
2222
|
border-block-end: var(--_rule-width) solid var(--_rule-strong);
|
|
2156
2223
|
inset-block-start: calc(
|
|
2157
2224
|
var(--slotted-data-grid-sticky-offset, 0px) + var(--slotted-data-grid-pinned-top-offset, 0px)
|
|
2158
2225
|
);
|
|
2159
2226
|
}
|
|
2160
2227
|
|
|
2161
|
-
[data-ui
|
|
2228
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-pinned-rows][data-edge='bottom'] {
|
|
2162
2229
|
border-block-start: var(--_rule-width) solid var(--_rule-strong);
|
|
2163
2230
|
inset-block-end: calc(
|
|
2164
2231
|
var(--slotted-data-grid-sticky-offset-end, 0px) +
|
|
@@ -2166,36 +2233,34 @@
|
|
|
2166
2233
|
);
|
|
2167
2234
|
}
|
|
2168
2235
|
|
|
2169
|
-
[data-ui
|
|
2170
|
-
> [data-part='scroll']
|
|
2171
|
-
> [data-part='pinned-rows'] {
|
|
2236
|
+
[data-ui-data-grid]:not([data-sticky-header]) > [data-part-scroll] > [data-part-pinned-rows] {
|
|
2172
2237
|
position: static;
|
|
2173
2238
|
}
|
|
2174
2239
|
|
|
2175
2240
|
/* A pinned cell inside a held row stands over the row's own ground. */
|
|
2176
|
-
[data-ui
|
|
2241
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-pinned-rows] [data-pinned] {
|
|
2177
2242
|
background-color: var(--_surface);
|
|
2178
2243
|
}
|
|
2179
2244
|
|
|
2180
|
-
[data-ui
|
|
2245
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-summary] > [role='row'] {
|
|
2181
2246
|
background-color: var(--_head-surface);
|
|
2182
2247
|
border-block-start: var(--_rule-width) solid var(--_rule-strong);
|
|
2183
2248
|
}
|
|
2184
2249
|
|
|
2185
|
-
[data-ui
|
|
2250
|
+
[data-ui-data-grid] [data-part-summary-cell] {
|
|
2186
2251
|
background-color: var(--_head-surface);
|
|
2187
2252
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
2188
2253
|
min-block-size: var(--_head-block);
|
|
2189
2254
|
}
|
|
2190
2255
|
|
|
2191
|
-
[data-ui
|
|
2256
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-summary] [data-pinned] {
|
|
2192
2257
|
background-color: var(--_head-surface);
|
|
2193
2258
|
z-index: calc(var(--slotted-z-index-sticky, 100) + 2);
|
|
2194
2259
|
}
|
|
2195
2260
|
|
|
2196
2261
|
/* The label of an aggregate — "Total", "Average" — one step lighter than
|
|
2197
2262
|
the number beside it. */
|
|
2198
|
-
[data-ui
|
|
2263
|
+
[data-ui-data-grid] [data-part-summary-cell] [data-label] {
|
|
2199
2264
|
color: var(--_muted);
|
|
2200
2265
|
font-weight: var(--slotted-font-weight-regular, 400);
|
|
2201
2266
|
margin-inline-end: var(--slotted-space-2, 0.25rem);
|
|
@@ -2211,11 +2276,11 @@
|
|
|
2211
2276
|
/* Scoped to the cell's own child: `result-state` in the empty part has an
|
|
2212
2277
|
`actions` part of the same name, and a rule naming the part alone hid
|
|
2213
2278
|
its buttons. */
|
|
2214
|
-
[data-ui
|
|
2279
|
+
[data-ui-data-grid] [data-part-cell] > [data-part-actions] {
|
|
2215
2280
|
align-items: center;
|
|
2216
2281
|
/* One line tall, whatever stands inside: the buttons are taller than the
|
|
2217
2282
|
line and overflow it evenly, so the row is still measured by its text
|
|
2218
|
-
and the buttons sit on the value's own
|
|
2283
|
+
and the buttons sit on the value's own center. */
|
|
2219
2284
|
block-size: var(--_line);
|
|
2220
2285
|
display: inline-flex;
|
|
2221
2286
|
gap: var(--slotted-space-1, 0.125rem);
|
|
@@ -2229,9 +2294,9 @@
|
|
|
2229
2294
|
* artwork the consumer puts in. A library `button` at its smallest step is
|
|
2230
2295
|
* thirty pixels against a line of nineteen and a half: read on the anatomy
|
|
2231
2296
|
* scene, two of them stood five pixels proud of the row on both sides and
|
|
2232
|
-
* grew its track. The consumer keeps the
|
|
2297
|
+
* grew its track. The consumer keeps the behavior and the artwork.
|
|
2233
2298
|
*/
|
|
2234
|
-
[data-ui
|
|
2299
|
+
[data-ui-data-grid] [data-part-cell] > [data-part-actions] > button {
|
|
2235
2300
|
align-items: center;
|
|
2236
2301
|
background-color: transparent;
|
|
2237
2302
|
block-size: var(--_control);
|
|
@@ -2249,42 +2314,42 @@
|
|
|
2249
2314
|
color var(--_transition);
|
|
2250
2315
|
}
|
|
2251
2316
|
|
|
2252
|
-
[data-ui
|
|
2317
|
+
[data-ui-data-grid] [data-part-cell] > [data-part-actions] > button :is(svg, img) {
|
|
2253
2318
|
block-size: var(--_control-icon);
|
|
2254
2319
|
inline-size: var(--_control-icon);
|
|
2255
2320
|
}
|
|
2256
2321
|
|
|
2257
|
-
[data-ui
|
|
2322
|
+
[data-ui-data-grid] [data-part-cell] > [data-part-actions] > button:not(:disabled):hover {
|
|
2258
2323
|
background-color: color-mix(in oklab, var(--slotted-text, CanvasText) 7%, transparent);
|
|
2259
2324
|
color: var(--_text);
|
|
2260
2325
|
}
|
|
2261
2326
|
|
|
2262
|
-
[data-ui
|
|
2327
|
+
[data-ui-data-grid] [data-part-cell] > [data-part-actions] > button:focus-visible {
|
|
2263
2328
|
outline: var(--_ring-width) solid var(--slotted-focus-ring-color, Highlight);
|
|
2264
2329
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
2265
2330
|
}
|
|
2266
2331
|
|
|
2267
|
-
[data-ui
|
|
2268
|
-
[data-part
|
|
2269
|
-
[data-part
|
|
2270
|
-
> [data-part
|
|
2271
|
-
[data-ui
|
|
2272
|
-
[data-ui
|
|
2273
|
-
[data-ui
|
|
2332
|
+
[data-ui-data-grid]
|
|
2333
|
+
[data-part-row]:not([data-disabled]):hover
|
|
2334
|
+
[data-part-cell]
|
|
2335
|
+
> [data-part-actions],
|
|
2336
|
+
[data-ui-data-grid] [data-part-row]:focus-within [data-part-cell] > [data-part-actions],
|
|
2337
|
+
[data-ui-data-grid] [data-part-row][data-current] [data-part-cell] > [data-part-actions],
|
|
2338
|
+
[data-ui-data-grid] [data-part-row][data-editing] [data-part-cell] > [data-part-actions] {
|
|
2274
2339
|
opacity: 1;
|
|
2275
2340
|
}
|
|
2276
2341
|
|
|
2277
2342
|
@media (pointer: coarse) {
|
|
2278
|
-
[data-ui
|
|
2279
|
-
[data-ui
|
|
2280
|
-
[data-ui
|
|
2343
|
+
[data-ui-data-grid] [data-part-cell] > [data-part-actions],
|
|
2344
|
+
[data-ui-data-grid] [data-part-column-menu],
|
|
2345
|
+
[data-ui-data-grid] [data-part-column-header] [data-part-filter] {
|
|
2281
2346
|
opacity: 1;
|
|
2282
2347
|
}
|
|
2283
2348
|
|
|
2284
2349
|
/* The row grew to the comfortable target through the control scale; the
|
|
2285
2350
|
family's own controls grow with it, to the row less the cursor's ring.
|
|
2286
2351
|
A 24-pixel button in a 44-pixel row is a target a thumb misses. */
|
|
2287
|
-
[data-ui
|
|
2352
|
+
[data-ui-data-grid][data-part-root] {
|
|
2288
2353
|
--_control: min(
|
|
2289
2354
|
var(--slotted-target-comfortable, 44px),
|
|
2290
2355
|
calc(min(var(--_row-block), var(--_head-block)) - var(--_ring-width) * 2)
|
|
@@ -2297,13 +2362,13 @@
|
|
|
2297
2362
|
shows round it; the box reaches the full target by a padding the ground
|
|
2298
2363
|
does not paint, and gives it back as a negative margin, so no row, no
|
|
2299
2364
|
header and no column name moves. Neighbours overlap by the gap. */
|
|
2300
|
-
[data-ui
|
|
2301
|
-
[data-ui
|
|
2302
|
-
[data-ui
|
|
2303
|
-
[data-ui
|
|
2304
|
-
[data-ui
|
|
2305
|
-
[data-ui
|
|
2306
|
-
[data-ui
|
|
2365
|
+
[data-ui-data-grid] [data-part-column-help],
|
|
2366
|
+
[data-ui-data-grid] [data-part-column-menu],
|
|
2367
|
+
[data-ui-data-grid] [data-part-column-header] [data-part-filter],
|
|
2368
|
+
[data-ui-data-grid] [data-part-expander],
|
|
2369
|
+
[data-ui-data-grid] [data-part-group-toggle],
|
|
2370
|
+
[data-ui-data-grid] [data-part-tree-toggle],
|
|
2371
|
+
[data-ui-data-grid] [data-part-row-handle] {
|
|
2307
2372
|
background-clip: content-box;
|
|
2308
2373
|
box-sizing: content-box;
|
|
2309
2374
|
margin: calc(var(--_reach) * -1);
|
|
@@ -2314,7 +2379,7 @@
|
|
|
2314
2379
|
/**
|
|
2315
2380
|
* ── Empty, and loading ─────────────────────────────────────────────────
|
|
2316
2381
|
*/
|
|
2317
|
-
[data-ui
|
|
2382
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-empty] {
|
|
2318
2383
|
align-items: center;
|
|
2319
2384
|
/* The padding stands inside the viewport's width. Without it the box was
|
|
2320
2385
|
its own padding wider than the frame, and a grid whose columns all fit
|
|
@@ -2325,7 +2390,7 @@
|
|
|
2325
2390
|
stands in the middle of what the reader sees whatever the columns'
|
|
2326
2391
|
width and however far the grid is scrolled sideways: laid out over the
|
|
2327
2392
|
columns, the middle of a wide template was off screen. */
|
|
2328
|
-
inline-size:
|
|
2393
|
+
inline-size: var(--slotted-data-grid-viewport, 100%);
|
|
2329
2394
|
inset-inline-start: 0;
|
|
2330
2395
|
justify-content: center;
|
|
2331
2396
|
min-block-size: calc(var(--_row-block) * 6);
|
|
@@ -2333,7 +2398,7 @@
|
|
|
2333
2398
|
position: sticky;
|
|
2334
2399
|
}
|
|
2335
2400
|
|
|
2336
|
-
[data-ui
|
|
2401
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-loader] > [data-part-row] > * {
|
|
2337
2402
|
align-items: center;
|
|
2338
2403
|
box-sizing: border-box;
|
|
2339
2404
|
display: flex;
|
|
@@ -2348,12 +2413,25 @@
|
|
|
2348
2413
|
padding-inline: var(--_pad-inline);
|
|
2349
2414
|
}
|
|
2350
2415
|
|
|
2351
|
-
[data-ui
|
|
2416
|
+
[data-ui-data-grid][aria-busy='true'] > [data-part-scroll] > [data-part-body] {
|
|
2352
2417
|
opacity: 0.55;
|
|
2353
|
-
pointer-events: none;
|
|
2354
2418
|
transition: opacity var(--_transition);
|
|
2355
2419
|
}
|
|
2356
2420
|
|
|
2421
|
+
/**
|
|
2422
|
+
* The rows refuse a press while they are read again through a veil over
|
|
2423
|
+
* them, not through `pointer-events: none` on the body: the property is
|
|
2424
|
+
* inherited, and toggling it restyled every cell — 8 ms of a 70-row grid's
|
|
2425
|
+
* 9 ms. The veil is one box; the body's opacity makes it a stacking context,
|
|
2426
|
+
* so the veil's layer is above the pinned cells and below nothing outside.
|
|
2427
|
+
*/
|
|
2428
|
+
[data-ui-data-grid][aria-busy='true'] > [data-part-scroll] > [data-part-body]::after {
|
|
2429
|
+
content: '';
|
|
2430
|
+
inset: 0;
|
|
2431
|
+
position: absolute;
|
|
2432
|
+
z-index: calc(var(--slotted-z-index-sticky, 100) + 4);
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2357
2435
|
/**
|
|
2358
2436
|
* ── The footer ─────────────────────────────────────────────────────────
|
|
2359
2437
|
*
|
|
@@ -2365,7 +2443,7 @@
|
|
|
2365
2443
|
* its own content to the end: `pagination` is an inline-size container and
|
|
2366
2444
|
* contributes no intrinsic width, so it cannot be sized by its content.
|
|
2367
2445
|
*/
|
|
2368
|
-
[data-ui
|
|
2446
|
+
[data-ui-data-grid] > [data-part-footer] {
|
|
2369
2447
|
align-items: center;
|
|
2370
2448
|
border-block-start: var(--_rule-width) solid var(--_rule);
|
|
2371
2449
|
box-sizing: border-box;
|
|
@@ -2380,14 +2458,14 @@
|
|
|
2380
2458
|
padding-inline: var(--_pad-inline);
|
|
2381
2459
|
}
|
|
2382
2460
|
|
|
2383
|
-
[data-ui
|
|
2461
|
+
[data-ui-data-grid] > [data-part-footer] > :last-child {
|
|
2384
2462
|
display: flex;
|
|
2385
2463
|
flex: 1 1 auto;
|
|
2386
2464
|
justify-content: flex-end;
|
|
2387
2465
|
min-inline-size: 0;
|
|
2388
2466
|
}
|
|
2389
2467
|
|
|
2390
|
-
[data-ui
|
|
2468
|
+
[data-ui-data-grid] > [data-part-footer] [data-range] {
|
|
2391
2469
|
color: var(--_muted);
|
|
2392
2470
|
flex: none;
|
|
2393
2471
|
font-variant-numeric: tabular-nums;
|
|
@@ -2398,21 +2476,26 @@
|
|
|
2398
2476
|
* ── Scheme and platform ────────────────────────────────────────────────
|
|
2399
2477
|
*/
|
|
2400
2478
|
@media (forced-colors: active) {
|
|
2401
|
-
[data-ui
|
|
2402
|
-
|
|
2479
|
+
[data-ui-data-grid] [data-part-resizer] > [data-part-resize-guide] {
|
|
2480
|
+
background-color: Highlight;
|
|
2481
|
+
forced-color-adjust: none;
|
|
2482
|
+
}
|
|
2483
|
+
|
|
2484
|
+
[data-ui-data-grid] [role='gridcell'][data-current],
|
|
2485
|
+
[data-ui-data-grid] [role='columnheader'][data-current] {
|
|
2403
2486
|
box-shadow: inset 0 0 0 var(--_ring-width) Highlight;
|
|
2404
2487
|
}
|
|
2405
2488
|
|
|
2406
|
-
[data-ui
|
|
2489
|
+
[data-ui-data-grid] [data-part-cell][data-in-range] {
|
|
2407
2490
|
background-color: Highlight;
|
|
2408
2491
|
color: HighlightText;
|
|
2409
2492
|
}
|
|
2410
2493
|
|
|
2411
|
-
[data-ui
|
|
2494
|
+
[data-ui-data-grid] [data-part-drop-indicator] {
|
|
2412
2495
|
background-color: Highlight;
|
|
2413
2496
|
}
|
|
2414
2497
|
|
|
2415
|
-
[data-ui
|
|
2498
|
+
[data-ui-data-grid] [data-part-cell][data-changed] {
|
|
2416
2499
|
animation: none;
|
|
2417
2500
|
background-color: Highlight;
|
|
2418
2501
|
color: HighlightText;
|
|
@@ -2420,7 +2503,7 @@
|
|
|
2420
2503
|
|
|
2421
2504
|
/* The resizer's line is a painted background, which the adjustment
|
|
2422
2505
|
would otherwise replace, leaving the target with no line to show. */
|
|
2423
|
-
[data-ui
|
|
2506
|
+
[data-ui-data-grid] [data-part-resizer]::after {
|
|
2424
2507
|
forced-color-adjust: none;
|
|
2425
2508
|
}
|
|
2426
2509
|
}
|
|
@@ -2435,50 +2518,69 @@
|
|
|
2435
2518
|
* consumer who prints ten thousand turns the window off first.
|
|
2436
2519
|
*/
|
|
2437
2520
|
@media print {
|
|
2438
|
-
[data-ui
|
|
2521
|
+
[data-ui-data-grid][data-part-root] {
|
|
2439
2522
|
block-size: auto;
|
|
2440
2523
|
break-inside: auto;
|
|
2441
2524
|
}
|
|
2442
2525
|
|
|
2443
|
-
[data-ui
|
|
2526
|
+
[data-ui-data-grid] > [data-part-scroll] {
|
|
2444
2527
|
overflow: visible;
|
|
2445
2528
|
}
|
|
2446
2529
|
|
|
2447
|
-
[data-ui
|
|
2448
|
-
[data-ui
|
|
2449
|
-
[data-ui
|
|
2450
|
-
[data-ui
|
|
2451
|
-
[data-ui
|
|
2530
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-head],
|
|
2531
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-summary],
|
|
2532
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-empty],
|
|
2533
|
+
[data-ui-data-grid] > [data-part-scroll] > [data-part-pinned-rows],
|
|
2534
|
+
[data-ui-data-grid] [data-pinned] {
|
|
2452
2535
|
position: static;
|
|
2453
2536
|
}
|
|
2454
2537
|
|
|
2455
|
-
[data-ui
|
|
2538
|
+
[data-ui-data-grid] [data-pinned] {
|
|
2456
2539
|
box-shadow: none;
|
|
2457
2540
|
}
|
|
2458
2541
|
|
|
2459
|
-
[data-ui
|
|
2460
|
-
[data-ui
|
|
2461
|
-
[data-ui
|
|
2462
|
-
[data-ui
|
|
2463
|
-
[data-ui
|
|
2542
|
+
[data-ui-data-grid] [data-part-column-actions],
|
|
2543
|
+
[data-ui-data-grid] [data-part-row-handle],
|
|
2544
|
+
[data-ui-data-grid] [data-part-resizer],
|
|
2545
|
+
[data-ui-data-grid] [data-part-drop-indicator],
|
|
2546
|
+
[data-ui-data-grid] [data-part-loader] {
|
|
2464
2547
|
display: none;
|
|
2465
2548
|
}
|
|
2466
2549
|
|
|
2467
|
-
[data-ui
|
|
2468
|
-
[data-ui
|
|
2469
|
-
[data-ui
|
|
2550
|
+
[data-ui-data-grid] [role='gridcell'][data-current],
|
|
2551
|
+
[data-ui-data-grid] [role='rowheader'][data-current],
|
|
2552
|
+
[data-ui-data-grid] [role='columnheader'][data-current] {
|
|
2470
2553
|
box-shadow: none;
|
|
2471
2554
|
}
|
|
2472
2555
|
|
|
2473
|
-
[data-ui
|
|
2556
|
+
[data-ui-data-grid] :is([data-part-body], [data-part-pinned-rows]) > [data-part-row] {
|
|
2474
2557
|
break-inside: avoid;
|
|
2475
2558
|
}
|
|
2476
2559
|
|
|
2477
|
-
[data-ui
|
|
2478
|
-
> [data-part
|
|
2479
|
-
> :is([data-part
|
|
2480
|
-
> [data-part
|
|
2560
|
+
[data-ui-data-grid]
|
|
2561
|
+
> [data-part-scroll]
|
|
2562
|
+
> :is([data-part-body], [data-part-pinned-rows])
|
|
2563
|
+
> [data-part-row] {
|
|
2481
2564
|
--_hover: transparent;
|
|
2482
2565
|
}
|
|
2483
2566
|
}
|
|
2484
2567
|
}
|
|
2568
|
+
|
|
2569
|
+
/**
|
|
2570
|
+
* The row window's offset and the body's whole height, written on the body
|
|
2571
|
+
* by script on every scroll step and read only by the body. Unregistered,
|
|
2572
|
+
* each one inherited into every row and cell, and a scroll step restyled the
|
|
2573
|
+
* whole window: 41 ms of style recalculation per step on 29 mounted rows.
|
|
2574
|
+
* Registered without inheritance and without a type, a body the grid does not
|
|
2575
|
+
* window still takes the fallback of `var()`. Outside the layer, because
|
|
2576
|
+
* `@property` is a registration, not a rule a cascade layer holds.
|
|
2577
|
+
*/
|
|
2578
|
+
@property --slotted-data-grid-window-start {
|
|
2579
|
+
syntax: '*';
|
|
2580
|
+
inherits: false;
|
|
2581
|
+
}
|
|
2582
|
+
|
|
2583
|
+
@property --slotted-data-grid-window-total {
|
|
2584
|
+
syntax: '*';
|
|
2585
|
+
inherits: false;
|
|
2586
|
+
}
|