@usableapp/cardds 0.7.158 → 0.7.159
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 +14 -0
- package/css/actions.css +4 -0
- package/css/base.css +6 -3
- package/css/forms.css +24 -0
- package/css/stamp.css +19 -17
- package/dist/actions/BtnGroup.d.ts +3 -2
- package/dist/actions/BtnGroup.js +3 -3
- package/dist/cardds.css +53 -20
- package/dist/catalog.json +1 -1
- package/dist/forms/Field.d.ts +13 -1
- package/dist/forms/Field.js +55 -6
- package/dist/scaffold/Page.d.ts +3 -1
- package/dist/scaffold/Page.js +3 -1
- package/dist/sheets/SheetSteps.js +3 -3
- package/dist/stamp/Stamp.d.ts +2 -1
- package/dist/stamp/Stamp.js +3 -2
- package/docs/reference.md +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.159 — 2026-10-28
|
|
6
|
+
|
|
7
|
+
A pick and a search on ONE line in a sheet step: a `Field` folds into a button and opens out of it, a `BtnGroup look="choice"` can be as wide as its words, and a `CtaPack` holds them both outside a `Page`.
|
|
8
|
+
|
|
9
|
+
Components: Field, BtnGroup, CtaPack, SheetStep
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- **`Field fold`** (timebank, Lh 2026-10-28: the place step lost a line to a full-width search field). `fold="ค้นหาสถานที่"` = the words of the button the field stands as; its `icon` leads them. A tap opens the field out of the button (the cursor in it, the keyboard up, inside the same tap); Escape, or leaving it empty, asks to fold it back. Controlled like an input: `open` + `onOpenChange`, or `defaultOpen`. In a `CtaPack` the button stands at the line's end, square with the icon alone when the words have no room (the words stay its spoken name), and the open field covers the whole line. Rows of offers under it (`Rows`) are the app's, as before. One line only (ignored with `rows`). Before → after: `<Field action={search}/>` on its own line → `<CtaPack><BtnGroup look="choice" form …/><Field fold="…" icon="search" open={open} onOpenChange={setOpen} action={search}/></CtaPack>`.
|
|
13
|
+
- **`BtnGroup look="choice" form`** — each word as wide as it is, the frame as wide as them all (centred alone in a step, the line's first piece in a `CtaPack`). Before → after: `form` was the icon frame's only; a choice always filled its width.
|
|
14
|
+
- **`CtaPack` outside a `Page`** — the line of controls (each its own width, wrapping) now works anywhere, a `SheetStep` included. Knob `--cta-pack-gap`. In a Page nothing moves.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- **`SheetStep`'s Enter**: Enter in a field whose own `onKeyDown` called `preventDefault()` (a search) no longer also presses the step's button, and a button with `aria-expanded` (a folded Field's) is never taken for the step's button.
|
|
18
|
+
|
|
5
19
|
## 0.7.158 — 2026-10-28
|
|
6
20
|
|
|
7
21
|
The home-feed cards without hand CSS: wrap buttons, a small Btn, words cut at N lines, a picture beside words, a pressed and a highlighted Bubble, a reply-to quote, a send-out on a button, a link block, a still map's media corner, a stamp place at a lead's size.
|
package/css/actions.css
CHANGED
|
@@ -324,6 +324,10 @@
|
|
|
324
324
|
background: var(--btngroup-choice-on-bg, var(--accent));
|
|
325
325
|
color: var(--btngroup-choice-on-ink, var(--on-accent));
|
|
326
326
|
}
|
|
327
|
+
/* --form (Lh 2026-10-28): each word as wide as it is, the frame as wide as them all, in the middle of a grid column (a step) as a
|
|
328
|
+
`.btn--form`; in a .cta-pack it is just the line's first piece */
|
|
329
|
+
.segment--choice.segment--form { justify-self: center; max-width: 100%; }
|
|
330
|
+
.segment--choice.segment--form > .segment__item { flex: 0 1 auto; white-space: nowrap; padding-inline: var(--btngroup-choice-form-pad-x, var(--sp-4)); }
|
|
327
331
|
.segment--choice > .segment__item:active:not(:disabled) { scale: 1; opacity: var(--press-dim); } /* a part of one frame DIMS, it never shrinks inside it */
|
|
328
332
|
|
|
329
333
|
/* ---- bottom CTA pack: the screen's bottom (Screen `bottom`) ----
|
package/css/base.css
CHANGED
|
@@ -229,13 +229,16 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
229
229
|
.page > .t-body { color: var(--page-body-ink, var(--on-surface)); max-width: 34ch; } /* full ink: a sentence is read, muted is for meta (Lh 2026-09-22 — the words on the base were grey and hard to read) */
|
|
230
230
|
/* an illustration among the words (Lh 2026-09-22): capped, so a tall picture never pushes the words under the bar;
|
|
231
231
|
(the walk's dots are NOT here — they are the Step's, after its Pages: step.css, Lh 2026-09-22) */
|
|
232
|
-
|
|
232
|
+
/* a cta-pack: controls on one line, each its own width, wrapping — under a Page's words, or in a sheet step (a pick beside a folded
|
|
233
|
+
Field, Lh 2026-10-28). It is the box an open .field-fold covers (forms.css), so it is positioned */
|
|
234
|
+
.cta-pack {
|
|
235
|
+
position: relative;
|
|
233
236
|
display: flex;
|
|
234
237
|
align-items: start; /* buttons keep their own height, never the row's */
|
|
235
|
-
gap: var(--sp-2);
|
|
236
|
-
margin-top: var(--sp-2);
|
|
238
|
+
gap: var(--cta-pack-gap, var(--sp-2));
|
|
237
239
|
flex-wrap: wrap;
|
|
238
240
|
}
|
|
241
|
+
.page .cta-pack { margin-top: var(--sp-2); }
|
|
239
242
|
|
|
240
243
|
/* ---- empty state: on-surface, centered, optional CTA below ---- */
|
|
241
244
|
.empty-state {
|
package/css/forms.css
CHANGED
|
@@ -48,6 +48,30 @@
|
|
|
48
48
|
/* field with its action inside: date pick, send, go — the button sits flush right */
|
|
49
49
|
.field--action { padding-right: var(--sp-1); min-height: var(--field-action-min-h, var(--form-tap-lg)); }
|
|
50
50
|
|
|
51
|
+
/* ---- field-fold (Field fold, Lh 2026-10-28): the field folded into a button; opened, it grows out of the button's box to the whole width
|
|
52
|
+
of what it stands in, the button gone under it. Field measures the button (--_fold-w) and, in a .cta-pack, the line it stands on
|
|
53
|
+
(--_fold-y). Folded, the field is there but unseen and inert, so the tap can put the cursor in it inside the finger's own event ---- */
|
|
54
|
+
.field-fold { position: relative; display: grid; justify-items: start; }
|
|
55
|
+
.field-fold > .field {
|
|
56
|
+
position: absolute; inset-block-start: 0; inset-inline-start: 0;
|
|
57
|
+
width: var(--_fold-w, 100%); height: 100%; min-height: 0;
|
|
58
|
+
opacity: 0; pointer-events: none;
|
|
59
|
+
transition: width var(--motion-quick) var(--ease), opacity var(--motion-quick) var(--ease);
|
|
60
|
+
}
|
|
61
|
+
.field-fold--open > .field { width: 100%; opacity: 1; pointer-events: auto; }
|
|
62
|
+
.field-fold__btn { white-space: nowrap; } /* its words on one line, so Field reads the width they need */
|
|
63
|
+
.field-fold--open > .field-fold__btn { visibility: hidden; }
|
|
64
|
+
/* in a .cta-pack: the button at the line's end; open, the field covers the whole line it stands on, growing leftwards out of the button */
|
|
65
|
+
/* the fold takes the rest of the line, its button at the end and as tall as the line; with no room for the words beside the other
|
|
66
|
+
controls (Field's measure: --tight) the button is the icon alone, square, the words still its spoken name */
|
|
67
|
+
.cta-pack > .field-fold { position: static; flex: 1 1 0; min-width: var(--form-tap); justify-items: end; align-self: stretch; }
|
|
68
|
+
.cta-pack > .field-fold > .field-fold__btn { min-height: var(--form-tap); padding-block: 0; padding-inline: var(--field-fold-pad-x, var(--sp-4)); }
|
|
69
|
+
.cta-pack > .field-fold > .field { inset-block-start: var(--_fold-y, 0); inset-inline: auto 0; height: var(--_fold-h, auto); }
|
|
70
|
+
.field-fold--tight > .field-fold__btn { padding-inline: calc((var(--form-tap) - var(--icon-xs)) / 2); } /* square on the line: a tap wide round its icon */
|
|
71
|
+
.field-fold--tight .field-fold__words { position: absolute; width: var(--px); height: var(--px); overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
72
|
+
.cta-pack:has(> .field-fold--open) > :not(.field-fold) { visibility: hidden; transition: visibility 0s var(--ease-linear) var(--motion-quick); }
|
|
73
|
+
@media (prefers-reduced-motion: reduce) { .field-fold > .field { transition: none; } }
|
|
74
|
+
|
|
51
75
|
/* colored palettes drop the visible outline elsewhere — fields keep one */
|
|
52
76
|
[data-palette] .field:not(:has(:focus)) { border-color: color-mix(in srgb, currentColor 25%, transparent); }
|
|
53
77
|
|
package/css/stamp.css
CHANGED
|
@@ -35,10 +35,11 @@
|
|
|
35
35
|
display: block;
|
|
36
36
|
container-type: inline-size;
|
|
37
37
|
color: var(--stamp-ink, var(--ink-onlight));
|
|
38
|
-
/* the contact shadow every stamp has (Lh 2026-10-26: contact only
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
/* the contact shadow every stamp has, framed or not (Lh 2026-10-26: contact only; Lh 2026-10-28: darker, sharper — a quarter of the blur, about
|
|
39
|
+
twice the opacity, it was 0 0 var(--border-w) rgb(0 0 0 / 0.28); a sliver of blur stays, a 0-offset drop-shadow with none draws nothing):
|
|
40
|
+
its edge on any ground, a white one too; black as the scrim, no color-mix (iOS 16.4) */
|
|
41
|
+
--_contact: 0 0 calc(var(--border-w) / 4) rgb(0 0 0 / 0.6);
|
|
42
|
+
filter: drop-shadow(var(--stamp-shadow, var(--_contact))) drop-shadow(var(--stamp-drop, 0 0 0 transparent)); /* drop-shadow follows the teeth; a box-shadow would draw the rectangle. The first is the contact shadow every stamp keeps, the second a lift a theme may add (--stamp-drop; none by default, Lh 2026-10-26 — it was --shadow-paper) */
|
|
42
43
|
rotate: var(--stamp-turn, none);
|
|
43
44
|
animation: var(--stamp-arrive, none);
|
|
44
45
|
}
|
|
@@ -55,14 +56,15 @@
|
|
|
55
56
|
/* the white frame: the paper's own colour round the picture. --frameless (`frame={false}`): the paper takes the picture's tone class instead,
|
|
56
57
|
so the tone runs out to the teeth — the teeth, 4:5, shadow, pictures and words unchanged (Lh 2026-10-26: a stamp is always perforated) */
|
|
57
58
|
.stamp:not(.stamp--frameless) > .stamp__paper { background-color: var(--stamp-paper-bg, var(--stamp-paper)); }
|
|
58
|
-
/* a frameless stamp
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
.stamp
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
59
|
+
/* no rim round a frameless stamp's teeth (Lh 2026-10-28: the paper-coloured rim of 0.7.149 read as a white edge round a full-colour stamp):
|
|
60
|
+
the tone runs out to the teeth. Its contact shadow is its own tone made dusky, not black (Lh 2026-10-28): a second punched paper under
|
|
61
|
+
the first (.stamp__shade, drawn only when frameless) wears the tone class, a grey painted OVER the tone as a background layer (a real
|
|
62
|
+
overlay, no color-mix — iOS 16.4), blurred as the black one is so its fringe shows round the teeth. Knob --stamp-tone-shadow-bg: the grey
|
|
63
|
+
laid over the tone (a darker or lighter shade; transparent = the bare tone). The black contact shadow is off here, unless a theme sets
|
|
64
|
+
--stamp-shadow */
|
|
65
|
+
.stamp--frameless { --_contact: 0 0 0 transparent; --_tone-shade: rgb(0 0 0 / 0.5); }
|
|
66
|
+
.stamp__shade { position: absolute; inset: 0; filter: blur(calc(var(--border-w) / 4)); }
|
|
67
|
+
.stamp__shade > .stamp__paper { background-image: linear-gradient(var(--stamp-tone-shadow-bg, var(--_tone-shade)) 0 0); }
|
|
66
68
|
.stamp__pic { position: absolute; inset: var(--stamp-frame, 8cqw); overflow: hidden; } /* the paper's frame round the picture; the ground is the tone class's */
|
|
67
69
|
|
|
68
70
|
/* the pictures, placed by COUNT: where, how wide, how far turned — the layout is the stamp's look, never the app's.
|
|
@@ -101,7 +103,7 @@
|
|
|
101
103
|
Too small for words: it is bare whatever it is handed. Only the contact shadow (--stamp-shadow): it lies flat in the line, its edge still seen. The teeth are every stamp's (8 across,
|
|
102
104
|
10 down), and the frame round the picture wider to clear them. Several, lapped, with a "+8": AvatarStack (below).
|
|
103
105
|
<span class="stamp stamp--1 stamp--xs">…</span> */
|
|
104
|
-
.stamp--xs { width: var(--stamp-xs-size, var(--stamp-xs)); flex: none; margin-inline: 0; filter:
|
|
106
|
+
.stamp--xs { width: var(--stamp-xs-size, var(--stamp-xs)); flex: none; margin-inline: 0; filter: drop-shadow(var(--stamp-shadow, var(--_contact))); }
|
|
105
107
|
.stamp--xs .stamp__pic { inset: var(--stamp-frame, 12cqw); }
|
|
106
108
|
/* held: the stamp keeps its box and draws nothing (visibility, never display or a size of its own) — shown later in the same box, nothing beside it moves */
|
|
107
109
|
.stamp--held { visibility: hidden; }
|
|
@@ -254,7 +256,7 @@
|
|
|
254
256
|
After the rule above, at the same weight: `main` is the one place a stuck stamp reads --stamp-size. */
|
|
255
257
|
.stamp-on--main > .stamp { width: var(--stamp-size, calc(var(--tap) * 2)); }
|
|
256
258
|
.stamp-on--under { top: var(--card-pad, 0); right: var(--card-pad, 0); left: auto; translate: none; z-index: var(--z-under); pointer-events: none; } /* the card's top right corner, below everything the card holds */
|
|
257
|
-
.stamp-on--under > .stamp { width: var(--stamp-size, calc(var(--tap) * 2)); filter:
|
|
259
|
+
.stamp-on--under > .stamp { width: var(--stamp-size, calc(var(--tap) * 2)); filter: drop-shadow(var(--stamp-shadow, var(--_contact))); }
|
|
258
260
|
.stamp-on--move { will-change: transform; } /* its own layer: Safari left the stamp's shadow behind as a trail along the drag when it was painted with the note (seen on the simulator, 2026-10-07) */
|
|
259
261
|
.stamp-on--move { cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; transition: scale var(--motion-press) var(--ease-out); }
|
|
260
262
|
.stamp-on--move:focus-visible { outline: var(--focus); outline-offset: var(--sp-1); }
|
|
@@ -314,7 +316,7 @@
|
|
|
314
316
|
width: var(--appbar-stamp-size, var(--_fit));
|
|
315
317
|
flex: none;
|
|
316
318
|
margin-inline: 0;
|
|
317
|
-
filter:
|
|
319
|
+
filter: drop-shadow(var(--stamp-shadow, var(--_contact)));
|
|
318
320
|
}
|
|
319
321
|
:is(.appbar__brand, .appbar__who) > .stamp .stamp__cap { display: none; }
|
|
320
322
|
:is(.appbar__brand, .appbar__who) > .stamp .stamp__art { top: calc(var(--_y) + 9%); }
|
|
@@ -322,10 +324,10 @@
|
|
|
322
324
|
/* a stamp ON a card lies flat: only the contact shadow (--stamp-shadow), at every size (Lh 2026-10-24; the contact shadow 2026-10-26) — a feed card's lead, a foot row's, xs.
|
|
323
325
|
A sheet is a `.card` too, but what it holds stands off its paper: the album, the tray, a start screen's stamp keep their shadow, and so
|
|
324
326
|
does a stamp in an album's cell wherever the album lies */
|
|
325
|
-
.card:not(.sheet) .stamp:not(.stamp-cell > .stamp) { filter:
|
|
327
|
+
.card:not(.sheet) .stamp:not(.stamp-cell > .stamp) { filter: drop-shadow(var(--stamp-shadow, var(--_contact))); }
|
|
326
328
|
/* ONE exception (Lh 2026-10-25): a stamp in the head is glued down — plain, `under` or `sm`, a hair of shadow at its teeth, flat paper, never a lifted sticker.
|
|
327
329
|
A bare or xs stamp stays flat, its contact shadow only. Knob: --stamp-under-drop (the name it was born with: `under` had it first) */
|
|
328
|
-
.card:not(.sheet) .head > .stamp:not(.stamp--bare, .stamp--xs) { filter:
|
|
330
|
+
.card:not(.sheet) .head > .stamp:not(.stamp--bare, .stamp--xs) { filter: drop-shadow(var(--stamp-shadow, var(--_contact))) drop-shadow(var(--stamp-under-drop, var(--shadow-glued))); }
|
|
329
331
|
.head > .stamp { grid-column: 2; grid-row: 1 / span 2; margin-inline: 0; }
|
|
330
332
|
.head > .stamp--under { grid-column: 1; justify-self: end; } /* `under`: in the words' own column, at its end, the words over it (parts.css) */
|
|
331
333
|
/* ---- where it sits in what people.css draws (docs/reference.md rule 15) ---- */
|
|
@@ -22,10 +22,11 @@ export interface BtnGroupProps extends Omit<ComponentProps<'div'>, 'onChange' |
|
|
|
22
22
|
/** `frame` only: the buttons one OVER the other, the panel one button wide — at a `Row`'s end, where a panel across would take the
|
|
23
23
|
* words' room */
|
|
24
24
|
vertical?: boolean;
|
|
25
|
-
/** `frame`
|
|
25
|
+
/** `frame` and `choice`: the panel as wide as its buttons (each one tap wide, or as wide as its word), in the middle of its column the way a
|
|
26
26
|
* `Btn form` is — in a `Page`, a `Centre`, a `CtaPack`, and in a card's or a sheet's foot, where it keeps that width instead of filling
|
|
27
27
|
* the row. Without it the panel is the width of what it stands in. Not with `vertical`: that is already one button wide, at a row's
|
|
28
|
-
* end — `form` wins and warns
|
|
28
|
+
* end — `form` wins and warns. `choice` (Lh 2026-10-28): the joined words each as wide as its word, the frame as wide as them all — on
|
|
29
|
+
* its own in the middle of a step, in a `CtaPack` beside another control on the same line */
|
|
29
30
|
form?: boolean;
|
|
30
31
|
/** with `form`: SHOW the `label` as words at the panel's left, on one line, the two centred together — plain ink in the label's type,
|
|
31
32
|
* outside the frame, and the words are the group's name (`aria-labelledby`). Where the line is too narrow (a big text size on a small
|
package/dist/actions/BtnGroup.js
CHANGED
|
@@ -15,8 +15,8 @@ export function BtnGroup({ look = 'frame', label, labelled, form, select, value,
|
|
|
15
15
|
const strip = look !== 'frame'; // `choice` is a strip of words in a button's look
|
|
16
16
|
if (!strip && Children.count(children) > 4)
|
|
17
17
|
warnOnce('icon-btn-group', 'cardds BtnGroup: more than 4 buttons in a frame — keep 4, put the rest in a Menu behind one of them');
|
|
18
|
-
if (strip && (
|
|
19
|
-
warnOnce('btn-group-strip-frame', 'cardds BtnGroup: `
|
|
18
|
+
if (strip && (vertical || labelled || (form && look !== 'choice')))
|
|
19
|
+
warnOnce('btn-group-strip-frame', 'cardds BtnGroup: `vertical` and `labelled` are the frame\'s, `form` the frame\'s and the choice\'s — a strip always shares the width it stands in; they are ignored');
|
|
20
20
|
if (!strip && form && vertical)
|
|
21
21
|
warnOnce('icon-btn-group-form-vertical', 'cardds BtnGroup: `form` and `vertical` together — `vertical` is already one button wide at a row\'s end, `form` is the panel in the middle of its column; `form` is kept, `vertical` ignored');
|
|
22
22
|
if (!strip && labelled && !form)
|
|
@@ -48,7 +48,7 @@ export function BtnGroup({ look = 'frame', label, labelled, form, select, value,
|
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
50
|
if (strip)
|
|
51
|
-
return _jsx("div", { role: "tablist", "aria-label": label, className: cx('segment', look === 'choice' && 'segment--choice', className), ...rest, children: items });
|
|
51
|
+
return _jsx("div", { role: "tablist", "aria-label": label, className: cx('segment', look === 'choice' && 'segment--choice', look === 'choice' && form && 'segment--form', className), ...rest, children: items });
|
|
52
52
|
const panel = (_jsx("div", { role: "group", "aria-label": line ? undefined : label, "aria-labelledby": line ? words : undefined, className: cx('icon-btn-group', form && 'icon-btn-group--form', vertical && !form && 'icon-btn-group--vertical', !line && className), ...(line ? {} : rest), children: items }));
|
|
53
53
|
if (!line)
|
|
54
54
|
return panel;
|
package/dist/cardds.css
CHANGED
|
@@ -810,13 +810,16 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
810
810
|
.page > .t-body { color: var(--page-body-ink, var(--on-surface)); max-width: 34ch; } /* full ink: a sentence is read, muted is for meta (Lh 2026-09-22 — the words on the base were grey and hard to read) */
|
|
811
811
|
/* an illustration among the words (Lh 2026-09-22): capped, so a tall picture never pushes the words under the bar;
|
|
812
812
|
(the walk's dots are NOT here — they are the Step's, after its Pages: step.css, Lh 2026-09-22) */
|
|
813
|
-
|
|
813
|
+
/* a cta-pack: controls on one line, each its own width, wrapping — under a Page's words, or in a sheet step (a pick beside a folded
|
|
814
|
+
Field, Lh 2026-10-28). It is the box an open .field-fold covers (forms.css), so it is positioned */
|
|
815
|
+
.cta-pack {
|
|
816
|
+
position: relative;
|
|
814
817
|
display: flex;
|
|
815
818
|
align-items: start; /* buttons keep their own height, never the row's */
|
|
816
|
-
gap: var(--sp-2);
|
|
817
|
-
margin-top: var(--sp-2);
|
|
819
|
+
gap: var(--cta-pack-gap, var(--sp-2));
|
|
818
820
|
flex-wrap: wrap;
|
|
819
821
|
}
|
|
822
|
+
.page .cta-pack { margin-top: var(--sp-2); }
|
|
820
823
|
|
|
821
824
|
/* ---- empty state: on-surface, centered, optional CTA below ---- */
|
|
822
825
|
.empty-state {
|
|
@@ -2631,6 +2634,30 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2631
2634
|
/* field with its action inside: date pick, send, go — the button sits flush right */
|
|
2632
2635
|
.field--action { padding-right: var(--sp-1); min-height: var(--field-action-min-h, var(--form-tap-lg)); }
|
|
2633
2636
|
|
|
2637
|
+
/* ---- field-fold (Field fold, Lh 2026-10-28): the field folded into a button; opened, it grows out of the button's box to the whole width
|
|
2638
|
+
of what it stands in, the button gone under it. Field measures the button (--_fold-w) and, in a .cta-pack, the line it stands on
|
|
2639
|
+
(--_fold-y). Folded, the field is there but unseen and inert, so the tap can put the cursor in it inside the finger's own event ---- */
|
|
2640
|
+
.field-fold { position: relative; display: grid; justify-items: start; }
|
|
2641
|
+
.field-fold > .field {
|
|
2642
|
+
position: absolute; inset-block-start: 0; inset-inline-start: 0;
|
|
2643
|
+
width: var(--_fold-w, 100%); height: 100%; min-height: 0;
|
|
2644
|
+
opacity: 0; pointer-events: none;
|
|
2645
|
+
transition: width var(--motion-quick) var(--ease), opacity var(--motion-quick) var(--ease);
|
|
2646
|
+
}
|
|
2647
|
+
.field-fold--open > .field { width: 100%; opacity: 1; pointer-events: auto; }
|
|
2648
|
+
.field-fold__btn { white-space: nowrap; } /* its words on one line, so Field reads the width they need */
|
|
2649
|
+
.field-fold--open > .field-fold__btn { visibility: hidden; }
|
|
2650
|
+
/* in a .cta-pack: the button at the line's end; open, the field covers the whole line it stands on, growing leftwards out of the button */
|
|
2651
|
+
/* the fold takes the rest of the line, its button at the end and as tall as the line; with no room for the words beside the other
|
|
2652
|
+
controls (Field's measure: --tight) the button is the icon alone, square, the words still its spoken name */
|
|
2653
|
+
.cta-pack > .field-fold { position: static; flex: 1 1 0; min-width: var(--form-tap); justify-items: end; align-self: stretch; }
|
|
2654
|
+
.cta-pack > .field-fold > .field-fold__btn { min-height: var(--form-tap); padding-block: 0; padding-inline: var(--field-fold-pad-x, var(--sp-4)); }
|
|
2655
|
+
.cta-pack > .field-fold > .field { inset-block-start: var(--_fold-y, 0); inset-inline: auto 0; height: var(--_fold-h, auto); }
|
|
2656
|
+
.field-fold--tight > .field-fold__btn { padding-inline: calc((var(--form-tap) - var(--icon-xs)) / 2); } /* square on the line: a tap wide round its icon */
|
|
2657
|
+
.field-fold--tight .field-fold__words { position: absolute; width: var(--px); height: var(--px); overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
2658
|
+
.cta-pack:has(> .field-fold--open) > :not(.field-fold) { visibility: hidden; transition: visibility 0s var(--ease-linear) var(--motion-quick); }
|
|
2659
|
+
@media (prefers-reduced-motion: reduce) { .field-fold > .field { transition: none; } }
|
|
2660
|
+
|
|
2634
2661
|
/* colored palettes drop the visible outline elsewhere — fields keep one */
|
|
2635
2662
|
[data-palette] .field:not(:has(:focus)) { border-color: color-mix(in srgb, currentColor 25%, transparent); }
|
|
2636
2663
|
|
|
@@ -3177,6 +3204,10 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3177
3204
|
background: var(--btngroup-choice-on-bg, var(--accent));
|
|
3178
3205
|
color: var(--btngroup-choice-on-ink, var(--on-accent));
|
|
3179
3206
|
}
|
|
3207
|
+
/* --form (Lh 2026-10-28): each word as wide as it is, the frame as wide as them all, in the middle of a grid column (a step) as a
|
|
3208
|
+
`.btn--form`; in a .cta-pack it is just the line's first piece */
|
|
3209
|
+
.segment--choice.segment--form { justify-self: center; max-width: 100%; }
|
|
3210
|
+
.segment--choice.segment--form > .segment__item { flex: 0 1 auto; white-space: nowrap; padding-inline: var(--btngroup-choice-form-pad-x, var(--sp-4)); }
|
|
3180
3211
|
.segment--choice > .segment__item:active:not(:disabled) { scale: 1; opacity: var(--press-dim); } /* a part of one frame DIMS, it never shrinks inside it */
|
|
3181
3212
|
|
|
3182
3213
|
/* ---- bottom CTA pack: the screen's bottom (Screen `bottom`) ----
|
|
@@ -5439,10 +5470,11 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
5439
5470
|
display: block;
|
|
5440
5471
|
container-type: inline-size;
|
|
5441
5472
|
color: var(--stamp-ink, var(--ink-onlight));
|
|
5442
|
-
/* the contact shadow every stamp has (Lh 2026-10-26: contact only
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5473
|
+
/* the contact shadow every stamp has, framed or not (Lh 2026-10-26: contact only; Lh 2026-10-28: darker, sharper — a quarter of the blur, about
|
|
5474
|
+
twice the opacity, it was 0 0 var(--border-w) rgb(0 0 0 / 0.28); a sliver of blur stays, a 0-offset drop-shadow with none draws nothing):
|
|
5475
|
+
its edge on any ground, a white one too; black as the scrim, no color-mix (iOS 16.4) */
|
|
5476
|
+
--_contact: 0 0 calc(var(--border-w) / 4) rgb(0 0 0 / 0.6);
|
|
5477
|
+
filter: drop-shadow(var(--stamp-shadow, var(--_contact))) drop-shadow(var(--stamp-drop, 0 0 0 transparent)); /* drop-shadow follows the teeth; a box-shadow would draw the rectangle. The first is the contact shadow every stamp keeps, the second a lift a theme may add (--stamp-drop; none by default, Lh 2026-10-26 — it was --shadow-paper) */
|
|
5446
5478
|
rotate: var(--stamp-turn, none);
|
|
5447
5479
|
animation: var(--stamp-arrive, none);
|
|
5448
5480
|
}
|
|
@@ -5459,14 +5491,15 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
5459
5491
|
/* the white frame: the paper's own colour round the picture. --frameless (`frame={false}`): the paper takes the picture's tone class instead,
|
|
5460
5492
|
so the tone runs out to the teeth — the teeth, 4:5, shadow, pictures and words unchanged (Lh 2026-10-26: a stamp is always perforated) */
|
|
5461
5493
|
.stamp:not(.stamp--frameless) > .stamp__paper { background-color: var(--stamp-paper-bg, var(--stamp-paper)); }
|
|
5462
|
-
/* a frameless stamp
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
.stamp
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
}
|
|
5494
|
+
/* no rim round a frameless stamp's teeth (Lh 2026-10-28: the paper-coloured rim of 0.7.149 read as a white edge round a full-colour stamp):
|
|
5495
|
+
the tone runs out to the teeth. Its contact shadow is its own tone made dusky, not black (Lh 2026-10-28): a second punched paper under
|
|
5496
|
+
the first (.stamp__shade, drawn only when frameless) wears the tone class, a grey painted OVER the tone as a background layer (a real
|
|
5497
|
+
overlay, no color-mix — iOS 16.4), blurred as the black one is so its fringe shows round the teeth. Knob --stamp-tone-shadow-bg: the grey
|
|
5498
|
+
laid over the tone (a darker or lighter shade; transparent = the bare tone). The black contact shadow is off here, unless a theme sets
|
|
5499
|
+
--stamp-shadow */
|
|
5500
|
+
.stamp--frameless { --_contact: 0 0 0 transparent; --_tone-shade: rgb(0 0 0 / 0.5); }
|
|
5501
|
+
.stamp__shade { position: absolute; inset: 0; filter: blur(calc(var(--border-w) / 4)); }
|
|
5502
|
+
.stamp__shade > .stamp__paper { background-image: linear-gradient(var(--stamp-tone-shadow-bg, var(--_tone-shade)) 0 0); }
|
|
5470
5503
|
.stamp__pic { position: absolute; inset: var(--stamp-frame, 8cqw); overflow: hidden; } /* the paper's frame round the picture; the ground is the tone class's */
|
|
5471
5504
|
|
|
5472
5505
|
/* the pictures, placed by COUNT: where, how wide, how far turned — the layout is the stamp's look, never the app's.
|
|
@@ -5505,7 +5538,7 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
5505
5538
|
Too small for words: it is bare whatever it is handed. Only the contact shadow (--stamp-shadow): it lies flat in the line, its edge still seen. The teeth are every stamp's (8 across,
|
|
5506
5539
|
10 down), and the frame round the picture wider to clear them. Several, lapped, with a "+8": AvatarStack (below).
|
|
5507
5540
|
<span class="stamp stamp--1 stamp--xs">…</span> */
|
|
5508
|
-
.stamp--xs { width: var(--stamp-xs-size, var(--stamp-xs)); flex: none; margin-inline: 0; filter:
|
|
5541
|
+
.stamp--xs { width: var(--stamp-xs-size, var(--stamp-xs)); flex: none; margin-inline: 0; filter: drop-shadow(var(--stamp-shadow, var(--_contact))); }
|
|
5509
5542
|
.stamp--xs .stamp__pic { inset: var(--stamp-frame, 12cqw); }
|
|
5510
5543
|
/* held: the stamp keeps its box and draws nothing (visibility, never display or a size of its own) — shown later in the same box, nothing beside it moves */
|
|
5511
5544
|
.stamp--held { visibility: hidden; }
|
|
@@ -5658,7 +5691,7 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
5658
5691
|
After the rule above, at the same weight: `main` is the one place a stuck stamp reads --stamp-size. */
|
|
5659
5692
|
.stamp-on--main > .stamp { width: var(--stamp-size, calc(var(--tap) * 2)); }
|
|
5660
5693
|
.stamp-on--under { top: var(--card-pad, 0); right: var(--card-pad, 0); left: auto; translate: none; z-index: var(--z-under); pointer-events: none; } /* the card's top right corner, below everything the card holds */
|
|
5661
|
-
.stamp-on--under > .stamp { width: var(--stamp-size, calc(var(--tap) * 2)); filter:
|
|
5694
|
+
.stamp-on--under > .stamp { width: var(--stamp-size, calc(var(--tap) * 2)); filter: drop-shadow(var(--stamp-shadow, var(--_contact))); }
|
|
5662
5695
|
.stamp-on--move { will-change: transform; } /* its own layer: Safari left the stamp's shadow behind as a trail along the drag when it was painted with the note (seen on the simulator, 2026-10-07) */
|
|
5663
5696
|
.stamp-on--move { cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; transition: scale var(--motion-press) var(--ease-out); }
|
|
5664
5697
|
.stamp-on--move:focus-visible { outline: var(--focus); outline-offset: var(--sp-1); }
|
|
@@ -5718,7 +5751,7 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
5718
5751
|
width: var(--appbar-stamp-size, var(--_fit));
|
|
5719
5752
|
flex: none;
|
|
5720
5753
|
margin-inline: 0;
|
|
5721
|
-
filter:
|
|
5754
|
+
filter: drop-shadow(var(--stamp-shadow, var(--_contact)));
|
|
5722
5755
|
}
|
|
5723
5756
|
:is(.appbar__brand, .appbar__who) > .stamp .stamp__cap { display: none; }
|
|
5724
5757
|
:is(.appbar__brand, .appbar__who) > .stamp .stamp__art { top: calc(var(--_y) + 9%); }
|
|
@@ -5726,10 +5759,10 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
5726
5759
|
/* a stamp ON a card lies flat: only the contact shadow (--stamp-shadow), at every size (Lh 2026-10-24; the contact shadow 2026-10-26) — a feed card's lead, a foot row's, xs.
|
|
5727
5760
|
A sheet is a `.card` too, but what it holds stands off its paper: the album, the tray, a start screen's stamp keep their shadow, and so
|
|
5728
5761
|
does a stamp in an album's cell wherever the album lies */
|
|
5729
|
-
.card:not(.sheet) .stamp:not(.stamp-cell > .stamp) { filter:
|
|
5762
|
+
.card:not(.sheet) .stamp:not(.stamp-cell > .stamp) { filter: drop-shadow(var(--stamp-shadow, var(--_contact))); }
|
|
5730
5763
|
/* ONE exception (Lh 2026-10-25): a stamp in the head is glued down — plain, `under` or `sm`, a hair of shadow at its teeth, flat paper, never a lifted sticker.
|
|
5731
5764
|
A bare or xs stamp stays flat, its contact shadow only. Knob: --stamp-under-drop (the name it was born with: `under` had it first) */
|
|
5732
|
-
.card:not(.sheet) .head > .stamp:not(.stamp--bare, .stamp--xs) { filter:
|
|
5765
|
+
.card:not(.sheet) .head > .stamp:not(.stamp--bare, .stamp--xs) { filter: drop-shadow(var(--stamp-shadow, var(--_contact))) drop-shadow(var(--stamp-under-drop, var(--shadow-glued))); }
|
|
5733
5766
|
.head > .stamp { grid-column: 2; grid-row: 1 / span 2; margin-inline: 0; }
|
|
5734
5767
|
.head > .stamp--under { grid-column: 1; justify-self: end; } /* `under`: in the words' own column, at its end, the words over it (parts.css) */
|
|
5735
5768
|
/* ---- where it sits in what people.css draws (docs/reference.md rule 15) ---- */
|