@apliteni/apliteni-ui 0.170.0 → 0.174.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 +17 -4
- package/docs/foundations.md +12 -6
- package/guidelines/dense-tables.md +3 -1
- package/guidelines/drawer.md +6 -6
- package/guidelines/layout-and-density.md +1 -1
- package/package.json +1 -1
- package/react/README.md +4 -2
- package/react/dist/index.css +8 -1
- package/react/dist/index.js +3 -1
- package/src/styles/badge.css +1 -1
- package/src/styles/button.css +5 -2
- package/src/styles/callout.css +2 -2
- package/src/styles/card.css +1 -1
- package/src/styles/code.css +3 -2
- package/src/styles/confirm.css +1 -1
- package/src/styles/drawer.css +32 -10
- package/src/styles/dropdown.css +8 -6
- package/src/styles/feedback.css +4 -4
- package/src/styles/footer.css +3 -3
- package/src/styles/layout.css +18 -15
- package/src/styles/nav.css +2 -2
- package/src/styles/segmented.css +2 -2
- package/src/styles/success.css +1 -1
- package/src/styles/table.css +30 -0
- package/src/styles/tabs.css +1 -1
- package/src/styles/tap-zone.css +5 -0
- package/src/styles/topbar.css +6 -6
- package/src/tokens/tokens.css +6 -2
package/docs/components.md
CHANGED
|
@@ -563,8 +563,18 @@ must have a search field is a rule rather than a recommendation:
|
|
|
563
563
|
|
|
564
564
|
A drawer is a panel against one edge of the screen. It appears over a scrim. It lets the reader
|
|
565
565
|
look at or change one thing without leaving the list that opened it. **It groups by heading, never
|
|
566
|
-
by card:** `
|
|
567
|
-
then hears each label with its value.
|
|
566
|
+
by card:** `DrawerSection` puts a heading over a `<dl>` of label and value pairs. A screen reader
|
|
567
|
+
then hears each label with its value. **Groups stand 32px apart, with no line between them.**
|
|
568
|
+
Each group heading stands on a 1px `--border` line, the same line as a table head. **A record can
|
|
569
|
+
lead with its key figure:** put a `<dl class="ui-drawer__figure">` in a group with no heading, as
|
|
570
|
+
the first group. Its `<dt>` is the label, and its `<dd>` holds a `.ui-drawer__figure-value`, set at
|
|
571
|
+
22px (`--text-xl`), with a status badge beside it. The figure never breaks across lines.
|
|
572
|
+
**A table in a drawer group takes the drawer's 13px text.** Its head is semibold in strong ink, as
|
|
573
|
+
a group heading is. Its rows have no lines between them. A table that is not a hover table holds
|
|
574
|
+
its rows 8px apart. A hover table keeps its own row height, because its rows are targets. The
|
|
575
|
+
table stands on the drawer's ground, in light and in dark. Its first and last columns start and
|
|
576
|
+
end on the edges of the drawer's other text. A dense or zebra table keeps its own inset.
|
|
577
|
+
The value stays beside its label instead of moving to the far
|
|
568
578
|
edge of the panel. A row whose value is a field or a dropdown lines its label up with the control's first line of text.
|
|
569
579
|
This alignment happens by itself. There is no setting for it.
|
|
570
580
|
Nothing inside a drawer draws a card, a row rule or an `<hr>`. Actions stay
|
|
@@ -927,7 +937,7 @@ floor. So at that width the field uses `flex-basis: 100%`. It takes the full lin
|
|
|
927
937
|
of the row wraps below it.
|
|
928
938
|
|
|
929
939
|
A title without an introduction keeps a 32px gap before the page body.
|
|
930
|
-
A control row directly inside the body sits 8px
|
|
940
|
+
A control row directly inside the page body, a `.ui-card-stack` or a `.ui-stack` sits one inner gap, 8px, above the block it controls. On a touch phone below `560px`, that gap is 20px.
|
|
931
941
|
Use `.ui-toolbar--split` to place the final control at the row's end. On a phone, it stays in that row beside the control before it, rather than dropping to its own line.
|
|
932
942
|
|
|
933
943
|
### Segmented strips that outgrow their column
|
|
@@ -1478,7 +1488,10 @@ top and bottom edges. A date picker in a field does the same. Outside a field, f
|
|
|
1478
1488
|
filter bar, a toolbar or the topbar, the trigger keeps the pill.
|
|
1479
1489
|
Put a form on a card, not on the page ground. A field is drawn by its edge, but the page ground
|
|
1480
1490
|
is too close to the field's own fill for you to see that edge. See
|
|
1481
|
-
[Colour and contrast](foundations.md#colour-and-contrast).
|
|
1491
|
+
[Colour and contrast](foundations.md#colour-and-contrast). **A filter bar is the one exception.**
|
|
1492
|
+
It stands on the page directly above its table card, with no card of its own. On the page ground,
|
|
1493
|
+
the edge of its search field measures 1.37:1 in light and 1.50:1 in dark. Keep that search field
|
|
1494
|
+
live on the page, because a field that is off measures 1.12:1 there.
|
|
1482
1495
|
|
|
1483
1496
|
### Segmented or tabs?
|
|
1484
1497
|
|
package/docs/foundations.md
CHANGED
|
@@ -87,10 +87,15 @@ The kit uses two families, and the split is based on role:
|
|
|
87
87
|
- **Neither family is bundled.** Your page loads both. If a family named by a token is not
|
|
88
88
|
loaded, the browser falls back silently.
|
|
89
89
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
**Each component size is one step of the `--text-*` scale, with no offset.** A host that
|
|
91
|
+
changes a step moves every part on it. Three kinds of size stay off the scale:
|
|
92
|
+
|
|
93
|
+
- A field is 16px on a touch screen. See
|
|
94
|
+
[A field is 16px on a touch screen](#a-field-is-16px-on-a-touch-screen).
|
|
95
|
+
- The landing page's hero title, hero line and section heading are fluid display sizes.
|
|
96
|
+
- Inline code is 0.9 of its sentence, and never smaller than `--text-xs`.
|
|
97
|
+
|
|
98
|
+
The smallest step, `--text-xs`, is 12px. No kit text is smaller.
|
|
94
99
|
|
|
95
100
|
## Labels and titles
|
|
96
101
|
|
|
@@ -109,7 +114,7 @@ sentence case and renders as written. A word that is capitalised in itself stays
|
|
|
109
114
|
| `caption` | `--text-sm` | `--weight-normal` | inherited | a sentence under a specimen, figure or screenshot |
|
|
110
115
|
| `chip` | `--text-xs` | `--weight-semibold` | inherited | a badge, a pill, a menu row's badge, a version badge |
|
|
111
116
|
|
|
112
|
-
On the kit's scale, these are 30, 18, 14.5, 13, 13 and
|
|
117
|
+
On the kit's scale, these are 30, 18, 14.5, 13, 13 and 12px. When two ranks share a size,
|
|
113
118
|
their weight separates them. `label` and `caption` are both 13px. Words use body ink, including
|
|
114
119
|
labels and captions. See [Text ink](#text-ink).
|
|
115
120
|
|
|
@@ -224,7 +229,8 @@ These fill ratios describe separation, not text contrast.
|
|
|
224
229
|
- **A field has no fill step, so the ground you put it on decides whether its box is seen.**
|
|
225
230
|
`--field-bg` and `--disabled-surface` are both `--surface` in both themes. A field is
|
|
226
231
|
therefore drawn by its edge. On the page ground, a disabled field measures 1.12:1. This is
|
|
227
|
-
a white box on a grey page. **Put a form on a card.**
|
|
232
|
+
a white box on a grey page. **Put a form on a card.** A filter bar above a table is the one
|
|
233
|
+
exception. See [Forms](components.md#forms).
|
|
228
234
|
- **The box reports the state, so a field that is off draws the fainter edge of the two.** The
|
|
229
235
|
same two tokens paint a button, so a button that is off drops a rung with the field.
|
|
230
236
|
- **A disabled select carries the kit's own paint and no fade.** The kit's disabled field
|
|
@@ -8,10 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
**Rule:** Put tables on a white surface in light mode and the base canvas in dark mode.
|
|
10
10
|
|
|
11
|
-
**Do:** Mark a hovered row with an inset grey fill
|
|
11
|
+
**Do:** Mark a hovered row with an inset grey fill, with room at both ends.
|
|
12
12
|
|
|
13
13
|
**Don't:** Add a grey zebra.
|
|
14
14
|
|
|
15
|
+
**Except:** A table in a card or drawer group stands on that surface.
|
|
16
|
+
|
|
15
17
|
## Choose density without shrinking type
|
|
16
18
|
|
|
17
19
|
<!-- rule: density -->
|
package/guidelines/drawer.md
CHANGED
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
|
|
37
37
|
**Why:** The drawer already provides the edge and raised surface, so cards add unnecessary boxes.
|
|
38
38
|
|
|
39
|
-
**Do:**
|
|
39
|
+
**Do:** Lead with the key figure, then put a heading over each group.
|
|
40
40
|
|
|
41
|
-
**Don't:** Put each group in a card
|
|
41
|
+
**Don't:** Put each group in a card.
|
|
42
42
|
|
|
43
43
|
## Header and group dividers
|
|
44
44
|
|
|
45
45
|
<!-- rule: three-lines -->
|
|
46
46
|
|
|
47
|
-
**Rule:** Add lines
|
|
47
|
+
**Rule:** Add lines under the header and each group heading. Leave the footer unfilled and without a rule.
|
|
48
48
|
|
|
49
|
-
**Why:** The header line marks the scrolling body
|
|
49
|
+
**Why:** The header line marks the scrolling body, heading lines match table heads, and actions share the panel surface.
|
|
50
50
|
|
|
51
|
-
**Do:**
|
|
51
|
+
**Do:** Hold groups apart with space.
|
|
52
52
|
|
|
53
|
-
**Don't:** Add dividers between
|
|
53
|
+
**Don't:** Add dividers between groups or rows.
|
|
54
54
|
|
|
55
55
|
## Spaced label rows
|
|
56
56
|
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
|
|
52
52
|
**Don't:** Use t-shirt sizes for prose or put `ch` on a wrapper with two font sizes.
|
|
53
53
|
|
|
54
|
-
**Except:** Put `ch` on the element using its font size. The centred `.ui-section-head` uses `--panel-lg` for its 40px heading and
|
|
54
|
+
**Except:** Put `ch` on the element using its font size. The centred `.ui-section-head` uses `--panel-lg` for its 40px heading and 18px copy. Keep `.ui-footer__brand` at 300px because its flex track controls wrapping.
|
|
55
55
|
|
|
56
56
|
## Use the three breakpoints
|
|
57
57
|
|
package/package.json
CHANGED
package/react/README.md
CHANGED
|
@@ -414,8 +414,10 @@ Set `redacted` on a row to display “Hidden” with an eye-off icon without ren
|
|
|
414
414
|
the value. Below 560px, each label appears above its value, and the layout
|
|
415
415
|
changes to one column.
|
|
416
416
|
|
|
417
|
-
DrawerSection groups content under a heading
|
|
418
|
-
|
|
417
|
+
DrawerSection groups content under a heading that stands on a thin line. Groups
|
|
418
|
+
stand apart by space. A section without a title has no heading and no line. Use it
|
|
419
|
+
for a lead figure (`ui-drawer__figure`) or for a table that names its own columns.
|
|
420
|
+
Its `headingLevel` defaults to 3. Import both the kit CSS and the React
|
|
419
421
|
CSS. Use a table for figures that readers need to compare down a column.
|
|
420
422
|
|
|
421
423
|
```tsx
|
package/react/dist/index.css
CHANGED
|
@@ -84,6 +84,13 @@
|
|
|
84
84
|
.ui-toolbar--split .ui-filter-bar {
|
|
85
85
|
column-gap: calc(var(--tap-gap) + var(--space-1) + 1px) !important;
|
|
86
86
|
}
|
|
87
|
+
:is(.ui-app__body, .ui-card-stack) > .ui-toolbar:not(:last-child) {
|
|
88
|
+
margin-bottom: calc(var(--tap-gap) - var(--space-5, 20px)) !important;
|
|
89
|
+
}
|
|
90
|
+
.ui-stack > .ui-toolbar:not(:last-child) {
|
|
91
|
+
margin-bottom: var(--tap-gap) !important;
|
|
92
|
+
--tap-clear-y: var(--tap-gap);
|
|
93
|
+
}
|
|
87
94
|
.ui-filter-bar__chip {
|
|
88
95
|
--tap-clear-x: 0px;
|
|
89
96
|
--tap-clear-y: 0px;
|
|
@@ -281,7 +288,7 @@
|
|
|
281
288
|
margin: 0;
|
|
282
289
|
font-family: var(--font-sans);
|
|
283
290
|
font-weight: var(--weight-semibold);
|
|
284
|
-
font-size: var(--text-
|
|
291
|
+
font-size: var(--text-md);
|
|
285
292
|
color: var(--strong);
|
|
286
293
|
}
|
|
287
294
|
.rx-modal__body {
|
package/react/dist/index.js
CHANGED
|
@@ -688,7 +688,9 @@ function Tooltip({ text: text2, label = text2, value, detail: detail2, placement
|
|
|
688
688
|
if (Date.now() > ignoreMouseUntil.current) close(true);
|
|
689
689
|
},
|
|
690
690
|
onFocus: (event) => {
|
|
691
|
-
if (Date.now()
|
|
691
|
+
if (Date.now() <= ignoreMouseUntil.current || pointerKind.current === "mouse") return;
|
|
692
|
+
dismissed.current = null;
|
|
693
|
+
show(markOf(event.target));
|
|
692
694
|
},
|
|
693
695
|
onBlur: (event) => {
|
|
694
696
|
if (!markOf(event.relatedTarget)) close(true);
|
package/src/styles/badge.css
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
.ui-status--info { color: var(--status-info-ink); }
|
|
50
50
|
.ui-status--neutral { color: var(--text); }
|
|
51
51
|
|
|
52
|
-
/* Pill: same shape, sentence case
|
|
52
|
+
/* Pill: same shape and size, sentence case — a metadata chip */
|
|
53
53
|
.ui-pill {
|
|
54
54
|
display: inline-flex;
|
|
55
55
|
align-items: center;
|
package/src/styles/button.css
CHANGED
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
the edge on each side. A part that takes a button's place uses it, so the
|
|
12
12
|
row keeps its height. */
|
|
13
13
|
--btn-height-md: calc(var(--text-sm) * var(--leading-tight) + 2 * var(--btn-pad-y-md) + 2 * var(--btn-edge-width));
|
|
14
|
+
/* The outer height of an sm button, with or without a glyph. It stands level with a
|
|
15
|
+
pill dropdown trigger. #814 */
|
|
16
|
+
--btn-height-sm: var(--space-8);
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
.ui-btn {
|
|
@@ -109,13 +112,13 @@
|
|
|
109
112
|
/* why: docs/components.md#extra-small-buttons */
|
|
110
113
|
.ui-btn--xs { --btn-pad-y: 4.5px; --btn-pad-x: 8px; --btn-font: var(--text-xs); min-width: 24px; min-height: 24px; }
|
|
111
114
|
.ui-btn--xs svg { width: 13px; height: 13px; stroke-width: 2.8; }
|
|
112
|
-
.ui-btn--sm { --btn-pad-y: 6px; --btn-pad-x: 12px; --btn-font:
|
|
115
|
+
.ui-btn--sm { --btn-pad-y: 6px; --btn-pad-x: 12px; --btn-font: var(--text-sm); min-height: var(--btn-height-sm); }
|
|
113
116
|
.ui-btn--lg { --btn-pad-y: 13px; --btn-pad-x: 24px; --btn-font: var(--text-md); border-radius: var(--radius-md); }
|
|
114
117
|
|
|
115
118
|
/* Icon-only */
|
|
116
119
|
.ui-btn--icon { --btn-pad-y: var(--btn-pad-y-md); padding: var(--btn-pad-y-md); border-radius: var(--radius-sm); }
|
|
117
120
|
.ui-btn--icon.ui-btn--xs { --btn-pad-y: 4.5px; padding: 4.5px; }
|
|
118
|
-
.ui-btn--icon.ui-btn--sm { --btn-pad-y:
|
|
121
|
+
.ui-btn--icon.ui-btn--sm { --btn-pad-y: 7px; padding: 7px; }
|
|
119
122
|
|
|
120
123
|
.ui-btn--block { width: 100%; }
|
|
121
124
|
|
package/src/styles/callout.css
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
padding: 15px 17px;
|
|
9
9
|
border-radius: var(--radius-md);
|
|
10
10
|
background: var(--surface);
|
|
11
|
-
font-size:
|
|
11
|
+
font-size: var(--text-sm);
|
|
12
12
|
line-height: 1.55;
|
|
13
13
|
color: var(--text);
|
|
14
14
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
.ui-callout__icon { width: 18px; height: 18px; flex: none; margin-top: 1px; /* muted-ink: glyph — nonverbal callout icon */ color: var(--muted); }
|
|
18
18
|
.ui-callout__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 2.1; } /* 2.1 of a 24 box drawn at 18px = 1.58 CSS px, which is what buys the 3:1 graphic bar rather than the 4.5:1 text one. docs/foundations.md#icons-and-glyphs */
|
|
19
19
|
.ui-callout b { color: var(--text); font-weight: var(--weight-semibold); }
|
|
20
|
-
.ui-callout code { font-family: var(--font-mono); font-size: 0.92em; color: var(--text); }
|
|
20
|
+
.ui-callout code { font-family: var(--font-mono); font-size: max(0.92em, var(--text-xs)); color: var(--text); }
|
|
21
21
|
|
|
22
22
|
.ui-callout--info { background: var(--glow-cyan); /* code-bg: inherit — a wash paints over a ground and behind a chip, so the opaque ground below it is the step. */ }
|
|
23
23
|
.ui-callout--info .ui-callout__icon { color: var(--chip-info-ink); } /* the chip inks, not the raw signals: in light the raw signal cleared the graphic bar by a tenth on its own wash and read as a smudge, and a stroke is read the way text is. The two are the same value in dark by construction, so only light moves. #206 */
|
package/src/styles/card.css
CHANGED
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
}
|
|
186
186
|
.ui-card__row + .ui-card__row { border-top: 1px solid var(--border); }
|
|
187
187
|
.ui-card__row .lab { color: var(--strong); font-size: var(--text-md); font-weight: var(--weight-medium); }
|
|
188
|
-
.ui-card__row .hint { color: var(--text); font-size:
|
|
188
|
+
.ui-card__row .hint { color: var(--text); font-size: var(--text-sm); margin-top: 3px; }
|
|
189
189
|
|
|
190
190
|
/* Icon chip that leads a card header */
|
|
191
191
|
.ui-card__icon {
|
package/src/styles/code.css
CHANGED
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
color: var(--text);
|
|
66
66
|
cursor: pointer;
|
|
67
67
|
font-family: var(--font-sans);
|
|
68
|
-
font-size:
|
|
68
|
+
font-size: var(--text-xs);
|
|
69
69
|
display: inline-flex;
|
|
70
70
|
align-items: center;
|
|
71
71
|
padding: 2px 4px;
|
|
@@ -116,7 +116,8 @@
|
|
|
116
116
|
1px of offset unpainted. */
|
|
117
117
|
.ui-code {
|
|
118
118
|
font-family: var(--font-mono);
|
|
119
|
-
|
|
119
|
+
/* Inline code follows its sentence, and never draws under the smallest step. #814 */
|
|
120
|
+
font-size: max(0.9em, var(--text-xs));
|
|
120
121
|
background: var(--code-bg);
|
|
121
122
|
padding: 2px 6px;
|
|
122
123
|
border-radius: var(--radius-xs);
|
package/src/styles/confirm.css
CHANGED
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
the one that gives, and scrolls — the same split the drawer's header / body /
|
|
88
88
|
footer makes. The title is an h2 and opts out of the display face base.css
|
|
89
89
|
gives a heading, for the same reason .ui-drawer__title does: at --text-md it
|
|
90
|
-
is the question on a dialog,
|
|
90
|
+
is the question on a dialog, two steps above the answer beneath it.
|
|
91
91
|
why: docs/foundations.md#typefaces */
|
|
92
92
|
.ui-confirm__title {
|
|
93
93
|
margin: 0;
|
package/src/styles/drawer.css
CHANGED
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
.ui-drawer__title {
|
|
144
144
|
margin: 0;
|
|
145
145
|
font-family: var(--font-sans);
|
|
146
|
-
font-size:
|
|
146
|
+
font-size: var(--text-md);
|
|
147
147
|
font-weight: 600;
|
|
148
148
|
letter-spacing: 0.01em;
|
|
149
149
|
color: var(--strong);
|
|
@@ -198,21 +198,19 @@
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
/* -- Groups and rows ------------------------------------------------------- */
|
|
201
|
-
/*
|
|
201
|
+
/* DrawerSection: a heading over label/value rows. The value sits beside its
|
|
202
202
|
label rather than at the far edge, so nothing has to lead the eye across the
|
|
203
|
-
panel, and rows are held apart by space alone.
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
panel, and rows are held apart by space alone. Groups stand apart by space too.
|
|
204
|
+
The one line inside the body stands under each group heading, the same hairline
|
|
205
|
+
as a table head, so a heading and a table head read as one kind of line.
|
|
206
206
|
why: docs/components.md#the-drawer */
|
|
207
|
-
.ui-drawer__section + .ui-drawer__section {
|
|
208
|
-
margin-top: var(--space-6);
|
|
209
|
-
padding-top: var(--space-6);
|
|
210
|
-
border-top: 1px solid var(--border);
|
|
211
|
-
}
|
|
207
|
+
.ui-drawer__section + .ui-drawer__section { margin-top: var(--space-8); }
|
|
212
208
|
/* An h3, and it opts out of the display face for the reason .ui-drawer__title does.
|
|
213
209
|
why: docs/foundations.md#typefaces */
|
|
214
210
|
.ui-drawer__section-title {
|
|
215
211
|
margin: 0 0 var(--space-2);
|
|
212
|
+
padding-bottom: var(--space-2);
|
|
213
|
+
border-bottom: 1px solid var(--border);
|
|
216
214
|
font-family: var(--font-sans);
|
|
217
215
|
font-size: var(--text-sm);
|
|
218
216
|
/* Semibold, and so outside the rank table, which has nothing at this size and
|
|
@@ -221,6 +219,30 @@
|
|
|
221
219
|
font-weight: var(--weight-semibold);
|
|
222
220
|
color: var(--strong);
|
|
223
221
|
}
|
|
222
|
+
/* The record's lead figure: a <dl> of one label over its value, with a status badge
|
|
223
|
+
beside the value. It stands in a group with no heading, before the other groups.
|
|
224
|
+
why: docs/components.md#the-drawer */
|
|
225
|
+
.ui-drawer__figure { margin: 0; }
|
|
226
|
+
.ui-drawer__figure > dt { color: var(--text); }
|
|
227
|
+
.ui-drawer__figure > dd {
|
|
228
|
+
display: flex;
|
|
229
|
+
flex-wrap: wrap;
|
|
230
|
+
align-items: center;
|
|
231
|
+
gap: var(--space-1) var(--space-3);
|
|
232
|
+
margin: var(--space-1) 0 0;
|
|
233
|
+
}
|
|
234
|
+
/* A figure is never broken across lines: `€` stays with its digits. */
|
|
235
|
+
.ui-drawer__figure-value {
|
|
236
|
+
color: var(--strong);
|
|
237
|
+
/* display: readout — a key figure is read as a number at a glance, not as a line of prose */
|
|
238
|
+
font-family: var(--font-display);
|
|
239
|
+
font-size: var(--text-xl);
|
|
240
|
+
font-weight: var(--weight-semibold);
|
|
241
|
+
line-height: var(--leading-tight);
|
|
242
|
+
letter-spacing: var(--tracking-tight);
|
|
243
|
+
font-variant-numeric: tabular-nums;
|
|
244
|
+
white-space: nowrap;
|
|
245
|
+
}
|
|
224
246
|
.ui-drawer__rows {
|
|
225
247
|
display: grid;
|
|
226
248
|
grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
|
package/src/styles/dropdown.css
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
gap: 8px;
|
|
31
31
|
cursor: pointer;
|
|
32
32
|
font-family: var(--font-sans);
|
|
33
|
-
font-size:
|
|
33
|
+
font-size: var(--text-sm);
|
|
34
34
|
font-weight: 500;
|
|
35
35
|
color: var(--text);
|
|
36
36
|
background: var(--surface); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */
|
|
@@ -40,7 +40,9 @@
|
|
|
40
40
|
why: docs/foundations.md#colour-and-contrast */
|
|
41
41
|
border: 1px solid var(--control-edge);
|
|
42
42
|
border-radius: var(--radius-pill);
|
|
43
|
-
padding
|
|
43
|
+
/* A 13px line is 17px tall, so this block padding and the edge hold the pill at 32px,
|
|
44
|
+
level with an sm button. #814 */
|
|
45
|
+
padding: 6.5px 11px 6.5px 13px;
|
|
44
46
|
transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
|
|
45
47
|
}
|
|
46
48
|
/* The hover edge steps aside under the band: an accent edge one pixel inside an
|
|
@@ -350,7 +352,7 @@
|
|
|
350
352
|
why: docs/foundations.md#the-focus-ring */
|
|
351
353
|
.ui-dropdown__item:focus-visible { background: var(--surface); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */ outline: var(--ring-scroll); outline-offset: var(--ring-scroll-offset); }
|
|
352
354
|
.ui-dropdown__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
353
|
-
.ui-dropdown__label { font-family: var(--font-sans); font-size:
|
|
355
|
+
.ui-dropdown__label { font-family: var(--font-sans); font-size: var(--text-sm); color: var(--strong); font-weight: 600; letter-spacing: 0.01em; }
|
|
354
356
|
.ui-dropdown__desc { font-size: var(--text-xs); color: var(--text); line-height: 1.35; }
|
|
355
357
|
.ui-dropdown__ic { display: inline-flex; flex: none; /* muted-ink: glyph — option icon */ color: var(--muted); }
|
|
356
358
|
.ui-dropdown__ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.1; }
|
|
@@ -398,7 +400,7 @@
|
|
|
398
400
|
tick centre on the label line, not on the middle of the two lines. The badge
|
|
399
401
|
subtracts its own line and its block padding (#798). */
|
|
400
402
|
.ui-dropdown__item:has(> .ui-dropdown__main > .ui-dropdown__desc) {
|
|
401
|
-
--ui-dropdown-line: calc(
|
|
403
|
+
--ui-dropdown-line: calc(var(--text-sm) * var(--leading-normal));
|
|
402
404
|
align-items: flex-start;
|
|
403
405
|
}
|
|
404
406
|
.ui-dropdown__item:has(> .ui-dropdown__main > .ui-dropdown__desc) > :is(.ui-dropdown__ic, .ui-dropdown__tick, .ui-dropdown__more) { height: var(--ui-dropdown-line); align-items: center; }
|
|
@@ -477,7 +479,7 @@
|
|
|
477
479
|
.ui-dropdown__search-input {
|
|
478
480
|
width: 100%;
|
|
479
481
|
font: inherit;
|
|
480
|
-
font-size:
|
|
482
|
+
font-size: var(--text-sm);
|
|
481
483
|
color: var(--strong);
|
|
482
484
|
/* The ground and line .ui-input takes. why: docs/foundations.md#elevation */
|
|
483
485
|
background: var(--field-bg); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */
|
|
@@ -521,7 +523,7 @@
|
|
|
521
523
|
anything matches, so it takes no room. */
|
|
522
524
|
.ui-dropdown__none { display: flex; flex-direction: column; gap: 3px; padding: 14px 12px 10px; text-align: center; }
|
|
523
525
|
.ui-dropdown__none:empty { display: none; }
|
|
524
|
-
.ui-dropdown__none-title { font-size:
|
|
526
|
+
.ui-dropdown__none-title { font-size: var(--text-sm); font-weight: 600; color: var(--strong); }
|
|
525
527
|
.ui-dropdown__none-hint { font-size: var(--text-xs); color: var(--text); line-height: 1.35; }
|
|
526
528
|
|
|
527
529
|
.ui-dropdown__badge.is-state {
|
package/src/styles/feedback.css
CHANGED
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
.ui-fbc__x svg { width: 14px; height: 14px; stroke-width: 2.7; }
|
|
88
88
|
.ui-fbc__quote { margin: 14px 20px 0; background: var(--surface); /* code-bg: inherit — decorative or text-only paint; nothing nested reads a ground from it. */ border-radius: 12px; padding: 12px 15px; display: flex; gap: 11px; }
|
|
89
89
|
.ui-fbc__qm { color: var(--text); font-size: var(--text-xl); font-weight: var(--weight-bold); line-height: .9; flex: none; opacity: .55; }
|
|
90
|
-
.ui-fbc__quote q { quotes: none; color: var(--text); font-style: italic; font-size:
|
|
90
|
+
.ui-fbc__quote q { quotes: none; color: var(--text); font-style: italic; font-size: var(--text-sm); line-height: 1.55; }
|
|
91
91
|
.ui-fbc__body { padding: 14px 20px 0; }
|
|
92
92
|
.ui-fbcomposer textarea {
|
|
93
93
|
width: 100%; min-height: 96px; resize: vertical; font-family: var(--font-sans); font-size: var(--text-base); line-height: 1.55;
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
.ui-fbcomposer textarea:focus-visible { outline: var(--ring); outline-offset: var(--ring-offset); }
|
|
98
98
|
.ui-fbc__foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 16px 20px 18px; }
|
|
99
99
|
|
|
100
|
-
.ui-fbbtn { font-family: var(--font-sans); font-size:
|
|
100
|
+
.ui-fbbtn { font-family: var(--font-sans); font-size: var(--text-sm); font-weight: var(--weight-semibold); border-radius: 10px; padding: 9px 17px; cursor: pointer; border: 0; transition: filter var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
|
|
101
101
|
.ui-fbbtn.ghost { background: transparent; color: var(--text); }
|
|
102
102
|
.ui-fbbtn.ghost:hover { color: var(--strong); background: var(--surface); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */ }
|
|
103
103
|
.ui-fbbtn:focus-visible { outline: var(--ring); outline-offset: var(--ring-offset); }
|
|
@@ -121,8 +121,8 @@
|
|
|
121
121
|
.ui-fbck-t { fill: none; stroke: var(--surface); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
|
|
122
122
|
.ui-fbck-m { fill: none; stroke: var(--green); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 118; stroke-dashoffset: 118; animation: uiFbCkDraw .6s cubic-bezier(.5,0,.3,1) .1s forwards; /* motion: choreographed — the mark draws while the spring is still settling */ }
|
|
123
123
|
.ui-fbck-s { fill: none; stroke: var(--sheen); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 15 400; stroke-dashoffset: 133; filter: drop-shadow(0 0 8px var(--green)) drop-shadow(0 0 15px var(--green)); opacity: 0; animation: uiFbCkComet .6s cubic-bezier(.5,0,.3,1) .1s forwards; /* motion: choreographed — the comet rides the mark, so it shares its duration and delay exactly */ }
|
|
124
|
-
.ui-fbc__done h4 { color: var(--strong); font-size:
|
|
125
|
-
.ui-fbc__done p { color: var(--text); font-size:
|
|
124
|
+
.ui-fbc__done h4 { color: var(--strong); font-size: var(--text-lg); font-weight: var(--weight-semibold); letter-spacing: -.01em; margin-bottom: 7px; }
|
|
125
|
+
.ui-fbc__done p { color: var(--text); font-size: var(--text-sm); line-height: 1.55; max-width: var(--prose-caption); margin: 0 auto; }
|
|
126
126
|
.ui-fbc__done p b { color: var(--text); font-weight: var(--weight-semibold); }
|
|
127
127
|
.ui-fbc__done .row { margin-top: 18px; display: flex; gap: 10px; justify-content: center; }
|
|
128
128
|
@keyframes uiFbCkDraw { to { stroke-dashoffset: 0; } }
|
package/src/styles/footer.css
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
footer breaks into columns, so it answers to the row rather than to a
|
|
40
40
|
scale. The one width below the floor the measure gate draws. See #208. */
|
|
41
41
|
.ui-footer__brand { max-width: 300px; }
|
|
42
|
-
.ui-footer .ui-footer__brand .brand { font-size:
|
|
42
|
+
.ui-footer .ui-footer__brand .brand { font-size: var(--text-md); }
|
|
43
43
|
.ui-footer__tagline {
|
|
44
44
|
margin: 12px 0 0;
|
|
45
45
|
font-size: var(--text-sm);
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
}
|
|
87
87
|
.ui-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
|
|
88
88
|
.ui-footer__links a {
|
|
89
|
-
font-size:
|
|
89
|
+
font-size: var(--text-sm);
|
|
90
90
|
color: var(--footer-link);
|
|
91
91
|
text-decoration: none;
|
|
92
92
|
transition: color var(--dur-fast) var(--ease);
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
border-top: 1px solid var(--footer-border);
|
|
124
124
|
}
|
|
125
125
|
.ui-footer--app .ui-footer__in { max-width: none; padding: 12px clamp(14px, 2.4vw, 22px); }
|
|
126
|
-
.ui-footer--app .ui-footer__bar { padding-top: 0; border-top: 0;
|
|
126
|
+
.ui-footer--app .ui-footer__bar { padding-top: 0; border-top: 0; }
|
|
127
127
|
|
|
128
128
|
/* Responsive — columns collapse to a stacked layout on narrow screens. Two of
|
|
129
129
|
the kit's three steps, and the second one is the phone step rather than a
|
package/src/styles/layout.css
CHANGED
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
}
|
|
152
152
|
/* The mark is the Avatar part in the reader's hue, filling this box like the top bar's. */
|
|
153
153
|
.ui-app__av > .ui-avatar { --ui-avatar-size: 100%; }
|
|
154
|
-
.ui-app__who { font-size:
|
|
154
|
+
.ui-app__who { font-size: var(--text-sm); line-height: 1.3; min-width: 0; }
|
|
155
155
|
.ui-app__who b { display: block; color: var(--strong); font-weight: var(--weight-semibold); }
|
|
156
156
|
/* nowrap is what makes the ellipsis fire — without it the address wraps, and
|
|
157
157
|
the rail column is max-content, so a long one widens the rail instead. */
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
time it is open it is no longer inside the rail that drew it.
|
|
186
186
|
why: docs/components.md#the-dropdown-panel */
|
|
187
187
|
.ui-app__user-panel .ui-dropdown__head { display: flex; flex-direction: column; gap: 2px; }
|
|
188
|
-
.ui-app__user-panel .ui-dropdown__head b { display: block; color: var(--strong); font-size:
|
|
188
|
+
.ui-app__user-panel .ui-dropdown__head b { display: block; color: var(--strong); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
|
|
189
189
|
/* The address wraps rather than truncating: nothing bounds this line, so
|
|
190
190
|
`text-overflow` would have nothing to fire against — the inert pair
|
|
191
191
|
.ui-app__who's own comment warns about. `anywhere` keeps an address with no
|
|
@@ -410,7 +410,7 @@
|
|
|
410
410
|
letter-spacing: var(--tracking-tight);
|
|
411
411
|
margin-bottom: 8px;
|
|
412
412
|
}
|
|
413
|
-
.ui-app__sub { color: var(--text); font-size:
|
|
413
|
+
.ui-app__sub { color: var(--text); font-size: var(--text-base); line-height: 1.6; max-width: var(--prose-body); margin-bottom: var(--space-8); }
|
|
414
414
|
/* A page may open on its title alone; then the title carries the head's step. */
|
|
415
415
|
.ui-app__main > h1:not(:has(+ .ui-app__sub)) { margin-bottom: var(--space-8); }
|
|
416
416
|
/* Page tools stand at the end of the title row, and the lede goes under the whole row.
|
|
@@ -439,10 +439,13 @@
|
|
|
439
439
|
attribute, ~20 characters) from setting a floor well above the basis. */
|
|
440
440
|
.ui-toolbar { display: flex; flex-wrap: wrap; gap: 10px; }
|
|
441
441
|
/* A control row belongs to the block it narrows rather than standing beside it,
|
|
442
|
-
so it sits closer than
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
442
|
+
so it sits one inner gap above that block, closer than the stack's gap between
|
|
443
|
+
two blocks that are each their own subject. Both page stacks, so a filter bar
|
|
444
|
+
on the page meets its table card at the same distance. Not on the last row:
|
|
445
|
+
there the gap is the page's bottom and nothing is being narrowed. tap-zone.css
|
|
446
|
+
widens it on a touch phone. why: docs/foundations.md#spacing-and-rhythm */
|
|
447
|
+
:is(.ui-app__body, .ui-card-stack) > .ui-toolbar:not(:last-child) { margin-bottom: calc(var(--space-2) - var(--space-5)); }
|
|
448
|
+
.ui-stack > .ui-toolbar + * { margin-top: var(--space-2); }
|
|
446
449
|
.ui-toolbar > .ui-input,
|
|
447
450
|
.ui-toolbar > .ui-input-group { flex: 1 1 6rem; min-width: 0; }
|
|
448
451
|
/* A row that offers the block two unrelated things — what to narrow it by, and
|
|
@@ -527,7 +530,7 @@
|
|
|
527
530
|
.ui-app__drawer .ui-nav__item,
|
|
528
531
|
.ui-app__drawer .ui-app__user-trigger { min-height: 44px; }
|
|
529
532
|
.ui-app__main { padding: 28px var(--space-4) 56px; }
|
|
530
|
-
.ui-app__main h1 { font-size:
|
|
533
|
+
.ui-app__main h1 { font-size: var(--text-xl); }
|
|
531
534
|
/* A settings row is label-beside-control, and below this step any control that does
|
|
532
535
|
not fit beside its label drops under it. A row that holds a choice wraps this way at
|
|
533
536
|
every width, in card.css. Scoped to the shell, because a card row outside a shell
|
|
@@ -593,12 +596,12 @@
|
|
|
593
596
|
padding: 38px 36px 32px;
|
|
594
597
|
}
|
|
595
598
|
.ui-auth__brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; }
|
|
596
|
-
.ui-auth__brand span { font-size:
|
|
597
|
-
.ui-auth__title { color: var(--strong); font-size:
|
|
599
|
+
.ui-auth__brand span { font-size: var(--text-md); font-weight: 600; color: var(--strong); }
|
|
600
|
+
.ui-auth__title { color: var(--strong); font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 7px; }
|
|
598
601
|
.ui-auth__sub { color: var(--text); font-size: var(--text-base); line-height: 1.55; margin-bottom: 26px; }
|
|
599
602
|
.ui-auth__foot { margin-top: 24px; text-align: center; font-size: var(--text-sm); color: var(--text); }
|
|
600
603
|
.ui-auth__foot a { color: var(--accent); }
|
|
601
|
-
.ui-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--text); font-size:
|
|
604
|
+
.ui-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--text); font-size: var(--text-xs); }
|
|
602
605
|
.ui-divider::before, .ui-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
|
|
603
606
|
|
|
604
607
|
/* App scope grant list (OAuth consent) */
|
|
@@ -613,7 +616,7 @@
|
|
|
613
616
|
color: var(--accent);
|
|
614
617
|
}
|
|
615
618
|
.ui-scope__icon svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; }
|
|
616
|
-
.ui-scope__t { color: var(--strong); font-size:
|
|
619
|
+
.ui-scope__t { color: var(--strong); font-size: var(--text-base); font-weight: 500; }
|
|
617
620
|
.ui-scope__d { color: var(--text); font-size: var(--text-sm); margin-top: 2px; line-height: 1.5; }
|
|
618
621
|
|
|
619
622
|
/* -- Landing hero -------------------------------------------------------- */
|
|
@@ -627,7 +630,7 @@
|
|
|
627
630
|
display: inline-flex;
|
|
628
631
|
align-items: center;
|
|
629
632
|
gap: 8px;
|
|
630
|
-
font-size:
|
|
633
|
+
font-size: var(--text-xs);
|
|
631
634
|
letter-spacing: 0.06em;
|
|
632
635
|
color: var(--purple-mid);
|
|
633
636
|
background: var(--glow-purple); /* code-bg: inherit — a wash paints over a ground and behind a chip, so the opaque ground below it is the step. */
|
|
@@ -680,12 +683,12 @@
|
|
|
680
683
|
margin-bottom: 16px;
|
|
681
684
|
}
|
|
682
685
|
.ui-feature__icon svg { width: 25px; height: 25px; stroke: currentColor; fill: none; stroke-width: 1.8; }
|
|
683
|
-
.ui-feature h3 { color: var(--strong); font-size:
|
|
686
|
+
.ui-feature h3 { color: var(--strong); font-size: var(--text-lg); font-weight: 600; margin-bottom: 7px; }
|
|
684
687
|
.ui-feature p { color: var(--text); font-size: var(--text-base); line-height: 1.6; }
|
|
685
688
|
|
|
686
689
|
.ui-section-head { text-align: center; max-width: var(--panel-lg); margin: 0 auto clamp(40px, 6vh, 64px); }
|
|
687
690
|
.ui-section-head h2 { color: var(--strong); font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
|
|
688
|
-
.ui-section-head p { color: var(--text); font-size:
|
|
691
|
+
.ui-section-head p { color: var(--text); font-size: var(--text-lg); line-height: 1.6; }
|
|
689
692
|
|
|
690
693
|
/* Forced colours replace every author background, so a selected item takes the system
|
|
691
694
|
pair as its fill. `forced-color-adjust: none` is what keeps the pair from sitting on
|
package/src/styles/nav.css
CHANGED
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
--m-dist: var(--space-1);
|
|
184
184
|
animation: m-slide-down var(--dur-fast) var(--ease-out) both;
|
|
185
185
|
}
|
|
186
|
-
.ui-nav__item--sub { font-size:
|
|
186
|
+
.ui-nav__item--sub { font-size: var(--text-base); padding: 7px 12px; }
|
|
187
187
|
/* A nested current row takes the plate whole, like a top-level one. It used to
|
|
188
188
|
take neither half — the bar hung back onto the guide hairline and the plate's
|
|
189
189
|
own hairline was switched off so the two would not stack — and a fill with no
|
|
@@ -345,7 +345,7 @@
|
|
|
345
345
|
padding: 11px 14px;
|
|
346
346
|
color: var(--text);
|
|
347
347
|
text-decoration: none;
|
|
348
|
-
font-size:
|
|
348
|
+
font-size: var(--text-base);
|
|
349
349
|
font-weight: 500;
|
|
350
350
|
border-radius: 10px 10px 0 0;
|
|
351
351
|
transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
|
package/src/styles/segmented.css
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
.ui-seg button {
|
|
25
25
|
font-family: var(--font-sans);
|
|
26
|
-
font-size:
|
|
26
|
+
font-size: var(--text-sm);
|
|
27
27
|
font-weight: var(--weight-semibold);
|
|
28
28
|
letter-spacing: 0.02em;
|
|
29
29
|
color: var(--text);
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
.ui-seg button:has(> span > svg) { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); }
|
|
70
70
|
.ui-seg button svg { display: block; width: 16px; height: 16px; flex: none; stroke-width: 2.4; }
|
|
71
71
|
|
|
72
|
-
.ui-seg--sm button { min-height: var(--space-6); padding: var(--space-1) var(--space-3); font-size:
|
|
72
|
+
.ui-seg--sm button { min-height: var(--space-6); padding: var(--space-1) var(--space-3); font-size: var(--text-sm); line-height: var(--leading-tight); }
|
|
73
73
|
.ui-seg--block { display: flex; align-self: stretch; justify-self: stretch; }
|
|
74
74
|
.ui-seg--block button { flex: 1; }
|
|
75
75
|
|
package/src/styles/success.css
CHANGED
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
.ui-sx--compact .ui-sx__inner { display: flex; align-items: center; gap: 16px; }
|
|
62
62
|
.ui-sx--compact .ui-sx__visual { flex: none; }
|
|
63
63
|
.ui-sx--compact .ui-sx__check { width: 28px; height: 28px; }
|
|
64
|
-
.ui-sx--compact .ui-sx__title { font-size:
|
|
64
|
+
.ui-sx--compact .ui-sx__title { font-size: var(--text-md); }
|
|
65
65
|
.ui-sx--compact .ui-sx__body { font-size: var(--text-sm); margin-top: 3px; }
|
|
66
66
|
.ui-sx--compact .ui-sx__actions { margin-top: 0; margin-left: auto; flex: none; }
|
|
67
67
|
.ui-sx--compact .ui-sx__content { flex: 1; display: flex; align-items: center; gap: 16px; }
|
package/src/styles/table.css
CHANGED
|
@@ -252,6 +252,8 @@
|
|
|
252
252
|
chip's hand-off travels with it, so an identifier in a cell keeps the page rather than
|
|
253
253
|
the card the cell is now painted with. why: src/tokens/tokens.css */
|
|
254
254
|
.ui-card { --table-bg: var(--surface); --table-code-bg: var(--bg); }
|
|
255
|
+
/* A drawer group is a reading surface in the same way, so its table takes the drawer's ground. */
|
|
256
|
+
.ui-drawer .ui-drawer__section { --table-bg: var(--drawer-surface); --table-code-bg: var(--bg); }
|
|
255
257
|
|
|
256
258
|
/* White in light, base canvas in dark; never a grey or tinted data surface. */
|
|
257
259
|
.ui-table { background: var(--table-bg); }
|
|
@@ -606,6 +608,34 @@ a.ui-identity:hover { text-decoration: underline; }
|
|
|
606
608
|
.ui-card > .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) { --cell-edge: var(--space-6); }
|
|
607
609
|
/* In a frame, the side band holds space-1 of the card's text edge. */
|
|
608
610
|
.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)); }
|
|
611
|
+
/* In a drawer group the table hangs out by its end-cell inset, into the body's padding, so
|
|
612
|
+
the first column starts on the edge of the group heading and the drawer title. */
|
|
613
|
+
.ui-drawer .ui-drawer__section > .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) {
|
|
614
|
+
width: calc(100% + 2 * var(--cell-edge));
|
|
615
|
+
max-width: none;
|
|
616
|
+
margin-inline: calc(-1 * var(--cell-edge));
|
|
617
|
+
}
|
|
618
|
+
/* A table in a drawer group takes the drawer body's 13px text. Its head is set as a group
|
|
619
|
+
heading is, semibold in strong ink on the same hairline, so the two read as one kind of
|
|
620
|
+
line. Its rows are held apart by space, as the drawer's pairs are, with no line between.
|
|
621
|
+
A hover table keeps its own row floor, because its rows are targets.
|
|
622
|
+
why: docs/components.md#the-drawer */
|
|
623
|
+
.ui-drawer .ui-drawer__section .ui-table thead th {
|
|
624
|
+
padding-bottom: var(--space-2);
|
|
625
|
+
font-weight: var(--weight-semibold);
|
|
626
|
+
color: var(--strong);
|
|
627
|
+
}
|
|
628
|
+
.ui-drawer .ui-drawer__section .ui-table :is(tbody, tfoot) :is(td, th) {
|
|
629
|
+
font-size: var(--text-sm);
|
|
630
|
+
border-bottom: 0;
|
|
631
|
+
}
|
|
632
|
+
.ui-drawer .ui-drawer__section .ui-table:not(.ui-table--hover) :is(tbody, tfoot) :is(td, th) { padding-block: var(--space-2); }
|
|
633
|
+
.ui-drawer .ui-drawer__section .ui-table:not(.ui-table--hover) tbody tr:first-child > :is(td, th) { padding-top: var(--space-3); }
|
|
634
|
+
/* --surface-3 barely steps off the raised drawer ground in dark, so a hovered row there takes
|
|
635
|
+
--surface, as a menu item does. Light keeps the grey. The drawer adds no weight, so a
|
|
636
|
+
checked row keeps its own stronger wash under the pointer. */
|
|
637
|
+
: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) { background: var(--surface); }
|
|
638
|
+
: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) { background: var(--surface-3); }
|
|
609
639
|
|
|
610
640
|
/* On a phone the cells pad by space-3 across and a card's end cells by space-4. A wide
|
|
611
641
|
table scrolls under a finger, so the frame shows no scrollbar. 560px is the kit's phone
|
package/src/styles/tabs.css
CHANGED
package/src/styles/tap-zone.css
CHANGED
|
@@ -144,6 +144,11 @@
|
|
|
144
144
|
/* In a split toolbar the rail row beside the report sits on the same line as
|
|
145
145
|
Clear all. One step plus 1px keeps the button's layer off that row. */
|
|
146
146
|
.ui-toolbar--split .ui-filter-bar { column-gap: calc(var(--tap-gap) + var(--space-1) + 1px) !important; }
|
|
147
|
+
/* The table under a filter bar moves down with the chips: the bar's inner gap
|
|
148
|
+
opens to --tap-gap too, so the last row's layers stop short of the table.
|
|
149
|
+
In .ui-stack the bar's margin collapses with the block's 8px one. */
|
|
150
|
+
:is(.ui-app__body, .ui-card-stack) > .ui-toolbar:not(:last-child) { margin-bottom: calc(var(--tap-gap) - var(--space-5, 20px)) !important; }
|
|
151
|
+
.ui-stack > .ui-toolbar:not(:last-child) { margin-bottom: var(--tap-gap) !important; --tap-clear-y: var(--tap-gap); }
|
|
147
152
|
|
|
148
153
|
/* Inside a chip there is nothing to open: parting the value from its remove
|
|
149
154
|
mark would draw two controls where the reader sees one. Named on the
|
package/src/styles/topbar.css
CHANGED
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
.dtsw a {
|
|
61
61
|
text-decoration: none;
|
|
62
62
|
font-family: var(--font-sans);
|
|
63
|
-
font-size:
|
|
63
|
+
font-size: var(--text-xs);
|
|
64
64
|
font-weight: 600;
|
|
65
65
|
letter-spacing: 0.04em;
|
|
66
66
|
color: var(--text);
|
|
@@ -107,13 +107,13 @@
|
|
|
107
107
|
gap: 8px;
|
|
108
108
|
cursor: pointer;
|
|
109
109
|
font-family: var(--font-sans);
|
|
110
|
-
font-size:
|
|
110
|
+
font-size: var(--text-sm);
|
|
111
111
|
font-weight: 500;
|
|
112
112
|
color: var(--text);
|
|
113
113
|
background: var(--surface); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */
|
|
114
114
|
border: 1px solid var(--border);
|
|
115
115
|
border-radius: 24px;
|
|
116
|
-
padding:
|
|
116
|
+
padding: 6.5px 11px 6.5px 13px;
|
|
117
117
|
transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
|
|
118
118
|
}
|
|
119
119
|
/* The hover edge steps aside under the band: an accent edge one pixel inside an
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
.vopt .vtick { margin-left: 8px; flex: none; display: none; color: var(--accent); margin-top: 1px; }
|
|
227
227
|
.vopt .vtick svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; }
|
|
228
228
|
.vopt[aria-selected="true"] .vtick { display: inline-flex; }
|
|
229
|
-
.vopt .vname { font-family: var(--font-sans); font-size:
|
|
229
|
+
.vopt .vname { font-family: var(--font-sans); font-size: var(--text-sm); color: var(--strong); font-weight: 600; letter-spacing: 0.01em; }
|
|
230
230
|
.vopt .vbadge {
|
|
231
231
|
/* rank: chip */
|
|
232
232
|
font-size: var(--text-xs);
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
color: var(--accent-contrast);
|
|
303
303
|
font: inherit;
|
|
304
304
|
font-weight: 600;
|
|
305
|
-
font-size:
|
|
305
|
+
font-size: var(--text-sm);
|
|
306
306
|
display: grid;
|
|
307
307
|
place-items: center;
|
|
308
308
|
cursor: pointer;
|
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
.amenu .ahead .avatar { cursor: default; }
|
|
392
392
|
.amenu .ahead .aw { min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.35; }
|
|
393
393
|
.amenu .ahead .anm { color: var(--strong); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
394
|
-
.amenu .ahead .aem { color: var(--text); font-size:
|
|
394
|
+
.amenu .ahead .aem { color: var(--text); font-size: var(--text-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
395
395
|
/* `scroll-margin-block` on the row, beside `scroll-padding-block` on the panel
|
|
396
396
|
above: Chromium's own focus-follow scroll honoured the padding scrolling
|
|
397
397
|
toward the end of the list and not the start, so the row carries its own
|
package/src/tokens/tokens.css
CHANGED
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
--font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
56
56
|
--font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
|
|
57
57
|
|
|
58
|
-
--text-xs:
|
|
58
|
+
--text-xs: 12px;
|
|
59
59
|
--text-sm: 13px;
|
|
60
60
|
--text-base: 14.5px;
|
|
61
61
|
--text-md: 15.5px;
|
|
@@ -459,7 +459,7 @@
|
|
|
459
459
|
--glow-cyan: rgba(12, 143, 168, 0.1);
|
|
460
460
|
--glow-pink: rgba(169, 45, 89, 0.1); /* an exact tint of --pink above */
|
|
461
461
|
|
|
462
|
-
/* Solid chip pairs for the light app. Each ink is deepened past its signal hue so
|
|
462
|
+
/* Solid chip pairs for the light app. Each ink is deepened past its signal hue so 12px
|
|
463
463
|
chip text clears WCAG AA on its own pale fill, and on the soft toast's wash, which
|
|
464
464
|
#131 gave the same ink. Three came down again at #295 with the page; danger did not
|
|
465
465
|
need to. */
|
|
@@ -667,6 +667,10 @@
|
|
|
667
667
|
.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); }
|
|
668
668
|
.ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) tbody tr:not(.is-target):has(> .ui-table__selection :checked) > :is(td, th),
|
|
669
669
|
.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); }
|
|
670
|
+
/* A hovered row in a drawer group takes --surface in dark, so a chip there keeps the page.
|
|
671
|
+
The drawer adds no weight, so a checked row keeps the hand-off above. */
|
|
672
|
+
: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(--bg); }
|
|
673
|
+
: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); }
|
|
670
674
|
.ui-card--accent,
|
|
671
675
|
.ui-card--live,
|
|
672
676
|
.ui-snippet--reveal { --code-bg: var(--surface); }
|