@gridkitjs/theme-tailwind 0.11.0 → 0.13.0
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/README.md +13 -13
- package/package.json +8 -2
- package/src/presets/comfortable.css +58 -0
- package/src/presets/default.css +111 -0
- package/src/presets/high-contrast.css +56 -0
- package/src/presets/index.json +35 -0
- package/src/presets/midnight.css +56 -0
- package/src/presets/spreadsheet.css +57 -0
- package/src/styles.css +872 -557
- package/src/tokens.json +528 -0
package/src/styles.css
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* GridKit tailwind theme.
|
|
3
3
|
*
|
|
4
|
+
* The theme tokens are the `--gridkit-*` custom properties declared on
|
|
5
|
+
* `:root` below. `tokens.json` lists each one with its default, marked
|
|
6
|
+
* `basic` (the palette and the base knobs) or `advanced` (a token that
|
|
7
|
+
* tunes one part of the grid), and a test keeps the two files in step.
|
|
8
|
+
*
|
|
9
|
+
* A theme overrides tokens on `:root`, in a stylesheet loaded after this
|
|
10
|
+
* one; an override on a wrapper around the grid misses its menus, which
|
|
11
|
+
* render into `document.body`. A token is one of two kinds:
|
|
12
|
+
*
|
|
13
|
+
* - A colour: a raw `-light`/`-dark` pair, which a theme sets, and the
|
|
14
|
+
* live name the rules read. The palette comment below has the details.
|
|
15
|
+
* - Anything else: a single value, which may derive from another token
|
|
16
|
+
* with `calc()`.
|
|
17
|
+
*
|
|
18
|
+
* A custom property holding `var()` resolves on the element that declares
|
|
19
|
+
* it, and descendants inherit the result. So a default declared on `:root`
|
|
20
|
+
* reads only what holds still across palettes: raw colours of its own side,
|
|
21
|
+
* or tokens that are not colours. Reading a live colour, it would keep the
|
|
22
|
+
* light value inside `.gridkit-dark`. A default that reads another token
|
|
23
|
+
* still follows an override of it, since both resolve on `:root`.
|
|
4
24
|
*/
|
|
5
25
|
|
|
6
26
|
/*
|
|
@@ -24,7 +44,65 @@
|
|
|
24
44
|
* than `:root` simply wins.
|
|
25
45
|
*/
|
|
26
46
|
:root {
|
|
47
|
+
/*
|
|
48
|
+
* A default of `inherit` is the CSS-wide keyword even here: it leaves the
|
|
49
|
+
* token with no value, so a declaration reading it falls back to `unset`,
|
|
50
|
+
* and the property, being one that inherits, takes the page's value.
|
|
51
|
+
*/
|
|
52
|
+
--gridkit-font-family: inherit;
|
|
53
|
+
--gridkit-font-size: 1em;
|
|
54
|
+
--gridkit-menu-font-size: 0.875rem;
|
|
55
|
+
--gridkit-bar-font-size: 0.8125rem;
|
|
56
|
+
--gridkit-hint-font-size: 0.75rem;
|
|
57
|
+
--gridkit-header-font-weight: 700;
|
|
58
|
+
--gridkit-header-text-transform: inherit;
|
|
59
|
+
--gridkit-header-letter-spacing: inherit;
|
|
60
|
+
--gridkit-group-font-weight: 600;
|
|
61
|
+
--gridkit-font-variant-numeric: inherit;
|
|
62
|
+
|
|
63
|
+
/*
|
|
64
|
+
* Every padding, gap and control height in the rules is a multiple of the
|
|
65
|
+
* spacing unit, unless a token below sets it for one part.
|
|
66
|
+
*/
|
|
67
|
+
--gridkit-spacing: 0.25rem;
|
|
68
|
+
--gridkit-cell-padding-x: calc(var(--gridkit-spacing) * 2);
|
|
69
|
+
--gridkit-cell-padding-y: calc(var(--gridkit-spacing) * 2);
|
|
70
|
+
--gridkit-header-padding-x: var(--gridkit-cell-padding-x);
|
|
71
|
+
--gridkit-header-padding-y: var(--gridkit-cell-padding-y);
|
|
72
|
+
--gridkit-toolbar-padding: calc(var(--gridkit-spacing) * 2);
|
|
73
|
+
--gridkit-group-by-bar-padding: calc(var(--gridkit-spacing) * 2);
|
|
74
|
+
--gridkit-pager-padding: calc(var(--gridkit-spacing) * 2);
|
|
75
|
+
--gridkit-menu-item-padding-x: calc(var(--gridkit-spacing) * 3);
|
|
76
|
+
--gridkit-menu-item-padding-y: calc(var(--gridkit-spacing) * 1.5);
|
|
77
|
+
|
|
78
|
+
/* A line width of 0 turns that kind of line off. */
|
|
79
|
+
--gridkit-border-width: 1px;
|
|
80
|
+
--gridkit-border-style: solid;
|
|
81
|
+
--gridkit-row-line-width: var(--gridkit-border-width);
|
|
82
|
+
--gridkit-column-line-width: var(--gridkit-border-width);
|
|
83
|
+
--gridkit-outer-border-width: 0;
|
|
84
|
+
|
|
27
85
|
--gridkit-radius: 0.25rem;
|
|
86
|
+
--gridkit-menu-radius: 0.375rem;
|
|
87
|
+
--gridkit-control-radius: 0.25rem;
|
|
88
|
+
|
|
89
|
+
--gridkit-icon-size: 1rem;
|
|
90
|
+
--gridkit-header-icon-size: 14px;
|
|
91
|
+
--gridkit-focus-ring-width: 2px;
|
|
92
|
+
--gridkit-indicator-width: 2px;
|
|
93
|
+
/*
|
|
94
|
+
* The shadow's offset and blur. Its colour is the palette pair
|
|
95
|
+
* `--gridkit-overlay-shadow-color`, since a value declared here can't
|
|
96
|
+
* follow the palette.
|
|
97
|
+
*/
|
|
98
|
+
--gridkit-overlay-shadow: 0 4px 12px;
|
|
99
|
+
--gridkit-menu-min-width: 12rem;
|
|
100
|
+
--gridkit-column-chooser-width: 16rem;
|
|
101
|
+
--gridkit-filter-menu-width: 18rem;
|
|
102
|
+
--gridkit-column-chooser-max-height: 17.5rem;
|
|
103
|
+
--gridkit-filter-checklist-height: 12rem;
|
|
104
|
+
--gridkit-transition-duration: 0.1s;
|
|
105
|
+
|
|
28
106
|
--gridkit-surface-light: oklch(1 0 0);
|
|
29
107
|
--gridkit-surface-dark: oklch(0.21 0.01 250);
|
|
30
108
|
--gridkit-surface-muted-light: oklch(0.97 0.003 250);
|
|
@@ -49,6 +127,41 @@
|
|
|
49
127
|
--gridkit-selected-strong-light: oklch(0.9 0.05 255);
|
|
50
128
|
--gridkit-selected-strong-dark: oklch(0.38 0.07 255);
|
|
51
129
|
|
|
130
|
+
/*
|
|
131
|
+
* The colours of single parts. Most default to a palette colour, so a
|
|
132
|
+
* change to the palette carries over to them; the header's text keeps the
|
|
133
|
+
* page's colour, as the cells' does, and rows are not striped.
|
|
134
|
+
*/
|
|
135
|
+
--gridkit-header-bg-light: var(--gridkit-surface-light);
|
|
136
|
+
--gridkit-header-bg-dark: var(--gridkit-surface-dark);
|
|
137
|
+
--gridkit-header-fg-light: currentColor;
|
|
138
|
+
--gridkit-header-fg-dark: currentColor;
|
|
139
|
+
--gridkit-group-row-bg-light: var(--gridkit-surface-muted-light);
|
|
140
|
+
--gridkit-group-row-bg-dark: var(--gridkit-surface-muted-dark);
|
|
141
|
+
--gridkit-row-hover-bg-light: var(--gridkit-surface-muted-light);
|
|
142
|
+
--gridkit-row-hover-bg-dark: var(--gridkit-surface-muted-dark);
|
|
143
|
+
--gridkit-row-stripe-bg-light: transparent;
|
|
144
|
+
--gridkit-row-stripe-bg-dark: transparent;
|
|
145
|
+
--gridkit-focus-ring-light: var(--gridkit-accent-light);
|
|
146
|
+
--gridkit-focus-ring-dark: var(--gridkit-accent-dark);
|
|
147
|
+
--gridkit-accent-fg-light: var(--gridkit-surface-light);
|
|
148
|
+
--gridkit-accent-fg-dark: var(--gridkit-surface-dark);
|
|
149
|
+
/* The accent turned red, as light or dark as the accent. */
|
|
150
|
+
--gridkit-error-light: oklch(from var(--gridkit-accent-light) l c 25);
|
|
151
|
+
--gridkit-error-dark: oklch(from var(--gridkit-accent-dark) l c 25);
|
|
152
|
+
--gridkit-scrollbar-thumb-light: color-mix(
|
|
153
|
+
in oklch,
|
|
154
|
+
var(--gridkit-fg-muted-light) 45%,
|
|
155
|
+
transparent
|
|
156
|
+
);
|
|
157
|
+
--gridkit-scrollbar-thumb-dark: color-mix(
|
|
158
|
+
in oklch,
|
|
159
|
+
var(--gridkit-fg-muted-dark) 45%,
|
|
160
|
+
transparent
|
|
161
|
+
);
|
|
162
|
+
--gridkit-overlay-shadow-color-light: oklch(0 0 0 / 0.15);
|
|
163
|
+
--gridkit-overlay-shadow-color-dark: oklch(0 0 0 / 0.15);
|
|
164
|
+
|
|
52
165
|
color-scheme: light;
|
|
53
166
|
--gridkit-surface: var(--gridkit-surface-light);
|
|
54
167
|
--gridkit-surface-muted: var(--gridkit-surface-muted-light);
|
|
@@ -59,6 +172,16 @@
|
|
|
59
172
|
--gridkit-accent: var(--gridkit-accent-light);
|
|
60
173
|
--gridkit-selected: var(--gridkit-selected-light);
|
|
61
174
|
--gridkit-selected-strong: var(--gridkit-selected-strong-light);
|
|
175
|
+
--gridkit-header-bg: var(--gridkit-header-bg-light);
|
|
176
|
+
--gridkit-header-fg: var(--gridkit-header-fg-light);
|
|
177
|
+
--gridkit-group-row-bg: var(--gridkit-group-row-bg-light);
|
|
178
|
+
--gridkit-row-hover-bg: var(--gridkit-row-hover-bg-light);
|
|
179
|
+
--gridkit-row-stripe-bg: var(--gridkit-row-stripe-bg-light);
|
|
180
|
+
--gridkit-focus-ring: var(--gridkit-focus-ring-light);
|
|
181
|
+
--gridkit-accent-fg: var(--gridkit-accent-fg-light);
|
|
182
|
+
--gridkit-error: var(--gridkit-error-light);
|
|
183
|
+
--gridkit-scrollbar-thumb: var(--gridkit-scrollbar-thumb-light);
|
|
184
|
+
--gridkit-overlay-shadow-color: var(--gridkit-overlay-shadow-color-light);
|
|
62
185
|
|
|
63
186
|
@variant dark {
|
|
64
187
|
color-scheme: dark;
|
|
@@ -71,6 +194,29 @@
|
|
|
71
194
|
--gridkit-accent: var(--gridkit-accent-dark);
|
|
72
195
|
--gridkit-selected: var(--gridkit-selected-dark);
|
|
73
196
|
--gridkit-selected-strong: var(--gridkit-selected-strong-dark);
|
|
197
|
+
--gridkit-header-bg: var(--gridkit-header-bg-dark);
|
|
198
|
+
--gridkit-header-fg: var(--gridkit-header-fg-dark);
|
|
199
|
+
--gridkit-group-row-bg: var(--gridkit-group-row-bg-dark);
|
|
200
|
+
--gridkit-row-hover-bg: var(--gridkit-row-hover-bg-dark);
|
|
201
|
+
--gridkit-row-stripe-bg: var(--gridkit-row-stripe-bg-dark);
|
|
202
|
+
--gridkit-focus-ring: var(--gridkit-focus-ring-dark);
|
|
203
|
+
--gridkit-accent-fg: var(--gridkit-accent-fg-dark);
|
|
204
|
+
--gridkit-error: var(--gridkit-error-dark);
|
|
205
|
+
--gridkit-scrollbar-thumb: var(--gridkit-scrollbar-thumb-dark);
|
|
206
|
+
--gridkit-overlay-shadow-color: var(--gridkit-overlay-shadow-color-dark);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/*
|
|
211
|
+
* Without relative colour syntax the error default above is invalid, and a
|
|
212
|
+
* declaration reading it would draw nothing at all, so there it is the text
|
|
213
|
+
* colour instead. A theme's own error colour, set on `:root` after this
|
|
214
|
+
* stylesheet, still wins.
|
|
215
|
+
*/
|
|
216
|
+
@supports not (color: oklch(from red l c h)) {
|
|
217
|
+
:root {
|
|
218
|
+
--gridkit-error-light: var(--gridkit-fg-light);
|
|
219
|
+
--gridkit-error-dark: var(--gridkit-fg-dark);
|
|
74
220
|
}
|
|
75
221
|
}
|
|
76
222
|
|
|
@@ -85,6 +231,16 @@
|
|
|
85
231
|
--gridkit-accent: var(--gridkit-accent-light);
|
|
86
232
|
--gridkit-selected: var(--gridkit-selected-light);
|
|
87
233
|
--gridkit-selected-strong: var(--gridkit-selected-strong-light);
|
|
234
|
+
--gridkit-header-bg: var(--gridkit-header-bg-light);
|
|
235
|
+
--gridkit-header-fg: var(--gridkit-header-fg-light);
|
|
236
|
+
--gridkit-group-row-bg: var(--gridkit-group-row-bg-light);
|
|
237
|
+
--gridkit-row-hover-bg: var(--gridkit-row-hover-bg-light);
|
|
238
|
+
--gridkit-row-stripe-bg: var(--gridkit-row-stripe-bg-light);
|
|
239
|
+
--gridkit-focus-ring: var(--gridkit-focus-ring-light);
|
|
240
|
+
--gridkit-accent-fg: var(--gridkit-accent-fg-light);
|
|
241
|
+
--gridkit-error: var(--gridkit-error-light);
|
|
242
|
+
--gridkit-scrollbar-thumb: var(--gridkit-scrollbar-thumb-light);
|
|
243
|
+
--gridkit-overlay-shadow-color: var(--gridkit-overlay-shadow-color-light);
|
|
88
244
|
}
|
|
89
245
|
|
|
90
246
|
.gridkit-dark {
|
|
@@ -98,25 +254,50 @@
|
|
|
98
254
|
--gridkit-accent: var(--gridkit-accent-dark);
|
|
99
255
|
--gridkit-selected: var(--gridkit-selected-dark);
|
|
100
256
|
--gridkit-selected-strong: var(--gridkit-selected-strong-dark);
|
|
257
|
+
--gridkit-header-bg: var(--gridkit-header-bg-dark);
|
|
258
|
+
--gridkit-header-fg: var(--gridkit-header-fg-dark);
|
|
259
|
+
--gridkit-group-row-bg: var(--gridkit-group-row-bg-dark);
|
|
260
|
+
--gridkit-row-hover-bg: var(--gridkit-row-hover-bg-dark);
|
|
261
|
+
--gridkit-row-stripe-bg: var(--gridkit-row-stripe-bg-dark);
|
|
262
|
+
--gridkit-focus-ring: var(--gridkit-focus-ring-dark);
|
|
263
|
+
--gridkit-accent-fg: var(--gridkit-accent-fg-dark);
|
|
264
|
+
--gridkit-error: var(--gridkit-error-dark);
|
|
265
|
+
--gridkit-scrollbar-thumb: var(--gridkit-scrollbar-thumb-dark);
|
|
266
|
+
--gridkit-overlay-shadow-color: var(--gridkit-overlay-shadow-color-dark);
|
|
101
267
|
}
|
|
102
268
|
|
|
103
269
|
/*
|
|
270
|
+
* Every colour as a Tailwind colour, prefixed so it never claims a name like
|
|
271
|
+
* `accent` or `surface` in the app's own theme: `bg-gridkit-accent`,
|
|
272
|
+
* `text-gridkit-fg-muted`.
|
|
273
|
+
*
|
|
104
274
|
* `inline` is what makes the swap work. Without it Tailwind emits
|
|
105
|
-
* `--color-surface: var(--gridkit-surface)` on `:root`, which
|
|
106
|
-
* against the light values and is then inherited
|
|
107
|
-
* dark-mode switch further down the tree would have
|
|
108
|
-
* override. `inline` substitutes the var into each utility
|
|
109
|
-
* resolves at the element the class sits on.
|
|
275
|
+
* `--color-gridkit-surface: var(--gridkit-surface)` on `:root`, which
|
|
276
|
+
* resolves once against the light values and is then inherited
|
|
277
|
+
* already-resolved — a dark-mode switch further down the tree would have
|
|
278
|
+
* nothing left to override. `inline` substitutes the var into each utility
|
|
279
|
+
* instead, so it resolves at the element the class sits on.
|
|
110
280
|
*/
|
|
111
281
|
@theme inline {
|
|
112
|
-
--color-surface: var(--gridkit-surface);
|
|
113
|
-
--color-surface-muted: var(--gridkit-surface-muted);
|
|
114
|
-
--color-line: var(--gridkit-line);
|
|
115
|
-
--color-
|
|
116
|
-
--color-fg
|
|
117
|
-
--color-
|
|
118
|
-
--color-
|
|
119
|
-
--color-selected
|
|
282
|
+
--color-gridkit-surface: var(--gridkit-surface);
|
|
283
|
+
--color-gridkit-surface-muted: var(--gridkit-surface-muted);
|
|
284
|
+
--color-gridkit-line: var(--gridkit-line);
|
|
285
|
+
--color-gridkit-hover-line: var(--gridkit-hover-line);
|
|
286
|
+
--color-gridkit-fg: var(--gridkit-fg);
|
|
287
|
+
--color-gridkit-fg-muted: var(--gridkit-fg-muted);
|
|
288
|
+
--color-gridkit-accent: var(--gridkit-accent);
|
|
289
|
+
--color-gridkit-selected: var(--gridkit-selected);
|
|
290
|
+
--color-gridkit-selected-strong: var(--gridkit-selected-strong);
|
|
291
|
+
--color-gridkit-header-bg: var(--gridkit-header-bg);
|
|
292
|
+
--color-gridkit-header-fg: var(--gridkit-header-fg);
|
|
293
|
+
--color-gridkit-group-row-bg: var(--gridkit-group-row-bg);
|
|
294
|
+
--color-gridkit-row-hover-bg: var(--gridkit-row-hover-bg);
|
|
295
|
+
--color-gridkit-row-stripe-bg: var(--gridkit-row-stripe-bg);
|
|
296
|
+
--color-gridkit-focus-ring: var(--gridkit-focus-ring);
|
|
297
|
+
--color-gridkit-accent-fg: var(--gridkit-accent-fg);
|
|
298
|
+
--color-gridkit-error: var(--gridkit-error);
|
|
299
|
+
--color-gridkit-scrollbar-thumb: var(--gridkit-scrollbar-thumb);
|
|
300
|
+
--color-gridkit-overlay-shadow-color: var(--gridkit-overlay-shadow-color);
|
|
120
301
|
}
|
|
121
302
|
|
|
122
303
|
/*
|
|
@@ -124,6 +305,31 @@
|
|
|
124
305
|
*/
|
|
125
306
|
|
|
126
307
|
@layer base {
|
|
308
|
+
/*
|
|
309
|
+
* What the rules below take for granted from Tailwind's Preflight, set on
|
|
310
|
+
* the grid's root and on what it renders into `document.body`, so they
|
|
311
|
+
* draw the same in an app without Preflight, and in theme-css's plain
|
|
312
|
+
* CSS. `:where()` keeps each at no specificity, as Preflight's are.
|
|
313
|
+
*/
|
|
314
|
+
:where(.gridkit-data-grid-viewport, .gridkit-drag-ghost, .gridkit-overlay),
|
|
315
|
+
:where(.gridkit-data-grid-viewport, .gridkit-drag-ghost, .gridkit-overlay) *,
|
|
316
|
+
:where(.gridkit-data-grid-viewport, .gridkit-drag-ghost, .gridkit-overlay)
|
|
317
|
+
::before,
|
|
318
|
+
:where(.gridkit-data-grid-viewport, .gridkit-drag-ghost, .gridkit-overlay)
|
|
319
|
+
::after {
|
|
320
|
+
box-sizing: border-box;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
:where(.gridkit-data-grid-viewport, .gridkit-overlay) :where(button, input) {
|
|
324
|
+
font: inherit;
|
|
325
|
+
letter-spacing: inherit;
|
|
326
|
+
color: inherit;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
:where(.gridkit-data-grid-viewport, .gridkit-overlay) :where(svg) {
|
|
330
|
+
vertical-align: middle;
|
|
331
|
+
}
|
|
332
|
+
|
|
127
333
|
/*
|
|
128
334
|
* The table is exactly as wide as its columns, so anything wider than the
|
|
129
335
|
* space available scrolls here rather than squashing the columns. Scrolls
|
|
@@ -132,7 +338,22 @@
|
|
|
132
338
|
*/
|
|
133
339
|
.gridkit-data-grid-viewport {
|
|
134
340
|
overflow-x: auto;
|
|
341
|
+
font-size: var(--gridkit-font-size);
|
|
135
342
|
border-radius: var(--gridkit-radius);
|
|
343
|
+
border: var(--gridkit-outer-border-width) var(--gridkit-border-style)
|
|
344
|
+
var(--gridkit-line);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/*
|
|
348
|
+
* The grid's text, set on its root and again on what it renders into
|
|
349
|
+
* `document.body`, which sits outside that root.
|
|
350
|
+
*/
|
|
351
|
+
.gridkit-data-grid-viewport,
|
|
352
|
+
.gridkit-data-grid.gridkit-drag-ghost,
|
|
353
|
+
.gridkit-group-by-chip.gridkit-drag-ghost,
|
|
354
|
+
.gridkit-overlay {
|
|
355
|
+
font-family: var(--gridkit-font-family);
|
|
356
|
+
font-variant-numeric: var(--gridkit-font-variant-numeric);
|
|
136
357
|
}
|
|
137
358
|
|
|
138
359
|
/*
|
|
@@ -158,32 +379,26 @@
|
|
|
158
379
|
/*
|
|
159
380
|
* Slim scrollbars on the grid's own scroll regions, never on the page: the
|
|
160
381
|
* viewport, the row area, the menus, and the column chooser and filter
|
|
161
|
-
* checklist lists.
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
* browser that supports the standard properties ignores them anyway.
|
|
382
|
+
* checklist lists. Chromium and Firefox honour
|
|
383
|
+
* `scrollbar-width`/`scrollbar-color`; the `::-webkit-scrollbar` rules are
|
|
384
|
+
* only for engines that do not, since a browser that supports the standard
|
|
385
|
+
* properties ignores them anyway.
|
|
166
386
|
*/
|
|
167
387
|
.gridkit-data-grid-viewport,
|
|
168
388
|
.gridkit-data-grid-body,
|
|
169
389
|
.gridkit-menu,
|
|
170
|
-
.column-chooser-list,
|
|
171
|
-
.filter-menu-checklist {
|
|
390
|
+
.gridkit-column-chooser-list,
|
|
391
|
+
.gridkit-filter-menu-checklist {
|
|
172
392
|
scrollbar-width: thin;
|
|
173
|
-
scrollbar-color:
|
|
174
|
-
in oklch,
|
|
175
|
-
var(--gridkit-fg-muted) 45%,
|
|
176
|
-
transparent
|
|
177
|
-
)
|
|
178
|
-
transparent;
|
|
393
|
+
scrollbar-color: var(--gridkit-scrollbar-thumb) transparent;
|
|
179
394
|
}
|
|
180
395
|
|
|
181
396
|
@supports not (scrollbar-color: auto) {
|
|
182
397
|
.gridkit-data-grid-viewport::-webkit-scrollbar,
|
|
183
398
|
.gridkit-data-grid-body::-webkit-scrollbar,
|
|
184
399
|
.gridkit-menu::-webkit-scrollbar,
|
|
185
|
-
.column-chooser-list::-webkit-scrollbar,
|
|
186
|
-
.filter-menu-checklist::-webkit-scrollbar {
|
|
400
|
+
.gridkit-column-chooser-list::-webkit-scrollbar,
|
|
401
|
+
.gridkit-filter-menu-checklist::-webkit-scrollbar {
|
|
187
402
|
width: 8px;
|
|
188
403
|
height: 8px;
|
|
189
404
|
}
|
|
@@ -191,21 +406,17 @@
|
|
|
191
406
|
.gridkit-data-grid-viewport::-webkit-scrollbar-track,
|
|
192
407
|
.gridkit-data-grid-body::-webkit-scrollbar-track,
|
|
193
408
|
.gridkit-menu::-webkit-scrollbar-track,
|
|
194
|
-
.column-chooser-list::-webkit-scrollbar-track,
|
|
195
|
-
.filter-menu-checklist::-webkit-scrollbar-track {
|
|
409
|
+
.gridkit-column-chooser-list::-webkit-scrollbar-track,
|
|
410
|
+
.gridkit-filter-menu-checklist::-webkit-scrollbar-track {
|
|
196
411
|
background: transparent;
|
|
197
412
|
}
|
|
198
413
|
|
|
199
414
|
.gridkit-data-grid-viewport::-webkit-scrollbar-thumb,
|
|
200
415
|
.gridkit-data-grid-body::-webkit-scrollbar-thumb,
|
|
201
416
|
.gridkit-menu::-webkit-scrollbar-thumb,
|
|
202
|
-
.column-chooser-list::-webkit-scrollbar-thumb,
|
|
203
|
-
.filter-menu-checklist::-webkit-scrollbar-thumb {
|
|
204
|
-
background-color:
|
|
205
|
-
in oklch,
|
|
206
|
-
var(--gridkit-fg-muted) 45%,
|
|
207
|
-
transparent
|
|
208
|
-
);
|
|
417
|
+
.gridkit-column-chooser-list::-webkit-scrollbar-thumb,
|
|
418
|
+
.gridkit-filter-menu-checklist::-webkit-scrollbar-thumb {
|
|
419
|
+
background-color: var(--gridkit-scrollbar-thumb);
|
|
209
420
|
border-radius: 4px;
|
|
210
421
|
}
|
|
211
422
|
}
|
|
@@ -245,8 +456,8 @@
|
|
|
245
456
|
* do when it does not. Keeping it on one line is also what lets a column be
|
|
246
457
|
* measured against its content.
|
|
247
458
|
*/
|
|
248
|
-
.gridkit-data-grid .header-cell,
|
|
249
|
-
.gridkit-data-grid .grid-cell {
|
|
459
|
+
.gridkit-data-grid .gridkit-header-cell,
|
|
460
|
+
.gridkit-data-grid .gridkit-grid-cell {
|
|
250
461
|
overflow: hidden;
|
|
251
462
|
text-overflow: ellipsis;
|
|
252
463
|
white-space: nowrap;
|
|
@@ -265,24 +476,28 @@
|
|
|
265
476
|
* clips it. `overflow-wrap: anywhere` lets it break mid-word as a last
|
|
266
477
|
* resort, after normal word breaks are exhausted.
|
|
267
478
|
*/
|
|
268
|
-
.gridkit-data-grid .header-cell.is-wrapped,
|
|
269
|
-
.gridkit-data-grid .grid-cell.is-wrapped {
|
|
479
|
+
.gridkit-data-grid .gridkit-header-cell.is-wrapped,
|
|
480
|
+
.gridkit-data-grid .gridkit-grid-cell.is-wrapped {
|
|
270
481
|
overflow: visible;
|
|
271
482
|
text-overflow: clip;
|
|
272
483
|
white-space: normal;
|
|
273
484
|
overflow-wrap: anywhere;
|
|
274
485
|
}
|
|
275
486
|
|
|
276
|
-
.gridkit-data-grid .grid-header {
|
|
277
|
-
|
|
487
|
+
.gridkit-data-grid .gridkit-grid-header {
|
|
488
|
+
color: var(--gridkit-header-fg);
|
|
489
|
+
background-color: var(--gridkit-header-bg);
|
|
278
490
|
}
|
|
279
491
|
|
|
280
|
-
.gridkit-data-grid .grid-header .header-cell {
|
|
281
|
-
padding:
|
|
492
|
+
.gridkit-data-grid .gridkit-grid-header .gridkit-header-cell {
|
|
493
|
+
padding: var(--gridkit-header-padding-y) var(--gridkit-header-padding-x);
|
|
282
494
|
position: relative;
|
|
495
|
+
font-weight: var(--gridkit-header-font-weight);
|
|
496
|
+
letter-spacing: var(--gridkit-header-letter-spacing);
|
|
497
|
+
text-transform: var(--gridkit-header-text-transform);
|
|
283
498
|
}
|
|
284
499
|
|
|
285
|
-
.gridkit-data-grid .header-resize-handle {
|
|
500
|
+
.gridkit-data-grid .gridkit-header-resize-handle {
|
|
286
501
|
position: absolute;
|
|
287
502
|
top: 0;
|
|
288
503
|
right: 0;
|
|
@@ -301,9 +516,10 @@
|
|
|
301
516
|
* border to recolour, and adding one would shift the cell's content by a
|
|
302
517
|
* pixel mid-drag.
|
|
303
518
|
*/
|
|
304
|
-
.gridkit-data-grid .header-cell.is-resizing,
|
|
305
|
-
.gridkit-data-grid .grid-cell.is-resizing {
|
|
306
|
-
box-shadow: inset -
|
|
519
|
+
.gridkit-data-grid .gridkit-header-cell.is-resizing,
|
|
520
|
+
.gridkit-data-grid .gridkit-grid-cell.is-resizing {
|
|
521
|
+
box-shadow: inset calc(var(--gridkit-indicator-width) * -1) 0 0 0
|
|
522
|
+
var(--gridkit-hover-line);
|
|
307
523
|
}
|
|
308
524
|
|
|
309
525
|
/*
|
|
@@ -314,10 +530,10 @@
|
|
|
314
530
|
* Inset because the viewport clips its overflow: an outline drawn outwards
|
|
315
531
|
* would be cut off on the first and last columns.
|
|
316
532
|
*/
|
|
317
|
-
.gridkit-data-grid .header-cell:focus-visible,
|
|
318
|
-
.gridkit-data-grid .grid-cell:focus-visible {
|
|
319
|
-
outline:
|
|
320
|
-
outline-offset: -
|
|
533
|
+
.gridkit-data-grid .gridkit-header-cell:focus-visible,
|
|
534
|
+
.gridkit-data-grid .gridkit-grid-cell:focus-visible {
|
|
535
|
+
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
536
|
+
outline-offset: calc(var(--gridkit-focus-ring-width) * -1);
|
|
321
537
|
}
|
|
322
538
|
|
|
323
539
|
/*
|
|
@@ -326,13 +542,13 @@
|
|
|
326
542
|
* focusable now that the grid roves one tab stop, so a `tabindex` no longer
|
|
327
543
|
* distinguishes the ones that drag.
|
|
328
544
|
*/
|
|
329
|
-
.gridkit-data-grid .header-cell.is-reorderable {
|
|
545
|
+
.gridkit-data-grid .gridkit-header-cell.is-reorderable {
|
|
330
546
|
cursor: grab;
|
|
331
547
|
touch-action: none;
|
|
332
548
|
user-select: none;
|
|
333
549
|
}
|
|
334
550
|
|
|
335
|
-
.gridkit-data-grid .header-cell.is-dragging {
|
|
551
|
+
.gridkit-data-grid .gridkit-header-cell.is-dragging {
|
|
336
552
|
cursor: grabbing;
|
|
337
553
|
opacity: 0.5;
|
|
338
554
|
}
|
|
@@ -362,23 +578,25 @@
|
|
|
362
578
|
* otherwise mask every header it passes over and there would be no drop
|
|
363
579
|
* target at all.
|
|
364
580
|
*/
|
|
365
|
-
.gridkit-data-grid.drag-ghost {
|
|
581
|
+
.gridkit-data-grid.gridkit-drag-ghost {
|
|
366
582
|
position: fixed;
|
|
367
583
|
top: 0;
|
|
368
584
|
left: 0;
|
|
369
585
|
z-index: 50;
|
|
370
|
-
padding:
|
|
371
|
-
font-
|
|
586
|
+
padding: var(--gridkit-header-padding-y) var(--gridkit-header-padding-x);
|
|
587
|
+
font-size: var(--gridkit-font-size);
|
|
588
|
+
font-weight: var(--gridkit-header-font-weight);
|
|
589
|
+
letter-spacing: var(--gridkit-header-letter-spacing);
|
|
590
|
+
text-transform: var(--gridkit-header-text-transform);
|
|
372
591
|
text-align: center;
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
/* box-shadow: 0 4px 12px oklch(0 0 0 / 0.15); */
|
|
592
|
+
color: var(--gridkit-header-fg);
|
|
593
|
+
background-color: var(--gridkit-header-bg);
|
|
594
|
+
border: var(--gridkit-border-width) dashed var(--gridkit-accent);
|
|
377
595
|
opacity: 0.75;
|
|
378
596
|
pointer-events: none;
|
|
379
597
|
/*
|
|
380
598
|
* Restated because the rule that clips a header's text is scoped to a
|
|
381
|
-
* `.header-cell` inside the grid, and the ghost carries that class while
|
|
599
|
+
* `.gridkit-header-cell` inside the grid, and the ghost carries that class while
|
|
382
600
|
* being the grid element itself.
|
|
383
601
|
*/
|
|
384
602
|
overflow: hidden;
|
|
@@ -393,15 +611,16 @@
|
|
|
393
611
|
* between two columns reads as one line.
|
|
394
612
|
*
|
|
395
613
|
* `box-shadow` for the reason the resize line uses it, and because a
|
|
396
|
-
* recoloured `borders-vertical` border would land on the neighbour and read
|
|
614
|
+
* recoloured `gridkit-borders-vertical` border would land on the neighbour and read
|
|
397
615
|
* as a column out.
|
|
398
616
|
*/
|
|
399
|
-
.gridkit-data-grid .header-cell.is-drop-before {
|
|
400
|
-
box-shadow: inset
|
|
617
|
+
.gridkit-data-grid .gridkit-header-cell.is-drop-before {
|
|
618
|
+
box-shadow: inset var(--gridkit-indicator-width) 0 0 0 var(--gridkit-accent);
|
|
401
619
|
}
|
|
402
620
|
|
|
403
|
-
.gridkit-data-grid .header-cell.is-drop-after {
|
|
404
|
-
box-shadow: inset -
|
|
621
|
+
.gridkit-data-grid .gridkit-header-cell.is-drop-after {
|
|
622
|
+
box-shadow: inset calc(var(--gridkit-indicator-width) * -1) 0 0 0
|
|
623
|
+
var(--gridkit-accent);
|
|
405
624
|
}
|
|
406
625
|
|
|
407
626
|
/*
|
|
@@ -415,21 +634,21 @@
|
|
|
415
634
|
* column keeps two independent hit targets rather than one shadowing the
|
|
416
635
|
* other.
|
|
417
636
|
*/
|
|
418
|
-
.gridkit-data-grid .header-sort-toggle {
|
|
637
|
+
.gridkit-data-grid .gridkit-header-sort-toggle {
|
|
419
638
|
display: inline-flex;
|
|
420
639
|
position: absolute;
|
|
421
640
|
top: 50%;
|
|
422
|
-
right:
|
|
641
|
+
right: calc(var(--gridkit-spacing) * 3);
|
|
423
642
|
transform: translateY(-50%);
|
|
424
643
|
align-items: center;
|
|
425
|
-
gap: 0.
|
|
644
|
+
gap: calc(var(--gridkit-spacing) * 0.5);
|
|
426
645
|
cursor: pointer;
|
|
427
646
|
color: var(--gridkit-fg-muted);
|
|
428
647
|
}
|
|
429
648
|
|
|
430
|
-
.gridkit-data-grid .header-sort-toggle svg {
|
|
431
|
-
width:
|
|
432
|
-
height:
|
|
649
|
+
.gridkit-data-grid .gridkit-header-sort-toggle svg {
|
|
650
|
+
width: var(--gridkit-header-icon-size);
|
|
651
|
+
height: var(--gridkit-header-icon-size);
|
|
433
652
|
flex-shrink: 0;
|
|
434
653
|
}
|
|
435
654
|
|
|
@@ -438,33 +657,39 @@
|
|
|
438
657
|
* focused — an unsorted, un-hovered header stays quiet.
|
|
439
658
|
*/
|
|
440
659
|
.gridkit-data-grid
|
|
441
|
-
.header-sort-toggle:not(.is-sorted-asc):not(.is-sorted-desc) {
|
|
660
|
+
.gridkit-header-sort-toggle:not(.is-sorted-asc):not(.is-sorted-desc) {
|
|
442
661
|
opacity: 0;
|
|
443
662
|
}
|
|
444
663
|
|
|
445
|
-
.gridkit-data-grid
|
|
446
|
-
|
|
664
|
+
.gridkit-data-grid
|
|
665
|
+
.gridkit-grid-header
|
|
666
|
+
.gridkit-header-cell:hover
|
|
667
|
+
.gridkit-header-sort-toggle,
|
|
668
|
+
.gridkit-data-grid
|
|
669
|
+
.gridkit-header-cell:focus-visible
|
|
670
|
+
.gridkit-header-sort-toggle {
|
|
447
671
|
opacity: 1;
|
|
448
672
|
}
|
|
449
673
|
|
|
450
|
-
.gridkit-data-grid .header-sort-toggle.is-sorted-asc,
|
|
451
|
-
.gridkit-data-grid .header-sort-toggle.is-sorted-desc {
|
|
674
|
+
.gridkit-data-grid .gridkit-header-sort-toggle.is-sorted-asc,
|
|
675
|
+
.gridkit-data-grid .gridkit-header-sort-toggle.is-sorted-desc {
|
|
452
676
|
opacity: 1;
|
|
453
677
|
color: var(--gridkit-accent);
|
|
454
678
|
}
|
|
455
679
|
|
|
456
680
|
/* One chevron covers both directions; `desc` is `asc` turned upside down. */
|
|
457
|
-
.gridkit-data-grid .header-sort-toggle.is-sorted-desc svg {
|
|
681
|
+
.gridkit-data-grid .gridkit-header-sort-toggle.is-sorted-desc svg {
|
|
458
682
|
transform: rotate(180deg);
|
|
459
683
|
}
|
|
460
684
|
|
|
461
|
-
.gridkit-data-grid .header-sort-priority {
|
|
462
|
-
font-size:
|
|
463
|
-
font-weight: 700;
|
|
685
|
+
.gridkit-data-grid .gridkit-header-sort-priority {
|
|
686
|
+
font-size: calc(var(--gridkit-hint-font-size) * 5 / 6);
|
|
464
687
|
line-height: 1;
|
|
465
688
|
}
|
|
466
689
|
|
|
467
|
-
.gridkit-data-grid:not(.no-hover-columns)
|
|
690
|
+
.gridkit-data-grid:not(.gridkit-no-hover-columns)
|
|
691
|
+
.gridkit-grid-header
|
|
692
|
+
.gridkit-header-cell:hover {
|
|
468
693
|
background-color: var(--gridkit-surface-muted);
|
|
469
694
|
}
|
|
470
695
|
|
|
@@ -472,33 +697,38 @@
|
|
|
472
697
|
* Docked before the label, in normal flow rather than absolutely
|
|
473
698
|
* positioned like the sort toggle and resize handle — see the component's
|
|
474
699
|
* own note on why. Faint until grouped, hovered, or focused, the same
|
|
475
|
-
* restraint `.header-sort-toggle` uses for an unsorted header.
|
|
700
|
+
* restraint `.gridkit-header-sort-toggle` uses for an unsorted header.
|
|
476
701
|
*/
|
|
477
|
-
.gridkit-data-grid .header-group-toggle {
|
|
702
|
+
.gridkit-data-grid .gridkit-header-group-toggle {
|
|
478
703
|
display: inline-flex;
|
|
479
704
|
align-items: center;
|
|
480
705
|
vertical-align: middle;
|
|
481
|
-
margin-right:
|
|
706
|
+
margin-right: calc(var(--gridkit-spacing) * 1.5);
|
|
482
707
|
cursor: pointer;
|
|
483
708
|
color: var(--gridkit-fg-muted);
|
|
484
709
|
}
|
|
485
710
|
|
|
486
|
-
.gridkit-data-grid .header-group-toggle svg {
|
|
487
|
-
width:
|
|
488
|
-
height:
|
|
711
|
+
.gridkit-data-grid .gridkit-header-group-toggle svg {
|
|
712
|
+
width: var(--gridkit-header-icon-size);
|
|
713
|
+
height: var(--gridkit-header-icon-size);
|
|
489
714
|
flex-shrink: 0;
|
|
490
715
|
}
|
|
491
716
|
|
|
492
|
-
.gridkit-data-grid .header-group-toggle:not(.is-grouped) {
|
|
717
|
+
.gridkit-data-grid .gridkit-header-group-toggle:not(.is-grouped) {
|
|
493
718
|
opacity: 0.35;
|
|
494
719
|
}
|
|
495
720
|
|
|
496
|
-
.gridkit-data-grid
|
|
497
|
-
|
|
721
|
+
.gridkit-data-grid
|
|
722
|
+
.gridkit-grid-header
|
|
723
|
+
.gridkit-header-cell:hover
|
|
724
|
+
.gridkit-header-group-toggle,
|
|
725
|
+
.gridkit-data-grid
|
|
726
|
+
.gridkit-header-cell:focus-visible
|
|
727
|
+
.gridkit-header-group-toggle {
|
|
498
728
|
opacity: 1;
|
|
499
729
|
}
|
|
500
730
|
|
|
501
|
-
.gridkit-data-grid .header-group-toggle.is-grouped {
|
|
731
|
+
.gridkit-data-grid .gridkit-header-group-toggle.is-grouped {
|
|
502
732
|
opacity: 1;
|
|
503
733
|
color: var(--gridkit-accent);
|
|
504
734
|
}
|
|
@@ -511,160 +741,196 @@
|
|
|
511
741
|
* filled in accent, while the column is filtered: the one sign of it on
|
|
512
742
|
* screen.
|
|
513
743
|
*/
|
|
514
|
-
.gridkit-data-grid .header-filter-toggle {
|
|
744
|
+
.gridkit-data-grid .gridkit-header-filter-toggle {
|
|
515
745
|
display: inline-flex;
|
|
516
746
|
position: absolute;
|
|
517
747
|
top: 50%;
|
|
518
|
-
right:
|
|
748
|
+
right: calc(var(--gridkit-spacing) * 3);
|
|
519
749
|
transform: translateY(-50%);
|
|
520
750
|
align-items: center;
|
|
521
751
|
cursor: pointer;
|
|
522
752
|
color: var(--gridkit-fg-muted);
|
|
523
753
|
}
|
|
524
754
|
|
|
525
|
-
.gridkit-data-grid .header-filter-toggle svg {
|
|
526
|
-
width:
|
|
527
|
-
height:
|
|
755
|
+
.gridkit-data-grid .gridkit-header-filter-toggle svg {
|
|
756
|
+
width: var(--gridkit-header-icon-size);
|
|
757
|
+
height: var(--gridkit-header-icon-size);
|
|
528
758
|
flex-shrink: 0;
|
|
529
759
|
}
|
|
530
760
|
|
|
531
|
-
.gridkit-data-grid .header-filter-toggle:not(.is-filtered) {
|
|
761
|
+
.gridkit-data-grid .gridkit-header-filter-toggle:not(.is-filtered) {
|
|
532
762
|
opacity: 0;
|
|
533
763
|
}
|
|
534
764
|
|
|
535
|
-
.gridkit-data-grid
|
|
536
|
-
|
|
765
|
+
.gridkit-data-grid
|
|
766
|
+
.gridkit-grid-header
|
|
767
|
+
.gridkit-header-cell:hover
|
|
768
|
+
.gridkit-header-filter-toggle,
|
|
769
|
+
.gridkit-data-grid
|
|
770
|
+
.gridkit-header-cell:focus-visible
|
|
771
|
+
.gridkit-header-filter-toggle {
|
|
537
772
|
opacity: 1;
|
|
538
773
|
}
|
|
539
774
|
|
|
540
|
-
.gridkit-data-grid .header-filter-toggle.is-filtered {
|
|
775
|
+
.gridkit-data-grid .gridkit-header-filter-toggle.is-filtered {
|
|
541
776
|
color: var(--gridkit-accent);
|
|
542
777
|
}
|
|
543
778
|
|
|
544
|
-
.gridkit-data-grid .header-filter-toggle.is-filtered svg {
|
|
779
|
+
.gridkit-data-grid .gridkit-header-filter-toggle.is-filtered svg {
|
|
545
780
|
fill: currentColor;
|
|
546
781
|
}
|
|
547
782
|
|
|
548
783
|
.gridkit-data-grid
|
|
549
|
-
.header-cell:has(> .header-filter-toggle)
|
|
550
|
-
.header-sort-toggle {
|
|
551
|
-
|
|
784
|
+
.gridkit-header-cell:has(> .gridkit-header-filter-toggle)
|
|
785
|
+
.gridkit-header-sort-toggle {
|
|
786
|
+
/* The filter button's offset and width, then a gap. */
|
|
787
|
+
right: calc(var(--gridkit-spacing) * 4.5 + var(--gridkit-header-icon-size));
|
|
552
788
|
}
|
|
553
789
|
|
|
554
|
-
.gridkit-data-grid .grid-cell {
|
|
555
|
-
padding:
|
|
790
|
+
.gridkit-data-grid .gridkit-grid-cell {
|
|
791
|
+
padding: var(--gridkit-cell-padding-y) var(--gridkit-cell-padding-x);
|
|
556
792
|
}
|
|
557
793
|
|
|
558
|
-
.gridkit-data-grid:not(.no-hover-cells) .grid-cell:hover {
|
|
559
|
-
outline:
|
|
794
|
+
.gridkit-data-grid:not(.gridkit-no-hover-cells) .gridkit-grid-cell:hover {
|
|
795
|
+
outline: var(--gridkit-border-width) solid var(--gridkit-hover-line);
|
|
560
796
|
background-color: var(--gridkit-surface-muted);
|
|
561
797
|
}
|
|
562
798
|
|
|
563
|
-
|
|
564
|
-
|
|
799
|
+
/*
|
|
800
|
+
* Every second row, told by its `data-gridkit-row-index` ending in an odd
|
|
801
|
+
* digit. Not `:nth-child`: a virtualized grid mounts only the rows near the
|
|
802
|
+
* scroll position, after a spacer row, so a row's place among its siblings
|
|
803
|
+
* changes as it scrolls while its index does not. Ahead of the hover and
|
|
804
|
+
* selection rules, which win over it.
|
|
805
|
+
*/
|
|
806
|
+
.gridkit-data-grid
|
|
807
|
+
.gridkit-grid-row:where(
|
|
808
|
+
[data-gridkit-row-index$="1"],
|
|
809
|
+
[data-gridkit-row-index$="3"],
|
|
810
|
+
[data-gridkit-row-index$="5"],
|
|
811
|
+
[data-gridkit-row-index$="7"],
|
|
812
|
+
[data-gridkit-row-index$="9"]
|
|
813
|
+
) {
|
|
814
|
+
background-color: var(--gridkit-row-stripe-bg);
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
.gridkit-data-grid:not(.gridkit-no-hover-rows) .gridkit-grid-row:hover {
|
|
818
|
+
background-color: var(--gridkit-row-hover-bg);
|
|
565
819
|
}
|
|
566
820
|
|
|
567
821
|
/*
|
|
568
|
-
* A group header — one cell spanning every column, not a `.grid-cell` — so
|
|
822
|
+
* A group header — one cell spanning every column, not a `.gridkit-grid-cell` — so
|
|
569
823
|
* it gets its own rules rather than sharing the data-cell ones above.
|
|
570
824
|
*/
|
|
571
|
-
.gridkit-data-grid .grid-group-row {
|
|
825
|
+
.gridkit-data-grid .gridkit-grid-group-row {
|
|
572
826
|
cursor: pointer;
|
|
573
|
-
background-color: var(--gridkit-
|
|
827
|
+
background-color: var(--gridkit-group-row-bg);
|
|
574
828
|
}
|
|
575
829
|
|
|
576
|
-
.gridkit-data-grid .grid-group-row:hover {
|
|
830
|
+
.gridkit-data-grid .gridkit-grid-group-row:hover {
|
|
577
831
|
background-color: var(--gridkit-selected);
|
|
578
832
|
}
|
|
579
833
|
|
|
580
834
|
/*
|
|
581
|
-
* Padding lives on `.grid-group-cell-content` (the inner `div`), not here:
|
|
835
|
+
* Padding lives on `.gridkit-grid-group-cell-content` (the inner `div`), not here:
|
|
582
836
|
* see that component's own note on why the flex layout is one level in
|
|
583
837
|
* rather than on the `<td>` itself.
|
|
584
838
|
*/
|
|
585
|
-
.gridkit-data-grid .grid-group-cell {
|
|
839
|
+
.gridkit-data-grid .gridkit-grid-group-cell {
|
|
586
840
|
padding: 0;
|
|
587
841
|
}
|
|
588
842
|
|
|
589
|
-
.gridkit-data-grid .grid-group-cell:focus-visible {
|
|
590
|
-
outline:
|
|
591
|
-
outline-offset: -
|
|
843
|
+
.gridkit-data-grid .gridkit-grid-group-cell:focus-visible {
|
|
844
|
+
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
845
|
+
outline-offset: calc(var(--gridkit-focus-ring-width) * -1);
|
|
592
846
|
}
|
|
593
847
|
|
|
594
|
-
.gridkit-data-grid .grid-group-cell-content {
|
|
848
|
+
.gridkit-data-grid .gridkit-grid-group-cell-content {
|
|
595
849
|
display: flex;
|
|
596
850
|
align-items: center;
|
|
597
|
-
gap:
|
|
598
|
-
padding:
|
|
599
|
-
font-weight:
|
|
851
|
+
gap: calc(var(--gridkit-spacing) * 2);
|
|
852
|
+
padding: var(--gridkit-cell-padding-y) var(--gridkit-cell-padding-x);
|
|
853
|
+
font-weight: var(--gridkit-group-font-weight);
|
|
600
854
|
}
|
|
601
855
|
|
|
602
856
|
/* A right-pointing triangle that rotates open on expand. */
|
|
603
|
-
.gridkit-data-grid .grid-group-row .group-toggle {
|
|
857
|
+
.gridkit-data-grid .gridkit-grid-group-row .gridkit-group-toggle {
|
|
604
858
|
display: inline-block;
|
|
605
859
|
flex-shrink: 0;
|
|
606
860
|
width: 0;
|
|
607
861
|
height: 0;
|
|
608
862
|
border-style: solid;
|
|
609
|
-
border-width:
|
|
863
|
+
border-width: calc(var(--gridkit-icon-size) / 4) 0
|
|
864
|
+
calc(var(--gridkit-icon-size) / 4) calc(var(--gridkit-icon-size) * 0.4);
|
|
610
865
|
border-color: transparent transparent transparent var(--gridkit-fg-muted);
|
|
611
|
-
transition: transform
|
|
866
|
+
transition: transform var(--gridkit-transition-duration) ease;
|
|
612
867
|
}
|
|
613
868
|
|
|
614
|
-
.gridkit-data-grid .grid-group-row .group-toggle.is-expanded {
|
|
869
|
+
.gridkit-data-grid .gridkit-grid-group-row .gridkit-group-toggle.is-expanded {
|
|
615
870
|
transform: rotate(90deg);
|
|
616
871
|
}
|
|
617
872
|
|
|
618
|
-
|
|
873
|
+
/*
|
|
874
|
+
* Set on the rule rather than on `--gridkit-transition-duration`, so a
|
|
875
|
+
* theme's own duration can't bring the motion back.
|
|
876
|
+
*/
|
|
877
|
+
@media (prefers-reduced-motion: reduce) {
|
|
878
|
+
.gridkit-data-grid .gridkit-grid-group-row .gridkit-group-toggle {
|
|
879
|
+
transition: none;
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.gridkit-data-grid .gridkit-grid-group-row .gridkit-group-count {
|
|
619
884
|
font-weight: 400;
|
|
620
885
|
color: var(--gridkit-fg-muted);
|
|
621
886
|
}
|
|
622
887
|
|
|
623
888
|
/*
|
|
624
889
|
* A group's own subtotals, inline after its count — `gap` on the parent
|
|
625
|
-
* `.grid-group-cell-content` already spaces every child, this just keeps
|
|
890
|
+
* `.gridkit-grid-group-cell-content` already spaces every child, this just keeps
|
|
626
891
|
* multiple aggregates readable as a list rather than running together.
|
|
627
892
|
*/
|
|
628
|
-
.gridkit-data-grid .grid-group-row .group-aggregates {
|
|
893
|
+
.gridkit-data-grid .gridkit-grid-group-row .gridkit-group-aggregates {
|
|
629
894
|
display: flex;
|
|
630
|
-
gap:
|
|
631
|
-
margin-inline-start:
|
|
895
|
+
gap: calc(var(--gridkit-spacing) * 3);
|
|
896
|
+
margin-inline-start: calc(var(--gridkit-spacing) * 2);
|
|
632
897
|
font-weight: 400;
|
|
633
898
|
}
|
|
634
899
|
|
|
635
|
-
.gridkit-data-grid .grid-group-row .group-aggregate {
|
|
900
|
+
.gridkit-data-grid .gridkit-grid-group-row .gridkit-group-aggregate {
|
|
636
901
|
color: var(--gridkit-fg-muted);
|
|
637
902
|
}
|
|
638
903
|
|
|
639
904
|
/*
|
|
640
|
-
* The grand-total footer, styled as the header's counterpart:
|
|
641
|
-
* surface
|
|
642
|
-
*
|
|
905
|
+
* The grand-total footer, styled as the header's counterpart: the
|
|
906
|
+
* surface the header has by default, the same cell padding, and the weight
|
|
907
|
+
* of the group rows' totals. No border by default, matching the
|
|
908
|
+
* header's own `.gridkit-header-cell` — see the `gridkit-borders-*` variants below for
|
|
643
909
|
* the opt-in top border that echoes the header's bottom one.
|
|
644
910
|
*/
|
|
645
|
-
.gridkit-data-grid .grid-footer {
|
|
911
|
+
.gridkit-data-grid .gridkit-grid-footer {
|
|
646
912
|
background-color: var(--gridkit-surface);
|
|
647
913
|
}
|
|
648
914
|
|
|
649
|
-
.gridkit-data-grid .grid-footer-cell {
|
|
650
|
-
padding:
|
|
651
|
-
font-weight:
|
|
915
|
+
.gridkit-data-grid .gridkit-grid-footer-cell {
|
|
916
|
+
padding: var(--gridkit-cell-padding-y) var(--gridkit-cell-padding-x);
|
|
917
|
+
font-weight: var(--gridkit-group-font-weight);
|
|
652
918
|
}
|
|
653
919
|
|
|
654
920
|
/*
|
|
655
921
|
* A group's own summary row (`groupAggregateDisplay: "row"`) — the
|
|
656
|
-
* per-column-cell alternative to `.group-aggregates`' inline text.
|
|
657
|
-
* Shares the group header's
|
|
922
|
+
* per-column-cell alternative to `.gridkit-group-aggregates`' inline text.
|
|
923
|
+
* Shares the group header's background so the pair read as one unit,
|
|
658
924
|
* but is presentational: no hover state, no pointer cursor, matching
|
|
659
925
|
* `GridGroupSummaryRow`'s own lack of any click/focus handling.
|
|
660
926
|
*/
|
|
661
|
-
.gridkit-data-grid .grid-group-summary-row {
|
|
662
|
-
background-color: var(--gridkit-
|
|
927
|
+
.gridkit-data-grid .gridkit-grid-group-summary-row {
|
|
928
|
+
background-color: var(--gridkit-group-row-bg);
|
|
663
929
|
}
|
|
664
930
|
|
|
665
|
-
.gridkit-data-grid .grid-group-summary-cell {
|
|
666
|
-
padding:
|
|
667
|
-
font-weight:
|
|
931
|
+
.gridkit-data-grid .gridkit-grid-group-summary-cell {
|
|
932
|
+
padding: var(--gridkit-cell-padding-y) var(--gridkit-cell-padding-x);
|
|
933
|
+
font-weight: var(--gridkit-group-font-weight);
|
|
668
934
|
}
|
|
669
935
|
|
|
670
936
|
/*
|
|
@@ -672,8 +938,8 @@
|
|
|
672
938
|
* `aria-rowcount` (see `GridBody`), so this is a purely visual cue, not an
|
|
673
939
|
* announced one.
|
|
674
940
|
*/
|
|
675
|
-
.gridkit-data-grid .grid-loading-cell {
|
|
676
|
-
padding:
|
|
941
|
+
.gridkit-data-grid .gridkit-grid-loading-cell {
|
|
942
|
+
padding: var(--gridkit-cell-padding-y) var(--gridkit-cell-padding-x);
|
|
677
943
|
color: var(--gridkit-fg-muted);
|
|
678
944
|
text-align: center;
|
|
679
945
|
}
|
|
@@ -685,7 +951,7 @@
|
|
|
685
951
|
* itself, so the cell's own content still aligns flush with the column
|
|
686
952
|
* above and below it once the indent's width is accounted for.
|
|
687
953
|
*/
|
|
688
|
-
.gridkit-data-grid .grid-group-summary-indent {
|
|
954
|
+
.gridkit-data-grid .gridkit-grid-group-summary-indent {
|
|
689
955
|
display: inline-block;
|
|
690
956
|
}
|
|
691
957
|
|
|
@@ -697,17 +963,19 @@
|
|
|
697
963
|
* A selected cell wins over its row and its column: it is the more specific
|
|
698
964
|
* thing the user pointed at, and the rule below it says so by ordering.
|
|
699
965
|
*/
|
|
700
|
-
.gridkit-data-grid .grid-row.is-selected,
|
|
701
|
-
.gridkit-data-grid .header-cell.is-selected,
|
|
702
|
-
.gridkit-data-grid .grid-cell.is-selected {
|
|
966
|
+
.gridkit-data-grid .gridkit-grid-row.is-selected,
|
|
967
|
+
.gridkit-data-grid .gridkit-header-cell.is-selected,
|
|
968
|
+
.gridkit-data-grid .gridkit-grid-cell.is-selected {
|
|
703
969
|
background-color: var(--gridkit-selected);
|
|
704
970
|
}
|
|
705
971
|
|
|
706
|
-
.gridkit-data-grid:not(.no-hover-rows)
|
|
707
|
-
|
|
708
|
-
.gridkit-data-grid:not(.no-hover-
|
|
709
|
-
.grid-
|
|
710
|
-
|
|
972
|
+
.gridkit-data-grid:not(.gridkit-no-hover-rows)
|
|
973
|
+
.gridkit-grid-row.is-selected:hover,
|
|
974
|
+
.gridkit-data-grid:not(.gridkit-no-hover-cells)
|
|
975
|
+
.gridkit-grid-cell.is-selected:hover,
|
|
976
|
+
.gridkit-data-grid:not(.gridkit-no-hover-columns)
|
|
977
|
+
.gridkit-grid-header
|
|
978
|
+
.gridkit-header-cell.is-selected:hover {
|
|
711
979
|
background-color: var(--gridkit-selected-strong);
|
|
712
980
|
}
|
|
713
981
|
|
|
@@ -718,11 +986,11 @@
|
|
|
718
986
|
* A reorderable header keeps its `grab`: it is the rarer affordance and the
|
|
719
987
|
* one a user would not otherwise guess, and its header still selects.
|
|
720
988
|
*/
|
|
721
|
-
.gridkit-data-grid.selectable-rows .grid-row,
|
|
722
|
-
.gridkit-data-grid.selectable-cells .grid-cell,
|
|
723
|
-
.gridkit-data-grid.selectable-columns
|
|
724
|
-
.grid-header
|
|
725
|
-
.header-cell:not(.is-reorderable) {
|
|
989
|
+
.gridkit-data-grid.gridkit-selectable-rows .gridkit-grid-row,
|
|
990
|
+
.gridkit-data-grid.gridkit-selectable-cells .gridkit-grid-cell,
|
|
991
|
+
.gridkit-data-grid.gridkit-selectable-columns
|
|
992
|
+
.gridkit-grid-header
|
|
993
|
+
.gridkit-header-cell:not(.is-reorderable) {
|
|
726
994
|
cursor: pointer;
|
|
727
995
|
}
|
|
728
996
|
|
|
@@ -735,8 +1003,8 @@
|
|
|
735
1003
|
* this is scoped to a grid that asked for selection rather than applied to
|
|
736
1004
|
* all of them.
|
|
737
1005
|
*/
|
|
738
|
-
.gridkit-data-grid.selectable-rows .grid-row,
|
|
739
|
-
.gridkit-data-grid.selectable-cells .grid-cell {
|
|
1006
|
+
.gridkit-data-grid.gridkit-selectable-rows .gridkit-grid-row,
|
|
1007
|
+
.gridkit-data-grid.gridkit-selectable-cells .gridkit-grid-cell {
|
|
740
1008
|
user-select: none;
|
|
741
1009
|
}
|
|
742
1010
|
|
|
@@ -753,15 +1021,19 @@
|
|
|
753
1021
|
* - header/body seam: the header's own `border-bottom` here. The body's
|
|
754
1022
|
* first row never sets a `border-top` of its own.
|
|
755
1023
|
* - body/footer seam: the footer's own `border-top` (below, alongside
|
|
756
|
-
* `.grid-footer-cell`). The body's last row has its `border-bottom`
|
|
757
|
-
* stripped (below, `.grid-row:last-child`) specifically so it never
|
|
1024
|
+
* `.gridkit-grid-footer-cell`). The body's last row has its `border-bottom`
|
|
1025
|
+
* stripped (below, `.gridkit-grid-row:last-child`) specifically so it never
|
|
758
1026
|
* supplies the other half of this seam.
|
|
759
1027
|
*/
|
|
760
|
-
.gridkit-data-grid.borders-horizontal
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
.gridkit-data-grid.borders-horizontal .grid-
|
|
764
|
-
|
|
1028
|
+
.gridkit-data-grid.gridkit-borders-horizontal
|
|
1029
|
+
.gridkit-grid-header
|
|
1030
|
+
.gridkit-header-cell,
|
|
1031
|
+
.gridkit-data-grid.gridkit-borders-horizontal .gridkit-grid-cell,
|
|
1032
|
+
.gridkit-data-grid.gridkit-borders-horizontal .gridkit-grid-group-cell,
|
|
1033
|
+
.gridkit-data-grid.gridkit-borders-horizontal
|
|
1034
|
+
.gridkit-grid-group-summary-cell {
|
|
1035
|
+
border-bottom: var(--gridkit-row-line-width) var(--gridkit-border-style)
|
|
1036
|
+
var(--gridkit-line);
|
|
765
1037
|
}
|
|
766
1038
|
|
|
767
1039
|
/*
|
|
@@ -769,84 +1041,109 @@
|
|
|
769
1041
|
* a `border-top` rather than a `border-bottom` on the last body row, since
|
|
770
1042
|
* the footer sits in its own `<table>` entirely, sibling to the body's.
|
|
771
1043
|
*/
|
|
772
|
-
.gridkit-data-grid.borders-horizontal .grid-footer-cell,
|
|
773
|
-
.gridkit-data-grid.borders-all .grid-footer-cell {
|
|
774
|
-
border-top:
|
|
1044
|
+
.gridkit-data-grid.gridkit-borders-horizontal .gridkit-grid-footer-cell,
|
|
1045
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-footer-cell {
|
|
1046
|
+
border-top: var(--gridkit-row-line-width) var(--gridkit-border-style)
|
|
1047
|
+
var(--gridkit-line);
|
|
775
1048
|
}
|
|
776
1049
|
|
|
777
1050
|
/*
|
|
778
1051
|
* The last row's bottom edge has no row below it to collapse with, so
|
|
779
|
-
* unlike every internal boundary it is a genuinely extra
|
|
780
|
-
* reason `borders-vertical` drops its `:last-child` border-right below.
|
|
1052
|
+
* unlike every internal boundary it is a genuinely extra line — the same
|
|
1053
|
+
* reason `gridkit-borders-vertical` drops its `:last-child` border-right below.
|
|
781
1054
|
* Matched against both row kinds: the last rendered row can just as well
|
|
782
1055
|
* be a collapsed group header as a data row.
|
|
783
1056
|
*/
|
|
784
|
-
.gridkit-data-grid.borders-horizontal
|
|
785
|
-
|
|
786
|
-
.grid-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
.grid-group-
|
|
790
|
-
|
|
1057
|
+
.gridkit-data-grid.gridkit-borders-horizontal
|
|
1058
|
+
.gridkit-grid-row:last-child
|
|
1059
|
+
.gridkit-grid-cell,
|
|
1060
|
+
.gridkit-data-grid.gridkit-borders-horizontal
|
|
1061
|
+
.gridkit-grid-group-row:last-child
|
|
1062
|
+
.gridkit-grid-group-cell,
|
|
1063
|
+
.gridkit-data-grid.gridkit-borders-horizontal
|
|
1064
|
+
.gridkit-grid-group-summary-row:last-child
|
|
1065
|
+
.gridkit-grid-group-summary-cell {
|
|
791
1066
|
border-bottom: none;
|
|
792
1067
|
}
|
|
793
1068
|
|
|
794
1069
|
/* Vertical borders */
|
|
795
|
-
.gridkit-data-grid.borders-vertical
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
.gridkit-data-grid.borders-vertical .grid-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
.gridkit-data-grid.borders-vertical
|
|
1070
|
+
.gridkit-data-grid.gridkit-borders-vertical
|
|
1071
|
+
.gridkit-grid-header
|
|
1072
|
+
.gridkit-header-cell,
|
|
1073
|
+
.gridkit-data-grid.gridkit-borders-vertical .gridkit-grid-cell,
|
|
1074
|
+
.gridkit-data-grid.gridkit-borders-vertical .gridkit-grid-footer-cell,
|
|
1075
|
+
.gridkit-data-grid.gridkit-borders-vertical .gridkit-grid-group-summary-cell {
|
|
1076
|
+
border-right: var(--gridkit-column-line-width) var(--gridkit-border-style)
|
|
1077
|
+
var(--gridkit-line);
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
.gridkit-data-grid.gridkit-borders-vertical
|
|
1081
|
+
.gridkit-grid-header
|
|
1082
|
+
.gridkit-header-cell:last-child,
|
|
1083
|
+
.gridkit-data-grid.gridkit-borders-vertical .gridkit-grid-cell:last-child,
|
|
1084
|
+
.gridkit-data-grid.gridkit-borders-vertical
|
|
1085
|
+
.gridkit-grid-footer-cell:last-child,
|
|
1086
|
+
.gridkit-data-grid.gridkit-borders-vertical
|
|
1087
|
+
.gridkit-grid-group-summary-cell:last-child {
|
|
806
1088
|
border-right: none;
|
|
807
1089
|
}
|
|
808
1090
|
|
|
809
1091
|
/* Borders on all sides */
|
|
810
|
-
.gridkit-data-grid.borders-all
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
.gridkit-data-grid.borders-all .grid-
|
|
814
|
-
|
|
815
|
-
|
|
1092
|
+
.gridkit-data-grid.gridkit-borders-all
|
|
1093
|
+
.gridkit-grid-header
|
|
1094
|
+
.gridkit-header-cell,
|
|
1095
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-cell,
|
|
1096
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-group-cell,
|
|
1097
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-group-summary-cell {
|
|
1098
|
+
border-bottom: var(--gridkit-row-line-width) var(--gridkit-border-style)
|
|
1099
|
+
var(--gridkit-line);
|
|
1100
|
+
border-right: var(--gridkit-column-line-width) var(--gridkit-border-style)
|
|
1101
|
+
var(--gridkit-line);
|
|
816
1102
|
}
|
|
817
1103
|
|
|
818
|
-
.gridkit-data-grid.borders-all .grid-footer-cell {
|
|
819
|
-
border-right:
|
|
1104
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-footer-cell {
|
|
1105
|
+
border-right: var(--gridkit-column-line-width) var(--gridkit-border-style)
|
|
1106
|
+
var(--gridkit-line);
|
|
820
1107
|
}
|
|
821
1108
|
|
|
822
1109
|
/*
|
|
823
1110
|
* The outer left/right edges have no neighbouring cell to collapse with, so
|
|
824
|
-
* unlike every internal boundary they are a genuinely extra
|
|
825
|
-
* this the table would render
|
|
1111
|
+
* unlike every internal boundary they are a genuinely extra line — without
|
|
1112
|
+
* this the table would render two lines wider than the sum of its columns. A
|
|
826
1113
|
* group cell is both its row's first and last child at once (it is the
|
|
827
1114
|
* only cell), so it takes both exceptions.
|
|
828
1115
|
*/
|
|
829
|
-
.gridkit-data-grid.borders-all
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
.gridkit-data-grid.borders-all .grid-
|
|
833
|
-
.gridkit-data-grid.borders-all .grid-group-
|
|
1116
|
+
.gridkit-data-grid.gridkit-borders-all
|
|
1117
|
+
.gridkit-grid-header
|
|
1118
|
+
.gridkit-header-cell:first-child,
|
|
1119
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-cell:first-child,
|
|
1120
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-group-cell,
|
|
1121
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-footer-cell:first-child,
|
|
1122
|
+
.gridkit-data-grid.gridkit-borders-all
|
|
1123
|
+
.gridkit-grid-group-summary-cell:first-child {
|
|
834
1124
|
border-left: none;
|
|
835
1125
|
}
|
|
836
1126
|
|
|
837
|
-
.gridkit-data-grid.borders-all
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
.gridkit-data-grid.borders-all .grid-
|
|
841
|
-
.gridkit-data-grid.borders-all .grid-group-
|
|
1127
|
+
.gridkit-data-grid.gridkit-borders-all
|
|
1128
|
+
.gridkit-grid-header
|
|
1129
|
+
.gridkit-header-cell:last-child,
|
|
1130
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-cell:last-child,
|
|
1131
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-group-cell,
|
|
1132
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-footer-cell:last-child,
|
|
1133
|
+
.gridkit-data-grid.gridkit-borders-all
|
|
1134
|
+
.gridkit-grid-group-summary-cell:last-child {
|
|
842
1135
|
border-right: none;
|
|
843
1136
|
}
|
|
844
1137
|
|
|
845
|
-
.gridkit-data-grid.borders-all
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
.grid-group-
|
|
1138
|
+
.gridkit-data-grid.gridkit-borders-all
|
|
1139
|
+
.gridkit-grid-row:last-child
|
|
1140
|
+
.gridkit-grid-cell,
|
|
1141
|
+
.gridkit-data-grid.gridkit-borders-all
|
|
1142
|
+
.gridkit-grid-group-row:last-child
|
|
1143
|
+
.gridkit-grid-group-cell,
|
|
1144
|
+
.gridkit-data-grid.gridkit-borders-all
|
|
1145
|
+
.gridkit-grid-group-summary-row:last-child
|
|
1146
|
+
.gridkit-grid-group-summary-cell {
|
|
850
1147
|
border-bottom: none;
|
|
851
1148
|
}
|
|
852
1149
|
|
|
@@ -865,13 +1162,14 @@
|
|
|
865
1162
|
inset-inline-start: 0;
|
|
866
1163
|
display: flex;
|
|
867
1164
|
align-items: center;
|
|
868
|
-
gap:
|
|
869
|
-
padding:
|
|
1165
|
+
gap: calc(var(--gridkit-spacing) * 2);
|
|
1166
|
+
padding: var(--gridkit-toolbar-padding);
|
|
870
1167
|
overflow: hidden;
|
|
871
|
-
font-size:
|
|
1168
|
+
font-size: var(--gridkit-bar-font-size);
|
|
872
1169
|
color: var(--gridkit-fg);
|
|
873
1170
|
background-color: var(--gridkit-surface);
|
|
874
|
-
border-bottom:
|
|
1171
|
+
border-bottom: var(--gridkit-border-width) var(--gridkit-border-style)
|
|
1172
|
+
var(--gridkit-line);
|
|
875
1173
|
}
|
|
876
1174
|
|
|
877
1175
|
.gridkit-toolbar > * {
|
|
@@ -883,70 +1181,70 @@
|
|
|
883
1181
|
* they can be wider than the toolbar. "More" then sticks to its end edge,
|
|
884
1182
|
* over what is clipped there, rather than being clipped itself.
|
|
885
1183
|
*/
|
|
886
|
-
.gridkit-toolbar > .toolbar-more {
|
|
1184
|
+
.gridkit-toolbar > .gridkit-toolbar-more {
|
|
887
1185
|
position: sticky;
|
|
888
1186
|
/* Counted from the toolbar's padding edge, so its padding again. */
|
|
889
|
-
inset-inline-end:
|
|
1187
|
+
inset-inline-end: var(--gridkit-toolbar-padding);
|
|
890
1188
|
}
|
|
891
1189
|
|
|
892
1190
|
/* A command, a dropdown, or "More". */
|
|
893
|
-
.toolbar-button {
|
|
1191
|
+
.gridkit-toolbar-button {
|
|
894
1192
|
display: inline-flex;
|
|
895
1193
|
align-items: center;
|
|
896
|
-
gap:
|
|
897
|
-
padding:
|
|
1194
|
+
gap: calc(var(--gridkit-spacing) * 1.5);
|
|
1195
|
+
padding: var(--gridkit-spacing) calc(var(--gridkit-spacing) * 2.5);
|
|
898
1196
|
font: inherit;
|
|
899
1197
|
color: var(--gridkit-fg);
|
|
900
1198
|
white-space: nowrap;
|
|
901
1199
|
cursor: pointer;
|
|
902
1200
|
background-color: var(--gridkit-surface);
|
|
903
|
-
border:
|
|
904
|
-
border-radius:
|
|
1201
|
+
border: var(--gridkit-border-width) solid var(--gridkit-line);
|
|
1202
|
+
border-radius: var(--gridkit-control-radius);
|
|
905
1203
|
}
|
|
906
1204
|
|
|
907
|
-
.toolbar-button:hover:not([aria-disabled="true"]),
|
|
908
|
-
.toolbar-button[aria-expanded="true"] {
|
|
1205
|
+
.gridkit-toolbar-button:hover:not([aria-disabled="true"]),
|
|
1206
|
+
.gridkit-toolbar-button[aria-expanded="true"] {
|
|
909
1207
|
background-color: var(--gridkit-surface-muted);
|
|
910
1208
|
}
|
|
911
1209
|
|
|
912
|
-
.toolbar-button:focus-visible {
|
|
913
|
-
outline:
|
|
1210
|
+
.gridkit-toolbar-button:focus-visible {
|
|
1211
|
+
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
914
1212
|
outline-offset: 1px;
|
|
915
1213
|
}
|
|
916
1214
|
|
|
917
1215
|
/* Still focusable, as a menu's disabled item is, so a screen reader finds it. */
|
|
918
|
-
.toolbar-button[aria-disabled="true"] {
|
|
1216
|
+
.gridkit-toolbar-button[aria-disabled="true"] {
|
|
919
1217
|
color: var(--gridkit-fg-muted);
|
|
920
1218
|
cursor: default;
|
|
921
1219
|
opacity: 0.5;
|
|
922
1220
|
}
|
|
923
1221
|
|
|
924
1222
|
/* A toggle that is on. */
|
|
925
|
-
.toolbar-button[aria-pressed="true"],
|
|
926
|
-
.toolbar-button[aria-pressed="true"]:hover {
|
|
1223
|
+
.gridkit-toolbar-button[aria-pressed="true"],
|
|
1224
|
+
.gridkit-toolbar-button[aria-pressed="true"]:hover {
|
|
927
1225
|
background-color: var(--gridkit-selected-strong);
|
|
928
1226
|
border-color: var(--gridkit-accent);
|
|
929
1227
|
}
|
|
930
1228
|
|
|
931
|
-
.toolbar-button-icon,
|
|
932
|
-
.toolbar-button-indicator {
|
|
1229
|
+
.gridkit-toolbar-button-icon,
|
|
1230
|
+
.gridkit-toolbar-button-indicator {
|
|
933
1231
|
display: inline-flex;
|
|
934
1232
|
color: var(--gridkit-fg-muted);
|
|
935
1233
|
}
|
|
936
1234
|
|
|
937
1235
|
/* An icon key the grid has no glyph for draws nothing, and takes no room. */
|
|
938
|
-
.toolbar-button-icon:empty {
|
|
1236
|
+
.gridkit-toolbar-button-icon:empty {
|
|
939
1237
|
display: none;
|
|
940
1238
|
}
|
|
941
1239
|
|
|
942
|
-
.toolbar-button-icon svg,
|
|
943
|
-
.toolbar-button-indicator svg {
|
|
944
|
-
width:
|
|
945
|
-
height:
|
|
1240
|
+
.gridkit-toolbar-button-icon svg,
|
|
1241
|
+
.gridkit-toolbar-button-indicator svg {
|
|
1242
|
+
width: var(--gridkit-icon-size);
|
|
1243
|
+
height: var(--gridkit-icon-size);
|
|
946
1244
|
}
|
|
947
1245
|
|
|
948
|
-
.toolbar-button-indicator {
|
|
949
|
-
margin-inline-end: -
|
|
1246
|
+
.gridkit-toolbar-button-indicator {
|
|
1247
|
+
margin-inline-end: calc(var(--gridkit-spacing) * -1);
|
|
950
1248
|
}
|
|
951
1249
|
|
|
952
1250
|
/*
|
|
@@ -954,40 +1252,40 @@
|
|
|
954
1252
|
* what else is in it, which the overflow would measure as a width of its
|
|
955
1253
|
* own — so it leaves room for "More" beside it.
|
|
956
1254
|
*/
|
|
957
|
-
.toolbar-search {
|
|
1255
|
+
.gridkit-toolbar-search {
|
|
958
1256
|
width: 12rem;
|
|
959
1257
|
max-width: 50%;
|
|
960
|
-
padding:
|
|
1258
|
+
padding: var(--gridkit-spacing) calc(var(--gridkit-spacing) * 2);
|
|
961
1259
|
font: inherit;
|
|
962
1260
|
color: var(--gridkit-fg);
|
|
963
1261
|
background-color: var(--gridkit-surface);
|
|
964
|
-
border:
|
|
965
|
-
border-radius:
|
|
1262
|
+
border: var(--gridkit-border-width) solid var(--gridkit-line);
|
|
1263
|
+
border-radius: var(--gridkit-control-radius);
|
|
966
1264
|
}
|
|
967
1265
|
|
|
968
|
-
.toolbar-search::placeholder {
|
|
1266
|
+
.gridkit-toolbar-search::placeholder {
|
|
969
1267
|
color: var(--gridkit-fg-muted);
|
|
970
1268
|
}
|
|
971
1269
|
|
|
972
|
-
.toolbar-search:focus-visible {
|
|
973
|
-
outline:
|
|
1270
|
+
.gridkit-toolbar-search:focus-visible {
|
|
1271
|
+
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
974
1272
|
outline-offset: 1px;
|
|
975
1273
|
}
|
|
976
1274
|
|
|
977
|
-
.toolbar-separator {
|
|
1275
|
+
.gridkit-toolbar-separator {
|
|
978
1276
|
align-self: stretch;
|
|
979
|
-
width:
|
|
980
|
-
margin: 0.
|
|
1277
|
+
width: var(--gridkit-border-width);
|
|
1278
|
+
margin: calc(var(--gridkit-spacing) * 0.5) 0;
|
|
981
1279
|
background-color: var(--gridkit-line);
|
|
982
1280
|
}
|
|
983
1281
|
|
|
984
1282
|
/* Takes the free space, pushing what follows it to the far end. */
|
|
985
|
-
.gridkit-toolbar > .toolbar-spacer {
|
|
1283
|
+
.gridkit-toolbar > .gridkit-toolbar-spacer {
|
|
986
1284
|
flex: 1 1 0;
|
|
987
1285
|
}
|
|
988
1286
|
|
|
989
1287
|
/* Holds what `renderToolbarItem` drew. */
|
|
990
|
-
.toolbar-custom {
|
|
1288
|
+
.gridkit-toolbar-custom {
|
|
991
1289
|
display: inline-flex;
|
|
992
1290
|
align-items: center;
|
|
993
1291
|
}
|
|
@@ -1001,10 +1299,11 @@
|
|
|
1001
1299
|
display: flex;
|
|
1002
1300
|
flex-wrap: wrap;
|
|
1003
1301
|
align-items: center;
|
|
1004
|
-
gap:
|
|
1005
|
-
padding:
|
|
1302
|
+
gap: calc(var(--gridkit-spacing) * 2);
|
|
1303
|
+
padding: var(--gridkit-group-by-bar-padding);
|
|
1006
1304
|
background-color: var(--gridkit-surface);
|
|
1007
|
-
border-bottom:
|
|
1305
|
+
border-bottom: var(--gridkit-border-width) var(--gridkit-border-style)
|
|
1306
|
+
var(--gridkit-line);
|
|
1008
1307
|
}
|
|
1009
1308
|
|
|
1010
1309
|
/*
|
|
@@ -1016,8 +1315,8 @@
|
|
|
1016
1315
|
* the bar's background once hovered — the marks are enough on their own.
|
|
1017
1316
|
*/
|
|
1018
1317
|
.gridkit-group-by-bar.is-drag-target {
|
|
1019
|
-
outline:
|
|
1020
|
-
outline-offset: -
|
|
1318
|
+
outline: var(--gridkit-indicator-width) dashed var(--gridkit-accent);
|
|
1319
|
+
outline-offset: calc(var(--gridkit-indicator-width) * -1);
|
|
1021
1320
|
}
|
|
1022
1321
|
|
|
1023
1322
|
/*
|
|
@@ -1028,22 +1327,22 @@
|
|
|
1028
1327
|
*/
|
|
1029
1328
|
.gridkit-group-by-bar.is-drag-blocked {
|
|
1030
1329
|
cursor: not-allowed;
|
|
1031
|
-
outline:
|
|
1032
|
-
outline-offset: -
|
|
1330
|
+
outline: var(--gridkit-indicator-width) dashed var(--gridkit-line);
|
|
1331
|
+
outline-offset: calc(var(--gridkit-indicator-width) * -1);
|
|
1033
1332
|
}
|
|
1034
1333
|
|
|
1035
|
-
.group-by-bar-placeholder {
|
|
1036
|
-
font-size:
|
|
1334
|
+
.gridkit-group-by-bar-placeholder {
|
|
1335
|
+
font-size: var(--gridkit-bar-font-size);
|
|
1037
1336
|
color: var(--gridkit-fg-muted);
|
|
1038
1337
|
}
|
|
1039
1338
|
|
|
1040
|
-
.group-by-chip {
|
|
1339
|
+
.gridkit-group-by-chip {
|
|
1041
1340
|
position: relative;
|
|
1042
1341
|
display: inline-flex;
|
|
1043
1342
|
align-items: center;
|
|
1044
|
-
gap:
|
|
1045
|
-
padding:
|
|
1046
|
-
font-size:
|
|
1343
|
+
gap: calc(var(--gridkit-spacing) * 1.5);
|
|
1344
|
+
padding: var(--gridkit-spacing) calc(var(--gridkit-spacing) * 2);
|
|
1345
|
+
font-size: var(--gridkit-bar-font-size);
|
|
1047
1346
|
color: var(--gridkit-fg);
|
|
1048
1347
|
background-color: var(--gridkit-selected);
|
|
1049
1348
|
border-radius: 9999px;
|
|
@@ -1052,67 +1351,71 @@
|
|
|
1052
1351
|
user-select: none;
|
|
1053
1352
|
}
|
|
1054
1353
|
|
|
1055
|
-
.group-by-chip:focus-visible {
|
|
1056
|
-
outline:
|
|
1354
|
+
.gridkit-group-by-chip:focus-visible {
|
|
1355
|
+
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1057
1356
|
outline-offset: 1px;
|
|
1058
1357
|
}
|
|
1059
1358
|
|
|
1060
|
-
.group-by-chip.is-dragging {
|
|
1359
|
+
.gridkit-group-by-chip.is-dragging {
|
|
1061
1360
|
cursor: grabbing;
|
|
1062
1361
|
opacity: 0.5;
|
|
1063
1362
|
}
|
|
1064
1363
|
|
|
1065
1364
|
/*
|
|
1066
|
-
* Where the chip would land. `.header-cell.is-drop-before`/`.is-drop-after`
|
|
1365
|
+
* Where the chip would land. `.gridkit-header-cell.is-drop-before`/`.is-drop-after`
|
|
1067
1366
|
* draw this as an inset line, but an inset line on a pill this round would
|
|
1068
1367
|
* be clipped by the chip's own `border-radius` into a curved sliver rather
|
|
1069
1368
|
* than a clean mark — so this is a `::before`/`::after` mark of its own
|
|
1070
|
-
* instead,
|
|
1369
|
+
* instead, centred in the bar's gap beside the chip. Absolutely positioned and
|
|
1071
1370
|
* so out of flow, it never shifts the chip or its neighbors the way a
|
|
1072
1371
|
* change to border or padding would.
|
|
1073
1372
|
*/
|
|
1074
|
-
.group-by-chip.is-drop-before::before,
|
|
1075
|
-
.group-by-chip.is-drop-after::after {
|
|
1373
|
+
.gridkit-group-by-chip.is-drop-before::before,
|
|
1374
|
+
.gridkit-group-by-chip.is-drop-after::after {
|
|
1076
1375
|
content: "";
|
|
1077
1376
|
position: absolute;
|
|
1078
1377
|
top: 0;
|
|
1079
1378
|
bottom: 0;
|
|
1080
|
-
width:
|
|
1081
|
-
border-radius:
|
|
1379
|
+
width: var(--gridkit-indicator-width);
|
|
1380
|
+
border-radius: calc(var(--gridkit-indicator-width) / 2);
|
|
1082
1381
|
background-color: var(--gridkit-accent);
|
|
1083
1382
|
}
|
|
1084
1383
|
|
|
1085
|
-
.group-by-chip.is-drop-before::before {
|
|
1086
|
-
left: calc(
|
|
1384
|
+
.gridkit-group-by-chip.is-drop-before::before {
|
|
1385
|
+
left: calc(
|
|
1386
|
+
var(--gridkit-spacing) * -1 - var(--gridkit-indicator-width) / 2
|
|
1387
|
+
);
|
|
1087
1388
|
}
|
|
1088
1389
|
|
|
1089
|
-
.group-by-chip.is-drop-after::after {
|
|
1090
|
-
right: calc(
|
|
1390
|
+
.gridkit-group-by-chip.is-drop-after::after {
|
|
1391
|
+
right: calc(
|
|
1392
|
+
var(--gridkit-spacing) * -1 - var(--gridkit-indicator-width) / 2
|
|
1393
|
+
);
|
|
1091
1394
|
}
|
|
1092
1395
|
|
|
1093
1396
|
/*
|
|
1094
1397
|
* The chip trailing the pointer mid-drag. Unlike the header's own
|
|
1095
|
-
* `.gridkit-data-grid.drag-ghost` this can't share that compound selector
|
|
1398
|
+
* `.gridkit-data-grid.gridkit-drag-ghost` this can't share that compound selector
|
|
1096
1399
|
* — a chip ghost isn't part of the grid's own table — so it restates the
|
|
1097
1400
|
* positioning in full rather than only the parts that differ.
|
|
1098
1401
|
*/
|
|
1099
|
-
.group-by-chip.drag-ghost {
|
|
1402
|
+
.gridkit-group-by-chip.gridkit-drag-ghost {
|
|
1100
1403
|
position: fixed;
|
|
1101
1404
|
top: 0;
|
|
1102
1405
|
left: 0;
|
|
1103
1406
|
z-index: 50;
|
|
1104
|
-
border:
|
|
1407
|
+
border: var(--gridkit-border-width) dashed var(--gridkit-accent);
|
|
1105
1408
|
opacity: 0.75;
|
|
1106
1409
|
pointer-events: none;
|
|
1107
1410
|
will-change: transform;
|
|
1108
1411
|
}
|
|
1109
1412
|
|
|
1110
|
-
.group-by-chip-remove {
|
|
1413
|
+
.gridkit-group-by-chip-remove {
|
|
1111
1414
|
display: inline-flex;
|
|
1112
1415
|
align-items: center;
|
|
1113
1416
|
justify-content: center;
|
|
1114
|
-
width:
|
|
1115
|
-
height:
|
|
1417
|
+
width: var(--gridkit-icon-size);
|
|
1418
|
+
height: var(--gridkit-icon-size);
|
|
1116
1419
|
padding: 0;
|
|
1117
1420
|
line-height: 1;
|
|
1118
1421
|
color: inherit;
|
|
@@ -1121,12 +1424,12 @@
|
|
|
1121
1424
|
border: none;
|
|
1122
1425
|
}
|
|
1123
1426
|
|
|
1124
|
-
.group-by-chip-remove:hover {
|
|
1427
|
+
.gridkit-group-by-chip-remove:hover {
|
|
1125
1428
|
color: var(--gridkit-accent);
|
|
1126
1429
|
}
|
|
1127
1430
|
|
|
1128
|
-
.group-by-chip-remove:focus-visible {
|
|
1129
|
-
outline:
|
|
1431
|
+
.gridkit-group-by-chip-remove:focus-visible {
|
|
1432
|
+
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1130
1433
|
outline-offset: 1px;
|
|
1131
1434
|
}
|
|
1132
1435
|
|
|
@@ -1139,12 +1442,13 @@
|
|
|
1139
1442
|
display: flex;
|
|
1140
1443
|
flex-wrap: wrap;
|
|
1141
1444
|
align-items: center;
|
|
1142
|
-
gap:
|
|
1143
|
-
padding:
|
|
1144
|
-
font-size:
|
|
1445
|
+
gap: calc(var(--gridkit-spacing) * 2) calc(var(--gridkit-spacing) * 4);
|
|
1446
|
+
padding: var(--gridkit-pager-padding);
|
|
1447
|
+
font-size: var(--gridkit-bar-font-size);
|
|
1145
1448
|
color: var(--gridkit-fg);
|
|
1146
1449
|
background-color: var(--gridkit-surface);
|
|
1147
|
-
border-top:
|
|
1450
|
+
border-top: var(--gridkit-border-width) var(--gridkit-border-style)
|
|
1451
|
+
var(--gridkit-line);
|
|
1148
1452
|
}
|
|
1149
1453
|
|
|
1150
1454
|
/*
|
|
@@ -1155,20 +1459,20 @@
|
|
|
1155
1459
|
* page count's digits, which the pager sets) in tabular numerals, so with
|
|
1156
1460
|
* `paginationWindow`'s constant slot count the arrows never move.
|
|
1157
1461
|
*/
|
|
1158
|
-
.grid-pager-bar {
|
|
1159
|
-
--gridkit-pager-segment:
|
|
1462
|
+
.gridkit-grid-pager-bar {
|
|
1463
|
+
--gridkit-pager-segment: calc(var(--gridkit-spacing) * 8);
|
|
1160
1464
|
display: inline-flex;
|
|
1161
1465
|
align-items: stretch;
|
|
1162
1466
|
height: var(--gridkit-pager-segment);
|
|
1163
1467
|
font-variant-numeric: tabular-nums;
|
|
1164
1468
|
background-color: var(--gridkit-surface);
|
|
1165
|
-
border:
|
|
1469
|
+
border: var(--gridkit-border-width) solid var(--gridkit-line);
|
|
1166
1470
|
border-radius: var(--gridkit-radius);
|
|
1167
1471
|
}
|
|
1168
1472
|
|
|
1169
|
-
.grid-pager-button,
|
|
1170
|
-
.grid-pager-ellipsis,
|
|
1171
|
-
.grid-pager-status-slot {
|
|
1473
|
+
.gridkit-grid-pager-button,
|
|
1474
|
+
.gridkit-grid-pager-ellipsis,
|
|
1475
|
+
.gridkit-grid-pager-status-slot {
|
|
1172
1476
|
position: relative;
|
|
1173
1477
|
box-sizing: border-box;
|
|
1174
1478
|
display: inline-flex;
|
|
@@ -1182,53 +1486,61 @@
|
|
|
1182
1486
|
color: var(--gridkit-fg);
|
|
1183
1487
|
background-color: transparent;
|
|
1184
1488
|
border: 0;
|
|
1185
|
-
border-inline-start:
|
|
1489
|
+
border-inline-start: var(--gridkit-border-width) solid var(--gridkit-line);
|
|
1186
1490
|
border-radius: 0;
|
|
1187
1491
|
}
|
|
1188
1492
|
|
|
1189
|
-
.grid-pager-bar > :first-child {
|
|
1493
|
+
.gridkit-grid-pager-bar > :first-child {
|
|
1190
1494
|
border-inline-start: 0;
|
|
1191
|
-
border-start-start-radius: calc(
|
|
1192
|
-
|
|
1495
|
+
border-start-start-radius: calc(
|
|
1496
|
+
var(--gridkit-radius) - var(--gridkit-border-width)
|
|
1497
|
+
);
|
|
1498
|
+
border-end-start-radius: calc(
|
|
1499
|
+
var(--gridkit-radius) - var(--gridkit-border-width)
|
|
1500
|
+
);
|
|
1193
1501
|
}
|
|
1194
1502
|
|
|
1195
|
-
.grid-pager-bar > :last-child {
|
|
1196
|
-
border-start-end-radius: calc(
|
|
1197
|
-
|
|
1503
|
+
.gridkit-grid-pager-bar > :last-child {
|
|
1504
|
+
border-start-end-radius: calc(
|
|
1505
|
+
var(--gridkit-radius) - var(--gridkit-border-width)
|
|
1506
|
+
);
|
|
1507
|
+
border-end-end-radius: calc(
|
|
1508
|
+
var(--gridkit-radius) - var(--gridkit-border-width)
|
|
1509
|
+
);
|
|
1198
1510
|
}
|
|
1199
1511
|
|
|
1200
|
-
.grid-pager-button {
|
|
1512
|
+
.gridkit-grid-pager-button {
|
|
1201
1513
|
cursor: pointer;
|
|
1202
1514
|
}
|
|
1203
1515
|
|
|
1204
|
-
.grid-pager-page,
|
|
1205
|
-
.grid-pager-ellipsis {
|
|
1516
|
+
.gridkit-grid-pager-page,
|
|
1517
|
+
.gridkit-grid-pager-ellipsis {
|
|
1206
1518
|
width: max(
|
|
1207
1519
|
var(--gridkit-pager-segment),
|
|
1208
|
-
calc(var(--gridkit-pager-digits, 1) * 1ch +
|
|
1520
|
+
calc(var(--gridkit-pager-digits, 1) * 1ch + var(--gridkit-spacing) * 4)
|
|
1209
1521
|
);
|
|
1210
1522
|
}
|
|
1211
1523
|
|
|
1212
|
-
.grid-pager-nav svg {
|
|
1213
|
-
width:
|
|
1214
|
-
height:
|
|
1524
|
+
.gridkit-grid-pager-nav svg {
|
|
1525
|
+
width: var(--gridkit-icon-size);
|
|
1526
|
+
height: var(--gridkit-icon-size);
|
|
1215
1527
|
}
|
|
1216
1528
|
|
|
1217
|
-
.grid-pager-nav:dir(rtl) svg {
|
|
1529
|
+
.gridkit-grid-pager-nav:dir(rtl) svg {
|
|
1218
1530
|
transform: scaleX(-1);
|
|
1219
1531
|
}
|
|
1220
1532
|
|
|
1221
|
-
.grid-pager-button:hover:not([aria-disabled="true"]) {
|
|
1533
|
+
.gridkit-grid-pager-button:hover:not([aria-disabled="true"]) {
|
|
1222
1534
|
background-color: var(--gridkit-surface-muted);
|
|
1223
1535
|
}
|
|
1224
1536
|
|
|
1225
|
-
.grid-pager-button:focus-visible {
|
|
1537
|
+
.gridkit-grid-pager-button:focus-visible {
|
|
1226
1538
|
z-index: 2;
|
|
1227
|
-
outline:
|
|
1228
|
-
outline-offset: -
|
|
1539
|
+
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1540
|
+
outline-offset: calc(var(--gridkit-focus-ring-width) * -1);
|
|
1229
1541
|
}
|
|
1230
1542
|
|
|
1231
|
-
.grid-pager-button[aria-disabled="true"] {
|
|
1543
|
+
.gridkit-grid-pager-button[aria-disabled="true"] {
|
|
1232
1544
|
color: var(--gridkit-fg-muted);
|
|
1233
1545
|
cursor: default;
|
|
1234
1546
|
}
|
|
@@ -1238,19 +1550,19 @@
|
|
|
1238
1550
|
* focus once it has paged to the end, and its focus ring should not fade
|
|
1239
1551
|
* with it.
|
|
1240
1552
|
*/
|
|
1241
|
-
.grid-pager-button[aria-disabled="true"] svg {
|
|
1553
|
+
.gridkit-grid-pager-button[aria-disabled="true"] svg {
|
|
1242
1554
|
opacity: 0.45;
|
|
1243
1555
|
}
|
|
1244
1556
|
|
|
1245
|
-
.grid-pager-button[aria-current="page"],
|
|
1246
|
-
.grid-pager-button[aria-current="page"]:hover {
|
|
1557
|
+
.gridkit-grid-pager-button[aria-current="page"],
|
|
1558
|
+
.gridkit-grid-pager-button[aria-current="page"]:hover {
|
|
1247
1559
|
z-index: 1;
|
|
1248
1560
|
color: var(--gridkit-accent);
|
|
1249
1561
|
background-color: var(--gridkit-selected);
|
|
1250
|
-
box-shadow: inset 0 0 0
|
|
1562
|
+
box-shadow: inset 0 0 0 var(--gridkit-border-width) var(--gridkit-accent);
|
|
1251
1563
|
}
|
|
1252
1564
|
|
|
1253
|
-
.grid-pager-ellipsis {
|
|
1565
|
+
.gridkit-grid-pager-ellipsis {
|
|
1254
1566
|
color: var(--gridkit-fg-muted);
|
|
1255
1567
|
cursor: default;
|
|
1256
1568
|
user-select: none;
|
|
@@ -1260,47 +1572,48 @@
|
|
|
1260
1572
|
* The compact status, stacked on an invisible copy of its widest text so
|
|
1261
1573
|
* its segment keeps one width from the first page to the last.
|
|
1262
1574
|
*/
|
|
1263
|
-
.grid-pager-status-slot {
|
|
1575
|
+
.gridkit-grid-pager-status-slot {
|
|
1264
1576
|
display: inline-grid;
|
|
1265
|
-
padding: 0
|
|
1577
|
+
padding: 0 calc(var(--gridkit-spacing) * 3);
|
|
1266
1578
|
white-space: nowrap;
|
|
1267
1579
|
}
|
|
1268
1580
|
|
|
1269
|
-
.grid-pager-status,
|
|
1270
|
-
.grid-pager-status-sizer {
|
|
1581
|
+
.gridkit-grid-pager-status,
|
|
1582
|
+
.gridkit-grid-pager-status-sizer {
|
|
1271
1583
|
grid-area: 1 / 1;
|
|
1272
1584
|
text-align: center;
|
|
1273
1585
|
}
|
|
1274
1586
|
|
|
1275
|
-
.grid-pager-status {
|
|
1587
|
+
.gridkit-grid-pager-status {
|
|
1276
1588
|
color: var(--gridkit-fg-muted);
|
|
1277
1589
|
}
|
|
1278
1590
|
|
|
1279
|
-
.grid-pager-status-sizer {
|
|
1591
|
+
.gridkit-grid-pager-status-sizer {
|
|
1280
1592
|
visibility: hidden;
|
|
1281
1593
|
}
|
|
1282
1594
|
|
|
1283
|
-
.grid-pager-page-size {
|
|
1595
|
+
.gridkit-grid-pager-page-size {
|
|
1284
1596
|
display: inline-flex;
|
|
1285
1597
|
align-items: center;
|
|
1286
|
-
gap:
|
|
1598
|
+
gap: calc(var(--gridkit-spacing) * 2);
|
|
1287
1599
|
color: var(--gridkit-fg-muted);
|
|
1288
1600
|
}
|
|
1289
1601
|
|
|
1290
|
-
.grid-pager-page-size select {
|
|
1602
|
+
.gridkit-grid-pager-page-size select {
|
|
1291
1603
|
box-sizing: border-box;
|
|
1292
|
-
|
|
1293
|
-
|
|
1604
|
+
/* As tall as the pager bar beside it. */
|
|
1605
|
+
height: calc(var(--gridkit-spacing) * 8);
|
|
1606
|
+
padding: 0 calc(var(--gridkit-spacing) * 1.5);
|
|
1294
1607
|
font: inherit;
|
|
1295
1608
|
font-variant-numeric: tabular-nums;
|
|
1296
1609
|
color: var(--gridkit-fg);
|
|
1297
1610
|
background-color: var(--gridkit-surface);
|
|
1298
|
-
border:
|
|
1299
|
-
border-radius:
|
|
1611
|
+
border: var(--gridkit-border-width) solid var(--gridkit-line);
|
|
1612
|
+
border-radius: var(--gridkit-control-radius);
|
|
1300
1613
|
}
|
|
1301
1614
|
|
|
1302
|
-
.grid-pager-page-size select:focus-visible {
|
|
1303
|
-
outline:
|
|
1615
|
+
.gridkit-grid-pager-page-size select:focus-visible {
|
|
1616
|
+
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1304
1617
|
outline-offset: 1px;
|
|
1305
1618
|
}
|
|
1306
1619
|
|
|
@@ -1327,22 +1640,24 @@
|
|
|
1327
1640
|
* does not dismiss it, as one outside would.
|
|
1328
1641
|
*/
|
|
1329
1642
|
.gridkit-menu {
|
|
1330
|
-
min-width:
|
|
1643
|
+
min-width: var(--gridkit-menu-min-width);
|
|
1331
1644
|
max-height: 100vh;
|
|
1332
1645
|
overflow-y: auto;
|
|
1333
|
-
padding:
|
|
1334
|
-
font-size:
|
|
1646
|
+
padding: var(--gridkit-spacing) 0;
|
|
1647
|
+
font-size: var(--gridkit-menu-font-size);
|
|
1335
1648
|
background-color: var(--gridkit-surface);
|
|
1336
|
-
border:
|
|
1337
|
-
border-radius:
|
|
1338
|
-
box-shadow:
|
|
1649
|
+
border: var(--gridkit-border-width) solid var(--gridkit-line);
|
|
1650
|
+
border-radius: var(--gridkit-menu-radius);
|
|
1651
|
+
box-shadow: var(--gridkit-overlay-shadow)
|
|
1652
|
+
var(--gridkit-overlay-shadow-color);
|
|
1339
1653
|
}
|
|
1340
1654
|
|
|
1341
|
-
.menu-item {
|
|
1655
|
+
.gridkit-menu-item {
|
|
1342
1656
|
display: flex;
|
|
1343
1657
|
align-items: center;
|
|
1344
|
-
gap:
|
|
1345
|
-
padding:
|
|
1658
|
+
gap: calc(var(--gridkit-spacing) * 2);
|
|
1659
|
+
padding: var(--gridkit-menu-item-padding-y)
|
|
1660
|
+
var(--gridkit-menu-item-padding-x);
|
|
1346
1661
|
white-space: nowrap;
|
|
1347
1662
|
cursor: pointer;
|
|
1348
1663
|
user-select: none;
|
|
@@ -1353,7 +1668,7 @@
|
|
|
1353
1668
|
* item under it, so focus is the hover state too, and has to show
|
|
1354
1669
|
* whichever moved it.
|
|
1355
1670
|
*/
|
|
1356
|
-
.menu-item:focus {
|
|
1671
|
+
.gridkit-menu-item:focus {
|
|
1357
1672
|
outline: none;
|
|
1358
1673
|
background-color: var(--gridkit-selected);
|
|
1359
1674
|
}
|
|
@@ -1362,7 +1677,7 @@
|
|
|
1362
1677
|
* The item whose submenu is open, while focus is in that submenu — the
|
|
1363
1678
|
* trail back to it.
|
|
1364
1679
|
*/
|
|
1365
|
-
.menu-item[aria-expanded="true"]:not(:focus) {
|
|
1680
|
+
.gridkit-menu-item[aria-expanded="true"]:not(:focus) {
|
|
1366
1681
|
background-color: var(--gridkit-surface-muted);
|
|
1367
1682
|
}
|
|
1368
1683
|
|
|
@@ -1370,12 +1685,12 @@
|
|
|
1370
1685
|
* Still focusable, so a screen reader finds it: muted, and marked only
|
|
1371
1686
|
* faintly when focused, since choosing it does nothing.
|
|
1372
1687
|
*/
|
|
1373
|
-
.menu-item[aria-disabled="true"] {
|
|
1688
|
+
.gridkit-menu-item[aria-disabled="true"] {
|
|
1374
1689
|
color: var(--gridkit-fg-muted);
|
|
1375
1690
|
cursor: default;
|
|
1376
1691
|
}
|
|
1377
1692
|
|
|
1378
|
-
.menu-item[aria-disabled="true"]:focus {
|
|
1693
|
+
.gridkit-menu-item[aria-disabled="true"]:focus {
|
|
1379
1694
|
background-color: var(--gridkit-surface-muted);
|
|
1380
1695
|
}
|
|
1381
1696
|
|
|
@@ -1383,45 +1698,45 @@
|
|
|
1383
1698
|
* Always there, empty for an item without an icon, so every label in a
|
|
1384
1699
|
* menu starts at the same place. A checked item shows its check here.
|
|
1385
1700
|
*/
|
|
1386
|
-
.menu-item-icon {
|
|
1701
|
+
.gridkit-menu-item-icon {
|
|
1387
1702
|
display: inline-flex;
|
|
1388
1703
|
flex-shrink: 0;
|
|
1389
1704
|
align-items: center;
|
|
1390
1705
|
justify-content: center;
|
|
1391
|
-
width:
|
|
1392
|
-
height:
|
|
1706
|
+
width: var(--gridkit-icon-size);
|
|
1707
|
+
height: var(--gridkit-icon-size);
|
|
1393
1708
|
color: var(--gridkit-fg-muted);
|
|
1394
1709
|
}
|
|
1395
1710
|
|
|
1396
|
-
.menu-item-icon svg,
|
|
1397
|
-
.menu-submenu-indicator svg {
|
|
1398
|
-
width:
|
|
1399
|
-
height:
|
|
1711
|
+
.gridkit-menu-item-icon svg,
|
|
1712
|
+
.gridkit-menu-submenu-indicator svg {
|
|
1713
|
+
width: var(--gridkit-icon-size);
|
|
1714
|
+
height: var(--gridkit-icon-size);
|
|
1400
1715
|
}
|
|
1401
1716
|
|
|
1402
|
-
.menu-item[aria-checked="true"] .menu-item-icon {
|
|
1717
|
+
.gridkit-menu-item[aria-checked="true"] .gridkit-menu-item-icon {
|
|
1403
1718
|
color: var(--gridkit-accent);
|
|
1404
1719
|
}
|
|
1405
1720
|
|
|
1406
|
-
.menu-item-label {
|
|
1721
|
+
.gridkit-menu-item-label {
|
|
1407
1722
|
flex: 1;
|
|
1408
1723
|
}
|
|
1409
1724
|
|
|
1410
|
-
.menu-item-shortcut {
|
|
1411
|
-
margin-inline-start:
|
|
1412
|
-
font-size:
|
|
1725
|
+
.gridkit-menu-item-shortcut {
|
|
1726
|
+
margin-inline-start: calc(var(--gridkit-spacing) * 6);
|
|
1727
|
+
font-size: var(--gridkit-hint-font-size);
|
|
1413
1728
|
color: var(--gridkit-fg-muted);
|
|
1414
1729
|
}
|
|
1415
1730
|
|
|
1416
|
-
.menu-submenu-indicator {
|
|
1731
|
+
.gridkit-menu-submenu-indicator {
|
|
1417
1732
|
display: inline-flex;
|
|
1418
|
-
margin-inline-end: -
|
|
1733
|
+
margin-inline-end: calc(var(--gridkit-spacing) * -1);
|
|
1419
1734
|
color: var(--gridkit-fg-muted);
|
|
1420
1735
|
}
|
|
1421
1736
|
|
|
1422
|
-
.menu-separator {
|
|
1423
|
-
height:
|
|
1424
|
-
margin:
|
|
1737
|
+
.gridkit-menu-separator {
|
|
1738
|
+
height: var(--gridkit-border-width);
|
|
1739
|
+
margin: var(--gridkit-spacing) 0;
|
|
1425
1740
|
background-color: var(--gridkit-line);
|
|
1426
1741
|
}
|
|
1427
1742
|
|
|
@@ -1433,33 +1748,34 @@
|
|
|
1433
1748
|
.gridkit-column-chooser {
|
|
1434
1749
|
display: flex;
|
|
1435
1750
|
flex-direction: column;
|
|
1436
|
-
gap:
|
|
1437
|
-
width:
|
|
1438
|
-
padding:
|
|
1439
|
-
font-size:
|
|
1751
|
+
gap: calc(var(--gridkit-spacing) * 1.5);
|
|
1752
|
+
width: var(--gridkit-column-chooser-width);
|
|
1753
|
+
padding: calc(var(--gridkit-spacing) * 2);
|
|
1754
|
+
font-size: var(--gridkit-menu-font-size);
|
|
1440
1755
|
background-color: var(--gridkit-surface);
|
|
1441
|
-
border:
|
|
1442
|
-
border-radius:
|
|
1443
|
-
box-shadow:
|
|
1756
|
+
border: var(--gridkit-border-width) solid var(--gridkit-line);
|
|
1757
|
+
border-radius: var(--gridkit-menu-radius);
|
|
1758
|
+
box-shadow: var(--gridkit-overlay-shadow)
|
|
1759
|
+
var(--gridkit-overlay-shadow-color);
|
|
1444
1760
|
}
|
|
1445
1761
|
|
|
1446
|
-
.column-chooser-search {
|
|
1762
|
+
.gridkit-column-chooser-search {
|
|
1447
1763
|
box-sizing: border-box;
|
|
1448
1764
|
width: 100%;
|
|
1449
|
-
padding:
|
|
1765
|
+
padding: var(--gridkit-spacing) calc(var(--gridkit-spacing) * 2);
|
|
1450
1766
|
font: inherit;
|
|
1451
1767
|
color: var(--gridkit-fg);
|
|
1452
1768
|
background-color: var(--gridkit-surface);
|
|
1453
|
-
border:
|
|
1454
|
-
border-radius:
|
|
1769
|
+
border: var(--gridkit-border-width) solid var(--gridkit-line);
|
|
1770
|
+
border-radius: var(--gridkit-control-radius);
|
|
1455
1771
|
}
|
|
1456
1772
|
|
|
1457
|
-
.column-chooser-search::placeholder {
|
|
1773
|
+
.gridkit-column-chooser-search::placeholder {
|
|
1458
1774
|
color: var(--gridkit-fg-muted);
|
|
1459
1775
|
}
|
|
1460
1776
|
|
|
1461
|
-
.column-chooser-search:focus-visible {
|
|
1462
|
-
outline:
|
|
1777
|
+
.gridkit-column-chooser-search:focus-visible {
|
|
1778
|
+
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1463
1779
|
outline-offset: 1px;
|
|
1464
1780
|
}
|
|
1465
1781
|
|
|
@@ -1468,8 +1784,8 @@
|
|
|
1468
1784
|
* does not dismiss the chooser, as one outside would — while the search
|
|
1469
1785
|
* box and "Show all" stay put above it.
|
|
1470
1786
|
*/
|
|
1471
|
-
.column-chooser-list {
|
|
1472
|
-
max-height:
|
|
1787
|
+
.gridkit-column-chooser-list {
|
|
1788
|
+
max-height: var(--gridkit-column-chooser-max-height);
|
|
1473
1789
|
margin: 0;
|
|
1474
1790
|
padding: 0;
|
|
1475
1791
|
overflow-y: auto;
|
|
@@ -1477,51 +1793,51 @@
|
|
|
1477
1793
|
}
|
|
1478
1794
|
|
|
1479
1795
|
/* One checkbox and its label: "Show all", or a column. */
|
|
1480
|
-
.column-chooser-option {
|
|
1796
|
+
.gridkit-column-chooser-option {
|
|
1481
1797
|
display: flex;
|
|
1482
1798
|
align-items: center;
|
|
1483
|
-
gap:
|
|
1484
|
-
padding:
|
|
1485
|
-
border-radius:
|
|
1799
|
+
gap: calc(var(--gridkit-spacing) * 2);
|
|
1800
|
+
padding: var(--gridkit-spacing);
|
|
1801
|
+
border-radius: var(--gridkit-control-radius);
|
|
1486
1802
|
cursor: pointer;
|
|
1487
1803
|
user-select: none;
|
|
1488
1804
|
}
|
|
1489
1805
|
|
|
1490
|
-
.column-chooser-option:hover {
|
|
1806
|
+
.gridkit-column-chooser-option:hover {
|
|
1491
1807
|
background-color: var(--gridkit-surface-muted);
|
|
1492
1808
|
}
|
|
1493
1809
|
|
|
1494
1810
|
/* "Show all", set apart from the columns it acts on. */
|
|
1495
|
-
.column-chooser-all {
|
|
1496
|
-
padding-bottom:
|
|
1497
|
-
border-bottom:
|
|
1811
|
+
.gridkit-column-chooser-all {
|
|
1812
|
+
padding-bottom: calc(var(--gridkit-spacing) * 1.5);
|
|
1813
|
+
border-bottom: var(--gridkit-border-width) solid var(--gridkit-line);
|
|
1498
1814
|
border-radius: 0;
|
|
1499
1815
|
}
|
|
1500
1816
|
|
|
1501
|
-
.column-chooser-option input {
|
|
1817
|
+
.gridkit-column-chooser-option input {
|
|
1502
1818
|
flex-shrink: 0;
|
|
1503
1819
|
margin: 0;
|
|
1504
1820
|
accent-color: var(--gridkit-accent);
|
|
1505
1821
|
}
|
|
1506
1822
|
|
|
1507
|
-
.column-chooser-option input:focus-visible {
|
|
1508
|
-
outline:
|
|
1823
|
+
.gridkit-column-chooser-option input:focus-visible {
|
|
1824
|
+
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1509
1825
|
outline-offset: 1px;
|
|
1510
1826
|
}
|
|
1511
1827
|
|
|
1512
1828
|
/* A column that cannot be hidden, or the last one shown. */
|
|
1513
|
-
.column-chooser-option:has(> input:disabled) {
|
|
1829
|
+
.gridkit-column-chooser-option:has(> input:disabled) {
|
|
1514
1830
|
color: var(--gridkit-fg-muted);
|
|
1515
1831
|
cursor: default;
|
|
1516
1832
|
}
|
|
1517
1833
|
|
|
1518
|
-
.column-chooser-option:has(> input:disabled):hover {
|
|
1834
|
+
.gridkit-column-chooser-option:has(> input:disabled):hover {
|
|
1519
1835
|
background-color: transparent;
|
|
1520
1836
|
}
|
|
1521
1837
|
|
|
1522
|
-
.column-chooser-empty {
|
|
1838
|
+
.gridkit-column-chooser-empty {
|
|
1523
1839
|
margin: 0;
|
|
1524
|
-
padding:
|
|
1840
|
+
padding: var(--gridkit-spacing);
|
|
1525
1841
|
color: var(--gridkit-fg-muted);
|
|
1526
1842
|
}
|
|
1527
1843
|
|
|
@@ -1532,77 +1848,79 @@
|
|
|
1532
1848
|
*/
|
|
1533
1849
|
.gridkit-filter-menu {
|
|
1534
1850
|
box-sizing: border-box;
|
|
1535
|
-
width:
|
|
1536
|
-
padding:
|
|
1537
|
-
font-size:
|
|
1851
|
+
width: var(--gridkit-filter-menu-width);
|
|
1852
|
+
padding: calc(var(--gridkit-spacing) * 2);
|
|
1853
|
+
font-size: var(--gridkit-menu-font-size);
|
|
1538
1854
|
background-color: var(--gridkit-surface);
|
|
1539
|
-
border:
|
|
1540
|
-
border-radius:
|
|
1541
|
-
box-shadow:
|
|
1855
|
+
border: var(--gridkit-border-width) solid var(--gridkit-line);
|
|
1856
|
+
border-radius: var(--gridkit-menu-radius);
|
|
1857
|
+
box-shadow: var(--gridkit-overlay-shadow)
|
|
1858
|
+
var(--gridkit-overlay-shadow-color);
|
|
1542
1859
|
}
|
|
1543
1860
|
|
|
1544
|
-
.filter-menu-form {
|
|
1861
|
+
.gridkit-filter-menu-form {
|
|
1545
1862
|
display: flex;
|
|
1546
1863
|
flex-direction: column;
|
|
1547
|
-
gap:
|
|
1864
|
+
gap: calc(var(--gridkit-spacing) * 2);
|
|
1548
1865
|
margin: 0;
|
|
1549
1866
|
}
|
|
1550
1867
|
|
|
1551
1868
|
/* The sort entries, drawn as a menu's items and set apart from the editor. */
|
|
1552
|
-
.filter-menu-sort {
|
|
1869
|
+
.gridkit-filter-menu-sort {
|
|
1553
1870
|
display: flex;
|
|
1554
1871
|
flex-direction: column;
|
|
1555
|
-
padding-bottom:
|
|
1556
|
-
border-bottom:
|
|
1872
|
+
padding-bottom: calc(var(--gridkit-spacing) * 1.5);
|
|
1873
|
+
border-bottom: var(--gridkit-border-width) solid var(--gridkit-line);
|
|
1557
1874
|
}
|
|
1558
1875
|
|
|
1559
|
-
.filter-menu-sort-item {
|
|
1876
|
+
.gridkit-filter-menu-sort-item {
|
|
1560
1877
|
display: flex;
|
|
1561
1878
|
align-items: center;
|
|
1562
|
-
gap:
|
|
1563
|
-
padding:
|
|
1879
|
+
gap: calc(var(--gridkit-spacing) * 2);
|
|
1880
|
+
padding: var(--gridkit-menu-item-padding-y) calc(var(--gridkit-spacing) * 2);
|
|
1564
1881
|
font: inherit;
|
|
1565
1882
|
color: inherit;
|
|
1566
1883
|
text-align: start;
|
|
1567
1884
|
background: none;
|
|
1568
1885
|
border: 0;
|
|
1569
|
-
border-radius:
|
|
1886
|
+
border-radius: var(--gridkit-control-radius);
|
|
1570
1887
|
cursor: pointer;
|
|
1571
1888
|
}
|
|
1572
1889
|
|
|
1573
|
-
.filter-menu-sort-item:hover {
|
|
1890
|
+
.gridkit-filter-menu-sort-item:hover {
|
|
1574
1891
|
background-color: var(--gridkit-surface-muted);
|
|
1575
1892
|
}
|
|
1576
1893
|
|
|
1577
|
-
.filter-menu-sort-item:focus-visible {
|
|
1578
|
-
outline:
|
|
1579
|
-
outline-offset: -
|
|
1894
|
+
.gridkit-filter-menu-sort-item:focus-visible {
|
|
1895
|
+
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1896
|
+
outline-offset: calc(var(--gridkit-focus-ring-width) * -1);
|
|
1580
1897
|
}
|
|
1581
1898
|
|
|
1582
|
-
.filter-menu-sort-item:disabled {
|
|
1899
|
+
.gridkit-filter-menu-sort-item:disabled {
|
|
1583
1900
|
color: var(--gridkit-fg-muted);
|
|
1584
1901
|
background: none;
|
|
1585
1902
|
cursor: default;
|
|
1586
1903
|
}
|
|
1587
1904
|
|
|
1588
1905
|
/* Always there, empty for "Clear sort", so every label starts in line. */
|
|
1589
|
-
.filter-menu-sort-icon {
|
|
1906
|
+
.gridkit-filter-menu-sort-icon {
|
|
1590
1907
|
display: inline-flex;
|
|
1591
1908
|
flex-shrink: 0;
|
|
1592
1909
|
align-items: center;
|
|
1593
1910
|
justify-content: center;
|
|
1594
|
-
width:
|
|
1595
|
-
height:
|
|
1911
|
+
width: var(--gridkit-icon-size);
|
|
1912
|
+
height: var(--gridkit-icon-size);
|
|
1596
1913
|
color: var(--gridkit-fg-muted);
|
|
1597
1914
|
}
|
|
1598
1915
|
|
|
1599
|
-
.filter-menu-sort-icon svg {
|
|
1600
|
-
width:
|
|
1601
|
-
height:
|
|
1916
|
+
.gridkit-filter-menu-sort-icon svg {
|
|
1917
|
+
width: var(--gridkit-icon-size);
|
|
1918
|
+
height: var(--gridkit-icon-size);
|
|
1602
1919
|
}
|
|
1603
1920
|
|
|
1604
1921
|
/* The direction the column sorts in now. */
|
|
1605
|
-
.filter-menu-sort-item[aria-pressed="true"]
|
|
1922
|
+
.gridkit-filter-menu-sort-item[aria-pressed="true"]
|
|
1923
|
+
.gridkit-filter-menu-sort-icon {
|
|
1606
1924
|
color: var(--gridkit-accent);
|
|
1607
1925
|
}
|
|
1608
1926
|
|
|
@@ -1610,97 +1928,90 @@
|
|
|
1610
1928
|
* The simple editor: its conditions in a column, And/Or between them, and
|
|
1611
1929
|
* the message under them while one is marked invalid.
|
|
1612
1930
|
*/
|
|
1613
|
-
.filter-menu-conditions {
|
|
1931
|
+
.gridkit-filter-menu-conditions {
|
|
1614
1932
|
display: flex;
|
|
1615
1933
|
flex-direction: column;
|
|
1616
|
-
gap:
|
|
1934
|
+
gap: calc(var(--gridkit-spacing) * 2);
|
|
1617
1935
|
}
|
|
1618
1936
|
|
|
1619
1937
|
/*
|
|
1620
1938
|
* "Custom filter", or "Filtered by condition" above a checklist: a filter
|
|
1621
1939
|
* the editor can't show, until it applies one in its place.
|
|
1622
1940
|
*/
|
|
1623
|
-
.filter-menu-custom {
|
|
1941
|
+
.gridkit-filter-menu-custom {
|
|
1624
1942
|
margin: 0;
|
|
1625
|
-
padding:
|
|
1943
|
+
padding: var(--gridkit-spacing) calc(var(--gridkit-spacing) * 2);
|
|
1626
1944
|
color: var(--gridkit-fg-muted);
|
|
1627
1945
|
background-color: var(--gridkit-surface-muted);
|
|
1628
|
-
border-radius:
|
|
1946
|
+
border-radius: var(--gridkit-control-radius);
|
|
1629
1947
|
}
|
|
1630
1948
|
|
|
1631
1949
|
/*
|
|
1632
1950
|
* The operator picker on a line of its own, the value boxes sharing the
|
|
1633
1951
|
* next: one fills it, and a "Between"'s two halve it.
|
|
1634
1952
|
*/
|
|
1635
|
-
.filter-menu-condition {
|
|
1953
|
+
.gridkit-filter-menu-condition {
|
|
1636
1954
|
display: flex;
|
|
1637
1955
|
flex-wrap: wrap;
|
|
1638
|
-
gap:
|
|
1956
|
+
gap: calc(var(--gridkit-spacing) * 1.5);
|
|
1639
1957
|
}
|
|
1640
1958
|
|
|
1641
|
-
.filter-menu-operator,
|
|
1642
|
-
.filter-menu-value {
|
|
1959
|
+
.gridkit-filter-menu-operator,
|
|
1960
|
+
.gridkit-filter-menu-value {
|
|
1643
1961
|
box-sizing: border-box;
|
|
1644
1962
|
min-width: 0;
|
|
1645
|
-
padding:
|
|
1963
|
+
padding: var(--gridkit-spacing) calc(var(--gridkit-spacing) * 2);
|
|
1646
1964
|
font: inherit;
|
|
1647
1965
|
color: var(--gridkit-fg);
|
|
1648
1966
|
background-color: var(--gridkit-surface);
|
|
1649
|
-
border:
|
|
1650
|
-
border-radius:
|
|
1967
|
+
border: var(--gridkit-border-width) solid var(--gridkit-line);
|
|
1968
|
+
border-radius: var(--gridkit-control-radius);
|
|
1651
1969
|
}
|
|
1652
1970
|
|
|
1653
|
-
.filter-menu-operator {
|
|
1971
|
+
.gridkit-filter-menu-operator {
|
|
1654
1972
|
flex-basis: 100%;
|
|
1655
1973
|
}
|
|
1656
1974
|
|
|
1657
|
-
.filter-menu-value {
|
|
1975
|
+
.gridkit-filter-menu-value {
|
|
1658
1976
|
flex: 1 1 0;
|
|
1659
1977
|
}
|
|
1660
1978
|
|
|
1661
|
-
.filter-menu-operator:focus-visible,
|
|
1662
|
-
.filter-menu-value:focus-visible {
|
|
1663
|
-
outline:
|
|
1979
|
+
.gridkit-filter-menu-operator:focus-visible,
|
|
1980
|
+
.gridkit-filter-menu-value:focus-visible {
|
|
1981
|
+
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1664
1982
|
outline-offset: 1px;
|
|
1665
1983
|
}
|
|
1666
1984
|
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
* take the accent turned red — as light or dark as the accent, in either
|
|
1670
|
-
* palette — over the text colour where that syntax is not supported.
|
|
1671
|
-
*/
|
|
1672
|
-
.filter-menu-value[aria-invalid="true"] {
|
|
1673
|
-
border-color: var(--gridkit-fg);
|
|
1674
|
-
border-color: oklch(from var(--gridkit-accent) l c 25);
|
|
1985
|
+
.gridkit-filter-menu-value[aria-invalid="true"] {
|
|
1986
|
+
border-color: var(--gridkit-error);
|
|
1675
1987
|
}
|
|
1676
1988
|
|
|
1677
|
-
.filter-menu-invalid {
|
|
1989
|
+
.gridkit-filter-menu-invalid {
|
|
1678
1990
|
margin: 0;
|
|
1679
|
-
color: var(--gridkit-
|
|
1680
|
-
color: oklch(from var(--gridkit-accent) l c 25);
|
|
1991
|
+
color: var(--gridkit-error);
|
|
1681
1992
|
}
|
|
1682
1993
|
|
|
1683
1994
|
/* And/Or, native radio buttons between the two conditions. */
|
|
1684
|
-
.filter-menu-combinator {
|
|
1995
|
+
.gridkit-filter-menu-combinator {
|
|
1685
1996
|
display: flex;
|
|
1686
|
-
gap:
|
|
1997
|
+
gap: calc(var(--gridkit-spacing) * 4);
|
|
1687
1998
|
}
|
|
1688
1999
|
|
|
1689
|
-
.filter-menu-combinator-option {
|
|
2000
|
+
.gridkit-filter-menu-combinator-option {
|
|
1690
2001
|
display: inline-flex;
|
|
1691
2002
|
align-items: center;
|
|
1692
|
-
gap:
|
|
2003
|
+
gap: calc(var(--gridkit-spacing) * 1.5);
|
|
1693
2004
|
cursor: pointer;
|
|
1694
2005
|
user-select: none;
|
|
1695
2006
|
}
|
|
1696
2007
|
|
|
1697
|
-
.filter-menu-combinator-option input {
|
|
2008
|
+
.gridkit-filter-menu-combinator-option input {
|
|
1698
2009
|
margin: 0;
|
|
1699
2010
|
accent-color: var(--gridkit-accent);
|
|
1700
2011
|
}
|
|
1701
2012
|
|
|
1702
|
-
.filter-menu-combinator-option input:focus-visible {
|
|
1703
|
-
outline:
|
|
2013
|
+
.gridkit-filter-menu-combinator-option input:focus-visible {
|
|
2014
|
+
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1704
2015
|
outline-offset: 1px;
|
|
1705
2016
|
}
|
|
1706
2017
|
|
|
@@ -1708,10 +2019,10 @@
|
|
|
1708
2019
|
* The excel editor: a search box, "Select all", then the checklist of the
|
|
1709
2020
|
* column's values, with a note above or below it when one applies.
|
|
1710
2021
|
*/
|
|
1711
|
-
.filter-menu-values {
|
|
2022
|
+
.gridkit-filter-menu-values {
|
|
1712
2023
|
display: flex;
|
|
1713
2024
|
flex-direction: column;
|
|
1714
|
-
gap:
|
|
2025
|
+
gap: calc(var(--gridkit-spacing) * 1.5);
|
|
1715
2026
|
}
|
|
1716
2027
|
|
|
1717
2028
|
/*
|
|
@@ -1720,106 +2031,107 @@
|
|
|
1720
2031
|
* chose: the sort entries' look, an icon before the label in line with
|
|
1721
2032
|
* theirs.
|
|
1722
2033
|
*/
|
|
1723
|
-
.filter-menu-submenu,
|
|
1724
|
-
.filter-menu-back {
|
|
2034
|
+
.gridkit-filter-menu-submenu,
|
|
2035
|
+
.gridkit-filter-menu-back {
|
|
1725
2036
|
display: flex;
|
|
1726
2037
|
align-items: center;
|
|
1727
|
-
gap:
|
|
1728
|
-
padding:
|
|
2038
|
+
gap: calc(var(--gridkit-spacing) * 2);
|
|
2039
|
+
padding: var(--gridkit-menu-item-padding-y) calc(var(--gridkit-spacing) * 2);
|
|
1729
2040
|
font: inherit;
|
|
1730
2041
|
color: inherit;
|
|
1731
2042
|
text-align: start;
|
|
1732
2043
|
background: none;
|
|
1733
2044
|
border: 0;
|
|
1734
|
-
border-radius:
|
|
2045
|
+
border-radius: var(--gridkit-control-radius);
|
|
1735
2046
|
cursor: pointer;
|
|
1736
2047
|
}
|
|
1737
2048
|
|
|
1738
|
-
.filter-menu-submenu:hover,
|
|
1739
|
-
.filter-menu-submenu[aria-expanded="true"],
|
|
1740
|
-
.filter-menu-back:hover {
|
|
2049
|
+
.gridkit-filter-menu-submenu:hover,
|
|
2050
|
+
.gridkit-filter-menu-submenu[aria-expanded="true"],
|
|
2051
|
+
.gridkit-filter-menu-back:hover {
|
|
1741
2052
|
background-color: var(--gridkit-surface-muted);
|
|
1742
2053
|
}
|
|
1743
2054
|
|
|
1744
|
-
.filter-menu-submenu:focus-visible,
|
|
1745
|
-
.filter-menu-back:focus-visible {
|
|
1746
|
-
outline:
|
|
1747
|
-
outline-offset: -
|
|
2055
|
+
.gridkit-filter-menu-submenu:focus-visible,
|
|
2056
|
+
.gridkit-filter-menu-back:focus-visible {
|
|
2057
|
+
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
2058
|
+
outline-offset: calc(var(--gridkit-focus-ring-width) * -1);
|
|
1748
2059
|
}
|
|
1749
2060
|
|
|
1750
|
-
.filter-menu-submenu-icon,
|
|
1751
|
-
.filter-menu-submenu-indicator,
|
|
1752
|
-
.filter-menu-back-icon {
|
|
2061
|
+
.gridkit-filter-menu-submenu-icon,
|
|
2062
|
+
.gridkit-filter-menu-submenu-indicator,
|
|
2063
|
+
.gridkit-filter-menu-back-icon {
|
|
1753
2064
|
display: inline-flex;
|
|
1754
2065
|
flex-shrink: 0;
|
|
1755
2066
|
align-items: center;
|
|
1756
2067
|
justify-content: center;
|
|
1757
|
-
width:
|
|
1758
|
-
height:
|
|
2068
|
+
width: var(--gridkit-icon-size);
|
|
2069
|
+
height: var(--gridkit-icon-size);
|
|
1759
2070
|
color: var(--gridkit-fg-muted);
|
|
1760
2071
|
}
|
|
1761
2072
|
|
|
1762
|
-
.filter-menu-submenu svg,
|
|
1763
|
-
.filter-menu-back svg {
|
|
1764
|
-
width:
|
|
1765
|
-
height:
|
|
2073
|
+
.gridkit-filter-menu-submenu svg,
|
|
2074
|
+
.gridkit-filter-menu-back svg {
|
|
2075
|
+
width: var(--gridkit-icon-size);
|
|
2076
|
+
height: var(--gridkit-icon-size);
|
|
1766
2077
|
}
|
|
1767
2078
|
|
|
1768
2079
|
/* Ticked while the column is filtered by conditions, as Excel's is. */
|
|
1769
|
-
.filter-menu-submenu-icon {
|
|
2080
|
+
.gridkit-filter-menu-submenu-icon {
|
|
1770
2081
|
color: var(--gridkit-accent);
|
|
1771
2082
|
}
|
|
1772
2083
|
|
|
1773
2084
|
/* The submenu's chevron, at the end of the line. */
|
|
1774
|
-
.filter-menu-submenu-indicator {
|
|
2085
|
+
.gridkit-filter-menu-submenu-indicator {
|
|
1775
2086
|
margin-inline-start: auto;
|
|
1776
2087
|
}
|
|
1777
2088
|
|
|
1778
|
-
.filter-menu-search {
|
|
2089
|
+
.gridkit-filter-menu-search {
|
|
1779
2090
|
box-sizing: border-box;
|
|
1780
2091
|
width: 100%;
|
|
1781
|
-
padding:
|
|
2092
|
+
padding: var(--gridkit-spacing) calc(var(--gridkit-spacing) * 2);
|
|
1782
2093
|
font: inherit;
|
|
1783
2094
|
color: var(--gridkit-fg);
|
|
1784
2095
|
background-color: var(--gridkit-surface);
|
|
1785
|
-
border:
|
|
1786
|
-
border-radius:
|
|
2096
|
+
border: var(--gridkit-border-width) solid var(--gridkit-line);
|
|
2097
|
+
border-radius: var(--gridkit-control-radius);
|
|
1787
2098
|
}
|
|
1788
2099
|
|
|
1789
|
-
.filter-menu-search::placeholder {
|
|
2100
|
+
.gridkit-filter-menu-search::placeholder {
|
|
1790
2101
|
color: var(--gridkit-fg-muted);
|
|
1791
2102
|
}
|
|
1792
2103
|
|
|
1793
|
-
.filter-menu-search:focus-visible {
|
|
1794
|
-
outline:
|
|
2104
|
+
.gridkit-filter-menu-search:focus-visible {
|
|
2105
|
+
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1795
2106
|
outline-offset: 1px;
|
|
1796
2107
|
}
|
|
1797
2108
|
|
|
1798
2109
|
/* A native checkbox, in line with the drawn ones in the list below. */
|
|
1799
|
-
.filter-menu-select-all {
|
|
2110
|
+
.gridkit-filter-menu-select-all {
|
|
1800
2111
|
display: flex;
|
|
1801
2112
|
align-items: center;
|
|
1802
|
-
gap:
|
|
1803
|
-
padding:
|
|
2113
|
+
gap: calc(var(--gridkit-spacing) * 2);
|
|
2114
|
+
padding: var(--gridkit-spacing)
|
|
2115
|
+
calc(var(--gridkit-spacing) * 2 + var(--gridkit-border-width));
|
|
1804
2116
|
cursor: pointer;
|
|
1805
2117
|
user-select: none;
|
|
1806
2118
|
}
|
|
1807
2119
|
|
|
1808
|
-
.filter-menu-select-all input {
|
|
2120
|
+
.gridkit-filter-menu-select-all input {
|
|
1809
2121
|
flex-shrink: 0;
|
|
1810
|
-
width:
|
|
1811
|
-
height:
|
|
2122
|
+
width: var(--gridkit-icon-size);
|
|
2123
|
+
height: var(--gridkit-icon-size);
|
|
1812
2124
|
margin: 0;
|
|
1813
2125
|
accent-color: var(--gridkit-accent);
|
|
1814
2126
|
}
|
|
1815
2127
|
|
|
1816
|
-
.filter-menu-select-all input:focus-visible {
|
|
1817
|
-
outline:
|
|
2128
|
+
.gridkit-filter-menu-select-all input:focus-visible {
|
|
2129
|
+
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1818
2130
|
outline-offset: 1px;
|
|
1819
2131
|
}
|
|
1820
2132
|
|
|
1821
2133
|
/* Nothing to select: the search matches no value. */
|
|
1822
|
-
.filter-menu-select-all:has(> input:disabled) {
|
|
2134
|
+
.gridkit-filter-menu-select-all:has(> input:disabled) {
|
|
1823
2135
|
color: var(--gridkit-fg-muted);
|
|
1824
2136
|
cursor: default;
|
|
1825
2137
|
}
|
|
@@ -1830,78 +2142,81 @@
|
|
|
1830
2142
|
* knows from the start how many values it shows. "Type to search …"
|
|
1831
2143
|
* takes the same box while the list waits for a search.
|
|
1832
2144
|
*/
|
|
1833
|
-
.filter-menu-checklist,
|
|
1834
|
-
.filter-menu-search-first {
|
|
2145
|
+
.gridkit-filter-menu-checklist,
|
|
2146
|
+
.gridkit-filter-menu-search-first {
|
|
1835
2147
|
box-sizing: border-box;
|
|
1836
|
-
height:
|
|
2148
|
+
height: var(--gridkit-filter-checklist-height);
|
|
1837
2149
|
margin: 0;
|
|
1838
|
-
border:
|
|
1839
|
-
border-radius:
|
|
2150
|
+
border: var(--gridkit-border-width) solid var(--gridkit-line);
|
|
2151
|
+
border-radius: var(--gridkit-control-radius);
|
|
1840
2152
|
}
|
|
1841
2153
|
|
|
1842
|
-
.filter-menu-checklist {
|
|
2154
|
+
.gridkit-filter-menu-checklist {
|
|
1843
2155
|
overflow-y: auto;
|
|
1844
2156
|
}
|
|
1845
2157
|
|
|
1846
|
-
.filter-menu-search-first {
|
|
1847
|
-
padding:
|
|
2158
|
+
.gridkit-filter-menu-search-first {
|
|
2159
|
+
padding: calc(var(--gridkit-spacing) * 2);
|
|
1848
2160
|
color: var(--gridkit-fg-muted);
|
|
1849
2161
|
}
|
|
1850
2162
|
|
|
1851
2163
|
/* One value: a drawn checkbox, its label, and its count when shown. */
|
|
1852
|
-
.filter-menu-option {
|
|
2164
|
+
.gridkit-filter-menu-option {
|
|
1853
2165
|
display: flex;
|
|
1854
2166
|
align-items: center;
|
|
1855
|
-
gap:
|
|
1856
|
-
padding:
|
|
2167
|
+
gap: calc(var(--gridkit-spacing) * 2);
|
|
2168
|
+
padding: var(--gridkit-spacing) calc(var(--gridkit-spacing) * 2);
|
|
1857
2169
|
line-height: 1.25rem;
|
|
1858
2170
|
cursor: pointer;
|
|
1859
2171
|
user-select: none;
|
|
1860
2172
|
}
|
|
1861
2173
|
|
|
1862
|
-
.filter-menu-option:hover {
|
|
2174
|
+
.gridkit-filter-menu-option:hover {
|
|
1863
2175
|
background-color: var(--gridkit-surface-muted);
|
|
1864
2176
|
}
|
|
1865
2177
|
|
|
1866
|
-
.filter-menu-option:focus-visible {
|
|
1867
|
-
outline:
|
|
1868
|
-
outline-offset: -
|
|
2178
|
+
.gridkit-filter-menu-option:focus-visible {
|
|
2179
|
+
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
2180
|
+
outline-offset: calc(var(--gridkit-focus-ring-width) * -1);
|
|
1869
2181
|
}
|
|
1870
2182
|
|
|
1871
2183
|
/*
|
|
1872
|
-
* An outline, filled with the accent and ticked in
|
|
2184
|
+
* An outline, filled with the accent and ticked in `--gridkit-accent-fg`
|
|
1873
2185
|
* while the option is checked, as the native "Select all" above it is.
|
|
1874
2186
|
*/
|
|
1875
|
-
.filter-menu-option-check {
|
|
2187
|
+
.gridkit-filter-menu-option-check {
|
|
1876
2188
|
display: inline-flex;
|
|
1877
2189
|
flex-shrink: 0;
|
|
1878
2190
|
align-items: center;
|
|
1879
2191
|
justify-content: center;
|
|
1880
2192
|
box-sizing: border-box;
|
|
1881
|
-
width:
|
|
1882
|
-
height:
|
|
1883
|
-
color: var(--gridkit-
|
|
1884
|
-
border:
|
|
1885
|
-
border-radius: 0.
|
|
2193
|
+
width: var(--gridkit-icon-size);
|
|
2194
|
+
height: var(--gridkit-icon-size);
|
|
2195
|
+
color: var(--gridkit-accent-fg);
|
|
2196
|
+
border: var(--gridkit-border-width) solid var(--gridkit-fg-muted);
|
|
2197
|
+
border-radius: calc(var(--gridkit-control-radius) * 0.75);
|
|
1886
2198
|
}
|
|
1887
2199
|
|
|
1888
|
-
.filter-menu-option-check svg {
|
|
1889
|
-
width: 0.
|
|
1890
|
-
height: 0.
|
|
2200
|
+
.gridkit-filter-menu-option-check svg {
|
|
2201
|
+
width: calc(var(--gridkit-icon-size) * 0.75);
|
|
2202
|
+
height: calc(var(--gridkit-icon-size) * 0.75);
|
|
1891
2203
|
visibility: hidden;
|
|
1892
2204
|
}
|
|
1893
2205
|
|
|
1894
|
-
.filter-menu-option[aria-checked="true"]
|
|
2206
|
+
.gridkit-filter-menu-option[aria-checked="true"]
|
|
2207
|
+
.gridkit-filter-menu-option-check {
|
|
1895
2208
|
background-color: var(--gridkit-accent);
|
|
1896
2209
|
border-color: var(--gridkit-accent);
|
|
1897
2210
|
}
|
|
1898
2211
|
|
|
1899
|
-
.filter-menu-option[aria-checked="true"]
|
|
2212
|
+
.gridkit-filter-menu-option[aria-checked="true"]
|
|
2213
|
+
.gridkit-filter-menu-option-check
|
|
2214
|
+
svg {
|
|
1900
2215
|
visibility: visible;
|
|
1901
2216
|
}
|
|
1902
2217
|
|
|
1903
2218
|
/* A label too long for the menu ends in an ellipsis. */
|
|
1904
|
-
.filter-menu-option-label {
|
|
2219
|
+
.gridkit-filter-menu-option-label {
|
|
1905
2220
|
flex: 1;
|
|
1906
2221
|
min-width: 0;
|
|
1907
2222
|
overflow: hidden;
|
|
@@ -1910,53 +2225,53 @@
|
|
|
1910
2225
|
}
|
|
1911
2226
|
|
|
1912
2227
|
/* How many rows hold the value, muted at the end of its line. */
|
|
1913
|
-
.filter-menu-option-count {
|
|
2228
|
+
.gridkit-filter-menu-option-count {
|
|
1914
2229
|
flex-shrink: 0;
|
|
1915
|
-
font-size:
|
|
2230
|
+
font-size: var(--gridkit-hint-font-size);
|
|
1916
2231
|
font-variant-numeric: tabular-nums;
|
|
1917
2232
|
color: var(--gridkit-fg-muted);
|
|
1918
2233
|
}
|
|
1919
2234
|
|
|
1920
2235
|
/* "250 more, refine the search", under a list the value limit cut short. */
|
|
1921
|
-
.filter-menu-more {
|
|
2236
|
+
.gridkit-filter-menu-more {
|
|
1922
2237
|
margin: 0;
|
|
1923
|
-
padding: 0
|
|
2238
|
+
padding: 0 calc(var(--gridkit-spacing) * 2);
|
|
1924
2239
|
color: var(--gridkit-fg-muted);
|
|
1925
2240
|
}
|
|
1926
2241
|
|
|
1927
2242
|
/* "Clear filter" at the start; Cancel and OK at the end. */
|
|
1928
|
-
.filter-menu-actions {
|
|
2243
|
+
.gridkit-filter-menu-actions {
|
|
1929
2244
|
display: flex;
|
|
1930
2245
|
align-items: center;
|
|
1931
|
-
gap:
|
|
2246
|
+
gap: calc(var(--gridkit-spacing) * 2);
|
|
1932
2247
|
}
|
|
1933
2248
|
|
|
1934
|
-
.filter-menu-actions button {
|
|
1935
|
-
padding:
|
|
2249
|
+
.gridkit-filter-menu-actions button {
|
|
2250
|
+
padding: var(--gridkit-spacing) calc(var(--gridkit-spacing) * 3);
|
|
1936
2251
|
font: inherit;
|
|
1937
2252
|
color: var(--gridkit-fg);
|
|
1938
2253
|
background-color: var(--gridkit-surface);
|
|
1939
|
-
border:
|
|
1940
|
-
border-radius:
|
|
2254
|
+
border: var(--gridkit-border-width) solid var(--gridkit-line);
|
|
2255
|
+
border-radius: var(--gridkit-control-radius);
|
|
1941
2256
|
cursor: pointer;
|
|
1942
2257
|
}
|
|
1943
2258
|
|
|
1944
|
-
.filter-menu-actions button:hover {
|
|
2259
|
+
.gridkit-filter-menu-actions button:hover {
|
|
1945
2260
|
background-color: var(--gridkit-surface-muted);
|
|
1946
2261
|
}
|
|
1947
2262
|
|
|
1948
|
-
.filter-menu-actions button:focus-visible {
|
|
1949
|
-
outline:
|
|
2263
|
+
.gridkit-filter-menu-actions button:focus-visible {
|
|
2264
|
+
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1950
2265
|
outline-offset: 1px;
|
|
1951
2266
|
}
|
|
1952
2267
|
|
|
1953
|
-
.filter-menu-actions button:disabled {
|
|
2268
|
+
.gridkit-filter-menu-actions button:disabled {
|
|
1954
2269
|
color: var(--gridkit-fg-muted);
|
|
1955
2270
|
background-color: var(--gridkit-surface);
|
|
1956
2271
|
cursor: default;
|
|
1957
2272
|
}
|
|
1958
2273
|
|
|
1959
|
-
.filter-menu-actions .filter-menu-clear {
|
|
2274
|
+
.gridkit-filter-menu-actions .gridkit-filter-menu-clear {
|
|
1960
2275
|
margin-inline-end: auto;
|
|
1961
2276
|
}
|
|
1962
2277
|
|
|
@@ -1964,12 +2279,12 @@
|
|
|
1964
2279
|
* OK, the button Enter presses: tinted rather than filled with the accent,
|
|
1965
2280
|
* which the text on it would not stand out from in the light palette.
|
|
1966
2281
|
*/
|
|
1967
|
-
.filter-menu-actions .filter-menu-apply {
|
|
2282
|
+
.gridkit-filter-menu-actions .gridkit-filter-menu-apply {
|
|
1968
2283
|
background-color: var(--gridkit-selected);
|
|
1969
2284
|
border-color: var(--gridkit-accent);
|
|
1970
2285
|
}
|
|
1971
2286
|
|
|
1972
|
-
.filter-menu-actions .filter-menu-apply:hover {
|
|
2287
|
+
.gridkit-filter-menu-actions .gridkit-filter-menu-apply:hover {
|
|
1973
2288
|
background-color: var(--gridkit-selected-strong);
|
|
1974
2289
|
}
|
|
1975
2290
|
}
|
|
@@ -1987,7 +2302,7 @@
|
|
|
1987
2302
|
.gridkit-data-grid-viewport .gridkit-toolbar,
|
|
1988
2303
|
.gridkit-data-grid-viewport .gridkit-group-by-bar,
|
|
1989
2304
|
.gridkit-data-grid-viewport .gridkit-grid-pager,
|
|
1990
|
-
.gridkit-data-grid-viewport .header-resize-handle {
|
|
2305
|
+
.gridkit-data-grid-viewport .gridkit-header-resize-handle {
|
|
1991
2306
|
display: none;
|
|
1992
2307
|
}
|
|
1993
2308
|
|