@apliteni/apliteni-ui 0.189.0 → 0.190.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/docs/components.md +54 -12
- package/docs/foundations.md +27 -12
- package/guidelines/colour-and-theming.md +1 -1
- package/guidelines/dashboards-and-reports.md +15 -5
- package/guidelines/stat-bands.md +2 -2
- package/guidelines/text-length.md +12 -0
- package/guidelines/the-page.md +26 -0
- package/package.json +1 -1
- package/react/dist/index.css +6 -3
- package/react/dist/index.d.ts +42 -7
- package/react/dist/index.js +54 -31
- package/src/logic/filter-bar.js +1 -1
- package/src/styles/avatar.css +4 -1
- package/src/styles/base.css +6 -0
- package/src/styles/button.css +13 -0
- package/src/styles/card.css +96 -6
- package/src/styles/chart.css +2 -0
- package/src/styles/code.css +32 -3
- package/src/styles/drawer.css +6 -2
- package/src/styles/empty.css +14 -0
- package/src/styles/layout.css +101 -2
- package/src/styles/nav.css +3 -3
- package/src/styles/segmented.css +3 -0
- package/src/styles/stat.css +38 -0
- package/src/styles/table.css +31 -20
- package/src/styles/tap-zone.css +6 -1
- package/src/tokens/tokens.css +40 -12
package/src/styles/nav.css
CHANGED
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
|
|
76
76
|
}
|
|
77
77
|
.ui-nav .ui-nav__item { color: var(--text); } /* (0,2,0): a host sheet's a:link is (0,1,1) — why: docs/components.md#page-shell */
|
|
78
|
-
.ui-nav__item:hover { background: color-mix(in srgb, var(--
|
|
78
|
+
.ui-nav__item:hover { background: color-mix(in srgb, var(--nav-active-fill) 50%, transparent); /* code-bg: inherit — The wash keeps the containing ground. */ color: var(--strong); }
|
|
79
79
|
.ui-nav__item.is-active {
|
|
80
|
-
background: var(--
|
|
80
|
+
background: var(--nav-active-fill); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */
|
|
81
81
|
color: var(--strong);
|
|
82
82
|
font-weight: 500;
|
|
83
83
|
}
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
height: 100%;
|
|
277
277
|
border-radius: 10px;
|
|
278
278
|
transform: translateY(-50%); /* motion: still — a mark on the current row, whose own highlight already transitions; this centres it, it does not travel */
|
|
279
|
-
background: var(--
|
|
279
|
+
background: var(--nav-active-fill); /* code-bg: inherit — The plate contains no focus target. */
|
|
280
280
|
z-index: -1;
|
|
281
281
|
}
|
|
282
282
|
/* Nothing switches the hover wash off here: since #588 a folded row is only as wide
|
package/src/styles/segmented.css
CHANGED
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
push the page's scrollWidth past the viewport, which drags every sibling with
|
|
8
8
|
it. Wrapping keeps the focus band unclipped, which `overflow: auto` here
|
|
9
9
|
would not. #435 */
|
|
10
|
+
/* #850: the light page is one white ground, so the track's white reads as nothing. It
|
|
11
|
+
draws the 1px control edge instead, as a button and a select do. why: docs/foundations.md#elevation */
|
|
12
|
+
:root[data-theme="light"] .ui-seg:not(.ui-seg--underline) { box-shadow: inset 0 0 0 1px var(--control-edge); }
|
|
10
13
|
.ui-seg {
|
|
11
14
|
display: inline-flex;
|
|
12
15
|
/* `inline-flex` sizes the track to its pills, but a flex or grid parent stretches a
|
package/src/styles/stat.css
CHANGED
|
@@ -117,11 +117,49 @@ dd.ui-stat__caption { contain: inline-size; }
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
.ui-stats--tiles .ui-stats__list { gap: var(--space-4); }
|
|
120
|
+
/* #850: a lone light card is a grouping of space with no line, but a row of
|
|
121
|
+
tiles is tightly placed, so each tile keeps its soft edge and its padding.
|
|
122
|
+
The edge is the card's own --card-edge in both themes. */
|
|
123
|
+
:root[data-theme="light"] .ui-stats--tiles .ui-stat.ui-card:not(.ui-card--pad-lg):not(.ui-card--accent):not(.ui-card--live) {
|
|
124
|
+
border: 1px solid var(--card-edge);
|
|
125
|
+
padding-block: var(--space-5);
|
|
126
|
+
margin-inline: 0;
|
|
127
|
+
}
|
|
120
128
|
|
|
121
129
|
.ui-stats--open .ui-stat {
|
|
122
130
|
border-top: 1px solid var(--border-strong);
|
|
123
131
|
padding-top: var(--space-4);
|
|
124
132
|
}
|
|
133
|
+
/* #850: on the light page no hairline above an open stat; the value is the signal. */
|
|
134
|
+
:root[data-theme="light"] .ui-stats--open .ui-stat { border-top: 0; }
|
|
135
|
+
/* #850 round 34: without that rule the light open figures read as one band, so a
|
|
136
|
+
vertical soft line between figures in a row keeps the columns apart. The line
|
|
137
|
+
stops where a figure starts a new row: the odd fold stacks every figure, and the
|
|
138
|
+
pairs fold starts its second row at the third figure. The column gap halves so the
|
|
139
|
+
line sits centred between the two figures. */
|
|
140
|
+
:root[data-theme="light"] .ui-stats--open .ui-stats__list { column-gap: var(--space-6); }
|
|
141
|
+
:root[data-theme="light"] .ui-stats--open .ui-stat + .ui-stat {
|
|
142
|
+
border-inline-start: 1px solid var(--border);
|
|
143
|
+
padding-inline-start: var(--space-6);
|
|
144
|
+
}
|
|
145
|
+
@container (width <= 50rem) {
|
|
146
|
+
:root[data-theme="light"] .ui-stats--open .ui-stats__list:has(> .ui-stat:last-child:nth-child(odd)) > .ui-stat + .ui-stat {
|
|
147
|
+
border-inline-start: 0;
|
|
148
|
+
padding-inline-start: 0;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
@container (width <= 32rem) {
|
|
152
|
+
:root[data-theme="light"] .ui-stats--open .ui-stat + .ui-stat {
|
|
153
|
+
border-inline-start: 0;
|
|
154
|
+
padding-inline-start: 0;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
@container (32rem < width <= 66rem) {
|
|
158
|
+
:root[data-theme="light"] .ui-stats--open .ui-stats__list:has(> .ui-stat:nth-child(4):last-child) > .ui-stat:nth-child(3) {
|
|
159
|
+
border-inline-start: 0;
|
|
160
|
+
padding-inline-start: 0;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
125
163
|
.ui-stats--open .ui-stat__value { font-size: var(--text-3xl); }
|
|
126
164
|
|
|
127
165
|
/* Wrapping alone would leave three figures on one row and one on the next. So
|
package/src/styles/table.css
CHANGED
|
@@ -131,22 +131,6 @@
|
|
|
131
131
|
color: var(--strong);
|
|
132
132
|
text-decoration: underline;
|
|
133
133
|
}
|
|
134
|
-
/* One exception, and it is the way through: a reference that opens another screen at
|
|
135
|
-
this row. The rule above was written to keep a LEDGER's identifiers out of the accent
|
|
136
|
-
— a whole column of them is an accent with no job (guidelines/density-and-accents.md,
|
|
137
|
-
give-accents-a-job) — but a dashboard's exceptions are three rows, and there the link
|
|
138
|
-
is how a reader reaches the row's own report. Left in the row's ink it was the plain
|
|
139
|
-
cell beside it to the pixel, resolving only on hover, which a phone does not have.
|
|
140
|
-
.ui-table__pair is the cell that carries a reference and its state, so the exception is
|
|
141
|
-
as narrow as that cell. The ink is base.css's own `a { color: var(--accent) }`, at
|
|
142
|
-
7.34:1 in light and 5.53:1 in dark on the table's ground.
|
|
143
|
-
why: Artur, round r34; guidelines/dashboards-and-reports.md#link-each-reference-to-its-row
|
|
144
|
-
held by: src/styles/table.test.js */
|
|
145
|
-
.ui-table :where(td, th) .ui-table__pair a:not(.ui-btn):not(.ui-identity) { color: var(--accent); }
|
|
146
|
-
.ui-table :where(td, th) .ui-table__pair a:not(.ui-btn):not(.ui-identity):hover {
|
|
147
|
-
color: var(--accent);
|
|
148
|
-
text-decoration: underline;
|
|
149
|
-
}
|
|
150
134
|
/* A plain link — one carrying no class — is the link these rules are about. An inline-block
|
|
151
135
|
box, so a title link that wraps paints one ring instead of one per line, and the kit's small
|
|
152
136
|
corner for that ring to follow. Anchors the kit already styles (`.ui-btn`, `.ui-identity`,
|
|
@@ -252,12 +236,14 @@
|
|
|
252
236
|
/* The empty state (.ui-empty) — shown when a table/list has no rows — now
|
|
253
237
|
lives in styles/empty.css as a standalone component (illustration support). */
|
|
254
238
|
|
|
255
|
-
/* Tables share their containing card
|
|
239
|
+
/* Tables share their containing card's reading surface, including pinned cells. The code
|
|
256
240
|
chip's hand-off travels with it, so an identifier in a cell keeps the page rather than
|
|
257
|
-
the card the cell is now painted with.
|
|
258
|
-
|
|
241
|
+
the card the cell is now painted with. --table-bg is the surface in dark and the white
|
|
242
|
+
page in light (where --surface is white), and --table-code-bg is --code-chip-surface,
|
|
243
|
+
the page in dark and the quiet fill in light. why: src/tokens/tokens.css */
|
|
244
|
+
.ui-card { --table-bg: var(--surface); --table-code-bg: var(--code-chip-surface); }
|
|
259
245
|
/* A drawer group is a reading surface in the same way, so its table takes the drawer's ground. */
|
|
260
|
-
.ui-drawer .ui-drawer__section { --table-bg: var(--drawer-surface); --table-code-bg: var(--
|
|
246
|
+
.ui-drawer .ui-drawer__section { --table-bg: var(--drawer-surface); --table-code-bg: var(--code-chip-surface); }
|
|
261
247
|
|
|
262
248
|
/* White in light, base canvas in dark; never a grey or tinted data surface. */
|
|
263
249
|
.ui-table { background: var(--table-bg); }
|
|
@@ -625,6 +611,19 @@ a.ui-identity:hover { text-decoration: underline; }
|
|
|
625
611
|
.ui-card--pad-sm > :is(.ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense), .ui-table-scroll:has(> .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense))):first-child { margin-top: calc(-1 * var(--space-5)); }
|
|
626
612
|
.ui-card--pad-sm > :is(.ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense), .ui-table-scroll:has(> .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense))):last-child { margin-bottom: calc(-1 * var(--space-5)); }
|
|
627
613
|
.ui-card--fit > :is(.ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense), .ui-table-scroll:has(> .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense))) { width: auto; max-width: calc(100% + 2 * var(--space-6)); }
|
|
614
|
+
/* #850: on the light page a table in a card sits on the column, so its rules and its end
|
|
615
|
+
cells end on the column edges. The frame keeps its side bands below.
|
|
616
|
+
why: docs/foundations.md#spacing-and-rhythm */
|
|
617
|
+
:root[data-theme="light"] .ui-card > :is(.ui-table, .ui-table-scroll) {
|
|
618
|
+
width: 100%;
|
|
619
|
+
max-width: 100%;
|
|
620
|
+
margin-inline: 0;
|
|
621
|
+
}
|
|
622
|
+
/* #850: the row table's vertical bleed hangs it out by the card's 24px padding, but the
|
|
623
|
+
light card removed that padding. The card clips its overflow, so the last row was cut and
|
|
624
|
+
faded at the bottom. Reset the two ends to 0. why: docs/foundations.md#spacing-and-rhythm */
|
|
625
|
+
:root[data-theme="light"] .ui-card > :is(.ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense), .ui-table-scroll:has(> .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense))):first-child { margin-top: 0; }
|
|
626
|
+
:root[data-theme="light"] .ui-card > :is(.ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense), .ui-table-scroll:has(> .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense))):last-child { margin-bottom: 0; }
|
|
628
627
|
/* The frame keeps its side bands and takes a top band, because the sticky header covers a
|
|
629
628
|
ring drawn anywhere else. The frame clips its cells to the inner curve of the bands, so
|
|
630
629
|
the header follows the ring at the top corners. The header gives the top band back from
|
|
@@ -639,6 +638,18 @@ a.ui-identity:hover { text-decoration: underline; }
|
|
|
639
638
|
.ui-card > .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) { --cell-edge: var(--space-6); }
|
|
640
639
|
/* In a frame, the side band holds space-1 of the card's text edge. */
|
|
641
640
|
.ui-card > .ui-table-scroll > .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) { --cell-edge: calc(var(--space-6) - var(--space-1)); }
|
|
641
|
+
/* #850: on the light page the table sits on the column, so its end cells are flush with the
|
|
642
|
+
column edges. The dense, zebra and compact end insets go, and the row table's --cell-edge
|
|
643
|
+
room is zeroed per cell rather than by redefining the token: the contrast walk reads
|
|
644
|
+
scoped custom properties flat, and a 0px winner would zero every row table it meets. */
|
|
645
|
+
:root[data-theme="light"] .ui-card .ui-table :is(th, td):first-child { padding-left: 0; }
|
|
646
|
+
:root[data-theme="light"] .ui-card .ui-table :is(th, td):last-child { padding-right: 0; }
|
|
647
|
+
:root[data-theme="light"] .ui-card .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) :is(th, td):first-child:not(:where(.ui-table--pinned) .ui-table__selection) { padding-left: 0; }
|
|
648
|
+
:root[data-theme="light"] .ui-card .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) :is(th, td):last-child { padding-right: 0; }
|
|
649
|
+
:root[data-theme="light"] .ui-card .ui-table td.ui-table__linked:first-child > :is(a:not([class]), a.ui-identity):only-child { padding-left: 0; }
|
|
650
|
+
:root[data-theme="light"] .ui-card .ui-table td.ui-table__linked:last-child > :is(a:not([class]), a.ui-identity):only-child { padding-right: 0; }
|
|
651
|
+
:root[data-theme="light"] .ui-card .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) td.ui-table__linked:first-child > :is(a:not([class]), a.ui-identity):only-child { padding-left: 0; }
|
|
652
|
+
:root[data-theme="light"] .ui-card .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) td.ui-table__linked:last-child > :is(a:not([class]), a.ui-identity):only-child { padding-right: 0; }
|
|
642
653
|
/* In a drawer group the table hangs out by its end-cell inset, into the body's padding, so
|
|
643
654
|
the first column starts on the edge of the group heading and the drawer title. */
|
|
644
655
|
.ui-drawer .ui-drawer__section > .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) {
|
package/src/styles/tap-zone.css
CHANGED
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
/* The table under a filter bar moves down with the chips: the bar's inner gap
|
|
150
150
|
opens to --tap-gap too, so the last row's layers stop short of the table.
|
|
151
151
|
In .ui-stack the bar's margin collapses with the block's 8px one. */
|
|
152
|
-
:is(.ui-app__body, .ui-card-stack) > .ui-toolbar:not(:last-child) { margin-bottom: calc(var(--tap-gap) - var(--space-
|
|
152
|
+
:is(.ui-app__body, .ui-card-stack) > .ui-toolbar:not(:last-child) { margin-bottom: calc(var(--tap-gap) - var(--space-10)) !important; }
|
|
153
153
|
.ui-stack > .ui-toolbar:not(:last-child) { margin-bottom: var(--tap-gap) !important; --tap-clear-y: var(--tap-gap); }
|
|
154
154
|
|
|
155
155
|
/* Inside a chip there is nothing to open: parting the value from its remove
|
|
@@ -219,6 +219,11 @@
|
|
|
219
219
|
--tap-clear-y: var(--tap-gap);
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
+
/* Full-width buttons stacked one per row — a detail page's Revoke access and
|
|
223
|
+
Create a new key, a task's Open document. The stack's own gap is the room,
|
|
224
|
+
so the layer opens down into it rather than widening the column. */
|
|
225
|
+
.ui-card-stack { --tap-clear-y: var(--tap-gap); }
|
|
226
|
+
|
|
222
227
|
/* `.ui-seg`'s shape at seven columns: cells packed across — that tight track
|
|
223
228
|
IS the control — opening down, where the sheet has the room. The rows
|
|
224
229
|
inherit both clearances. React-only, so the browser half below reports no
|
package/src/tokens/tokens.css
CHANGED
|
@@ -151,11 +151,19 @@
|
|
|
151
151
|
hold over EVERY opaque ground, which is why this is a token and not a context rule.
|
|
152
152
|
Measured in stories/code-chip.test.js. */
|
|
153
153
|
--wash-code-bg: var(--bg);
|
|
154
|
+
--code-chip-page: var(--surface); /* a chip on the page takes the card */
|
|
155
|
+
--code-chip-surface: var(--bg); /* a chip in a painted container takes the page */
|
|
156
|
+
/* The auth page's branded ground, brand C: a 135-degree gradient a product may override. */
|
|
157
|
+
--ui-auth-ground: linear-gradient(135deg, color-mix(in srgb, var(--color-apliteni-violet-1) 32%, var(--bg)), color-mix(in srgb, var(--color-apliteni-blue-1) 24%, var(--bg)));
|
|
158
|
+
/* The document page's bare backdrop, behind the A4 sheet: the same sunken rung a
|
|
159
|
+
table takes inside a viewer, named once so a page reads it as its own ground. */
|
|
160
|
+
--ui-document-ground: var(--surface-2);
|
|
154
161
|
--surface-2: #161520; /* non-text sunken marks and tracks */
|
|
155
162
|
--surface: #211e2d; /* the card */
|
|
156
163
|
--bg-elevated: #2a2639; /* FLOATING — menus, panels, drawer, modal, toasts */
|
|
157
164
|
--surface-3: #2d293c; /* non-text quiet fills */
|
|
158
165
|
--seg-active-bg: #383350; /* raised pill — clearly above the inset track in dark */
|
|
166
|
+
--nav-active-fill: var(--surface); /* one rung off the page the open rail stands on */
|
|
159
167
|
/* The raised handle on a control track (switch knob). White in both themes and under
|
|
160
168
|
every accent: it reads on the plain track AND on the accent fill of an on control. */
|
|
161
169
|
--control-knob: #ffffff;
|
|
@@ -397,15 +405,23 @@
|
|
|
397
405
|
ON, and separates the panel that floats over it by role — its two-step edge and
|
|
398
406
|
its drop — rather than by a rung it has nothing left to pay for. See issue #448.
|
|
399
407
|
why: docs/foundations.md#elevation */
|
|
400
|
-
--bg: #
|
|
401
|
-
--table-bg:
|
|
402
|
-
--table-code-bg: var(--
|
|
403
|
-
--wash-code-bg: var(--surface);
|
|
408
|
+
--bg: #ffffff; /* the page takes the card's white, #850: --surface is #ffffff here, written out because gates read --bg without var() substitution */
|
|
409
|
+
--table-bg: var(--bg); /* a table is flush with the page */
|
|
410
|
+
--table-code-bg: var(--surface-3); /* a chip in a table takes a quiet fill: page and card are one white now */
|
|
411
|
+
--wash-code-bg: var(--surface-3); /* a chip on a wash takes a quiet fill for the same reason */
|
|
412
|
+
--code-chip-page: var(--surface-3); /* #850: page and card are one white, so a chip takes the quiet fill */
|
|
413
|
+
--code-chip-surface: var(--surface-3);
|
|
414
|
+
/* The auth page's branded ground, brand C: a 135-degree gradient a product may override. */
|
|
415
|
+
--ui-auth-ground: linear-gradient(135deg, var(--color-apliteni-violet-7), var(--color-apliteni-blue-8));
|
|
416
|
+
/* The document page's bare backdrop, behind the A4 sheet: the same sunken rung a
|
|
417
|
+
table takes inside a viewer, named once so a page reads it as its own ground. */
|
|
418
|
+
--ui-document-ground: var(--surface-2);
|
|
404
419
|
--surface-2: #e9ecf3; /* non-text sunken marks and tracks */
|
|
405
420
|
--surface: #ffffff; /* the card */
|
|
406
421
|
--bg-elevated: #ffffff; /* FLOATING — menus, panels, drawer, modal, toasts */
|
|
407
422
|
--surface-3: #eef0f5; /* non-text quiet fills */
|
|
408
423
|
--seg-active-bg: #ffffff; /* white pill raised above the grey track in light */
|
|
424
|
+
--nav-active-fill: var(--surface-3); /* one rung off the white page, #850 */
|
|
409
425
|
--control-knob: #ffffff;
|
|
410
426
|
--border: #e4e7ee;
|
|
411
427
|
--border-strong: #cdd2dc;
|
|
@@ -606,7 +622,7 @@
|
|
|
606
622
|
* it is not using itself, and the chip keeps a step wherever it is written. The page hands
|
|
607
623
|
* over the card below; every painted container hands over the page, in the recipe under it.
|
|
608
624
|
* Held by stories/code-chip.test.js. why: docs/foundations.md#elevation */
|
|
609
|
-
:root { --code-bg: var(--
|
|
625
|
+
:root { --code-bg: var(--code-chip-page); }
|
|
610
626
|
|
|
611
627
|
/* Every painted container hands an inline code chip the page. One recipe keeps surface
|
|
612
628
|
* propagation cheap and consistent. The ring is not in this list since #578: an outline
|
|
@@ -617,9 +633,6 @@
|
|
|
617
633
|
.ui-app__rail,
|
|
618
634
|
.ui-auth__card,
|
|
619
635
|
.ui-callout,
|
|
620
|
-
.ui-card,
|
|
621
|
-
.ui-card--accent,
|
|
622
|
-
.ui-card--live,
|
|
623
636
|
.ui-card__page,
|
|
624
637
|
.ui-cmdk__panel,
|
|
625
638
|
.ui-confirm__panel,
|
|
@@ -628,6 +641,7 @@
|
|
|
628
641
|
.ui-dropdown__panel,
|
|
629
642
|
.ui-fbcomposer,
|
|
630
643
|
.ui-filter-bar__chip,
|
|
644
|
+
.ui-float-bar,
|
|
631
645
|
.ui-footer--app,
|
|
632
646
|
.ui-seg,
|
|
633
647
|
.ui-snippet--reveal,
|
|
@@ -642,7 +656,23 @@
|
|
|
642
656
|
.ui-toast--outline,
|
|
643
657
|
.ui-toast--solid,
|
|
644
658
|
.vsw__menu {
|
|
645
|
-
--code-bg: var(--
|
|
659
|
+
--code-bg: var(--code-chip-surface);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
/* #850: a card on the page draws no box, so a chip inside one sits on the page and takes
|
|
663
|
+
* the same surface a chip on the page takes. #850's review keeps the dark card's own
|
|
664
|
+
* paint, so a chip inside one takes the page, the rung below it — --code-chip-surface is
|
|
665
|
+
* the page's chip in dark and the page's chip in light, where the two agree. The split
|
|
666
|
+
* auth's plain half and its shell paint the page for the same reason, and a tinted card
|
|
667
|
+
* keeps the plain card as its step. */
|
|
668
|
+
.ui-card {
|
|
669
|
+
--code-bg: var(--code-chip-surface);
|
|
670
|
+
}
|
|
671
|
+
.ui-card--accent,
|
|
672
|
+
.ui-card--live,
|
|
673
|
+
.ui-auth--split,
|
|
674
|
+
.ui-auth--split .ui-auth__pane {
|
|
675
|
+
--code-bg: var(--code-chip-page);
|
|
646
676
|
}
|
|
647
677
|
|
|
648
678
|
/* The two painted grounds that are not a plain card, and what each has left to hand over.
|
|
@@ -672,10 +702,8 @@
|
|
|
672
702
|
.ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:not(.is-target):has(> .ui-table__selection :checked):hover > :is(td, th) { --code-bg: var(--table-bg); }
|
|
673
703
|
/* A hovered row in a drawer group takes --surface in dark, so a chip there keeps the page.
|
|
674
704
|
The drawer adds no weight, so a checked row keeps the hand-off above. */
|
|
675
|
-
:where(.ui-drawer .ui-drawer__section) .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:hover:not(.is-target) > :is(td, th) { --code-bg: var(--
|
|
705
|
+
:where(.ui-drawer .ui-drawer__section) .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:hover:not(.is-target) > :is(td, th) { --code-bg: var(--code-chip-surface); }
|
|
676
706
|
:where(:root[data-theme="light"] .ui-drawer .ui-drawer__section) .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:hover:not(.is-target) > :is(td, th) { --code-bg: var(--surface); }
|
|
677
|
-
.ui-card--accent,
|
|
678
|
-
.ui-card--live,
|
|
679
707
|
.ui-snippet--reveal { --code-bg: var(--surface); }
|
|
680
708
|
|
|
681
709
|
/* A wash is not a rung: it is a layer the kit paints OVER one, and it paints behind a chip
|