@burdenoff/fe-libs 2026.1116.4 → 2026.1116.6
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/dist/chrome/AppShellLayout.js +1 -0
- package/dist/tag/TagBadge.js +23 -26
- package/dist/tag/index.d.ts +1 -0
- package/dist/tag/tagColor.d.ts +12 -0
- package/dist/tag/tagColor.js +8 -0
- package/dist/tag.js +3 -2
- package/package.json +1 -1
- package/src/shared/tokens/depth.css +191 -122
|
@@ -39,6 +39,7 @@ var o = ({ header: o, sidebar: s, footer: c, bottomPanel: l, rightPanel: u, stat
|
|
|
39
39
|
style: N,
|
|
40
40
|
"data-shell-scroll-container": !0,
|
|
41
41
|
children: v ? /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("div", {
|
|
42
|
+
"data-shell-content": "",
|
|
42
43
|
className: m ? "flex-1" : "flex-1 min-h-0",
|
|
43
44
|
children: f
|
|
44
45
|
}), m && c] }) : f
|
package/dist/tag/TagBadge.js
CHANGED
|
@@ -1,50 +1,47 @@
|
|
|
1
1
|
import { cn as e } from "../shared-utils.js";
|
|
2
2
|
import { Badge as t } from "../ui/badge.js";
|
|
3
3
|
import { Tooltip as n, TooltipContent as r, TooltipProvider as i, TooltipTrigger as a } from "../ui/tooltip.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { tagColorStyle as o } from "./tagColor.js";
|
|
5
|
+
import { X as s } from "lucide-react";
|
|
6
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
7
|
// src/tag/TagBadge.tsx
|
|
7
|
-
var
|
|
8
|
+
var u = {
|
|
8
9
|
sm: "text-xs px-1.5 py-0.5",
|
|
9
10
|
md: "text-sm px-2 py-0.5",
|
|
10
11
|
lg: "text-base px-2.5 py-1"
|
|
11
12
|
};
|
|
12
|
-
function
|
|
13
|
-
let
|
|
13
|
+
function d({ label: d, icon: f, color: p, description: m, removable: h = !1, onClick: g, onRemove: _, className: v, size: y = "md" }) {
|
|
14
|
+
let b = /* @__PURE__ */ l(t, {
|
|
14
15
|
variant: "secondary",
|
|
15
|
-
className: e("inline-flex items-center gap-1 font-medium transition-colors",
|
|
16
|
-
style:
|
|
17
|
-
|
|
18
|
-
color: f,
|
|
19
|
-
borderColor: `${f}40`
|
|
20
|
-
} : void 0,
|
|
21
|
-
onClick: h,
|
|
16
|
+
className: e("inline-flex items-center gap-1 font-medium transition-colors", u[y], g && "cursor-pointer hover:bg-secondary/80", v),
|
|
17
|
+
style: p ? o(p) : void 0,
|
|
18
|
+
onClick: g,
|
|
22
19
|
children: [
|
|
23
|
-
|
|
20
|
+
f && /* @__PURE__ */ c("span", {
|
|
24
21
|
className: "flex-shrink-0",
|
|
25
|
-
children:
|
|
22
|
+
children: f
|
|
26
23
|
}),
|
|
27
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ c("span", {
|
|
28
25
|
className: "truncate max-w-[150px]",
|
|
29
|
-
children:
|
|
26
|
+
children: d
|
|
30
27
|
}),
|
|
31
|
-
|
|
28
|
+
h && _ && /* @__PURE__ */ c("button", {
|
|
32
29
|
type: "button",
|
|
33
30
|
onClick: (e) => {
|
|
34
|
-
e.stopPropagation(),
|
|
31
|
+
e.stopPropagation(), _?.();
|
|
35
32
|
},
|
|
36
33
|
className: "flex-shrink-0 ms-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10 transition-colors",
|
|
37
|
-
"aria-label": `Remove ${
|
|
38
|
-
children: /* @__PURE__ */ s
|
|
34
|
+
"aria-label": `Remove ${d}`,
|
|
35
|
+
children: /* @__PURE__ */ c(s, { className: "size-3" })
|
|
39
36
|
})
|
|
40
37
|
]
|
|
41
38
|
});
|
|
42
|
-
return
|
|
39
|
+
return m ? /* @__PURE__ */ c(i, { children: /* @__PURE__ */ l(n, { children: [/* @__PURE__ */ c(a, {
|
|
43
40
|
asChild: !0,
|
|
44
|
-
children:
|
|
45
|
-
}), /* @__PURE__ */
|
|
41
|
+
children: b
|
|
42
|
+
}), /* @__PURE__ */ c(r, { children: /* @__PURE__ */ c("p", {
|
|
46
43
|
className: "max-w-xs",
|
|
47
|
-
children:
|
|
48
|
-
}) })] }) }) :
|
|
44
|
+
children: m
|
|
45
|
+
}) })] }) }) : b;
|
|
49
46
|
}
|
|
50
|
-
export {
|
|
47
|
+
export { d as TagBadge };
|
package/dist/tag/index.d.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Inline style for a coloured tag: the colour itself for the text, plus a
|
|
4
|
+
* light tint for the background and a stronger one for the border.
|
|
5
|
+
*
|
|
6
|
+
* The tints use `color-mix()`, which accepts any CSS colour: a hex, a named
|
|
7
|
+
* colour, or a design token such as `var(--color-chart-3)`. The old code
|
|
8
|
+
* appended a hex alpha (`${color}20`), which only works for six-digit hex. A
|
|
9
|
+
* stored `var(--color-chart-N)` became `var(--color-chart-N)20`, invalid CSS
|
|
10
|
+
* the browser drops, so the tint and border vanished (BOFF-11867).
|
|
11
|
+
*/
|
|
12
|
+
export declare function tagColorStyle(color: string): CSSProperties;
|
package/dist/tag.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { TagBadge as e } from "./tag/TagBadge.js";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { tagColorStyle as t } from "./tag/tagColor.js";
|
|
3
|
+
import { TagsWidget as n } from "./tag/TagsWidget.js";
|
|
4
|
+
export { e as TagBadge, n as TagsWidget, t as tagColorStyle };
|
package/package.json
CHANGED
|
@@ -24,9 +24,16 @@
|
|
|
24
24
|
* [data-depth="off"] on any element: its subtree keeps today's look.
|
|
25
25
|
* Page rules key on the box, `[data-shell-page][data-page-width]:not([data-page-width='tool'])`;
|
|
26
26
|
* the rise-in on `[data-shell-page][data-page-enter]:not([data-page-width='tool'])`; the glow on
|
|
27
|
-
* the shell's scroll container that holds such a box
|
|
28
|
-
*
|
|
29
|
-
* [data-shell-
|
|
27
|
+
* the shell's scroll container that holds such a box, found along the shell's fixed path:
|
|
28
|
+
* <main data-shell-scroll-container> AppShellLayout's scroll container
|
|
29
|
+
* > [data-shell-content] its content wrapper (the host passes footerInContent)
|
|
30
|
+
* > [data-swipe-root] the host's swipe root
|
|
31
|
+
* > [data-shell-page] the page box
|
|
32
|
+
* > :first-child on a desktop page, the host's sticky wrapper
|
|
33
|
+
* > [data-shell-topbar] and ShellTopBar in it
|
|
34
|
+
* The sidebar's rules key on [data-shell-sidebar] and apply on every page. fe-libs provides
|
|
35
|
+
* the rest: [data-shell-scroll-container] on AppShellLayout's <main> and [data-shell-content]
|
|
36
|
+
* on its content wrapper, [data-shell-topbar] on ShellTopBar,
|
|
30
37
|
* [data-shell-sidebar], [data-active] and [data-shell-active-bar] in the sidebar, the data-slot
|
|
31
38
|
* hooks on the primitives (Card, GlassCard, IconTile, Table, Tabs, Button, Input, Badge, ...),
|
|
32
39
|
* and <html dir> from the I18nProvider for the mirrored rules.
|
|
@@ -50,6 +57,22 @@
|
|
|
50
57
|
* without data-reduce-motion; every lift also needs (hover: hover).
|
|
51
58
|
* - Every rule that uses :has() sits inside @supports selector(:has(*)): a browser without
|
|
52
59
|
* :has() skips only those rules, and the build cannot merge them into the others.
|
|
60
|
+
* - A :has() argument never holds `*` or :not(), and every :has() on the shell keys on
|
|
61
|
+
* attributes only. Chrome decides per inserted element whether a :has() could see it: one
|
|
62
|
+
* with `*` or :not() in its argument sees every element, and then each insertion anywhere
|
|
63
|
+
* costs time that grows with the page (about 1.7 ms on a 20,000-element page in the
|
|
64
|
+
* browser run, against 0.02 ms without the layer); a type in it sees every element of that
|
|
65
|
+
* type, so no :has() argument names a type that pages insert all the time (div, p, span,
|
|
66
|
+
* li, tr, ...). The glow
|
|
67
|
+
* once asked <main> about any descendant through such an argument, and every insertion,
|
|
68
|
+
* class or text change re-scanned all of <main> (600 recalcs over 20,000 elements:
|
|
69
|
+
* 1137-1161 ms against 182-377 ms without the layer).
|
|
70
|
+
* - Every :has() argument starts with a child combinator and uses no other, so it looks a
|
|
71
|
+
* fixed number of levels down, except the two card checks ("holds a table", and a
|
|
72
|
+
* hand-drawn card's "holds a table or a field"), which name only attributes and rare
|
|
73
|
+
* types. A change inside such a card re-checks it, at a cost that grows with the card
|
|
74
|
+
* (written as `> * > ...` steps they measured four to seven times slower).
|
|
75
|
+
* depthLayer.test.ts pins all of this; the browser run measures it.
|
|
53
76
|
* - A selector breaks across lines only where it already has a descendant combinator.
|
|
54
77
|
* - The strengths below are the most each theme allows while every text token that reads at
|
|
55
78
|
* 4.5:1 today keeps 4.5:1, and every icon and bar that reads at 3:1 keeps 3:1, on what the
|
|
@@ -117,15 +140,28 @@
|
|
|
117
140
|
* away with the page and adds no scroll height however short <main> is. <main> stays
|
|
118
141
|
* unpositioned: no element changes containing block. The pseudo-elements are positioned
|
|
119
142
|
* only to take a z-index; they hold nothing. The two ellipses never overlap, so the
|
|
120
|
-
* strongest tint anywhere is one accent at its mesh share.
|
|
143
|
+
* strongest tint anywhere is one accent at its mesh share. <main> finds its page box three
|
|
144
|
+
* levels down along the shell's fixed path (the host contract above), by attributes only;
|
|
145
|
+
* the tool tier and an opted-out box are left out by a second :has() of the same kind,
|
|
146
|
+
* outside the first (a :not() inside it would see every inserted element). */
|
|
121
147
|
@supports selector(:has(*)) {
|
|
122
148
|
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
123
149
|
[data-shell-scroll-container]:has(
|
|
124
|
-
[data-shell-
|
|
150
|
+
> [data-shell-content] > [data-swipe-root] > [data-shell-page][data-page-width]
|
|
151
|
+
):not(
|
|
152
|
+
:has(
|
|
153
|
+
> [data-shell-content] > [data-swipe-root] > [data-shell-page]:is([data-page-width='tool'], [data-depth='off']),
|
|
154
|
+
> [data-shell-content] > [data-swipe-root][data-depth='off'], > [data-shell-content][data-depth='off']
|
|
155
|
+
)
|
|
125
156
|
):not(:where([data-depth='off'], [data-depth='off'] *))::before,
|
|
126
157
|
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
127
158
|
[data-shell-scroll-container]:has(
|
|
128
|
-
[data-shell-
|
|
159
|
+
> [data-shell-content] > [data-swipe-root] > [data-shell-page][data-page-width]
|
|
160
|
+
):not(
|
|
161
|
+
:has(
|
|
162
|
+
> [data-shell-content] > [data-swipe-root] > [data-shell-page]:is([data-page-width='tool'], [data-depth='off']),
|
|
163
|
+
> [data-shell-content] > [data-swipe-root][data-depth='off'], > [data-shell-content][data-depth='off']
|
|
164
|
+
)
|
|
129
165
|
):not(:where([data-depth='off'], [data-depth='off'] *))::after {
|
|
130
166
|
content: '';
|
|
131
167
|
display: block;
|
|
@@ -141,39 +177,70 @@
|
|
|
141
177
|
}
|
|
142
178
|
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
143
179
|
[data-shell-scroll-container]:has(
|
|
144
|
-
[data-shell-
|
|
180
|
+
> [data-shell-content] > [data-swipe-root] > [data-shell-page][data-page-width]
|
|
181
|
+
):not(
|
|
182
|
+
:has(
|
|
183
|
+
> [data-shell-content] > [data-swipe-root] > [data-shell-page]:is([data-page-width='tool'], [data-depth='off']),
|
|
184
|
+
> [data-shell-content] > [data-swipe-root][data-depth='off'], > [data-shell-content][data-depth='off']
|
|
185
|
+
)
|
|
145
186
|
):not(:where([data-depth='off'], [data-depth='off'] *))::before {
|
|
146
187
|
border-image-source: radial-gradient(46% 100% at 18% 0%, color-mix(in oklab, var(--color-accent-glow) var(--depth-mesh-a), transparent), transparent 72%);
|
|
147
188
|
}
|
|
148
189
|
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
149
190
|
[data-shell-scroll-container]:has(
|
|
150
|
-
[data-shell-
|
|
191
|
+
> [data-shell-content] > [data-swipe-root] > [data-shell-page][data-page-width]
|
|
192
|
+
):not(
|
|
193
|
+
:has(
|
|
194
|
+
> [data-shell-content] > [data-swipe-root] > [data-shell-page]:is([data-page-width='tool'], [data-depth='off']),
|
|
195
|
+
> [data-shell-content] > [data-swipe-root][data-depth='off'], > [data-shell-content][data-depth='off']
|
|
196
|
+
)
|
|
151
197
|
):not(:where([data-depth='off'], [data-depth='off'] *))::after {
|
|
152
198
|
order: -1;
|
|
153
199
|
border-image-source: radial-gradient(40% 92% at 82% 0%, color-mix(in oklab, var(--color-accent-glow-alt) var(--depth-mesh-b), transparent), transparent 74%);
|
|
154
200
|
}
|
|
155
201
|
:root[data-depth='rich']:not([data-theme='high-contrast'])[dir='rtl']
|
|
156
202
|
[data-shell-scroll-container]:has(
|
|
157
|
-
[data-shell-
|
|
203
|
+
> [data-shell-content] > [data-swipe-root] > [data-shell-page][data-page-width]
|
|
204
|
+
):not(
|
|
205
|
+
:has(
|
|
206
|
+
> [data-shell-content] > [data-swipe-root] > [data-shell-page]:is([data-page-width='tool'], [data-depth='off']),
|
|
207
|
+
> [data-shell-content] > [data-swipe-root][data-depth='off'], > [data-shell-content][data-depth='off']
|
|
208
|
+
)
|
|
158
209
|
):not(:where([data-depth='off'], [data-depth='off'] *))::before {
|
|
159
210
|
border-image-source: radial-gradient(46% 100% at 82% 0%, color-mix(in oklab, var(--color-accent-glow) var(--depth-mesh-a), transparent), transparent 72%);
|
|
160
211
|
}
|
|
161
212
|
:root[data-depth='rich']:not([data-theme='high-contrast'])[dir='rtl']
|
|
162
213
|
[data-shell-scroll-container]:has(
|
|
163
|
-
[data-shell-
|
|
214
|
+
> [data-shell-content] > [data-swipe-root] > [data-shell-page][data-page-width]
|
|
215
|
+
):not(
|
|
216
|
+
:has(
|
|
217
|
+
> [data-shell-content] > [data-swipe-root] > [data-shell-page]:is([data-page-width='tool'], [data-depth='off']),
|
|
218
|
+
> [data-shell-content] > [data-swipe-root][data-depth='off'], > [data-shell-content][data-depth='off']
|
|
219
|
+
)
|
|
164
220
|
):not(:where([data-depth='off'], [data-depth='off'] *))::after {
|
|
165
221
|
border-image-source: radial-gradient(40% 92% at 18% 0%, color-mix(in oklab, var(--color-accent-glow-alt) var(--depth-mesh-b), transparent), transparent 74%);
|
|
166
222
|
}
|
|
167
|
-
/* No top bar in the
|
|
168
|
-
*
|
|
223
|
+
/* No top bar in the swipe root's first child (phones put theirs above <main>, and a
|
|
224
|
+
* page without a bar starts with its box): start the glow above <main>, where it is
|
|
225
|
+
* clipped, so the page sees what it sees below a desktop bar. */
|
|
169
226
|
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
170
227
|
[data-shell-scroll-container]:has(
|
|
171
|
-
[data-shell-
|
|
172
|
-
):not(
|
|
228
|
+
> [data-shell-content] > [data-swipe-root] > [data-shell-page][data-page-width]
|
|
229
|
+
):not(
|
|
230
|
+
:has(
|
|
231
|
+
> [data-shell-content] > [data-swipe-root] > [data-shell-page]:is([data-page-width='tool'], [data-depth='off']),
|
|
232
|
+
> [data-shell-content] > [data-swipe-root][data-depth='off'], > [data-shell-content][data-depth='off']
|
|
233
|
+
)
|
|
234
|
+
):not(:has(> [data-shell-content] > [data-swipe-root] > :first-child > [data-shell-topbar])):not(:where([data-depth='off'], [data-depth='off'] *))::before,
|
|
173
235
|
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
174
236
|
[data-shell-scroll-container]:has(
|
|
175
|
-
[data-shell-
|
|
176
|
-
):not(
|
|
237
|
+
> [data-shell-content] > [data-swipe-root] > [data-shell-page][data-page-width]
|
|
238
|
+
):not(
|
|
239
|
+
:has(
|
|
240
|
+
> [data-shell-content] > [data-swipe-root] > [data-shell-page]:is([data-page-width='tool'], [data-depth='off']),
|
|
241
|
+
> [data-shell-content] > [data-swipe-root][data-depth='off'], > [data-shell-content][data-depth='off']
|
|
242
|
+
)
|
|
243
|
+
):not(:has(> [data-shell-content] > [data-swipe-root] > :first-child > [data-shell-topbar])):not(:where([data-depth='off'], [data-depth='off'] *))::after {
|
|
177
244
|
border-image-outset: var(--depth-glow-under-bar) 0 calc(var(--depth-glow-height) - var(--depth-glow-under-bar)) 0;
|
|
178
245
|
}
|
|
179
246
|
}
|
|
@@ -276,9 +343,11 @@
|
|
|
276
343
|
}
|
|
277
344
|
/* Hand-drawn cards in module code (no hook yet, so class tokens; a follow-up gives each a
|
|
278
345
|
* hook): exact tokens only, inside the page box. Never a filter bar (a search, a toolbar or
|
|
279
|
-
* any field inside
|
|
280
|
-
*
|
|
281
|
-
*
|
|
346
|
+
* any field inside: a combobox, a select, a textarea, or an input you can type in, which is
|
|
347
|
+
* :read-write; a checkbox, radio, button or hidden input is not), a table's wrapper, a
|
|
348
|
+
* sticky bar or anything inside one, a positioned popover, a status panel, or anything that
|
|
349
|
+
* is or sits in a menu, listbox, dialog, tooltip or popper. The edge light and the sheen;
|
|
350
|
+
* never a border colour or a lift. */
|
|
282
351
|
@supports selector(:has(*)) {
|
|
283
352
|
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
284
353
|
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
@@ -294,8 +363,7 @@
|
|
|
294
363
|
):not(
|
|
295
364
|
:has(
|
|
296
365
|
table, [role='table'], [role='grid'], [role='treegrid'], [role='search'], [role='searchbox'],
|
|
297
|
-
[role='combobox'], select, textarea,
|
|
298
|
-
input:not([type='checkbox'], [type='radio'], [type='hidden'], [type='button'], [type='submit'], [type='reset'])
|
|
366
|
+
[role='combobox'], select, textarea, input:read-write
|
|
299
367
|
)
|
|
300
368
|
):not(
|
|
301
369
|
:where(
|
|
@@ -318,8 +386,7 @@
|
|
|
318
386
|
):not(
|
|
319
387
|
:has(
|
|
320
388
|
table, [role='table'], [role='grid'], [role='treegrid'], [role='search'], [role='searchbox'],
|
|
321
|
-
[role='combobox'], select, textarea,
|
|
322
|
-
input:not([type='checkbox'], [type='radio'], [type='hidden'], [type='button'], [type='submit'], [type='reset'])
|
|
389
|
+
[role='combobox'], select, textarea, input:read-write
|
|
323
390
|
)
|
|
324
391
|
):not(
|
|
325
392
|
:where(
|
|
@@ -342,8 +409,7 @@
|
|
|
342
409
|
):not(
|
|
343
410
|
:has(
|
|
344
411
|
table, [role='table'], [role='grid'], [role='treegrid'], [role='search'], [role='searchbox'],
|
|
345
|
-
[role='combobox'], select, textarea,
|
|
346
|
-
input:not([type='checkbox'], [type='radio'], [type='hidden'], [type='button'], [type='submit'], [type='reset'])
|
|
412
|
+
[role='combobox'], select, textarea, input:read-write
|
|
347
413
|
)
|
|
348
414
|
):not(
|
|
349
415
|
:where(
|
|
@@ -375,31 +441,33 @@
|
|
|
375
441
|
0 18px 40px -22px color-mix(in oklab, var(--color-accent-glow) 60%, transparent),
|
|
376
442
|
var(--shadow-pop);
|
|
377
443
|
}
|
|
378
|
-
/* Hand-drawn clickable cards:
|
|
379
|
-
*
|
|
380
|
-
*
|
|
444
|
+
/* Hand-drawn clickable cards: an element that is clickable itself (a link, a button, a
|
|
445
|
+
* button or link role, or data-interactive) with the card tokens. No look at its body:
|
|
446
|
+
* a :has() on the children named div and p, and Chrome re-checked it for every div or p
|
|
447
|
+
* inserted anywhere (about 1.9 ms each on a 20,000-element page), so a card with no body
|
|
448
|
+
* lifts too. A disabled one (:disabled, aria-disabled) never does: it is not available.
|
|
449
|
+
* Chips, page numbers, toggles and pickers that share the tokens are skipped by their ARIA
|
|
450
|
+
* state. A <div onClick> leaves no trace in the DOM: give it a role, or move it
|
|
381
451
|
* to Card or GlassCard, which set data-interactive. */
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
var(--shadow-pop);
|
|
402
|
-
}
|
|
452
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
453
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
454
|
+
:is(a[href], button, [role='button'], [role='link'], [data-interactive])[class~='border']:is(
|
|
455
|
+
[class~='rounded-lg'], [class~='rounded-xl'], [class~='rounded-2xl'], [class~='rounded-card']
|
|
456
|
+
):is([class~='bg-bg-surface'], [class~='bg-bg-elevated'], [class~='bg-surface'], [class~='bg-card']):not(
|
|
457
|
+
[data-slot], :disabled, [aria-disabled='true'], [aria-pressed], [aria-selected],
|
|
458
|
+
[aria-current], [role='tab'], [role='radio'], [role='option'], [role='combobox'],
|
|
459
|
+
[role='menuitem'], [class*='status-'], [class~='ring-2'], [class*='sticky'], :focus-visible
|
|
460
|
+
):not(
|
|
461
|
+
:where(
|
|
462
|
+
[class*='sticky'] *, [role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *,
|
|
463
|
+
[role='alertdialog'] *, [role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
|
|
464
|
+
)
|
|
465
|
+
):hover:not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
466
|
+
border-color: color-mix(in oklab, var(--color-accent-glow) 45%, transparent);
|
|
467
|
+
box-shadow:
|
|
468
|
+
0 0 0 1px color-mix(in oklab, var(--color-accent-glow) 30%, transparent),
|
|
469
|
+
0 18px 40px -22px color-mix(in oklab, var(--color-accent-glow) 60%, transparent),
|
|
470
|
+
var(--shadow-pop);
|
|
403
471
|
}
|
|
404
472
|
}
|
|
405
473
|
|
|
@@ -469,12 +537,13 @@
|
|
|
469
537
|
}
|
|
470
538
|
|
|
471
539
|
/* ---------- D3: tables ----------
|
|
472
|
-
* An accent wash on the header and on the row under the pointer (background
|
|
473
|
-
* row's own hover fill and the selected tint stay underneath), and an accent
|
|
474
|
-
* hovered row's start edge. In the light theme, muted text there reads in the
|
|
475
|
-
* token and a link in its hover token: muted (#6B7280) is 4.63:1 on the canvas
|
|
476
|
-
* a hovered fe-libs row today, a link 4.70:1 on that row, so the approved
|
|
477
|
-
* them under 4.5:1 (secondary and the link's hover token keep 6:1 or
|
|
540
|
+
* An accent wash on the header and on the cells of the row under the pointer (background
|
|
541
|
+
* images, so a row's own hover fill and the selected tint stay underneath), and an accent
|
|
542
|
+
* bar on the hovered row's start edge. In the light theme, muted text there reads in the
|
|
543
|
+
* secondary token and a link in its hover token: muted (#6B7280) is 4.63:1 on the canvas
|
|
544
|
+
* and 4.39:1 on a hovered fe-libs row today, a link 4.70:1 on that row, so the approved
|
|
545
|
+
* washes would take them under 4.5:1 (secondary and the link's hover token keep 6:1 or
|
|
546
|
+
* more).
|
|
478
547
|
* The remap covers the aliases that resolve at :root and so never follow a remapped
|
|
479
548
|
* --color-text-muted: text-muted-foreground (semantic.css, app-shell.css and the app's
|
|
480
549
|
* @theme) and text-content-muted / -tertiary (app-shell.css). The header's remap sits on the
|
|
@@ -504,57 +573,58 @@
|
|
|
504
573
|
--color-text-link: var(--color-text-linkHover);
|
|
505
574
|
}
|
|
506
575
|
@media (hover: hover) {
|
|
507
|
-
/*
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
)
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
576
|
+
/* The wash paints on the hovered row's cells (the row's own hover fill and the selected
|
|
577
|
+
* tint stay underneath them), and the bar on its first cell, except a full-width colspan
|
|
578
|
+
* cell (an expanded detail, "No variables yet"): that row is not a row to pick. Keyed on
|
|
579
|
+
* the cells, not on the row with a :has(): a :has() that names td made Chrome re-check it
|
|
580
|
+
* for every row inserted anywhere (about 3.7 ms a row on a 20,000-element page). */
|
|
581
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
582
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
583
|
+
:is([data-slot='table'], table):not(
|
|
584
|
+
.prose table, [data-slot='glass-card']:is([data-treatment='metric'], [data-treatment='glass']) table
|
|
585
|
+
)
|
|
586
|
+
> :is([data-slot='table-body'], tbody)
|
|
587
|
+
> tr:hover:not([data-state='selected'], [aria-selected='true'])
|
|
588
|
+
> :not(td[colspan]:only-child):not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
589
|
+
background-image: linear-gradient(
|
|
590
|
+
color-mix(in oklab, var(--color-accent-glow) var(--depth-row-wash), transparent),
|
|
591
|
+
color-mix(in oklab, var(--color-accent-glow) var(--depth-row-wash), transparent)
|
|
592
|
+
);
|
|
593
|
+
}
|
|
594
|
+
/* The light remap sits on the row itself, so a colour class on the <tr> reads it too (a
|
|
595
|
+
* colspan row's muted text reads the secondary token as well: more contrast, no wash). */
|
|
596
|
+
:root[data-depth='rich']:not([data-theme='high-contrast']):not(.dark)
|
|
597
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
598
|
+
:is([data-slot='table'], table):not(
|
|
599
|
+
.prose table, [data-slot='glass-card']:is([data-treatment='metric'], [data-treatment='glass']) table
|
|
600
|
+
)
|
|
601
|
+
> :is([data-slot='table-body'], tbody)
|
|
602
|
+
> tr:hover:not([data-state='selected'], [aria-selected='true']):not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
603
|
+
--color-text-muted: var(--color-text-secondary);
|
|
604
|
+
--color-muted-foreground: var(--color-text-secondary);
|
|
605
|
+
--color-content-muted: var(--color-text-secondary);
|
|
606
|
+
--color-content-tertiary: var(--color-text-secondary);
|
|
607
|
+
--color-text-link: var(--color-text-linkHover);
|
|
608
|
+
}
|
|
609
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])
|
|
610
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
611
|
+
:is([data-slot='table'], table):not(
|
|
612
|
+
.prose table, [data-slot='glass-card']:is([data-treatment='metric'], [data-treatment='glass']) table
|
|
613
|
+
)
|
|
614
|
+
> :is([data-slot='table-body'], tbody)
|
|
615
|
+
> tr:hover:not([data-state='selected'], [aria-selected='true'])
|
|
616
|
+
> :first-child:not(td[colspan]:only-child):not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
617
|
+
box-shadow: inset 3px 0 0 var(--color-accent-glow);
|
|
618
|
+
}
|
|
619
|
+
:root[data-depth='rich']:not([data-theme='high-contrast'])[dir='rtl']
|
|
620
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
621
|
+
:is([data-slot='table'], table):not(
|
|
622
|
+
.prose table, [data-slot='glass-card']:is([data-treatment='metric'], [data-treatment='glass']) table
|
|
623
|
+
)
|
|
624
|
+
> :is([data-slot='table-body'], tbody)
|
|
625
|
+
> tr:hover:not([data-state='selected'], [aria-selected='true'])
|
|
626
|
+
> :first-child:not(td[colspan]:only-child):not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
627
|
+
box-shadow: inset -3px 0 0 var(--color-accent-glow);
|
|
558
628
|
}
|
|
559
629
|
}
|
|
560
630
|
|
|
@@ -737,22 +807,21 @@
|
|
|
737
807
|
):hover:not([data-glow], [class*='status-']):not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
738
808
|
translate: 0 var(--depth-lift);
|
|
739
809
|
}
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
}
|
|
810
|
+
:root[data-depth='rich']:not([data-theme='high-contrast']):not([data-reduce-motion])
|
|
811
|
+
[data-shell-page][data-page-width]:not([data-page-width='tool'])
|
|
812
|
+
:is(a[href], button, [role='button'], [role='link'], [data-interactive])[class~='border']:is(
|
|
813
|
+
[class~='rounded-lg'], [class~='rounded-xl'], [class~='rounded-2xl'], [class~='rounded-card']
|
|
814
|
+
):is([class~='bg-bg-surface'], [class~='bg-bg-elevated'], [class~='bg-surface'], [class~='bg-card']):not(
|
|
815
|
+
[data-slot], :disabled, [aria-disabled='true'], [aria-pressed], [aria-selected],
|
|
816
|
+
[aria-current], [role='tab'], [role='radio'], [role='option'], [role='combobox'],
|
|
817
|
+
[role='menuitem'], [class*='status-'], [class*='sticky']
|
|
818
|
+
):not(
|
|
819
|
+
:where(
|
|
820
|
+
[class*='sticky'] *, [role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *,
|
|
821
|
+
[role='alertdialog'] *, [role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
|
|
822
|
+
)
|
|
823
|
+
):hover:not(:where([data-depth='off'], [data-depth='off'] *)) {
|
|
824
|
+
translate: 0 var(--depth-lift);
|
|
756
825
|
}
|
|
757
826
|
}
|
|
758
827
|
}
|