@usableapp/cardds 0.7.161 → 0.7.163
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/CHANGELOG.md +41 -0
- package/css/actions.css +30 -45
- package/css/base.css +8 -5
- package/css/card.css +5 -5
- package/css/journey.css +5 -7
- package/css/layover.css +0 -1
- package/css/lists.css +2 -2
- package/css/media.css +5 -0
- package/css/numbers.css +1 -1
- package/css/palette.css +1 -1
- package/css/parts.css +73 -55
- package/css/sheet.css +1 -1
- package/css/stack.css +13 -5
- package/css/stamp.css +30 -30
- package/css/tokens.css +37 -4
- package/dist/actions/Btn.d.ts +69 -30
- package/dist/actions/Btn.js +22 -6
- package/dist/actions/BtnGroup.d.ts +3 -3
- package/dist/actions/BtnGroup.js +2 -2
- package/dist/actions/BtnRow.d.ts +2 -2
- package/dist/actions/BtnRow.js +1 -1
- package/dist/actions/Chip.d.ts +1 -1
- package/dist/actions/Fab.d.ts +11 -7
- package/dist/actions/Fab.js +6 -5
- package/dist/actions/LinkBlock.d.ts +2 -1
- package/dist/actions/LinkBlock.js +2 -1
- package/dist/cardds.css +211 -162
- package/dist/cards/CardParts.d.ts +1 -1
- package/dist/cards/CardParts.js +1 -1
- package/dist/catalog.json +1 -1
- package/dist/choice/Calendar.js +2 -2
- package/dist/forms/Composer.d.ts +2 -2
- package/dist/forms/Field.d.ts +1 -1
- package/dist/forms/Field.js +1 -1
- package/dist/forms/FileBtn.d.ts +8 -7
- package/dist/forms/FileBtn.js +3 -3
- package/dist/forms/MessageBar.d.ts +2 -2
- package/dist/forms/MessageBar.js +4 -4
- package/dist/forms/Pin.js +2 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/journey/JourneyBadge.d.ts +7 -4
- package/dist/journey/JourneyBadge.js +3 -3
- package/dist/lists/Bubble.d.ts +6 -6
- package/dist/media/Postcard.d.ts +1 -1
- package/dist/media/Postcard.js +2 -2
- package/dist/media/Tile.d.ts +4 -6
- package/dist/media/Tile.js +2 -2
- package/dist/parts/End.d.ts +1 -1
- package/dist/parts/End.js +1 -1
- package/dist/parts/Foot.d.ts +3 -3
- package/dist/parts/Foot.js +1 -1
- package/dist/parts/Head.d.ts +3 -2
- package/dist/parts/Head.js +3 -2
- package/dist/parts/Words.d.ts +3 -2
- package/dist/parts/Words.js +11 -6
- package/dist/parts/endRoom.d.ts +6 -4
- package/dist/parts/endRoom.js +13 -8
- package/dist/post/PostDesk.js +2 -3
- package/dist/post/PostLetter.js +2 -2
- package/dist/scaffold/ActionBar.d.ts +4 -4
- package/dist/scaffold/ActionBar.js +3 -3
- package/dist/scaffold/AppBar.d.ts +1 -1
- package/dist/scaffold/FloatBar.d.ts +1 -1
- package/dist/scaffold/TopBar.d.ts +2 -2
- package/dist/sheets/Modal.d.ts +2 -2
- package/dist/sheets/Modal.js +2 -2
- package/dist/sheets/Sheet.d.ts +1 -1
- package/dist/sheets/Sheet.js +1 -1
- package/dist/sheets/SheetStack.js +3 -4
- package/dist/sheets/StackBack.d.ts +1 -1
- package/dist/sheets/StackBack.js +2 -3
- package/dist/sheets/StackSheet.d.ts +1 -1
- package/dist/sheets/StackSheet.js +2 -3
- package/dist/sheets/sheetDrag.js +2 -2
- package/dist/sheets/stackCard.js +5 -6
- package/dist/stamp/Stamp.d.ts +4 -2
- package/dist/stamp/Stamp.js +2 -2
- package/dist/state.d.ts +2 -0
- package/dist/state.js +9 -0
- package/dist/sticky/Sticky.d.ts +1 -1
- package/dist/sticky/StickyAnswer.d.ts +1 -1
- package/dist/sticky/StickyHeading.d.ts +2 -2
- package/dist/templates/CallSheet.js +1 -1
- package/dist/templates/Walkthrough.js +2 -2
- package/dist/type/Icon.d.ts +1 -1
- package/dist/type/Icon.js +1 -1
- package/dist/type/textScale.d.ts +4 -3
- package/dist/type/textScale.js +4 -3
- package/docs/reference.md +49 -25
- package/lint/rules.mjs +7 -7
- package/package.json +3 -1
- package/scripts/codemod-parts.mjs +1 -1
- package/dist/actions/IconBtn.d.ts +0 -326
- package/dist/actions/IconBtn.js +0 -19
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,47 @@
|
|
|
2
2
|
|
|
3
3
|
> For: a project that consumes `@usableapp/cardds` and its AI — what changed between versions, written as before → after, so a screen can be brought up to date without reading the source. Newest first. A consumer never edits cardds; if something here leaves you without a way to do what you did before, report the gap. Each release section after 0.7.97 carries one `Components:` line, written by `node scripts/components-changed.mjs <previous tag>`: the components the release changed, or `all` when a file changed that any component can read (a token, the build), or `none`; check only the screens that import those.
|
|
4
4
|
|
|
5
|
+
## 0.7.163 — 2026-10-29
|
|
6
|
+
|
|
7
|
+
`Btn busy`: a button whose press is being carried out.
|
|
8
|
+
|
|
9
|
+
Components: Btn
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- **`Btn busy`** (timebank, 2026-10-29): a turning ring stands where the icon would be (a pill: before its words), the button is `disabled` (it fades like one) and `aria-busy`; under reduced motion the ring stands still. A round keeps its `label` as its spoken name and needs no `icon` while busy. Before → after: `<Btn shape="round" size="xl" label="…" disabled><Spinner size="xs"/></Btn>` (no longer type-checks since 0.7.162) → `<Btn shape="round" size="xl" busy label="…" />`; a pill `<Btn disabled><Spinner …/> Sending…</Btn>` → `<Btn busy>Sending…</Btn>`. Story `Btn · Busy`.
|
|
13
|
+
|
|
14
|
+
## 0.7.162 — 2026-10-29
|
|
15
|
+
|
|
16
|
+
One `Btn` for every button; a led line's title and meta flow round its ends; `TileGrid cols`; tokens only.
|
|
17
|
+
|
|
18
|
+
Components: all
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
- **`TileGrid cols={2}`** (timebank, Lh 2026-10-29: four time picks 2×2). Before → after: a plain TileGrid fits as many as `--tile-min` allows (3 across on a 428–440px phone) and a `wide` tile takes a row → `<TileGrid cols={2}>` is always two across; drop `wide` from tiles that share a row. In it an `inline` tile's words move under the icon when their longest word has no room beside it (a big text size).
|
|
22
|
+
- **`--r-tail`** (`--r-base` × 7/16, 9.1) and knob **`--bubble-tail-radius`**: a `Bubble`'s tail corner points (was 18.2).
|
|
23
|
+
- **`--glyph-rise` / `--glyph-drop`** (0.2em / 0.15em): the room a clipped line keeps for Thai marks, now tokens.
|
|
24
|
+
- Stories for every card of the feed: `Card/Feed*`, `Bubble/Feed*`.
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
- **ONE `Btn` for every button** (Lh 2026-10-29: any button swaps for another). `IconBtn` is deleted, no alias. Single-choice props replace the booleans: `shape` `pill` (default) | `round`; `size` `sm` | `md` | `lg` | `xl`; `tone` `default` | `primary` | `quiet` | `warn`. A `round` needs `icon` and `label`. Before → after:
|
|
28
|
+
- `<IconBtn icon label …>` → `<Btn shape="round" icon label …>`; `IconBtn sm` / `size="lg"` / `size="xl"` → `size="sm"` / `"lg"` / `"xl"`; `IconBtn invert` or `primary` → `tone="primary"`; an `<Icon/>` child → `icon="…"`.
|
|
29
|
+
- `<Btn primary>` / `quiet` / `warn` → `tone="primary"` / `"quiet"` / `"warn"`; `Btn sm` / `Btn xl` → `size="sm"` / `size="xl"`.
|
|
30
|
+
- One height per step for both shapes: sm 44, md 48 (`--btn-h` = `--tap`, fixed, no longer grown by the text size; pills that rendered ~52–61 are 48), lg 56. xl is each shape's own: pill 88, round 68.
|
|
31
|
+
- A round takes all four tones. `FileBtn`: `tone` and `size` replace `primary` / `quiet`. `Fab`: `tone` (default `primary`) replaces `invert`.
|
|
32
|
+
- Classes and knobs keep their names: `.icon-btn`, `.icon-btn--invert`, `--icon-btn-invert-*` (read first by a round primary, then `--btn-primary-*`). New knob `--btn-lg-size`.
|
|
33
|
+
- **A led line** (a `Head` that starts with a `Lead`, `Avatar` or `AvatarStack`, and a `LinkBlock`'s place `Row`): the title and the meta are ONE block flowing round the ends at the top right; the meta follows the title at `--head-row-gap`, never pushed below the buttons; longer text runs under the ends at full width. The title's first line has its x-height middle on the ends' centre, whatever the ends are. New wrappers `.words__flow` and `.line-ends` in those lines.
|
|
34
|
+
- **An `End` of words with an icon is written `<End caption="…"><Icon name="arrow-up-right"/></End>`** (the icon inside): drawn at the words' size, its middle on their x-height middle, `--sp-1` from them (knob `--end-icon-gap`). An icon written after the End as a sibling no longer gets this.
|
|
35
|
+
- A chip's icon in a card head: on the words' x-height middle (was a −0.15em drop).
|
|
36
|
+
- **`TileGrid cols3` → `cols={3}`, `cols4` → `cols={4}`** (no alias).
|
|
37
|
+
- **`Stamp large` → `Stamp lg`** (class `.stamp--lg`). Every stamp drawing length is a token (`--stamp`, `--stamp-perf-*`, `--stamp-frame-w`, `--stamp-cap-*`, `--stamp-art-*`); the teeth count is a token only, the `--stamp-teeth` knob is removed. The small `words` line shows on `Stamp lg` or in `StampBook fill` (was a width query).
|
|
38
|
+
- **Tokens only** (Lh 2026-10-29): written-in lengths read the tokens they equal (`--tile-min`, `--icon-lg`, `--drawer-h` now in tokens.css, `--lh-h2`); no value changes.
|
|
39
|
+
- **The root no longer shrinks to 93.75% on screens ≤ 360**: screen size is never a trigger. On 320–360 screens everything is about 6% larger; an app that wants the old size sets `html { font-size }` itself.
|
|
40
|
+
- `JourneyBadge stretch` is always three lines; new `subBeside` gives the two-line form (was a height query).
|
|
41
|
+
- Gesture thresholds (SheetStack, Sheet drag, stack cards, PostDesk) read `--sp-2` / `--tap` when the gesture happens.
|
|
42
|
+
- `ActionBar inline` is a class (`.action-bar--inline`).
|
|
43
|
+
- Orchard's primary sets role tokens, so `--btn-primary-*` and `--icon-btn-invert-*` can be set under orchard.
|
|
44
|
+
- cardds has its own `eslint.config.mjs` (typescript-eslint).
|
|
45
|
+
|
|
5
46
|
## 0.7.161 — 2026-10-28
|
|
6
47
|
|
|
7
48
|
A led line's title runs under ANY end, not only round buttons; an End's arrow is drawn at its words' size and centred on the title's first line.
|
package/css/actions.css
CHANGED
|
@@ -66,9 +66,12 @@
|
|
|
66
66
|
Lh 2026-09-13) stand on the tap floor: a chip that is a switch grows to --tap here */
|
|
67
67
|
.appbar .chip--pick { min-height: var(--form-tap); }
|
|
68
68
|
|
|
69
|
-
/* ---- icon button (round) ----
|
|
69
|
+
/* ---- icon button (Btn shape="round") ----
|
|
70
|
+
ONE size ladder for both shapes (Lh 2026-10-29): a round and a pill of one step are one height, so either stands in for the other in a row.
|
|
71
|
+
md is --btn-h (= --tap: on --tap-base like the round, never on the words' --fs-base), sm --tap-sm, lg --tap-lg. xl is NOT swap-equal (Lh 2026-10-29): each shape its
|
|
72
|
+
own, round --tap-xl (68), pill --btn-xl-h (88) */
|
|
70
73
|
.icon-btn {
|
|
71
|
-
width: var(--icon-btn-size, var(--
|
|
74
|
+
width: var(--icon-btn-size, var(--btn-h)); height: var(--icon-btn-size, var(--btn-h));
|
|
72
75
|
flex: none;
|
|
73
76
|
border-radius: var(--icon-btn-radius, var(--r-chip));
|
|
74
77
|
border: var(--border-w) solid var(--icon-btn-border, var(--outline)); /* see .btn — same reason */
|
|
@@ -80,9 +83,11 @@
|
|
|
80
83
|
font-size: var(--fs-lg);
|
|
81
84
|
line-height: round(down, calc(var(--lh-solid) * 1em), 1px);
|
|
82
85
|
}
|
|
83
|
-
|
|
86
|
+
/* a round's primary tone (Btn shape="round" tone="primary" carries both names; `invert` was its name until Lh 2026-10-29): the round's own
|
|
87
|
+
invert knobs first — the themes' contract — then the pill's primary, so by default both shapes fill alike */
|
|
88
|
+
:is(.icon-btn--invert, .icon-btn--primary) { background: var(--icon-btn-invert-bg, var(--btn-primary-bg, var(--accent))); color: var(--icon-btn-invert-ink, var(--btn-primary-ink, var(--on-accent))); border-color: transparent; }
|
|
84
89
|
.icon-btn--sm { width: var(--icon-btn-sm-size, var(--tap-sm)); height: var(--icon-btn-sm-size, var(--tap-sm)); font-size: var(--fs-title); }
|
|
85
|
-
/* the bigger round sizes (`
|
|
90
|
+
/* the bigger round sizes (`Btn shape="round" size`): lg is the hero control's size (--tap-lg), xl the biggest (--tap-xl), both on --tap-base like every size.
|
|
86
91
|
What stands inside is a share of the circle (`--_ib`, its side), so it grows with it: the ICON is --icon-btn-icon of the side (7/12, the share of the default 48px
|
|
87
92
|
button's 28px icon), and a WORD (a string child) keeps to --icon-btn-word-max of the side (0.45: a word of four letters stays inside) — it still
|
|
88
93
|
grows with the member's text size, to that ceiling and no further. The default and the sm button keep their icon tokens and their word as before. */
|
|
@@ -137,39 +142,45 @@
|
|
|
137
142
|
background: var(--btn-bg, var(--action-bg));
|
|
138
143
|
color: var(--btn-ink, var(--action-ink));
|
|
139
144
|
border-radius: var(--btn-radius, var(--r-chip));
|
|
140
|
-
padding: var(--btn-pad-y, var(--sp-
|
|
145
|
+
padding: var(--btn-pad-y, var(--sp-1)) var(--btn-pad-x, var(--sp-6)); /* the height is the size step's (min-height), not the padding's: a pill and a round of one step stand one height */
|
|
141
146
|
font: var(--type-label);
|
|
142
147
|
font-size: var(--btn-font-size, var(--fs-md));
|
|
143
148
|
display: inline-flex;
|
|
144
149
|
align-items: center;
|
|
145
150
|
justify-content: center;
|
|
146
151
|
gap: var(--btn-gap, var(--sp-2));
|
|
147
|
-
min-height: var(--btn-h);
|
|
152
|
+
min-height: var(--btn-h); /* md: one tap (--btn-h = --tap), the round's height */
|
|
148
153
|
text-decoration: none; /* .btn works as <a> too */
|
|
149
154
|
}
|
|
150
|
-
/*
|
|
151
|
-
|
|
155
|
+
/* the tones (Btn tone), the pill's and the round's alike. primary: the palette's primary (orchard's yellow); the round's reads its invert knobs
|
|
156
|
+
first, then these (above) */
|
|
157
|
+
.btn--primary { background: var(--btn-primary-bg, var(--accent)); color: var(--btn-primary-ink, var(--on-accent)); border-color: transparent; }
|
|
152
158
|
/* quiet keeps a faint outline so it still reads as a button on colored palettes;
|
|
153
159
|
it is ink on whatever it sits on — inherit, or on the dark slot (card--3) it
|
|
154
160
|
would take the light-card action ink and vanish */
|
|
155
|
-
.btn--quiet
|
|
156
|
-
.btn--warn
|
|
161
|
+
:is(.btn--quiet, .icon-btn--quiet) { background: transparent; color: inherit; border-color: var(--btn-quiet-border, color-mix(in srgb, currentColor 35%, transparent)); }
|
|
162
|
+
:is(.btn--warn, .icon-btn--warn) { --dark: var(--action-dark); color: var(--btn-warn-ink, var(--signal-warn)); } /* a move to think twice about ("cancel the request"): the signal set's warning, on the button's own paper — its side, not the card's */
|
|
157
163
|
.btn--block { width: 100%; }
|
|
158
164
|
.btn--form { justify-self: center; align-self: center; margin-inline: auto; padding-inline: var(--btn-form-pad-x, calc(var(--sp-base) * 14.5)); /* 58px: "ส่งรหัส OTP" at 213px, 20% longer than at 40px sides (Lh 2026-09-25) */ } /* a form's button: its words + wide sides, centred in a grid (a step) or a block (Lh 2026-09-25) */
|
|
159
|
-
/* sm (
|
|
160
|
-
.btn--sm { min-height: var(--btn-sm-size, var(--
|
|
165
|
+
/* sm (Lh 2026-10-28): one small tap tall (the touch floor, 44, the round sm's), the small words, closer sides — a worded move at a card head's end */
|
|
166
|
+
.btn--sm { min-height: var(--btn-sm-size, var(--tap-sm)); padding-inline: var(--btn-sm-pad-x, var(--sp-4)); font-size: var(--btn-sm-font-size, var(--fs-sm)); }
|
|
167
|
+
/* lg: the hero control's height (--tap-lg, the round lg's) */
|
|
168
|
+
.btn--lg { min-height: var(--btn-lg-size, var(--tap-lg)); }
|
|
161
169
|
/* xl: the one giant call to action in a tinted card ("Taxi!") */
|
|
162
170
|
.btn--xl { min-height: var(--btn-xl-h); font: var(--fw-heavy) var(--fs-3xl) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-display); letter-spacing: var(--track-h1); border-radius: var(--r-card); padding-inline: var(--sp-8); }
|
|
163
171
|
/* disabled keeps the slot — a control that vanishes moves everything else,
|
|
164
172
|
and a pager whose "previous" disappeared on page one would shift the bar
|
|
165
173
|
under the thumb on every page */
|
|
166
|
-
/* SENDING (Btn
|
|
174
|
+
/* SENDING (Btn sending, Lh 2026-10-28): something goes OUT from the button — for --motion-send its icon swells and tips forward,
|
|
167
175
|
and two rings spread from its edge one after the other (--btn-sending-ink, the accent); then the app swaps the icon or puts the sent thing in.
|
|
168
176
|
Under reduced motion nothing moves (the app is told at once) */
|
|
169
177
|
@media (prefers-reduced-motion: no-preference) {
|
|
170
178
|
:is(.btn, .icon-btn).is-sending { animation: send-out var(--motion-send) var(--ease-out); }
|
|
171
179
|
:is(.btn, .icon-btn).is-sending > .icon { animation: send-out-call var(--motion-send) ease-in-out; }
|
|
172
180
|
}
|
|
181
|
+
/* BUSY (Btn busy, 2026-10-29): the press is being carried out — a ring turns where the icon stands (a pill: before its words); the button is
|
|
182
|
+
disabled meanwhile, so it fades like one. Under reduced motion the ring stands still */
|
|
183
|
+
@media (prefers-reduced-motion: no-preference) { :is(.btn, .icon-btn).is-busy > .btn__busy { --icon-spin: turn var(--motion-spin) var(--ease-linear) infinite; } } /* `turn`: tokens.css */
|
|
173
184
|
@keyframes send-out {
|
|
174
185
|
from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--btn-sending-ink, var(--accent)) 45%, transparent), 0 0 0 0 color-mix(in srgb, var(--btn-sending-ink, var(--accent)) 30%, transparent); }
|
|
175
186
|
60% { box-shadow: 0 0 0 var(--sp-3) transparent, 0 0 0 var(--sp-1) color-mix(in srgb, var(--btn-sending-ink, var(--accent)) 30%, transparent); }
|
|
@@ -184,40 +195,14 @@
|
|
|
184
195
|
/* link block (LinkBlock, Lh 2026-10-28): a few pieces of a card's content as one link — stacked with the card's gap, the holder's ink, no underline,
|
|
185
196
|
no frame, no padding; the DIM press answer (below) */
|
|
186
197
|
.link-block { display: grid; gap: var(--link-block-gap, var(--card-gap)); color: inherit; text-decoration: none; }
|
|
187
|
-
/* a Row in a link block with a lead
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) {
|
|
193
|
-
display: grid;
|
|
194
|
-
grid-template-columns: auto minmax(0, 1fr) repeat(4, auto);
|
|
195
|
-
grid-template-rows: minmax(min-content, 0);
|
|
196
|
-
grid-auto-rows: auto;
|
|
197
|
-
column-gap: 0;
|
|
198
|
-
row-gap: var(--words-gap, var(--sp-0));
|
|
199
|
-
align-items: start;
|
|
200
|
-
align-content: start;
|
|
201
|
-
}
|
|
202
|
-
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .lead { grid-column: 1; grid-row: 1 / 3; margin-inline-end: var(--row-gap, var(--sp-3)); }
|
|
203
|
-
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words { display: contents; }
|
|
204
|
-
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words > .words__title { grid-column: 2; grid-row: 1; }
|
|
205
|
-
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words > .words__meta { grid-column: 2 / -1; grid-row: 2; }
|
|
206
|
-
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > :nth-child(n + 3) { grid-row: 1; margin-inline-start: var(--row-gap, var(--sp-3)); }
|
|
207
|
-
/* …and the title's later lines run UNDER the end and the arrow at full width, round the Words' room for them (parts.css "the ends in the corner") */
|
|
208
|
-
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child > .words__room) > .words > .words__title { grid-column: 2 / -1; }
|
|
209
|
-
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child > .words__room) > .words > .words__title > .words__room { display: flex; gap: var(--row-gap, var(--sp-3)); padding-inline-start: var(--row-gap, var(--sp-3)); }
|
|
210
|
-
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child > .words__room) > :nth-child(3) { grid-column: 3; }
|
|
211
|
-
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child > .words__room) > :nth-child(4) { grid-column: 4; }
|
|
212
|
-
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child > .words__room) > :nth-child(5) { grid-column: 5; }
|
|
213
|
-
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child > .words__room) > :nth-child(6) { grid-column: 6; }
|
|
214
|
-
/* …and an End of words with its arrow stands centred in the title's FIRST line (title type's leading), as in a led Head (parts.css) */
|
|
215
|
-
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) { --_line-h: round(down, calc(var(--lh-title) * var(--fs-title)), 1px); }
|
|
216
|
-
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .end:not(:has(> .t-title)), .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words > .words__title > .words__room > .end:not(:has(> .t-title)) { margin-block-start: calc((var(--_line-h) - round(down, calc(var(--lh-caption) * var(--fs-caption)), 1px)) / 2); }
|
|
217
|
-
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .end:not(:has(> .t-title)) + .icon, .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words > .words__title > .words__room > .end:not(:has(> .t-title)) + .icon { --icon-margin: calc((var(--_line-h) - var(--end-icon-size, var(--icon-xs))) / 2) 0; }
|
|
198
|
+
/* a Row in a link block with a lead (Lh 2026-10-28, the place under a map): a led line, laid as a led Head is (parts.css "a LED LINE"): the lead
|
|
199
|
+
at the left, the place and its note ONE flowing block round the end (an End's words and their arrow), which stands at the top right with
|
|
200
|
+
its centre on the place's x-height middle; the words run under it at full width. Only here: a list's rows are untouched.
|
|
201
|
+
<a class="link-block">…<div class="row"><span class="lead">…</span><span class="words"><span class="words__room" …>…</span><span class="words__title">…</span><span class="words__meta">…</span></span><span class="line-ends"><span class="end">…<svg class="icon"/></span></span></div></a> */
|
|
202
|
+
.link-block > .row:has(> .line-ends) { --_led-gap: var(--words-gap, var(--sp-0)); --_led-col-gap: var(--row-gap, var(--sp-3)); --_led-title-font: var(--words-title-font, var(--type-title)); }
|
|
218
203
|
/* a row of buttons sharing the width (twin CTAs inside a card) */
|
|
219
204
|
.btn-row { display: flex; gap: var(--btn-row-gap, var(--sp-2)); }
|
|
220
|
-
/* round (BtnRow round, Lh 2026-10-24): a few round
|
|
205
|
+
/* round (BtnRow round, Lh 2026-10-24): a few round Btns as one group in the middle of a card's content, a fixed gap apart — Foot round's look,
|
|
221
206
|
so a card's foot stays its status line */
|
|
222
207
|
.btn-row--round { justify-content: center; align-items: center; gap: var(--btn-row-gap, var(--sp-6)); }
|
|
223
208
|
.btn-row > .btn { flex: 1; min-width: 0; }
|
package/css/base.css
CHANGED
|
@@ -16,13 +16,13 @@ button, [role="button"], [role="tab"], [role="option"], [role="menuitem"], a.btn
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/* the scale: everything is rem, so this one number resizes the whole system.
|
|
19
|
-
100% = the browser's text size (16px by default)
|
|
20
|
-
|
|
19
|
+
100% = the browser's text size (16px by default), on every screen: the screen's size is
|
|
20
|
+
never a trigger (Lh 2026-10-29). An app that wants a smaller scale on a narrow phone sets
|
|
21
|
+
`html { font-size }` itself, in its own css, by whatever rule it picks.
|
|
21
22
|
An app's OWN text-size setting is NOT here (Lh 2026-09-22: --text-scale, which
|
|
22
23
|
multiplied the root, zoomed the UI too — retired): it is --fs-base on <html>,
|
|
23
24
|
the type base, so the words grow and the things keep their size (tokens.css). */
|
|
24
25
|
html { font-size: 100%; }
|
|
25
|
-
@media (max-width: 22.5em) { html { font-size: 93.75%; } }
|
|
26
26
|
|
|
27
27
|
body {
|
|
28
28
|
margin: 0;
|
|
@@ -278,6 +278,9 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
278
278
|
.screen.screen--fill:has(> .appbar) { padding-top: var(--safe-top); --header-gap: 0rem; }
|
|
279
279
|
/* a plain screen is a column at least one phone tall when it ends on an .action-bar or holds a .screen__centre (step.css, card.css) */
|
|
280
280
|
.screen:not(.screen--fill):has(> .action-bar:last-child, > .screen__centre) { display: flex; flex-direction: column; min-height: 100dvh; }
|
|
281
|
+
/* a bare bar for a preview (ActionBar inline): no position, full width, no side padding. The :is() lifts it over every place
|
|
282
|
+
rule of the bar (actions.css: .action-bar, .screen--fill > .action-bar, the sticky last row), which load after this file */
|
|
283
|
+
.action-bar--inline:is(.action-bar, .screen:not(.screen--fill) > .action-bar:last-child) { position: static; width: 100%; max-width: none; padding-inline: 0; }
|
|
281
284
|
/* the centred group: the place of a .card--centre (card.css), for a small group of things */
|
|
282
285
|
.screen--fill > .screen__centre {
|
|
283
286
|
position: absolute;
|
|
@@ -380,8 +383,8 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
380
383
|
overflow: hidden;
|
|
381
384
|
text-overflow: ellipsis;
|
|
382
385
|
white-space: nowrap;
|
|
383
|
-
padding-block:
|
|
384
|
-
margin-block: -
|
|
386
|
+
padding-block: var(--glyph-rise) var(--glyph-drop); /* Thai marks survive the clip (tokens.css, the glyphs' room) */
|
|
387
|
+
margin-block: calc(-1 * var(--glyph-rise)) calc(-1 * var(--glyph-drop));
|
|
385
388
|
}
|
|
386
389
|
/* ---- where it sits in what media.css draws (docs/reference.md rule 15) ---- */
|
|
387
390
|
.postcard__band .icon-btn[aria-pressed="true"] .icon { fill: currentColor; }
|
package/css/card.css
CHANGED
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
.card__middle--full > .bullets { align-self: stretch; text-align: start; } /* a list of steps keeps the card's width and reads from the start edge (centred, each line's pic would float with its words) */
|
|
98
98
|
.card__turn { position: absolute; inset: 0; width: var(--px); height: var(--px); padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
|
|
99
99
|
.card__face:has(> .card__turn:focus-visible) { outline: var(--focus); outline-offset: calc(-1 * var(--sp-1)); }
|
|
100
|
-
.head > .chip-row > .chip > .icon { --icon-display: inline-block; --icon-align:
|
|
100
|
+
.head > .chip-row > .chip > .icon { --icon-display: inline-block; --icon-align: middle; --icon-margin: 0 var(--chip-sm-gap, var(--sp-1)) 0 0; }
|
|
101
101
|
|
|
102
102
|
/* ---- bleed: a scrolling track that runs to the container's edges ----
|
|
103
103
|
For a horizontal strip inside a padded container — .avatar-pick, .chip-row,
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
opacity: var(--off);
|
|
148
148
|
min-height: calc(var(--tap-base) * 10 / 3);
|
|
149
149
|
}
|
|
150
|
-
.ph--sm { min-height:
|
|
150
|
+
.ph--sm { min-height: var(--tile-min); }
|
|
151
151
|
.ph--md { min-height: calc(var(--tap-base) * 3); }
|
|
152
152
|
/* ---- centred card: one thing to read, at the human centre of a fill screen ----
|
|
153
153
|
(.screen__centre below is the same placement for a small GROUP of things)
|
|
@@ -419,8 +419,8 @@
|
|
|
419
419
|
}
|
|
420
420
|
|
|
421
421
|
/* ---- where it sits in what base.css draws (docs/reference.md rule 15) ---- */
|
|
422
|
-
.page > :is(img, .ph) { max-height: var(--page-media-h,
|
|
423
|
-
.page > .ph { width: 100%; height: var(--page-media-h,
|
|
422
|
+
.page > :is(img, .ph) { max-height: var(--page-media-h, var(--drawer-h)); width: auto; height: auto; max-width: 100%; object-fit: contain; justify-self: start; align-self: start; } /* height auto: an <img> with width/height attributes keeps its ratio inside the cap — no band under the picture */
|
|
423
|
+
.page > .ph { width: 100%; height: var(--page-media-h, var(--drawer-h)); }
|
|
424
424
|
/* ---- where it sits in what stack.css draws (docs/reference.md rule 15) ---- */
|
|
425
425
|
.sheet-stack > .card {
|
|
426
426
|
grid-area: 1 / 1; /* every card shares the stack's cell; later ones offset down */
|
|
@@ -551,7 +551,7 @@
|
|
|
551
551
|
width: calc(100% + 2 * var(--screen-pad)); /* the content's width: the page's inset given back */
|
|
552
552
|
max-width: none;
|
|
553
553
|
margin-inline: calc(-1 * var(--screen-pad));
|
|
554
|
-
height: calc(var(--_lead, 0rem) + var(--page-media-h,
|
|
554
|
+
height: calc(var(--_lead, 0rem) + var(--page-media-h, var(--drawer-h)));
|
|
555
555
|
max-height: none;
|
|
556
556
|
border-radius: 0;
|
|
557
557
|
border-inline: 0;
|
package/css/journey.css
CHANGED
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
.tile-badge--plain .tile-badge__value { font: var(--fw-heavy) var(--fs-h1) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-display); }
|
|
51
51
|
|
|
52
52
|
/* stretch: a date in a head (Lh 2026-10-19) — as tall as the title block beside it and no taller (the head stretches it; size
|
|
53
|
-
containment keeps its own words from adding height).
|
|
54
|
-
|
|
55
|
-
its three lines (2026-10-21, timebank: beside a four-line title it was a tall empty block); held there, it stands at the head's top. */
|
|
53
|
+
containment keeps its own words from adding height). Three lines, day · number · month; `--sub-beside` (the app's prop, never its
|
|
54
|
+
height: a box's size is not a trigger, Lh 2026-10-29) = two lines, the day name over the number and the month on one line. It grows
|
|
55
|
+
no taller than its three lines (2026-10-21, timebank: beside a four-line title it was a tall empty block); held there, it stands at the head's top. */
|
|
56
56
|
.tile-badge--stretch {
|
|
57
57
|
line-height: var(--tile-badge-line, var(--lh-badge)); /* the knob's own property, a ratio here: each line rounds it at its own size (below), and the caps add those lines */
|
|
58
58
|
align-self: stretch;
|
|
@@ -74,10 +74,8 @@
|
|
|
74
74
|
padding: var(--sp-3); /* the same room on all four sides; the box's min height and width count it */
|
|
75
75
|
}
|
|
76
76
|
.tile-badge--stretch > * { line-height: round(down, calc(var(--tile-badge-line, var(--lh-badge)) * 1em), 1px); white-space: nowrap; } /* a value never breaks at its dash */
|
|
77
|
-
.tile-badge--stretch >
|
|
78
|
-
|
|
79
|
-
.tile-badge--stretch > * { grid-column: 1 / -1; }
|
|
80
|
-
}
|
|
77
|
+
.tile-badge--stretch > * { grid-column: 1 / -1; }
|
|
78
|
+
.tile-badge--stretch.tile-badge--sub-beside > :not(:first-child) { grid-column: auto; } /* the number and the month share the second line */
|
|
81
79
|
|
|
82
80
|
/* where it sits in a head that leads with the date (card.css): the first cell, as tall as the chips beside it however many rows, so no cap */
|
|
83
81
|
.head:has(> .tile-badge:first-child + .chip-row) > .tile-badge--stretch:first-child { grid-column: 1; grid-row: 1; max-block-size: none; }
|
package/css/layover.css
CHANGED
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
sets open={false}).
|
|
32
32
|
Reduced motion: the finished state, no beats; closing fires at once. */
|
|
33
33
|
.modal {
|
|
34
|
-
--drawer-h: calc(var(--tap-base) * 14 / 3);
|
|
35
34
|
position: absolute; /* at the stage's centre, and kept there as it grows: its middle is pinned at 50% and */
|
|
36
35
|
top: 50%; /* translate -50% of its OWN height re-centres it on every height. NOT inset 0 + margin auto + */
|
|
37
36
|
inset-inline: 0; /* align-self: center — Safari 18 ignores align-self on an absolute box in a block container, */
|
package/css/lists.css
CHANGED
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
min-width: 0;
|
|
109
109
|
padding: var(--bubble-body-pad-y, var(--sp-3)) var(--bubble-body-pad-x, var(--sp-4));
|
|
110
110
|
border-radius: var(--bubble-body-radius, var(--r-card));
|
|
111
|
-
border-bottom-left-radius: var(--r-control)
|
|
111
|
+
border-bottom-left-radius: var(--bubble-tail-radius, var(--r-tail)); /* the tail: the corner nearest the sender, a corner that points (Lh 2026-10-29: --r-control read round) */
|
|
112
112
|
background: var(--bubble-body-bg, var(--card-2-bg));
|
|
113
113
|
--dark: var(--card-2-dark);
|
|
114
114
|
color: var(--bubble-body-ink, var(--card-ink));
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
}
|
|
118
118
|
.bubble--right > .bubble__body {
|
|
119
119
|
border-bottom-left-radius: var(--r-card);
|
|
120
|
-
border-bottom-right-radius: var(--r-
|
|
120
|
+
border-bottom-right-radius: var(--bubble-tail-radius, var(--r-tail));
|
|
121
121
|
background: var(--accent);
|
|
122
122
|
color: var(--on-accent);
|
|
123
123
|
text-align: right;
|
package/css/media.css
CHANGED
|
@@ -24,6 +24,11 @@
|
|
|
24
24
|
grid-template-columns: repeat(auto-fill, minmax(min(var(--tile-min), 100%), 1fr));
|
|
25
25
|
gap: var(--tile-grid-gap, var(--sp-3));
|
|
26
26
|
}
|
|
27
|
+
/* two across at every phone width (four picks 2×2). An inline tile's words stand beside the icon while their longest word fits there, else under it (a big text size) */
|
|
28
|
+
.tile-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
29
|
+
.tile-grid--2 > .tile--inline { display: flex; flex-wrap: wrap; gap: var(--tile-text-gap, var(--sp-0)) var(--tile-inline-gap, var(--sp-3)); }
|
|
30
|
+
.tile-grid--2 > .tile--inline .tile__text { display: grid; gap: var(--tile-text-gap, var(--sp-0)); flex: 1 1 0; min-width: min-content; }
|
|
31
|
+
.tile-grid--2 > .tile--inline :is(.tile__label, .tile__sub) { overflow-wrap: anywhere; } /* a word longer than the whole tile breaks, never runs out of it */
|
|
27
32
|
.tile-grid--3 { --tile-min: calc(var(--tap-base) * 2); } /* three across on a phone (attachments, upload kinds) */
|
|
28
33
|
/* four across on a phone: small square actions — the icon over a short label, centred (copy · share · draw · save on a sheet) */
|
|
29
34
|
.tile-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tile-grid-gap, var(--sp-2)); }
|
package/css/numbers.css
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
As tall as the top bar (--header-h), and a step is a MARK, not a control: its round is well under
|
|
44
44
|
the tap floor, so it reads as progress and never as something to press (Lh 2026-10-03). */
|
|
45
45
|
.track {
|
|
46
|
-
--_step:
|
|
46
|
+
--_step: var(--icon-lg); /* 32 the round of one step */
|
|
47
47
|
--_pad: calc((var(--header-h) - var(--_step)) / 2); /* 14 round + its room = the top bar's height; the end rounds sit concentric in the pill */
|
|
48
48
|
/* the track lays down the accent fill of where it stands (the brand on a light card, the card's ink on the brand card), so it is a
|
|
49
49
|
surface of that fill's side; its steps re-point the accent to its ink, as the brand card slot does (docs/reference.md rule 10) */
|
package/css/palette.css
CHANGED
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
[data-palette="orchard"] .pin__cell { background: var(--pin-cell-bg, #ffffff); color: var(--ink-onlight); }
|
|
100
100
|
/* the vivid ones, tried on the live parts (Lh 2026-09-25): primary = yellow · a user avatar = fuchsia · maple only on small dots (the count, dot a); the chosen stack tab stays moss.
|
|
101
101
|
Every switch (Toggle, Check, a pick, a Ring…) is the brand, --accent / --on-accent, as on every palette: no switch rule here (Lh 2026-10-25) */
|
|
102
|
-
[data-palette="orchard"] :is(.btn--primary, .icon-btn--primary) {
|
|
102
|
+
[data-palette="orchard"] :is(.btn--primary, .icon-btn--primary) { --accent: var(--highlight-2); --on-accent: var(--ink-onlight); } /* the primary's own accent (role tokens only): actions.css paints it, so --btn-primary-* and --icon-btn-invert-* still win */
|
|
103
103
|
[data-palette="orchard"] .avatar:not(.avatar--outline, .avatar--add, .avatar--on) { background: var(--avatar-bg, var(--highlight-4)); --dark: 1; }
|
|
104
104
|
|
|
105
105
|
/* ---- VERS — Lh's own-palette pick (2026-09-25): white surface, champagne paper, sage brand; earth tones for tones 2·4·5 ---- */
|