@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/css/parts.css
CHANGED
|
@@ -31,12 +31,11 @@
|
|
|
31
31
|
.row > .words { min-width: 0; }
|
|
32
32
|
.words__title { font: var(--words-title-font, var(--type-title)); overflow-wrap: anywhere; } /* wraps freely — no clip, so no padding trick for Thai marks (Lh 2026-09-16, same call as the card heading) */
|
|
33
33
|
.words__over { font: var(--words-over-font, var(--type-caption)); } /* the caption over the title (Words over): its own knob, as title and meta have — a low bar sets all three smaller from outside */
|
|
34
|
-
/* the ends' room (Lh 2026-10-28): an unseen, inert copy of the ends of
|
|
35
|
-
it them: a led Head
|
|
36
|
-
Nothing until a line lays
|
|
34
|
+
/* the ends' room (Lh 2026-10-28): an unseen, inert copy of the ends of a led line (Words renders it at the start of its words when the line hands
|
|
35
|
+
it them: a led Head, a LinkBlock's Row), floated at their top right, so it is exactly as wide and as tall as the ends whatever they are and
|
|
36
|
+
the title and the meta run under the real ends. Nothing until a led line lays it out (below, "a LED LINE") */
|
|
37
37
|
.words__room {
|
|
38
38
|
display: none; float: right; align-items: flex-start; width: max-content; visibility: hidden; -webkit-user-select: none; user-select: none;
|
|
39
|
-
margin-block-end: min(0rem, calc(0.5em - 0.5lh)); /* the ends may reach into the next line's leading (empty), never its letters: an arrow a hair taller than a line keeps one line short, not two */
|
|
40
39
|
letter-spacing: normal; /* a heading's tracking (.t-h2) is inherited and no type class of the ends resets it: the copy would come out narrower than the ends */
|
|
41
40
|
}
|
|
42
41
|
.words__meta { font: var(--words-meta-font, var(--type-caption)); color: var(--words-meta-ink, var(--card-muted)); display: flex; align-items: center; gap: var(--words-meta-gap, var(--sp-1)); }
|
|
@@ -46,14 +45,19 @@
|
|
|
46
45
|
/* ---- end: the value over its caption, right-aligned at the end of a line ---- */
|
|
47
46
|
.end { margin-left: auto; text-align: right; display: grid; gap: var(--end-gap, var(--sp-0)); justify-items: end; }
|
|
48
47
|
.row > .end { flex: none; }
|
|
49
|
-
/* an End of words with an icon
|
|
50
|
-
words' size (--icon-xs, the caption's
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
/* an End of words with an icon in it (a link's arrow: `<End caption="Google Maps"><Icon name="arrow-up-right" /></End>`; Lh 2026-10-29): the two
|
|
49
|
+
read as ONE. They stand on one line of the caption's type, the icon drawn at the words' size (--icon-xs, the caption's: its drawing about as
|
|
50
|
+
tall as their x-height, its stroke as heavy as their stem) and set in the line as a letter is: its middle on the words' x-height middle
|
|
51
|
+
(vertical-align: middle, the caption's own baseline + half its x-height), never at the line's top. The gap between them is a word pair's
|
|
52
|
+
(--end-icon-gap, --sp-1), well under the gap between the End and anything else on the line (--row-gap / --head-col-gap, --sp-3). An End
|
|
53
|
+
with a value (over its caption) keeps its lines as they are. */
|
|
54
|
+
.end:not(:has(> .t-title)):has(> .icon) { display: block; font: var(--type-caption); white-space: nowrap; }
|
|
55
|
+
.end:not(:has(> .t-title)) > .icon {
|
|
54
56
|
--icon-size: var(--end-icon-size, var(--icon-xs));
|
|
55
|
-
--icon-
|
|
57
|
+
--icon-display: inline-block;
|
|
58
|
+
--icon-align: middle;
|
|
56
59
|
}
|
|
60
|
+
.end:not(:has(> .t-title)) > * + .icon { --icon-margin: 0 0 0 var(--end-icon-gap, var(--sp-1)); }
|
|
57
61
|
|
|
58
62
|
/* ---- head: the first row of a card, a sheet and a stack sheet. A lead, the Words, chips, an end, as its direct children.
|
|
59
63
|
<div class="head"><h2 class="words__title t-h2">…</h2><span class="words__meta t-caption t-muted">…</span><button class="icon-btn icon-btn--sm">…</button></div>
|
|
@@ -102,15 +106,13 @@
|
|
|
102
106
|
-webkit-line-clamp: var(--head-title-lines, 3);
|
|
103
107
|
line-clamp: var(--head-title-lines, 3);
|
|
104
108
|
overflow: hidden;
|
|
105
|
-
padding-block: var(--
|
|
106
|
-
margin-block: calc(-1 * var(--
|
|
107
|
-
--_mark-room: 0.2em;
|
|
108
|
-
--_mark-foot: 0.15em; /* a lower vowel reaches 0.30em under the baseline, a tight line box (1.15) ends 0.175em under it */
|
|
109
|
+
padding-block: var(--glyph-rise) var(--glyph-drop); /* a stacked Thai mark rises over the first line's box, a lower vowel hangs under the last: room inside the clip, given back outside */
|
|
110
|
+
margin-block: calc(-1 * var(--glyph-rise)) calc(-1 * var(--glyph-drop));
|
|
109
111
|
}
|
|
110
112
|
|
|
111
|
-
.head > .words__title, .head > .words__over-title > .words__title { font: var(--words-title-font, var(--_type, var(--type-h2))); } /* --_type: the level's own face, set by .t-h1 and .t-display (base.css) */
|
|
112
|
-
.page > .head > h1.words__title, .page > .head > .words__over-title > h1.words__title { font-size: var(--fs-h2); } /* the page's ONE heading on the base (a screen with no TopBar) reads at the card heading's size — h1 is the semantic level, not a bigger face; --fs-h1 is the bar title's size (Lh 2026-09-22) */
|
|
113
|
-
.head > .words__meta { display: block; align-items: initial; gap: initial; } /* a head's caption is text; the flex line with a Dot is a row's */
|
|
113
|
+
.head > .words__title, .head > .words__over-title > .words__title, .head > .words__flow > .words__title { font: var(--words-title-font, var(--_type, var(--type-h2))); } /* --_type: the level's own face, set by .t-h1 and .t-display (base.css) */
|
|
114
|
+
.page > .head > h1.words__title, .page > .head > .words__over-title > h1.words__title, .page > .head > .words__flow > h1.words__title { font-size: var(--fs-h2); } /* the page's ONE heading on the base (a screen with no TopBar) reads at the card heading's size — h1 is the semantic level, not a bigger face; --fs-h1 is the bar title's size (Lh 2026-09-22) */
|
|
115
|
+
.head > .words__meta, .head > .words__flow > .words__meta { display: block; align-items: initial; gap: initial; } /* a head's caption is text; the flex line with a Dot is a row's */
|
|
114
116
|
|
|
115
117
|
/* a stage sheet's head (`Head centre`): a round button · the centred title over its meta · a round button. The title and the meta
|
|
116
118
|
stand in the middle column, the buttons span both rows; the 1fr rows keep the pair centred when a button is the taller */
|
|
@@ -170,11 +172,10 @@
|
|
|
170
172
|
.head:has(> .tile-badge:first-child + .chip-row) > :nth-child(n + 3) { grid-column: 1 / -1; grid-row: auto; }
|
|
171
173
|
|
|
172
174
|
/* a head that LEADS with a person or a thing (Lh 2026-10-28, timebank's welcome card; re-laid for a phone's width the same day): a `Head` whose
|
|
173
|
-
first child is a `Lead`, an `Avatar` or an `AvatarStack` (a stamp in one) and whose second is the `Words` title.
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
stands in the MIDDLE of the lead. The title is cut at
|
|
175
|
+
first child is a `Lead`, an `Avatar` or an `AvatarStack` (a stamp in one) and whose second is the `Words` title. The lead at the left, as tall
|
|
176
|
+
as the head; at its right the title, and the meta on a line of its own under it, as wide as the title. With ends after the Words (an `End`, a
|
|
177
|
+
round `Btn`, a `Btn size="sm"`) it is a led line (below): the title and the meta flow round the ends. No end: the title takes the line. No
|
|
178
|
+
meta: no second line, no gap, and the title (and its ends) stand in the MIDDLE of the lead. The title is cut at
|
|
178
179
|
--head-title-lines (above), the meta at --head-meta-lines (none). A head with no lead before its title is untouched.
|
|
179
180
|
The gaps are margins, not column-gap: the head keeps four spare columns of no width for its ends, so the meta can run to the last (2 / -1).
|
|
180
181
|
The first row is minmax(min-content, 0): a lead taller than title + meta gives its extra room to the meta's row, never between the two lines.
|
|
@@ -190,34 +191,51 @@
|
|
|
190
191
|
}
|
|
191
192
|
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :first-child { grid-column: 1; grid-row: 1; margin-inline-end: var(--head-col-gap, var(--sp-3)); }
|
|
192
193
|
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title) + .words__meta) > :first-child { grid-row: 1 / 3; }
|
|
193
|
-
/*
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
194
|
+
/* a LED LINE (Lh 2026-10-29, the feed's cards): a led `Head` (a `Lead`, an `Avatar` or an `AvatarStack`, then the `Words`, then its ends) and a
|
|
195
|
+
`LinkBlock`'s `Row` (a `Lead`, the `Words`, its ends), laid by ONE rule whatever ends them (round Btns, a Btn sm, an End's words and their
|
|
196
|
+
arrow, a time caption and a ⋯). The components hand it three pieces (endRoom.ts): the lead; the words as ONE flowing block, the title then the
|
|
197
|
+
meta (.words__flow in a head, the .words box in a row), with the ends' room (.words__room, their unseen copy) floated at its top right; and
|
|
198
|
+
the real ends in one box, .line-ends, over the room.
|
|
199
|
+
- The title and the meta wrap round the room, so round the ends, and run under them at the full width; the meta follows the title at the
|
|
200
|
+
words' gap (--head-row-gap / --words-gap), beside the ends or under them, never held down to their height.
|
|
201
|
+
- The title's FIRST line has its x-height middle on the ends' centre, one line or many (Lh 2026-10-29). Both boxes stand on one baseline
|
|
202
|
+
(align-self: first baseline): the words' first baseline is the title's first line's; the ends' box sets its baseline half an x-height of
|
|
203
|
+
the TITLE's type under its middle (its ::before: an empty box 1ex tall in that type, centred among the ends: an empty box's baseline is
|
|
204
|
+
its bottom). Baseline + ½ex on both sides: the ends' centre meets the title's x-height middle. No metric is written: the browser takes
|
|
205
|
+
the ex of the title's own font. Whichever stands higher is at the top of the row; the other comes down to meet it.
|
|
206
|
+
- The lead stands at the left from the top; with no meta, the words and the ends stand in the MIDDLE of the lead.
|
|
207
|
+
- The title is cut at --head-title-lines and the meta at --head-meta-lines by their height (whole lines, no "…"): a line clamp is a
|
|
208
|
+
formatting context of its own, which floats stay out of (and WebKit draws a float inside one as a box above the words), and an overflow
|
|
209
|
+
clip draws no Thai mark past the box unless the box is padded, and padding a box in the flow costs margins that collapse. So the box is
|
|
210
|
+
cut at whole lines by max-height and its words beyond are cut by clip-path, its edge the glyphs' room (--glyph-rise over, --glyph-drop
|
|
211
|
+
under) outside the box: the boxes keep no padding and no margin but the words' gap, and the meta follows the title exactly at it.
|
|
212
|
+
<div class="head"><span class="avatar-stack">…</span><div class="words__flow"><span class="words__room" aria-hidden="true" inert>…copies…</span><h2 class="words__title t-h2">…</h2><span class="words__meta t-caption t-muted">…</span></div><span class="line-ends"><button class="btn btn--round">…</button></span></div>
|
|
213
|
+
<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> */
|
|
214
|
+
:is(.head, .link-block > .row):has(> .line-ends) {
|
|
215
|
+
display: grid;
|
|
216
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
217
|
+
grid-template-rows: [lead top] auto [top-end] auto [lead-end];
|
|
218
|
+
gap: 0;
|
|
219
|
+
align-items: start;
|
|
220
|
+
align-content: start;
|
|
221
|
+
}
|
|
222
|
+
.head:has(> .line-ends):not(:has(> .words__flow > .words__meta)) { grid-template-rows: [lead] auto [top] auto [top-end] auto [lead-end]; }
|
|
223
|
+
:is(.head, .link-block > .row):has(> .line-ends) > :first-child { grid-column: 1; grid-row: lead / lead-end; margin-inline-end: var(--_led-col-gap); }
|
|
224
|
+
:is(.head, .link-block > .row):has(> .line-ends) > :is(.words__flow, .words) { grid-column: 2 / -1; grid-row: top / top-end; align-self: first baseline; display: block; min-width: 0; }
|
|
225
|
+
:is(.head, .link-block > .row):has(> .line-ends) > .line-ends { grid-column: 3; grid-row: top / top-end; align-self: first baseline; display: flex; align-items: center; padding-inline-start: var(--_led-col-gap); }
|
|
226
|
+
:is(.head, .link-block > .row):has(> .line-ends) > .line-ends::before { content: ""; flex: none; width: 0; height: 1ex; font: var(--_led-title-font); }
|
|
227
|
+
:is(.head, .link-block > .row):has(> .line-ends) > :is(.line-ends, .words__flow > .words__room, .words > .words__room) > * { flex: none; }
|
|
228
|
+
:is(.head, .link-block > .row):has(> .line-ends) > :is(.line-ends, .words__flow > .words__room, .words > .words__room) > * + * { margin-inline-start: var(--_led-col-gap); }
|
|
229
|
+
:is(.head, .link-block > .row):has(> .line-ends) > :is(.words__flow, .words) > .words__room { display: flex; padding-inline-start: var(--_led-col-gap); }
|
|
230
|
+
:is(.head, .link-block > .row):has(> .line-ends) > :is(.words__flow, .words) > :is(.words__title, .words__meta) { display: block; overflow: visible; -webkit-line-clamp: none; line-clamp: none; padding-block: 0; margin-block: 0; clip-path: inset(calc(-1 * var(--glyph-rise)) 0 calc(-1 * var(--glyph-drop))); }
|
|
231
|
+
:is(.head, .link-block > .row):has(> .line-ends) > :is(.words__flow, .words) > .words__title + .words__meta { margin-block-start: var(--_led-gap); } /* the words' gap, and nothing else between them */
|
|
232
|
+
/* the head's: its gaps, its title's type (h2, h1, display; the page's h1 at the card heading's size), and the cuts */
|
|
233
|
+
.head:has(> .line-ends) { --_led-gap: var(--head-row-gap, var(--sp-0)); --_led-col-gap: var(--head-col-gap, var(--sp-3)); --_led-title-font: var(--words-title-font, var(--type-h2)); }
|
|
234
|
+
.head:has(> .line-ends):has(> .words__flow > .t-h1) { --_led-title-font: var(--words-title-font, var(--type-h1)); }
|
|
235
|
+
.head:has(> .line-ends):has(> .words__flow > .t-display) { --_led-title-font: var(--words-title-font, var(--type-display)); }
|
|
236
|
+
.page > .head:has(> .line-ends):has(> .words__flow > h1) > .line-ends::before { font-size: var(--fs-h2); }
|
|
237
|
+
.head:has(> .line-ends) > .words__flow > .words__title { max-height: calc(var(--head-title-lines, 3) * 1lh); }
|
|
238
|
+
.head:has(> .line-ends) > .words__flow > .words__meta { overflow-wrap: anywhere; max-height: calc(var(--head-meta-lines, none) * 1lh); } /* none (the default) leaves the calc invalid: no cut */
|
|
221
239
|
/* no meta: one line beside the lead, the title and the ends centred to it, the title still at the left (Lh 2026-10-28) */
|
|
222
240
|
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)):not(:has(> .words__meta)) { align-items: center; }
|
|
223
241
|
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(2) { grid-column: 2; grid-row: 1; }
|
|
@@ -229,8 +247,8 @@
|
|
|
229
247
|
-webkit-line-clamp: var(--head-meta-lines, none);
|
|
230
248
|
line-clamp: var(--head-meta-lines, none);
|
|
231
249
|
overflow: hidden;
|
|
232
|
-
padding-block:
|
|
233
|
-
margin-block: -
|
|
250
|
+
padding-block: var(--glyph-rise) var(--glyph-drop); /* room for a Thai mark inside the clip, given back outside (as the title's, above) */
|
|
251
|
+
margin-block: calc(-1 * var(--glyph-rise)) calc(-1 * var(--glyph-drop));
|
|
234
252
|
}
|
|
235
253
|
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(n + 3):not(.words__meta) { grid-row: 1; margin-inline-start: var(--head-col-gap, var(--sp-3)); }
|
|
236
254
|
|
|
@@ -258,7 +276,7 @@
|
|
|
258
276
|
:is(.card--bands, .card--bands > .card__face):has(> .stamp-on--under, > .card__middle > .stamp-on--under) > .head::before { content: ""; position: absolute; inset: 0; z-index: var(--z-under-2); background: var(--card-bg); }
|
|
259
277
|
/* the under stamp is absolute at --card-pad from the card's top, so it takes no room in the head: the band is held at least as tall as the stamp
|
|
260
278
|
(--stamp-size wide, 4 : 5) plus --card-pad above and below it, so a short title never leaves the stamp hanging past the band. Words taller grow it as before */
|
|
261
|
-
:is(.card--bands, .card--bands > .card__face):has(> .stamp-on--under, > .card__middle > .stamp-on--under) > .head { min-block-size: calc(var(--card-pad) * 2 + var(--stamp-size,
|
|
279
|
+
:is(.card--bands, .card--bands > .card__face):has(> .stamp-on--under, > .card__middle > .stamp-on--under) > .head { min-block-size: calc(var(--card-pad) * 2 + var(--stamp-size, var(--stamp)) * 5 / 4); }
|
|
262
280
|
|
|
263
281
|
/* in a sheet stack */
|
|
264
282
|
/* stack headers: uniform — [back?] title left, icons right, one height,
|
|
@@ -485,13 +503,13 @@
|
|
|
485
503
|
whole short row of its own, centred — it never shares the buttons' line */
|
|
486
504
|
.foot--link { flex-wrap: wrap; align-content: end; row-gap: var(--foot-link-gap, var(--sp-1)); }
|
|
487
505
|
.foot__link { flex: 1 0 100%; display: flex; justify-content: center; }
|
|
488
|
-
/* round (Foot round): the foot holds a few round
|
|
506
|
+
/* round (Foot round): the foot holds a few round Btns, each its own size (they never share the line), as ONE group in the middle with
|
|
489
507
|
a gap that does not follow the card's width. The gap is wider than the Btns' (a miss between two round targets): --foot-gap sets it */
|
|
490
508
|
.foot--round { justify-content: center; gap: var(--foot-gap, var(--sp-6)); }
|
|
491
509
|
/* joined (Foot round joined): the round buttons linked by dots (the dots are BtnRow's, actions.css), a closer gap */
|
|
492
510
|
.foot--joined { gap: var(--btn-trio-gap, var(--sp-3)); }
|
|
493
511
|
/* split (Foot split, Lh 2026-10-25): two Btns (or two small Links, below) that ARE the card's foot — each half its width, edge to edge, flush with its bottom edge,
|
|
494
|
-
the card's bottom corners round them. No pill: no fill, no edge, no radius; the words in the ink of the ground they stand on (a `Btn warn`
|
|
512
|
+
the card's bottom corners round them. No pill: no fill, no edge, no radius; the words in the ink of the ground they stand on (a `Btn tone="warn"`
|
|
495
513
|
keeps its warning, on that ground's side). A rule of --rule-w between the halves and over them (the band's own fill is the edge on bands).
|
|
496
514
|
Knob --foot-split-rule-ink. The finishes leave the halves flat (finish.css): the card carries the finish.
|
|
497
515
|
A STRIP, not a button row (Lh 2026-10-25): each half is a status row's height (a row's --row-min-h plus the rows' gap, --sp-2 above
|
package/css/sheet.css
CHANGED
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
:is(.step, .sheet-stage, .sticky-answer__sheet) { --_handle: var(--hairline-w); --sheet-peek: calc(var(--card-pad-rest) + var(--sheet-head-h) + var(--card-gap-rest) + var(--safe-bottom)); } /* + the gesture bar: the peeked head stands above it. The handle sits IN the card's top padding, so the strip is that padding, the title row and the gap under it */
|
|
94
94
|
/* the head's floor: a tap, or an h2 line with its Thai-mark padding when the type is bigger than that (a large text-size
|
|
95
95
|
setting on a narrow phone) — the strip and the head read the same number, so the title row is always inside the strip */
|
|
96
|
-
:root { --sheet-head-h: max(var(--tap), calc(var(--
|
|
96
|
+
:root { --sheet-head-h: max(var(--tap), calc(var(--lh-h2) * var(--fs-h2) + var(--sp-2))); }
|
|
97
97
|
|
|
98
98
|
/* ---- called sheets (Lh, 2026-09-20): a .step whose .page has buttons that each CALL a sheet ----
|
|
99
99
|
.sheet--away = not on the screen: slid all the way out (translate, like every state — the material never
|
package/css/stack.css
CHANGED
|
@@ -39,8 +39,16 @@
|
|
|
39
39
|
|
|
40
40
|
/* ---- the stack: cascading peek sheets; heads peek, the set bleeds to
|
|
41
41
|
the screen's bottom edge, so bottom corners are square ---- */
|
|
42
|
-
/* step =
|
|
43
|
-
|
|
42
|
+
/* step = the single Sheet's peek (sheet.css --sheet-peek): the card's padding
|
|
43
|
+
(20) + the head (--tap, 48) + the card's gap (--card-gap-rest, 16) = 84.
|
|
44
|
+
The room under the head is the gap, less than the padding and edge over it,
|
|
45
|
+
because the words leave their own empty descent under them: so the space
|
|
46
|
+
under the words is the space over the tallest marks (29.9 / 30.4 at the
|
|
47
|
+
default bases, 35.9 / 36.4 at --tap-base 3.75rem, Chrome). The head's share
|
|
48
|
+
is the same on both sides, so that holds whatever --tap-base a theme sets.
|
|
49
|
+
It was --tap-base × 11/6 (88): the strip grew with --tap-base alone while
|
|
50
|
+
the room over the head stayed the card's padding, so every px a theme added
|
|
51
|
+
to --tap-base went under the words (at 3.75rem: a 110 strip, 48 under). */
|
|
44
52
|
/* one track, exactly the stack's own height: an auto track would size itself
|
|
45
53
|
to the tallest sheet's CONTENT (a sheet's `height: 100%` is cyclic while the
|
|
46
54
|
track is being sized), so a long sheet grew the track past the screen and
|
|
@@ -53,7 +61,7 @@
|
|
|
53
61
|
Lh, 2026-09-11). --_n: how many sheets the stack holds, read from the DOM
|
|
54
62
|
by :has below so the closed geometry needs no script and no per-stack
|
|
55
63
|
declaration. */
|
|
56
|
-
.sheet-stack { display: grid; grid-template-rows: minmax(0, 1fr); --stack-step: calc(var(--
|
|
64
|
+
.sheet-stack { display: grid; grid-template-rows: minmax(0, 1fr); --stack-step: calc(var(--card-pad-rest) + var(--tap) + var(--card-gap-rest)); margin-inline: calc(-1 * var(--screen-pad)); --_n: 1; }
|
|
57
65
|
.sheet-stack > .card {
|
|
58
66
|
--card-gap: var(--sp-5); /* head→content gap = the strip's 20px rhythm */
|
|
59
67
|
}
|
|
@@ -90,7 +98,7 @@
|
|
|
90
98
|
letter-spacing: var(--track-display);
|
|
91
99
|
/* the FIRST line sits on the centre of the peek strip (--stack-step tall,
|
|
92
100
|
measured from the card's top edge); line two runs under the next card */
|
|
93
|
-
margin-top: calc((var(--stack-step) - 1lh) / 2 - var(--sp-5) - var(--
|
|
101
|
+
margin-top: calc((var(--stack-step) - 1lh) / 2 - var(--sp-5) - var(--glyph-rise)); /* --glyph-rise: tokens.css, the room for the marks over line one */
|
|
94
102
|
}
|
|
95
103
|
/* fanned stack: a toggle opens the stack wider so every peek shows more */
|
|
96
104
|
.sheet-stack--fanned { --stack-step: calc(var(--tap-base) * 19 / 6); }
|
|
@@ -104,7 +112,7 @@
|
|
|
104
112
|
/* ---- .sheet-stack--tap — tap a peeked sheet open; a back button returns it. How its sheets move (one property: translate) is
|
|
105
113
|
told over their rules, where they sit, in card.css. ---- */
|
|
106
114
|
.sheet-stack--tap > .card {
|
|
107
|
-
--_back-size: var(--stack-back-size,
|
|
115
|
+
--_back-size: var(--stack-back-size, var(--icon-lg)); /* read once, shared by the back button and the head's padding below */
|
|
108
116
|
}
|
|
109
117
|
|
|
110
118
|
/* the GRIP (Lh 2026-10-05): four small dots at the middle of every sheet's top edge — a sign that this card
|
package/css/stamp.css
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
THE THIRD SIZE (Lh 2026-10-17): `.stamp-book--fill` (below) makes each stamp as wide as its third, the gaps one --screen-pad. */
|
|
26
26
|
.stamp, .stamp-place {
|
|
27
27
|
box-sizing: border-box;
|
|
28
|
-
width: var(--stamp-size,
|
|
28
|
+
width: var(--stamp-size, var(--stamp));
|
|
29
29
|
max-width: 100%; /* a holder narrower than a stamp still shows it whole */
|
|
30
30
|
aspect-ratio: 4 / 5;
|
|
31
31
|
margin-inline: auto;
|
|
@@ -38,20 +38,20 @@
|
|
|
38
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
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
40
|
its edge on any ground, a white one too; black as the scrim, no color-mix (iOS 16.4) */
|
|
41
|
-
--_contact: 0 0
|
|
41
|
+
--_contact: 0 0 var(--stamp-contact-blur) rgb(0 0 0 / 0.6);
|
|
42
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) */
|
|
43
43
|
rotate: var(--stamp-turn, none);
|
|
44
44
|
animation: var(--stamp-arrive, none);
|
|
45
45
|
}
|
|
46
46
|
.stamp__paper {
|
|
47
|
-
--_pitch: calc(100cqw /
|
|
48
|
-
--_hole:
|
|
47
|
+
--_pitch: calc(100cqw / var(--stamp-perf-count)); /* one tooth: 8 across, 10 down (a token, no knob: a stamp looks the same at every size, Lh 2026-10-29) — the holes land whole on every edge. Fewer and larger than a real stamp's: a small stamp's teeth must still read (Lh 2026-10-26, it was 12 × 15; Lh 2026-10-07, it was 20 × 25) */
|
|
48
|
+
--_hole: var(--stamp-perf-hole);
|
|
49
49
|
position: absolute;
|
|
50
50
|
inset: 0;
|
|
51
51
|
-webkit-mask: linear-gradient(#000 0 0) center / calc(100% - var(--_pitch)) calc(100% - var(--_pitch)) no-repeat,
|
|
52
|
-
radial-gradient(circle, transparent var(--_hole), #000 calc(var(--_hole) +
|
|
52
|
+
radial-gradient(circle, transparent var(--_hole), #000 calc(var(--_hole) + var(--stamp-perf-soft))) calc(var(--_pitch) / -2) calc(var(--_pitch) / -2) / var(--_pitch) var(--_pitch);
|
|
53
53
|
mask: linear-gradient(#000 0 0) center / calc(100% - var(--_pitch)) calc(100% - var(--_pitch)) no-repeat,
|
|
54
|
-
radial-gradient(circle, transparent var(--_hole), #000 calc(var(--_hole) +
|
|
54
|
+
radial-gradient(circle, transparent var(--_hole), #000 calc(var(--_hole) + var(--stamp-perf-soft))) calc(var(--_pitch) / -2) calc(var(--_pitch) / -2) / var(--_pitch) var(--_pitch);
|
|
55
55
|
}
|
|
56
56
|
/* the white frame: the paper's own colour round the picture. --frameless (`frame={false}`): the paper takes the picture's tone class instead,
|
|
57
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) */
|
|
@@ -63,40 +63,40 @@
|
|
|
63
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
64
|
--stamp-shadow */
|
|
65
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(
|
|
66
|
+
.stamp__shade { position: absolute; inset: 0; filter: blur(var(--stamp-contact-blur)); }
|
|
67
67
|
.stamp__shade > .stamp__paper { background-image: linear-gradient(var(--stamp-tone-shadow-bg, var(--_tone-shade)) 0 0); }
|
|
68
|
-
.stamp__pic { position: absolute; inset: var(--stamp-frame,
|
|
68
|
+
.stamp__pic { position: absolute; inset: var(--stamp-frame, var(--stamp-frame-w)); overflow: hidden; } /* the paper's frame round the picture; the ground is the tone class's */
|
|
69
69
|
|
|
70
70
|
/* the pictures, placed by COUNT: where, how wide, how far turned — the layout is the stamp's look, never the app's.
|
|
71
71
|
A share of the picture area; the foot stays clear for the words. */
|
|
72
72
|
.stamp__art { position: absolute; left: var(--_x); top: var(--_y); width: var(--_w); aspect-ratio: 1; translate: -50% -50%; rotate: var(--_r); }
|
|
73
73
|
.stamp__art > * { display: block; width: 100%; height: 100%; }
|
|
74
|
-
.stamp--1 .stamp__art { --_x:
|
|
75
|
-
.stamp--2 .stamp__art:nth-child(1) { --_x:
|
|
76
|
-
.stamp--2 .stamp__art:nth-child(2) { --_x:
|
|
77
|
-
.stamp--3 .stamp__art:nth-child(1) { --_x:
|
|
78
|
-
.stamp--3 .stamp__art:nth-child(2) { --_x:
|
|
79
|
-
.stamp--3 .stamp__art:nth-child(3) { --_x:
|
|
80
|
-
.stamp--4 .stamp__art:nth-child(1) { --_x:
|
|
81
|
-
.stamp--4 .stamp__art:nth-child(2) { --_x:
|
|
82
|
-
.stamp--4 .stamp__art:nth-child(3) { --_x:
|
|
83
|
-
.stamp--4 .stamp__art:nth-child(4) { --_x:
|
|
74
|
+
.stamp--1 .stamp__art { --_x: var(--stamp-art-1-1-x); --_y: var(--stamp-art-1-1-y); --_w: var(--stamp-art-1-1-w); --_r: 0deg; }
|
|
75
|
+
.stamp--2 .stamp__art:nth-child(1) { --_x: var(--stamp-art-2-1-x); --_y: var(--stamp-art-2-1-y); --_w: var(--stamp-art-2-1-w); --_r: calc(var(--tilt-base) * -6); }
|
|
76
|
+
.stamp--2 .stamp__art:nth-child(2) { --_x: var(--stamp-art-2-2-x); --_y: var(--stamp-art-2-2-y); --_w: var(--stamp-art-2-2-w); --_r: calc(var(--tilt-base) * 8); }
|
|
77
|
+
.stamp--3 .stamp__art:nth-child(1) { --_x: var(--stamp-art-3-1-x); --_y: var(--stamp-art-3-1-y); --_w: var(--stamp-art-3-1-w); --_r: calc(var(--tilt-base) * -8); }
|
|
78
|
+
.stamp--3 .stamp__art:nth-child(2) { --_x: var(--stamp-art-3-2-x); --_y: var(--stamp-art-3-2-y); --_w: var(--stamp-art-3-2-w); --_r: calc(var(--tilt-base) * 7); }
|
|
79
|
+
.stamp--3 .stamp__art:nth-child(3) { --_x: var(--stamp-art-3-3-x); --_y: var(--stamp-art-3-3-y); --_w: var(--stamp-art-3-3-w); --_r: calc(var(--tilt-base) * -2); }
|
|
80
|
+
.stamp--4 .stamp__art:nth-child(1) { --_x: var(--stamp-art-4-1-x); --_y: var(--stamp-art-4-1-y); --_w: var(--stamp-art-4-1-w); --_r: calc(var(--tilt-base) * -8); }
|
|
81
|
+
.stamp--4 .stamp__art:nth-child(2) { --_x: var(--stamp-art-4-2-x); --_y: var(--stamp-art-4-2-y); --_w: var(--stamp-art-4-2-w); --_r: calc(var(--tilt-base) * 7); }
|
|
82
|
+
.stamp--4 .stamp__art:nth-child(3) { --_x: var(--stamp-art-4-3-x); --_y: var(--stamp-art-4-3-y); --_w: var(--stamp-art-4-3-w); --_r: calc(var(--tilt-base) * 5); }
|
|
83
|
+
.stamp--4 .stamp__art:nth-child(4) { --_x: var(--stamp-art-4-4-x); --_y: var(--stamp-art-4-4-y); --_w: var(--stamp-art-4-4-w); --_r: calc(var(--tilt-base) * -6); }
|
|
84
84
|
|
|
85
85
|
/* the words on the picture's foot: a small line, then the big name — one line each (clipped sideways only: Thai tone marks stand above the line box) */
|
|
86
|
-
.stamp__cap { position: absolute; inset-inline:
|
|
86
|
+
.stamp__cap { position: absolute; inset-inline: var(--stamp-cap-inset); bottom: var(--stamp-cap-foot); display: grid; gap: var(--stamp-cap-gap); }
|
|
87
87
|
.stamp__words, .stamp__name { display: block; min-width: 0; white-space: nowrap; overflow-x: clip; text-overflow: ellipsis; }
|
|
88
88
|
.stamp__words { --_words: 4.8cqw; font: var(--fw-medium) var(--_words) / round(down, calc(var(--lh-title) * 1em), 1px) var(--font-ui); font-size: var(--stamp-words-font-size, var(--_words)); }
|
|
89
89
|
.stamp__name { --_name: 9.5cqw; font: var(--fw-black) var(--_name) / round(down, calc(var(--lh-display) * 1em), 1px) var(--font-display); font-size: var(--stamp-name-font-size, var(--_name)); }
|
|
90
|
-
/* at the stamp's own size and under (and stuck on a note): the small line goes, the name grows */
|
|
91
90
|
/* --bare: the pictures alone, no words — a stamp stuck on something (a note, a postcard). The words belong to the album.
|
|
92
91
|
The pictures take the foot's room: each sits a little lower, so the group stands in the middle of the frame. */
|
|
93
92
|
.stamp--bare .stamp__cap, .stamp-on .stamp__cap, .post-corner .stamp__cap, .stamp--xs .stamp__cap { display: none; }
|
|
94
|
-
.stamp--bare .stamp__art, .stamp-on .stamp__art, .post-corner .stamp__art, .stamp--xs .stamp__art { top: calc(var(--_y) +
|
|
93
|
+
.stamp--bare .stamp__art, .stamp-on .stamp__art, .post-corner .stamp__art, .stamp--xs .stamp__art { top: calc(var(--_y) + var(--stamp-bare-drop)); }
|
|
95
94
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
95
|
+
/* the small line shows only on an LG stamp: one wider than the standard size, by the consumer's word (`Stamp lg`, `.stamp--lg`), or a
|
|
96
|
+
stamp the book makes its third (`.stamp-book--fill`). Every other stamp — the standard size, the small one, one stuck on a note — drops it,
|
|
97
|
+
and its name grows (Lh 2026-10-29: no layout chosen by a size query; it was `@container (max-width: 6rem)`) */
|
|
98
|
+
.stamp:not(.stamp--lg, .stamp-book--fill > .stamp-cell > .stamp) .stamp__words { display: none; }
|
|
99
|
+
.stamp:not(.stamp--lg, .stamp-book--fill > .stamp-cell > .stamp) .stamp__name { --_name: 12cqw; }
|
|
100
100
|
|
|
101
101
|
/* --xs: the stamp INLINE with a status line (a card's foot: the stamp, "X took it", a round button) — one caption line tall,
|
|
102
102
|
--stamp-xs-size (18.7 × 23.4 at the default bases, one Chip xs tall, on --fs-base: it follows the words it stands with; Lh 2026-10-24).
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
10 down), and the frame round the picture wider to clear them. Several, lapped, with a "+8": AvatarStack (below).
|
|
105
105
|
<span class="stamp stamp--1 stamp--xs">…</span> */
|
|
106
106
|
.stamp--xs { width: var(--stamp-xs-size, var(--stamp-xs)); flex: none; margin-inline: 0; filter: drop-shadow(var(--stamp-shadow, var(--_contact))); }
|
|
107
|
-
.stamp--xs .stamp__pic { inset: var(--stamp-frame,
|
|
107
|
+
.stamp--xs .stamp__pic { inset: var(--stamp-frame, var(--stamp-xs-frame-w)); }
|
|
108
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 */
|
|
109
109
|
.stamp--held { visibility: hidden; }
|
|
110
110
|
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
stroke: var(--_edge);
|
|
159
159
|
stroke-width: var(--_dot);
|
|
160
160
|
stroke-linecap: round;
|
|
161
|
-
stroke-dasharray: var(--stamp-place-dash, 0) var(--stamp-place-gap,
|
|
161
|
+
stroke-dasharray: var(--stamp-place-dash, 0) var(--stamp-place-gap, var(--stamp-place-dot-pitch));
|
|
162
162
|
}
|
|
163
163
|
.card .stamp-place, .post-paper .stamp-place { --_edge: var(--stamp-place-border, var(--card-muted)); color: var(--stamp-place-ink, var(--card-muted)); }
|
|
164
164
|
.stamp-place--faint { --_edge: var(--stamp-place-faint-border, var(--hairline)); }
|
|
@@ -254,9 +254,9 @@
|
|
|
254
254
|
.stamp-on > .stamp { max-width: none; }
|
|
255
255
|
/* --main: the same stuck stamp at the stamp's MAIN size, 96 × 120 (--stamp-size), to cover what it lies on (the owner's call, 2026-10-11: the home's note).
|
|
256
256
|
After the rule above, at the same weight: `main` is the one place a stuck stamp reads --stamp-size. */
|
|
257
|
-
.stamp-on--main > .stamp { width: var(--stamp-size,
|
|
257
|
+
.stamp-on--main > .stamp { width: var(--stamp-size, var(--stamp)); }
|
|
258
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 */
|
|
259
|
-
.stamp-on--under > .stamp { width: var(--stamp-size,
|
|
259
|
+
.stamp-on--under > .stamp { width: var(--stamp-size, var(--stamp)); filter: drop-shadow(var(--stamp-shadow, var(--_contact))); }
|
|
260
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) */
|
|
261
261
|
.stamp-on--move { cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; transition: scale var(--motion-press) var(--ease-out); }
|
|
262
262
|
.stamp-on--move:focus-visible { outline: var(--focus); outline-offset: var(--sp-1); }
|
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
filter: drop-shadow(var(--stamp-shadow, var(--_contact)));
|
|
320
320
|
}
|
|
321
321
|
:is(.appbar__brand, .appbar__who) > .stamp .stamp__cap { display: none; }
|
|
322
|
-
:is(.appbar__brand, .appbar__who) > .stamp .stamp__art { top: calc(var(--_y) +
|
|
322
|
+
:is(.appbar__brand, .appbar__who) > .stamp .stamp__art { top: calc(var(--_y) + var(--stamp-bare-drop)); }
|
|
323
323
|
/* ---- where it sits in what card.css draws (docs/reference.md rule 15) ---- */
|
|
324
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.
|
|
325
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
|
package/css/tokens.css
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
--tap-base: 3rem; /* 48 the size of THINGS: touch targets and control heights (--tap*, --btn-h, --chip-h, --bar-h,
|
|
29
29
|
--header-h, --fab), icons, avatars, dots, the ring and the tiles. --sp-base is the room BETWEEN things.
|
|
30
30
|
Text-holders follow the type instead: --badge, --icon-xs and --stamp-xs (inline with captions) are on --fs-base;
|
|
31
|
-
the form controls (--form-tap*, --
|
|
31
|
+
the form controls (--form-tap*, --chip-h) on both, the larger wins.
|
|
32
32
|
Not on a base: --screen-w (the column), borders / rules / focus (fixed rem), shadows, motion. */
|
|
33
33
|
|
|
34
34
|
/* ---- spacing (4pt grid): the number in the name is the multiplier ---- */
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
--tap: max(var(--tap-floor), var(--tap-base)); /* 48 primary touch target */
|
|
49
49
|
--tap-sm: max(var(--tap-floor), calc(var(--tap-base) * 11 / 12)); /* 44 minimum touch target */
|
|
50
50
|
--tap-lg: max(var(--tap-floor), calc(var(--tap-base) * 7 / 6)); /* 56 hero controls: send, field with action */
|
|
51
|
-
--tap-xl: max(var(--tap-floor), calc(var(--tap-base) * 17 / 12)); /* 68 the biggest round control: a foot of a few big round buttons (
|
|
51
|
+
--tap-xl: max(var(--tap-floor), calc(var(--tap-base) * 17 / 12)); /* 68 the biggest round control: a foot of a few big round buttons (Btn round xl) */
|
|
52
52
|
/* FORM CONTROLS follow the words they hold (Lh 2026-10-26: "form fields and the words in them use the same tokens"): a field, a button,
|
|
53
53
|
a chip, a Pin cell, a switch, a check and a segmented choice are the larger of their size of things (--tap-base) and the same share of
|
|
54
54
|
the type (--fs-base). At the default bases the two are equal (48 = 22 × 24/11); a member's larger text (setTextScale) grows them at the
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
--form-tap: max(var(--tap), calc(var(--fs-base) * 24 / 11)); /* 48 a check, a switch's row, a segmented choice, a slider's knob */
|
|
57
57
|
--form-tap-sm: max(var(--tap-sm), calc(var(--fs-base) * 2)); /* 44 */
|
|
58
58
|
--form-tap-lg: max(var(--tap-lg), calc(var(--fs-base) * 28 / 11)); /* 56 a Field */
|
|
59
|
-
--btn-h:
|
|
59
|
+
--btn-h: var(--tap); /* 48 the md step of every button, a pill and a round alike (Lh 2026-10-29: one ladder, sm --tap-sm · md --tap · lg --tap-lg) */
|
|
60
60
|
--btn-xl-h: max(calc(var(--tap-base) * 11 / 6), calc(var(--fs-base) * 4)); /* 88 the one giant CTA */
|
|
61
61
|
--chip-h: max(calc(var(--tap-base) * 19 / 24), calc(var(--fs-base) * 19 / 11)); /* 38 chip height */
|
|
62
62
|
--bar-h: calc(var(--tap-base) * 4 / 3); /* 64 float bar, day cell */
|
|
@@ -76,6 +76,31 @@
|
|
|
76
76
|
--icon-lg: calc(var(--tap-base) * 2 / 3); /* 32 empty states */
|
|
77
77
|
--icon-xs: calc(var(--fs-base) * 0.775); /* 17 inline with captions/chips only (row meta, link arrows) — the caption's size */
|
|
78
78
|
--stamp-xs: calc(var(--fs-base) * 0.85); /* 18.7 × 23.4 the stamp inline with a status line: one Chip xs tall (Lh picked it 2026-10-24) */
|
|
79
|
+
--stamp: calc(var(--tap) * 2); /* 96 × 120 the one size of a stamp, two taps wide (knob --stamp-size) */
|
|
80
|
+
|
|
81
|
+
/* ---- the stamp's drawing (stamp.css): each a share of the stamp's own width (cqw) or of its picture (%), so it scales with the stamp ---- */
|
|
82
|
+
--stamp-perf-count: 8; /* teeth across (10 down, the 4:5 does it) — no knob: a stamp looks the same at every size */
|
|
83
|
+
--stamp-perf-hole: 3.9cqw; /* a tooth's hole: its radius */
|
|
84
|
+
--stamp-perf-soft: 0.4cqw; /* a hole's rim, clear to paper */
|
|
85
|
+
--stamp-frame-w: 8cqw; /* the paper's frame round the picture — knob --stamp-frame */
|
|
86
|
+
--stamp-xs-frame-w: 12cqw; /* …on an xs stamp, wider to clear its teeth */
|
|
87
|
+
--stamp-cap-inset: 5cqw; /* the words' room from the picture's sides */
|
|
88
|
+
--stamp-cap-foot: 3.5cqw; /* …from the picture's foot */
|
|
89
|
+
--stamp-cap-gap: 0.4cqw; /* between the small line and the name */
|
|
90
|
+
--stamp-bare-drop: 9%; /* a bare stamp's pictures, lower by this share: the foot's room is theirs */
|
|
91
|
+
--stamp-contact-blur: calc(var(--border-w) / 4); /* the contact shadow's blur, black or a frameless stamp's own tone */
|
|
92
|
+
--stamp-place-dot-pitch: calc(var(--sp-base) * 1.5); /* 6 an empty place's edge: one dot's centre to the next — knob --stamp-place-gap */
|
|
93
|
+
/* the pictures, by count (--stamp-art-<count>-<which>-x|y|w): the middle of each and its width, shares of the picture area */
|
|
94
|
+
--stamp-art-1-1-x: 50%; --stamp-art-1-1-y: 40%; --stamp-art-1-1-w: 72%;
|
|
95
|
+
--stamp-art-2-1-x: 37%; --stamp-art-2-1-y: 27%; --stamp-art-2-1-w: 58%;
|
|
96
|
+
--stamp-art-2-2-x: 63%; --stamp-art-2-2-y: 56%; --stamp-art-2-2-w: 54%;
|
|
97
|
+
--stamp-art-3-1-x: 30%; --stamp-art-3-1-y: 21%; --stamp-art-3-1-w: 50%;
|
|
98
|
+
--stamp-art-3-2-x: 71%; --stamp-art-3-2-y: 31%; --stamp-art-3-2-w: 46%;
|
|
99
|
+
--stamp-art-3-3-x: 47%; --stamp-art-3-3-y: 58%; --stamp-art-3-3-w: 54%;
|
|
100
|
+
--stamp-art-4-1-x: 29%; --stamp-art-4-1-y: 19%; --stamp-art-4-1-w: 44%;
|
|
101
|
+
--stamp-art-4-2-x: 71%; --stamp-art-4-2-y: 24%; --stamp-art-4-2-w: 42%;
|
|
102
|
+
--stamp-art-4-3-x: 31%; --stamp-art-4-3-y: 57%; --stamp-art-4-3-w: 42%;
|
|
103
|
+
--stamp-art-4-4-x: 70%; --stamp-art-4-4-y: 60%; --stamp-art-4-4-w: 44%;
|
|
79
104
|
|
|
80
105
|
/* ---- people & big elements ---- */
|
|
81
106
|
--avatar-sm: calc(var(--tap-base) * 5 / 6); /* 40 row lead */
|
|
@@ -86,6 +111,7 @@
|
|
|
86
111
|
--ring-w: calc(var(--tap-base) * 11 / 24); /* 22 .ring stroke */
|
|
87
112
|
--tile-min: calc(var(--tap-base) * 5 / 2); /* 120 .tile-grid column floor */
|
|
88
113
|
--tile-h: calc(var(--tap-base) * 11 / 4); /* 132 tile / band height */
|
|
114
|
+
--drawer-h: calc(var(--tap-base) * 14 / 3); /* 224 a modal's drawer, a page's picture */
|
|
89
115
|
|
|
90
116
|
/* ---- radius ---- */
|
|
91
117
|
/* TILT (Lh 2026-10-20: no unit a component writes for itself): every paper laid at an angle (a note, a stamp, a letter, a card
|
|
@@ -99,6 +125,7 @@
|
|
|
99
125
|
--r-media: var(--r-base); /* 20.8 images inside cards */
|
|
100
126
|
--r-control: calc(var(--r-base) * 0.875); /* 18.2 fields, thumbs, menu rows */
|
|
101
127
|
--r-badge: calc(var(--r-base) * 0.625); /* 13 tile badge, bars */
|
|
128
|
+
--r-tail: calc(var(--r-base) * 0.4375); /* 9.1 a corner that POINTS: a bubble's tail (Lh 2026-10-29) */
|
|
102
129
|
|
|
103
130
|
/* ---- borders / rules / elevation (rem, like every length) ---- */
|
|
104
131
|
/* one device-independent pixel in rem: what the platform needs to keep a hidden word in the accessibility tree, and the half-width
|
|
@@ -142,7 +169,7 @@
|
|
|
142
169
|
--ease-linear: linear;
|
|
143
170
|
--ease-settle: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
144
171
|
--ease-step: steps(1); /* on or off with nothing between: a code cell's caret blinking, a secret digit before its dot */
|
|
145
|
-
--motion-send: 0.7s; /* something going OUT from a button (Btn
|
|
172
|
+
--motion-send: 0.7s; /* something going OUT from a button (Btn sending, actions.css): the icon tips forward, two rings spread */
|
|
146
173
|
--motion-press: 0.12s; /* a control giving under the finger and springing back (actions.css PRESS) */
|
|
147
174
|
--press-scale: 0.96; /* how far a finger-sized control gives — a share of its size */
|
|
148
175
|
--scale-lift: 1.06; /* a stamp lifted off the paper while the finger holds it */
|
|
@@ -209,6 +236,12 @@
|
|
|
209
236
|
--lh-ruled: 1.7; /* a ruled sheet: the line under every line of writing */
|
|
210
237
|
--track-loose: 0.02em; /* initials in an avatar */
|
|
211
238
|
--track-caps: 0.08em; /* a kicker in capitals */
|
|
239
|
+
/* THE GLYPHS' ROOM (Lh 2026-10-29): how far a glyph's ink reaches past its line box, in the type's own em (a font metric, so it follows the
|
|
240
|
+
size it is read at). A line that clips its words (a line clamp, an ellipsis) pads its box by these inside the clip and gives them back
|
|
241
|
+
outside it, so no mark is cut and nothing moves. Rise: a stacked Thai mark over the first line. Drop: a lower vowel under the last (it
|
|
242
|
+
reaches 0.30em under the baseline; a tight line box, 1.15, ends 0.175em under it) */
|
|
243
|
+
--glyph-rise: 0.2em;
|
|
244
|
+
--glyph-drop: 0.15em;
|
|
212
245
|
/* THE EIGHT KINDS: each has its face, weight, size (--fs-* above), leading and tracking, and its style --type-<kind> is made of them */
|
|
213
246
|
--fw-display: var(--fw-heavy); --lh-display: 1.15; --track-display: -0.02em; /* leading: Thai marks stack to 1.1em up and 0.3em down in FC Pride — 1.02 clipped them (2026-09-10) */
|
|
214
247
|
--fw-h1: var(--fw-black); --lh-h1: 1.15; --track-h1: -0.015em; /* tight, the display's floor: a stacked mark (1.13em up) clears the line above (Lh 2026-10-25: 1.2 read loose) */
|