@usableapp/cardds 0.7.106 → 0.7.107
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 +97 -0
- package/bin/cardds.mjs +5 -3
- package/cardds.css +1 -0
- package/css/actions.css +9 -9
- package/css/base.css +6 -9
- package/css/card.css +16 -186
- package/css/finish.css +4 -4
- package/css/journey.css +1 -1
- package/css/layover.css +4 -14
- package/css/lists.css +3 -18
- package/css/media.css +1 -7
- package/css/parts.css +380 -0
- package/css/sheet.css +12 -139
- package/css/stack.css +15 -26
- package/css/stamp.css +1 -1
- package/css/step.css +3 -3
- package/css/theme.template.css +1 -1
- package/css/tokens.css +4 -4
- package/dist/actions/BarNote.d.ts +2 -2
- package/dist/actions/BarNote.js +2 -2
- package/dist/actions/Btn.d.ts +2 -2
- package/dist/actions/Btn.js +1 -1
- package/dist/actions/BtnRow.d.ts +1 -1
- package/dist/actions/BtnRow.js +1 -1
- package/dist/actions/IconBtn.d.ts +1 -1
- package/dist/actions/IconBtn.js +1 -1
- package/dist/cardds.css +461 -422
- package/dist/cards/Card.d.ts +6 -22
- package/dist/cards/Card.js +11 -22
- package/dist/cards/CardFeed.d.ts +1 -1
- package/dist/cards/CardFeed.js +5 -5
- package/dist/cards/CardParts.d.ts +0 -12
- package/dist/cards/CardParts.js +0 -12
- package/dist/cards/cardGo.js +1 -1
- package/dist/cards/cardGrounds.js +2 -2
- package/dist/catalog.json +1 -1
- package/dist/forms/Field.d.ts +1 -1
- package/dist/forms/Field.js +1 -1
- package/dist/index.d.ts +6 -5
- package/dist/index.js +6 -5
- package/dist/lists/Row.d.ts +2 -28
- package/dist/lists/Row.js +2 -17
- package/dist/media/MapArea.d.ts +2 -2
- package/dist/media/MapArea.js +1 -1
- package/dist/media/Tile.d.ts +3 -7
- package/dist/media/Tile.js +5 -5
- package/dist/parts/Body.d.ts +7 -0
- package/dist/parts/Body.js +11 -0
- package/dist/parts/End.d.ts +10 -0
- package/dist/parts/End.js +7 -0
- package/dist/parts/Foot.d.ts +17 -0
- package/dist/parts/Foot.js +11 -0
- package/dist/parts/Head.d.ts +15 -0
- package/dist/parts/Head.js +34 -0
- package/dist/parts/Lead.d.ts +10 -0
- package/dist/parts/Lead.js +9 -0
- package/dist/parts/Words.d.ts +13 -0
- package/dist/parts/Words.js +20 -0
- package/dist/parts/headCtx.d.ts +7 -0
- package/dist/parts/headCtx.js +9 -0
- package/dist/scaffold/EmptyState.d.ts +1 -1
- package/dist/scaffold/EmptyState.js +1 -1
- package/dist/scaffold/Screen.js +1 -1
- package/dist/sheets/Modal.d.ts +3 -7
- package/dist/sheets/Modal.js +3 -7
- package/dist/sheets/Sheet.d.ts +2 -2
- package/dist/sheets/Sheet.js +8 -9
- package/dist/sheets/SheetStack.d.ts +3 -3
- package/dist/sheets/SheetStack.js +4 -4
- package/dist/sheets/SheetSteps.d.ts +1 -1
- package/dist/sheets/SheetSteps.js +2 -2
- package/dist/sheets/StackBack.d.ts +1 -1
- package/dist/sheets/StackBack.js +1 -1
- package/dist/sheets/StackSheet.js +7 -7
- package/dist/sheets/sheetMeasure.js +3 -3
- package/dist/sheets/sheetStepsPile.js +2 -2
- package/dist/sheets/stackCard.js +6 -6
- package/dist/templates/CallSheet.js +6 -5
- package/dist/templates/Walkthrough.js +3 -2
- package/docs/reference.md +75 -36
- package/lib/catalog.mjs +1 -1
- package/lib/mcp.mjs +1 -1
- package/lint/rules.mjs +14 -7
- package/package.json +2 -1
- package/scripts/codemod-parts.mjs +324 -0
- package/dist/cards/CardFoot.d.ts +0 -15
- package/dist/cards/CardFoot.js +0 -9
- package/dist/cards/CardHead.d.ts +0 -21
- package/dist/cards/CardHead.js +0 -39
- package/dist/cards/Stat.d.ts +0 -19
- package/dist/cards/Stat.js +0 -14
- package/dist/sheets/SheetBody.d.ts +0 -5
- package/dist/sheets/SheetBody.js +0 -9
- package/dist/sheets/SheetHead.d.ts +0 -15
- package/dist/sheets/SheetHead.js +0 -6
package/dist/cardds.css
CHANGED
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
--card-1-dark: 0; --card-2-dark: 0; --card-3-dark: 1; --card-4-dark: 0; --card-5-dark: 1;
|
|
290
290
|
--accent-dark: 1; /* the brand fill: a primary button, a picked chip, a picked day */
|
|
291
291
|
--action-dark: 0; /* the paper fill of neutral controls: a button, a chip, a field, a plain tile */
|
|
292
|
-
--neg-dark: 1; /* a falling
|
|
292
|
+
--neg-dark: 1; /* the fill of a falling number (--neg) */
|
|
293
293
|
|
|
294
294
|
/* app background ("earth-toned surface or shiny color, up to the app") */
|
|
295
295
|
--surface: var(--color-surface, #f2f2f0);
|
|
@@ -395,11 +395,11 @@
|
|
|
395
395
|
(card.css, media.css…) and is named in this list, which gives it the inks every piece on it reads: --card-ink (words, icons,
|
|
396
396
|
marks, dots: currentColor), --card-muted (secondary words), the four signals, --on-accent (the ink on the accent fill, whose
|
|
397
397
|
side is --accent-dark) and --accent-ink (the brand as a glyph). A piece with no fill of its own reads only these, so a dark
|
|
398
|
-
surface turns everything on it to ondark with no rule per piece. A piece with no fill that stands in for a surface (
|
|
398
|
+
surface turns everything on it to ondark with no rule per piece. A piece with no fill that stands in for a surface (an upload
|
|
399
399
|
tile) takes its ground's side: `--dark: inherit`. inkGrounds() measures it; docs/reference.md "Ink follows its ground" */
|
|
400
400
|
:where(body, [data-palette], [data-mode], .card, .tile, .modal__drawer, .postcard__front, .postcard__back, .sticky, .post-paper,
|
|
401
|
-
.float-bar__pill, .snackbar__body, .
|
|
402
|
-
.postcard__band, .track__step, .toggle, .chip, .card__face, .card--bands > :is(.
|
|
401
|
+
.float-bar__pill, .snackbar__body, .track, .tile-badge, .avatar, .bubble__body, .map__hint, .map__pin, .sheet--paper > :is(.body, .foot),
|
|
402
|
+
.postcard__band, .track__step, .toggle, .chip, .card__face, .card--bands > :is(.head, .foot), .card--bands > .card__face > :is(.head, .foot)) {
|
|
403
403
|
--card-ink: color-mix(in srgb, var(--ink-ondark) calc(var(--dark) * 100%), var(--ink-onlight));
|
|
404
404
|
--card-muted: color-mix(in srgb, var(--ink-ondark-muted) calc(var(--dark) * 100%), var(--ink-onlight-muted));
|
|
405
405
|
--on-accent: color-mix(in srgb, var(--ink-ondark) calc(var(--accent-dark) * 100%), var(--ink-onlight));
|
|
@@ -702,8 +702,8 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
702
702
|
|
|
703
703
|
/* ---- typography levels ---- */
|
|
704
704
|
/* --fs-self: each level publishes its own size, for a consumer that scales a level without knowing which */
|
|
705
|
-
.t-display { font: var(--type-display); letter-spacing: var(--track-display); margin: 0; text-wrap: balance; --fs-self: var(--fs-display); }
|
|
706
|
-
.t-h1 { font: var(--type-h1); letter-spacing: var(--track-h1); margin: 0; --fs-self: var(--fs-h1); }
|
|
705
|
+
.t-display { --_type: var(--type-display); font: var(--type-display); letter-spacing: var(--track-display); margin: 0; text-wrap: balance; --fs-self: var(--fs-display); }
|
|
706
|
+
.t-h1 { --_type: var(--type-h1); font: var(--type-h1); letter-spacing: var(--track-h1); margin: 0; --fs-self: var(--fs-h1); }
|
|
707
707
|
.t-h2 { font: var(--type-h2); letter-spacing: var(--track-h2); margin: 0; --fs-self: var(--fs-h2); }
|
|
708
708
|
.t-title { font: var(--type-title); margin: 0; --fs-self: var(--fs-title); }
|
|
709
709
|
.t-body { font: var(--type-body); margin: 0; }
|
|
@@ -757,9 +757,6 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
757
757
|
.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) */
|
|
758
758
|
/* an illustration among the words (Lh 2026-09-22): capped, so a tall picture never pushes the words under the bar;
|
|
759
759
|
(the walk's dots are NOT here — they are the Step's, after its Pages: step.css, Lh 2026-09-22) */
|
|
760
|
-
/* the page's ONE heading on the base (a screen with no TopBar: CardHead level="h1") reads at the card heading's size —
|
|
761
|
-
h1 is the semantic level, not a bigger face; --fs-h1 is the bar title's size (Lh 2026-09-22) */
|
|
762
|
-
.page > .card__head > .t-h1 { font-size: var(--fs-h2); }
|
|
763
760
|
.page .cta-pack {
|
|
764
761
|
display: flex;
|
|
765
762
|
align-items: start; /* buttons keep their own height, never the row's */
|
|
@@ -852,12 +849,12 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
852
849
|
|
|
853
850
|
/* ---- where it sits in what card.css draws (docs/reference.md rule 15) ---- */
|
|
854
851
|
/* flat head markup (Lh 2026-09-16 — no <p>, no wrapper, only padding and gap tokens):
|
|
855
|
-
<div class="
|
|
852
|
+
<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>
|
|
856
853
|
The heading and the far-right thing share the first row; a caption sits on
|
|
857
854
|
a row below (order 1), whatever the DOM order — so an author writes the
|
|
858
855
|
words in reading order. */
|
|
859
|
-
.
|
|
860
|
-
.
|
|
856
|
+
.head > :is(.t-caption, .t-body) { flex: 1 1 100%; order: 1; margin: 0; }
|
|
857
|
+
.head:has(> .stamp) > :is(.t-caption, .t-body) { grid-column: 1; grid-row: 2; align-self: start; }
|
|
861
858
|
/* ---- where it sits in what stack.css draws (docs/reference.md rule 15) ---- */
|
|
862
859
|
.sheet-stack__base > .screen__centre { padding-inline: 0; }
|
|
863
860
|
/* ---- where it sits in what sheet.css draws (docs/reference.md rule 15) ---- */
|
|
@@ -895,7 +892,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
895
892
|
the lead + the picture's own height (--page-media-h), square — so the words start where they always did */
|
|
896
893
|
.step > .pages > .page:has(> :is(img, .ph):first-child) { margin-top: 0; }
|
|
897
894
|
.step > .empty-state { flex: none; }
|
|
898
|
-
.
|
|
895
|
+
.body > .empty-state:only-child { flex: none; }
|
|
899
896
|
/* ---- where it sits in what actions.css draws (docs/reference.md rule 15) ---- */
|
|
900
897
|
/* ---- top bar: back + screen title ---- */
|
|
901
898
|
.topbar .t-h1 {
|
|
@@ -968,80 +965,14 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
968
965
|
.card--4 { --card-bg: var(--card-4-bg); --dark: var(--card-4-dark); }
|
|
969
966
|
.card--5 { --card-bg: var(--card-5-bg); --dark: var(--card-5-dark); }
|
|
970
967
|
|
|
971
|
-
/* header row: title left, floating action right — centered, since the
|
|
972
|
-
trailing control (chip/badge/icon-btn/link) is almost always taller than
|
|
973
|
-
a single line of title text; top-aligning them left the control visually
|
|
974
|
-
low against the title's optical center. A head with a genuinely tall,
|
|
975
|
-
multi-line title can opt back out with .card__head--top. */
|
|
976
|
-
.card__head {
|
|
977
|
-
display: flex;
|
|
978
|
-
flex-wrap: var(--card-head-wrap, wrap); /* the caption takes a line of its own — no wrapper div */
|
|
979
|
-
align-items: center;
|
|
980
|
-
justify-content: space-between;
|
|
981
|
-
column-gap: var(--card-head-col-gap, var(--sp-3));
|
|
982
|
-
row-gap: var(--card-head-row-gap, var(--sp-0));
|
|
983
|
-
min-height: var(--card-head-min-h, auto);
|
|
984
|
-
}
|
|
985
|
-
.card__head--top { align-items: flex-start; }
|
|
986
968
|
|
|
987
969
|
.card__media { border-radius: var(--card-media-radius, var(--r-media)); overflow: hidden; position: relative; } /* relative: corner badges */
|
|
988
|
-
.card__end { text-align: right; display: grid; gap: var(--card-end-gap, var(--sp-0)); justify-items: end; } /* trailing value + caption */
|
|
989
970
|
.card__media > img { width: 100%; height: auto; object-fit: cover; }
|
|
990
971
|
|
|
991
|
-
/* ---- the card skeleton: head · content · foot ----
|
|
992
|
-
Every card is a head (the heading left, hints / actions / a more-menu at
|
|
993
|
-
the far right), its content, and an optional foot of action buttons.
|
|
994
|
-
The head's leading child — the heading, or the div that wraps heading and
|
|
995
|
-
caption — takes the room, so a heading with nothing at the far right runs
|
|
996
|
-
all the way across; whatever trails it hugs its own width. Only the
|
|
997
|
-
heading (or the div that wraps it) is that leading child: a control that
|
|
998
|
-
leads a custom head — a chip, an avatar, a tile badge — keeps its own
|
|
999
|
-
width, else the rule stretched a chip into a bar and an avatar into an
|
|
1000
|
-
ellipse (two agents and the wallet demo caught it, 2026-09-10). */
|
|
1001
|
-
.card__head > :is(h1, h2, h3, div, p):first-child { flex: 1; min-width: 0; }
|
|
1002
|
-
|
|
1003
|
-
/* Skeleton head — the heading in a card's OWN head, and only there.
|
|
1004
|
-
The heading wraps, no squeeze, up to three lines and cut there with an
|
|
1005
|
-
ellipsis (Lh 2026-10-21: "มันควรจะ max สามบรรทัด" — a request's title ran to
|
|
1006
|
-
four lines on a phone; reverses 2026-09-16's "no clamp"). The count is the knob
|
|
1007
|
-
--card-head-title-lines. The group that holds heading ·
|
|
1008
|
-
caption is the head's own wrapping row (above) — no wrapper element, no
|
|
1009
|
-
height, only the row gap. */
|
|
1010
|
-
.card__head :is(h1, h2, h3) {
|
|
1011
|
-
overflow-wrap: anywhere;
|
|
1012
|
-
display: -webkit-box;
|
|
1013
|
-
-webkit-box-orient: vertical;
|
|
1014
|
-
-webkit-line-clamp: var(--card-head-title-lines, 3);
|
|
1015
|
-
line-clamp: var(--card-head-title-lines, 3);
|
|
1016
|
-
overflow: hidden;
|
|
1017
|
-
padding-block-start: var(--_mark-room); /* a stacked Thai mark rises over the first line's box: room inside the clip, given back outside */
|
|
1018
|
-
margin-block-start: calc(-1 * var(--_mark-room));
|
|
1019
|
-
--_mark-room: 0.2em;
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
/* a Stamp in a card's head (`Card end={<Stamp …/>}`): the words stand at the left, the stamp at the right BESIDE BOTH LINES — the heading and the
|
|
1023
|
-
caption pair up beside it, not the stamp beside the heading alone with the caption left under it. The stamp is its own size (--stamp-size,
|
|
1024
|
-
stamp.css); the head only places it.
|
|
1025
|
-
<div class="card__head"><h2 class="t-h2">…</h2><span class="t-caption t-muted">…</span><span class="stamp">…</span></div> */
|
|
1026
|
-
.card__head:has(> .stamp) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
|
|
1027
|
-
.card__head:has(> .stamp) > :is(h1, h2, h3) { grid-column: 1; grid-row: 1; align-self: end; }
|
|
1028
|
-
|
|
1029
|
-
/* a head that LEADS with a date (Lh 2026-10-21, timebank's request card): a `CardHead` whose first child is a JourneyBadge and whose second is a
|
|
1030
|
-
ChipRow. The date stands at the left and the chips beside it, the two as tall as each other; the heading and its caption take the whole
|
|
1031
|
-
width under them, so the heading sits right over the words of the middle. The date is always as tall as the chips. The gap under the date row is --card-head-lead-gap; the date and the chips place themselves (journey.css, actions.css).
|
|
1032
|
-
<div class="card__head"><span class="tile-badge tile-badge--stretch">…</span><div class="chip-row">…</div><div><h2 class="t-h1">…</h2>…</div></div> */
|
|
1033
|
-
.card__head:has(> .tile-badge:first-child + .chip-row) {
|
|
1034
|
-
display: grid;
|
|
1035
|
-
grid-template-columns: auto minmax(0, 1fr);
|
|
1036
|
-
align-items: center;
|
|
1037
|
-
row-gap: var(--card-head-lead-gap, var(--sp-3));
|
|
1038
|
-
}
|
|
1039
|
-
.card__head:has(> .tile-badge:first-child + .chip-row) > :nth-child(n + 3) { grid-column: 1 / -1; }
|
|
1040
|
-
|
|
1041
972
|
/* a JourneyBadge at the edge of the card's own first head (the date box in the top-left or top-right corner) keeps its corner concentric
|
|
1042
973
|
with the card's: the card's corner (--r-card) less the room the padding leaves round it. journey.css reads it behind the theme's --tile-badge-radius,
|
|
1043
974
|
so a theme that sets that knob still wins. */
|
|
1044
|
-
:is(.card > .
|
|
975
|
+
:is(.card > .head:first-child, .card__face > .card__turn + .head) > .tile-badge:is(:first-child, :last-child) { --_badge-radius: calc(var(--r-card) - var(--card-pad)); } /* a turning card's face: its head follows the unseen turn button */
|
|
1045
976
|
|
|
1046
977
|
/* ---- paper bands: the two-tone card (`Card paper="bands"`, Lh 2026-10-19): the head and the foot are paper bands edge to
|
|
1047
978
|
edge over the card's padding, no hairline; the middle between them keeps the card's tone, lightened (--card-middle-bg). The card
|
|
@@ -1053,20 +984,6 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1053
984
|
overflow: hidden;
|
|
1054
985
|
}
|
|
1055
986
|
.card--bands.card--turns { background: none; overflow: visible; } /* the turning box keeps --dark: the faces' ink is computed from it */
|
|
1056
|
-
:is(.card--bands, .card--bands > .card__face) > :is(.card__head, .card__foot) {
|
|
1057
|
-
--card-bg: var(--card-1-bg);
|
|
1058
|
-
--dark: var(--card-1-dark);
|
|
1059
|
-
background: var(--card-bg);
|
|
1060
|
-
color: var(--card-ink);
|
|
1061
|
-
margin-inline: calc(-1 * var(--card-pad));
|
|
1062
|
-
padding-inline: var(--card-pad);
|
|
1063
|
-
}
|
|
1064
|
-
:is(.card--bands, .card--bands > .card__face) > .card__head { margin-top: calc(-1 * var(--card-pad)); padding-block: var(--card-pad); }
|
|
1065
|
-
:is(.card--bands, .card--bands > .card__face) > .card__head { padding-block-end: var(--card-band-seam, var(--sp-2)); }
|
|
1066
|
-
/* the seam: the heading and the words under it read as ONE paragraph that changes colour at the band's edge (Lh 2026-10-21), so the room on
|
|
1067
|
-
each side of the head band's lower edge is --card-band-seam, not the card's padding and gap */
|
|
1068
|
-
:is(.card--bands, .card--bands > .card__face) > .card__head + * { margin-block-start: calc(var(--card-band-seam, var(--sp-2)) - var(--card-gap)); }
|
|
1069
|
-
:is(.card--bands, .card--bands > .card__face) > .card__foot { margin-bottom: calc(-1 * var(--card-pad)); padding-block: var(--sp-3); } /* the foot band is slim */
|
|
1070
987
|
|
|
1071
988
|
/* ---- two faces: the WHOLE card turns (`Card back`, Lh 2026-10-19). The article is the turning box (.flip, base.css) and only that;
|
|
1072
989
|
each face is the card's paper — head · middle · foot — and both lie in one grid cell. The head and the foot are the same on both
|
|
@@ -1088,10 +1005,10 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1088
1005
|
position: relative;
|
|
1089
1006
|
}
|
|
1090
1007
|
.card__face > * { min-width: 0; }
|
|
1091
|
-
.card__middle { flex: 1 0 auto; display:
|
|
1008
|
+
.card__middle { flex: 1 0 auto; display: flex; flex-direction: column; gap: var(--card-gap); height: var(--card-middle-h, auto); overflow: hidden; } /* a flex column, not a grid: the middle's height is the flexed one, so one thing on a face (a QR, a code) may take the whole middle with height: 100% (a grid's auto row never stretched to it, and the thing stood at the top of an empty band) */
|
|
1092
1009
|
.card__turn { position: absolute; inset: 0; width: var(--px); height: var(--px); padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
|
|
1093
1010
|
.card__face:has(> .card__turn:focus-visible) { outline: var(--focus); outline-offset: calc(-1 * var(--sp-1)); }
|
|
1094
|
-
.
|
|
1011
|
+
.head > .chip-row > .chip > .icon { --icon-display: inline-block; --icon-align: -0.15em; --icon-margin: 0 var(--chip-sm-gap, var(--sp-1)) 0 0; }
|
|
1095
1012
|
|
|
1096
1013
|
/* ---- bleed: a scrolling track that runs to the container's edges ----
|
|
1097
1014
|
For a horizontal strip inside a padded container — .avatar-pick, .chip-row,
|
|
@@ -1131,19 +1048,6 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1131
1048
|
is genuinely first or last needs the corner clipped for it */
|
|
1132
1049
|
.card:has(> :is(.bleed, .map--bleed):first-child), .card:has(> :is(.bleed, .map--bleed):last-child) { overflow: clip; }
|
|
1133
1050
|
|
|
1134
|
-
/* foot: the card's action buttons on one line. One button takes the width,
|
|
1135
|
-
up to four share it in even parts — so the gaps read even too — and from
|
|
1136
|
-
three on they drop their side padding so the labels keep the room. */
|
|
1137
|
-
.card__foot { display: flex; gap: var(--card-foot-gap, var(--sp-2)); align-items: center; color: var(--card-foot-ink, inherit); }
|
|
1138
|
-
.card__foot:has(> :nth-child(3)) > .btn { --btn-pad-x: var(--sp-2); }
|
|
1139
|
-
/* a small link under the buttons (CardFoot link — Lh 2026-09-23, as the ActionBar's ctaLink): the row wraps, the link takes a
|
|
1140
|
-
whole short row of its own, centred — it never shares the buttons' line */
|
|
1141
|
-
.card__foot--link { flex-wrap: wrap; align-content: end; row-gap: var(--card-foot-link-gap, var(--sp-1)); }
|
|
1142
|
-
.card__foot-link { flex: 1 0 100%; display: flex; justify-content: center; }
|
|
1143
|
-
/* round (CardFoot round): the foot holds a few round IconBtns, each its own size (they never share the line), as ONE group in the middle with
|
|
1144
|
-
a gap that does not follow the card's width. The gap is wider than the Btns' (a miss between two round targets): --card-foot-gap sets it */
|
|
1145
|
-
.card__foot--round { justify-content: center; gap: var(--card-foot-gap, var(--sp-6)); }
|
|
1146
|
-
|
|
1147
1051
|
/* media placeholder for wireframes — currentColor so it survives any palette */
|
|
1148
1052
|
.ph {
|
|
1149
1053
|
background:
|
|
@@ -1260,7 +1164,6 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1260
1164
|
align-items: center;
|
|
1261
1165
|
gap: var(--card-row-gap, var(--sp-3));
|
|
1262
1166
|
}
|
|
1263
|
-
.card--row .card__body { flex: 1; display: grid; gap: var(--sp-0); }
|
|
1264
1167
|
|
|
1265
1168
|
/* ---- a short window of past entries (`CardList show`, Lh 2026-10-19): the list scrolls IN ITSELF, a few rows in sight and the next one cut
|
|
1266
1169
|
in half to say there is more. The height is counted in rows by the component (`--_card-list-h`, px: rows wrap to any height); the room
|
|
@@ -1277,7 +1180,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1277
1180
|
}
|
|
1278
1181
|
|
|
1279
1182
|
/* ---- the cross that takes a row off the list (`Card row onRemove`): small, at the row's top right corner, inside it ----
|
|
1280
|
-
<label class="card card--row"><input type="radio">…<
|
|
1183
|
+
<label class="card card--row"><input type="radio">…<span class="words">…</span><button class="card__remove" aria-label="Remove"><svg class="icon">x</svg></button></label>
|
|
1281
1184
|
Smaller than any button (a ring half a thing's size, `--tap-base` / 2 = 24) and it grows with the size of things; the touch target is an
|
|
1282
1185
|
unseen ring round it, never under --tap-floor (44). It stands in the row's flow, so the title wraps before it, tucked into the corner
|
|
1283
1186
|
by the row's own padding; it sits over the row's radio (which covers the whole card), so a touch on it removes and never picks. */
|
|
@@ -1305,21 +1208,10 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1305
1208
|
.card__remove > .icon { --icon-size: 62%; }
|
|
1306
1209
|
.card__remove:focus-visible { outline: var(--focus); outline-offset: var(--sp-0); }
|
|
1307
1210
|
|
|
1308
|
-
/* leading thumb/icon in a row */
|
|
1309
|
-
.card__thumb {
|
|
1310
|
-
width: var(--card-thumb-size, var(--tap-sm)); height: var(--card-thumb-size, var(--tap-sm));
|
|
1311
|
-
flex: none;
|
|
1312
|
-
border-radius: var(--card-thumb-radius, var(--r-control));
|
|
1313
|
-
border: var(--border-w) solid currentColor;
|
|
1314
|
-
display: grid;
|
|
1315
|
-
place-items: center;
|
|
1316
|
-
font: var(--card-thumb-font, var(--type-label));
|
|
1317
|
-
}
|
|
1318
|
-
|
|
1319
1211
|
/* ---- card feed: a queue of cards, all in sight — one big, the rest small (Lh 2026-10-09, the whole queue 2026-10-15) ----
|
|
1320
1212
|
<div class="card-feed">
|
|
1321
|
-
<article class="card feed-card"><div class="
|
|
1322
|
-
<div class="feed-card__more"><div class="feed-card__rest">content · <div class="
|
|
1213
|
+
<article class="card feed-card"><div class="head">lead · h2 · caption</div>
|
|
1214
|
+
<div class="feed-card__more"><div class="feed-card__rest">content · <div class="foot">…</div></div></div></article>
|
|
1323
1215
|
<article class="card feed-card feed-card--small" role="button" tabindex="0">… <div class="feed-card__more" inert>…</div></article>
|
|
1324
1216
|
<p class="t-caption card-feed__end" role="note">the end</p>
|
|
1325
1217
|
</div>
|
|
@@ -1330,9 +1222,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1330
1222
|
shut content in the scrollable overflow of whatever holds the feed — and hidden once the row has shut. */
|
|
1331
1223
|
.card-feed { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--card-feed-gap, var(--card-gap-rest)); }
|
|
1332
1224
|
.feed-card { row-gap: 0; }
|
|
1333
|
-
.feed-
|
|
1334
|
-
.feed-card__head:has(> :is(.card__thumb, .feed-card__lead)) { grid-template-columns: auto minmax(0, 1fr); }
|
|
1335
|
-
.feed-card__head:has(> .t-caption) > :is(.card__thumb, .feed-card__lead) { grid-row: span 2; }
|
|
1225
|
+
.feed-card > .head:has(> .t-caption) > .feed-card__lead { grid-row: span 2; }
|
|
1336
1226
|
.feed-card__lead { display: grid; align-self: center; } /* a Stamp here is the small one, 48 × 60 (stamp.css) */
|
|
1337
1227
|
.card-feed__end { text-align: center; }
|
|
1338
1228
|
.feed-card__more { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; }
|
|
@@ -1349,22 +1239,6 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1349
1239
|
.feed-card--small .feed-card__rest { transition: visibility 0s var(--motion-sheet); }
|
|
1350
1240
|
}
|
|
1351
1241
|
|
|
1352
|
-
/* ---- inline stat block (revenue-style) ---- */
|
|
1353
|
-
.stat { display: grid; gap: var(--stat-gap, var(--sp-1)); }
|
|
1354
|
-
.stat--centre { text-align: center; justify-items: center; } /* the one number of a sheet or a stage, under a centred avatar */
|
|
1355
|
-
.stat__row { display: flex; align-items: center; justify-content: space-between; gap: var(--stat-row-gap, var(--sp-3)); }
|
|
1356
|
-
|
|
1357
|
-
.delta {
|
|
1358
|
-
font: var(--delta-font, var(--type-caption));
|
|
1359
|
-
font-weight: var(--fw-bold);
|
|
1360
|
-
padding: var(--delta-pad-y, var(--sp-1)) var(--delta-pad-x, var(--sp-2));
|
|
1361
|
-
border-radius: var(--delta-radius, var(--r-chip));
|
|
1362
|
-
background: var(--delta-bg, var(--card-3-bg));
|
|
1363
|
-
--dark: var(--card-3-dark);
|
|
1364
|
-
color: var(--delta-ink, var(--card-ink));
|
|
1365
|
-
}
|
|
1366
|
-
.delta--neg { background: var(--delta-neg-bg, var(--neg)); --dark: var(--neg-dark); color: var(--delta-neg-ink, var(--card-ink)); }
|
|
1367
|
-
|
|
1368
1242
|
/* ---- panes: a few panes side by side inside a card or a sheet, one in sight (Lh 2026-10-02) ----
|
|
1369
1243
|
<div class="panes" role="group"><div class="panes__rail"><div class="panes__pane">…</div>…</div><span class="pager__at">…</span></div>
|
|
1370
1244
|
The rail runs to the card's edges and snaps a pane at a time; each pane takes the inset back, so its content stands on the
|
|
@@ -1388,7 +1262,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1388
1262
|
|
|
1389
1263
|
/* ---- cover: the image IS the card; text over a scrim ----
|
|
1390
1264
|
<article class="card card--cover"><div class="ph" role="img"></div>
|
|
1391
|
-
<div class="
|
|
1265
|
+
<div class="head"><button class="icon-btn icon-btn--sm">♥</button></div>
|
|
1392
1266
|
<div><h2 class="t-h1">Art Institute</h2><p class="t-body">111 South Michigan Ave</p></div>
|
|
1393
1267
|
<div class="row">…meta…</div></article> */
|
|
1394
1268
|
.card--cover {
|
|
@@ -1478,14 +1352,6 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1478
1352
|
.sheet-stack > .card:nth-child(3) { margin-top: calc(2 * var(--stack-step)); }
|
|
1479
1353
|
.sheet-stack > .card:nth-child(4) { margin-top: calc(3 * var(--stack-step)); }
|
|
1480
1354
|
.sheet-stack > .card:nth-child(5) { margin-top: calc(4 * var(--stack-step)); }
|
|
1481
|
-
/* stack headers: uniform — [back?] title left, icons right, one height,
|
|
1482
|
-
same gap to content on every card */
|
|
1483
|
-
.sheet-stack > .card > .card__head {
|
|
1484
|
-
align-items: center;
|
|
1485
|
-
justify-content: flex-start;
|
|
1486
|
-
min-height: var(--tap);
|
|
1487
|
-
}
|
|
1488
|
-
.sheet-stack--display > .card > .card__head { align-items: start; min-height: 0; }
|
|
1489
1355
|
/* ============================================================
|
|
1490
1356
|
.sheet-stack--tap — tap a peeked sheet open; a back button returns it.
|
|
1491
1357
|
|
|
@@ -1538,8 +1404,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1538
1404
|
overscroll-behavior: contain;
|
|
1539
1405
|
}
|
|
1540
1406
|
.sheet-stack--tap > .card.is-open.is-dragging { transition: none; }
|
|
1541
|
-
.sheet-stack--tap > .card
|
|
1542
|
-
.sheet-stack--tap > .card.is-open:not(:has(> .sheet__body)) {
|
|
1407
|
+
.sheet-stack--tap > .card.is-open:not(:has(> .body)) {
|
|
1543
1408
|
padding-top: calc(var(--card-pad) + var(--_refresh, 0rem));
|
|
1544
1409
|
transition: translate var(--motion-sheet) var(--ease), padding-top var(--motion-sheet) var(--ease);
|
|
1545
1410
|
}
|
|
@@ -1575,56 +1440,18 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1575
1440
|
only, the sheet's size is untouched. A pull on the head keeps them square until the finger lets go. */
|
|
1576
1441
|
.sheet-stack--flood > .card { transition: translate var(--motion-sheet) var(--ease), border-radius var(--motion-sheet) var(--ease); }
|
|
1577
1442
|
.sheet-stack--flood > .card.is-open { border-top-left-radius: 0; border-top-right-radius: 0; }
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
transition: padding-left var(--motion-sheet) var(--ease);
|
|
1582
|
-
}
|
|
1583
|
-
/* ---- a stacked sheet with a SheetBody has the ONE sheet shape (Lh 2026-09-23, the home layout): sheet head
|
|
1584
|
-
pinned at the top · sheet body scrolls, as long as it needs · sheet foot (a CardFoot, the CTA) at the bottom.
|
|
1585
|
-
The card becomes a flex column and stops scrolling itself — only the body does. A sheet with no SheetBody
|
|
1443
|
+
/* ---- a stacked sheet with a Body has the ONE sheet shape (Lh 2026-09-23, the home layout): sheet head
|
|
1444
|
+
pinned at the top · sheet body scrolls, as long as it needs · sheet foot (a Foot, the CTA) at the bottom.
|
|
1445
|
+
The card becomes a flex column and stops scrolling itself — only the body does. A sheet with no Body
|
|
1586
1446
|
keeps the old way: the whole open card scrolls. ---- */
|
|
1587
|
-
.sheet-stack--tap > .card:has(> .
|
|
1588
|
-
.sheet-stack--tap > .card:has(> .
|
|
1589
|
-
/* a paper stack's foot is paper to the card's edges, and it covers the tinted flex gap above it so the
|
|
1590
|
-
button does not sit on a colour stripe. The head's gap stays: it is outside this foot. The button stays
|
|
1591
|
-
where it was — the padding gives back what the bleed takes. */
|
|
1592
|
-
.sheet-stack > .card.sheet--paper > .card__foot {
|
|
1593
|
-
background: var(--action-bg);
|
|
1594
|
-
color: var(--card-ink);
|
|
1595
|
-
margin-top: calc(-1 * var(--card-gap));
|
|
1596
|
-
margin-inline: calc(-1 * var(--card-pad));
|
|
1597
|
-
margin-bottom: calc(-1 * var(--card-pad));
|
|
1598
|
-
padding-top: var(--card-gap);
|
|
1599
|
-
padding-inline: var(--card-pad);
|
|
1600
|
-
padding-bottom: var(--card-pad);
|
|
1601
|
-
}
|
|
1602
|
-
.stack-sheet > .card__head { flex-wrap: nowrap; }
|
|
1447
|
+
.sheet-stack--tap > .card:has(> .body) { display: flex; flex-direction: column; gap: var(--card-gap); }
|
|
1448
|
+
.sheet-stack--tap > .card:has(> .body).is-open { overflow: clip; }
|
|
1603
1449
|
/* ---- the back button, SMALL (Lh 2026-09-23: "give the sheet head more room" — and then "a glyph alone does not read as
|
|
1604
1450
|
tappable"): a SMALL DISC — its ring kept, 32px instead of 44, the chevron in it at 20 — so the head gives it 32px + a gap
|
|
1605
1451
|
(was 56px). Its tap target stays 44px: an invisible ::after around the disc. ---- */
|
|
1606
|
-
.sheet-stack--tap > .card.is-open > .card__head:has(> .sheet-stack__back:not(.sheet-stack__back--end)) { padding-left: var(--stack-back-room, calc(var(--_back-size) + var(--sp-2))); }
|
|
1607
|
-
:is(.sheet-stack--tap > .card, .sheet-stack--tap > :not(.card, .sheet-stack__base) > .card) > .card__head:has(> .sheet-stack__back--end) { transition: padding-right var(--motion-sheet) var(--ease); }
|
|
1608
|
-
.sheet-stack--tap > .card.is-open > .card__head:has(> .sheet-stack__back--end) { padding-right: var(--stack-back-room, calc(var(--_back-size) + var(--sp-2))); }
|
|
1609
1452
|
/* a stacked sheet is a control until it is open — tapped, never read into: no text selection (a drag, a double tap, a long press),
|
|
1610
1453
|
no grey flash, no iOS callout; its head stays one when open. Only the OPEN sheet's body is text to select (Lh 2026-09-23) */
|
|
1611
|
-
.sheet-stack--tap > .card
|
|
1612
|
-
/* ---- where it sits in what sheet.css draws (docs/reference.md rule 15) ---- */
|
|
1613
|
-
.sheet > .card__foot {
|
|
1614
|
-
position: absolute; inset: calc(-1 * var(--border-w)) 0 0; z-index: var(--z-over); /* the sheet's border box: the same height the sheet's own % reads */
|
|
1615
|
-
align-items: end;
|
|
1616
|
-
align-content: end;
|
|
1617
|
-
padding: 0 var(--card-pad) calc(var(--card-pad) + var(--_safe-b-open));
|
|
1618
|
-
background: linear-gradient(var(--card-bg), var(--card-bg)) bottom / 100% var(--_foot) no-repeat;
|
|
1619
|
-
pointer-events: none;
|
|
1620
|
-
translate: 0 calc(-1 * var(--_y) - var(--_drag, 0rem));
|
|
1621
|
-
transition: translate var(--motion-sheet) var(--ease), visibility 0s;
|
|
1622
|
-
}
|
|
1623
|
-
.sheet.is-dragging > .card__foot { transition: none; }
|
|
1624
|
-
/* at peek and away the foot is NOT held on the box's edge: it stands on the sheet's own bottom edge (no counter-slide), so it
|
|
1625
|
-
LEAVES AND ARRIVES WITH ITS SHEET — solid the whole way, hidden only once the slide is over. It used to stay in place and
|
|
1626
|
-
fade: the body slid through the strip behind a half-transparent button (timebank, Lh 2026-10-01: "ตัวหนังสือลอดใต้ปุ่ม"). */
|
|
1627
|
-
:is(.sheet--peek, .sheet--away) > .card__foot { translate: 0 0; visibility: hidden; transition: translate var(--motion-sheet) var(--ease), visibility 0s var(--ease-linear) var(--motion-sheet); }
|
|
1454
|
+
.sheet-stack--tap > .card { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
|
|
1628
1455
|
/* ---- where it sits in what step.css draws (docs/reference.md rule 15) ---- */
|
|
1629
1456
|
/* a WALK (Pages of Page) — Lh 2026-09-23, third call: no top; the picture and the words are ONE run that scrolls up together
|
|
1630
1457
|
(the picture is never pinned). Each page starts at the screen's lead and ends with the same room under it — the lead as
|
|
@@ -1653,7 +1480,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1653
1480
|
.postcard__front .postcard__turn > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; min-height: 0; }
|
|
1654
1481
|
|
|
1655
1482
|
/* ---- where it sits in what stack.css draws: a sheet pulled to refresh holds still (docs/reference.md rule 15) ---- */
|
|
1656
|
-
.sheet-stack--tap > .card.is-open.is-refreshing:not(:has(> .
|
|
1483
|
+
.sheet-stack--tap > .card.is-open.is-refreshing:not(:has(> .body)) { transition: none; }
|
|
1657
1484
|
|
|
1658
1485
|
/* ---- where it sits in what step.css draws: the reading block, a walk of pages (docs/reference.md rule 15) ---- */
|
|
1659
1486
|
.step:has(> .sheet--peek) > .pages { padding-bottom: var(--sheet-peek); }
|
|
@@ -1685,7 +1512,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1685
1512
|
|
|
1686
1513
|
<div class="sheet-stack sheet-stack--tap"> (drop --tap for a static stack)
|
|
1687
1514
|
<article class="card card--2">
|
|
1688
|
-
<div class="
|
|
1515
|
+
<div class="head">
|
|
1689
1516
|
<button class="icon-btn icon-btn--sm sheet-stack__back" aria-label="Back">…</button>
|
|
1690
1517
|
<h2 class="t-h2 t-caps">Shopping</h2>
|
|
1691
1518
|
<span class="icon-row">…</span> (optional trailing icons)
|
|
@@ -1740,7 +1567,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1740
1567
|
|
|
1741
1568
|
/* NOT a skeleton head: a peek is one line at its own size, and the display
|
|
1742
1569
|
stack deliberately runs a second line under the next card. */
|
|
1743
|
-
.sheet-stack > .card > .
|
|
1570
|
+
.sheet-stack > .card > .head :is(h1, h2, h3) {
|
|
1744
1571
|
font-size: var(--fs-h1);
|
|
1745
1572
|
line-height: var(--lh-solid);
|
|
1746
1573
|
letter-spacing: var(--track-h2);
|
|
@@ -1752,7 +1579,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1752
1579
|
/* display stack: the giant title IS the peek — line one shows, line two is
|
|
1753
1580
|
clipped by the next card (recents / library lists) */
|
|
1754
1581
|
.sheet-stack--display { --stack-step: calc(var(--tap-base) * 13 / 6); }
|
|
1755
|
-
.sheet-stack--display > .card > .
|
|
1582
|
+
.sheet-stack--display > .card > .head :is(h1, h2, h3) {
|
|
1756
1583
|
font: var(--type-display);
|
|
1757
1584
|
letter-spacing: var(--track-display);
|
|
1758
1585
|
/* the FIRST line sits on the centre of the peek strip (--stack-step tall,
|
|
@@ -1766,7 +1593,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1766
1593
|
NOT: there, every card is full height and full content always, and a
|
|
1767
1594
|
peek is simply the strip of it the next card doesn't cover — the way a
|
|
1768
1595
|
card in a real deck is never a shorter card, just a mostly hidden one. */
|
|
1769
|
-
.sheet-stack:not(.sheet-stack--tap) > .card:has(~ .card):not(.is-open) > :not(.
|
|
1596
|
+
.sheet-stack:not(.sheet-stack--tap) > .card:has(~ .card):not(.is-open) > :not(.head) { display: none; }
|
|
1770
1597
|
|
|
1771
1598
|
/* ---- .sheet-stack--tap — tap a peeked sheet open; a back button returns it. How its sheets move (one property: translate) is
|
|
1772
1599
|
told over their rules, where they sit, in card.css. ---- */
|
|
@@ -1914,7 +1741,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1914
1741
|
slide read as a second thing moving while the sheet itself moved; Lh,
|
|
1915
1742
|
2026-09-11). Only the sheet travels; the button appears where it is. */
|
|
1916
1743
|
/* a sheet's OWN head and back: the card is the stack's child or, with one host wrapper, the wrapper's. A card standing in the sheet's body wears its own head */
|
|
1917
|
-
:is(.sheet-stack--tap > .card, .sheet-stack--tap > :not(.card, .sheet-stack__base) > .card) > .
|
|
1744
|
+
:is(.sheet-stack--tap > .card, .sheet-stack--tap > :not(.card, .sheet-stack__base) > .card) > .head > .sheet-stack__back {
|
|
1918
1745
|
position: absolute;
|
|
1919
1746
|
left: 0;
|
|
1920
1747
|
top: 50%;
|
|
@@ -1929,35 +1756,24 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1929
1756
|
min-height: 0;
|
|
1930
1757
|
padding: 0;
|
|
1931
1758
|
}
|
|
1932
|
-
.sheet-stack--tap > .card.is-open > .
|
|
1759
|
+
.sheet-stack--tap > .card.is-open > .head > .sheet-stack__back {
|
|
1933
1760
|
opacity: 1;
|
|
1934
1761
|
visibility: visible;
|
|
1935
1762
|
}
|
|
1936
1763
|
|
|
1937
|
-
.sheet-stack > .card:has(> .
|
|
1938
|
-
.sheet-stack > .card > .sheet__body { --_cover: 0rem; } /* nothing slid under here: the stack's sheet is always whole */
|
|
1939
|
-
/* a paper stack's foot is paper (card.css paints it): its ink reads the action's side */
|
|
1940
|
-
.sheet-stack > .card.sheet--paper > .card__foot { --dark: var(--action-dark); }
|
|
1764
|
+
.sheet-stack > .card:has(> .body) > :not(.body) { flex-shrink: 0; }
|
|
1941
1765
|
|
|
1942
1766
|
/* ---- StackSheet's tabs (Lh 2026-09-23): the head's end is a row of small icon buttons, the sheet's pages — the chosen one
|
|
1943
1767
|
filled (.icon-btn--invert) only while the sheet is open; a count is a small circle over the icon's top right corner ---- */
|
|
1944
1768
|
.stack-sheet__tabs { display: flex; gap: var(--stack-sheet-tabs-gap, var(--sp-2)); flex: none; } /* room between the tabs: with none, the chosen tab's disc touched its neighbour's (Lh 2026-09-24) */
|
|
1945
|
-
/* the
|
|
1946
|
-
(StackSheet measures --_over, the width it overflows by, and sets .is-long), one way: it waits, runs to the end, waits, and starts again from the first letter — like a song title */
|
|
1947
|
-
.stack-sheet__title {
|
|
1948
|
-
flex: 1; min-width: 0; overflow-x: clip; overflow-y: visible; white-space: nowrap; overflow-wrap: normal; /* clip SIDEWAYS only:
|
|
1949
|
-
hidden clipped the Thai tone marks above a line-height-1 line (เพื่อน lost its ไม้เอก — Lh 2026-09-24) */
|
|
1950
|
-
translate: 0 var(--stack-sheet-title-shift, -0.1em); /* FC Pride's line box carries more room above its letters than below: the
|
|
1951
|
-
letters sat ~0.1em under the middle of the back disc and the tabs — lifted onto it (Lh 2026-09-24) */
|
|
1952
|
-
}
|
|
1769
|
+
/* the title's run (the title's own rules are parts.css's, in a stack sheet) */
|
|
1953
1770
|
.stack-sheet__run { display: inline-block; }
|
|
1954
|
-
.stack-
|
|
1771
|
+
.stack-sheet > .head > .words__title.is-long > .stack-sheet__run {
|
|
1955
1772
|
animation: stack-sheet-run var(--stack-sheet-run-time, var(--_run, var(--motion-run))) var(--ease-in-out) infinite; /* ONE way: start → end, then back to the start at once (Lh 2026-09-24) */ /* --_run: from the overflow, 30px a second + the pauses */
|
|
1956
1773
|
}
|
|
1957
1774
|
@keyframes stack-sheet-run { 0%, 20% { translate: 0; } 85%, 100% { translate: calc(-1 * var(--_over)); } }
|
|
1958
1775
|
@media (prefers-reduced-motion: reduce) {
|
|
1959
|
-
.stack-
|
|
1960
|
-
.stack-sheet__title.is-long { text-overflow: ellipsis; }
|
|
1776
|
+
.stack-sheet > .head > .words__title.is-long > .stack-sheet__run { animation: none; display: inline; } /* inline: an ellipsis cannot cut an inline-block */
|
|
1961
1777
|
.stack-sheet__tab { transition: none; } /* the disc is simply there while open, and gone while closed */
|
|
1962
1778
|
}
|
|
1963
1779
|
.stack-sheet__tab {
|
|
@@ -1991,23 +1807,23 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1991
1807
|
/* a CLOSED sheet shows no chosen disc either (Lh 2026-10-04): arriving on the home, every tab of every sheet is the icon
|
|
1992
1808
|
alone. The fill fades in with the rise — the tab that was pressed, or the one the sheet opens on — and fades out as the
|
|
1993
1809
|
sheet folds. The class stays (which page it is); only the paint waits for .is-open. */
|
|
1994
|
-
.sheet-stack--tap > .card:not(.is-open) > .
|
|
1810
|
+
.sheet-stack--tap > .card:not(.is-open) > .head .stack-sheet__tab.icon-btn--invert {
|
|
1995
1811
|
border-color: transparent; background-color: transparent; box-shadow: none; color: inherit;
|
|
1996
1812
|
}
|
|
1997
1813
|
/* the last tab's ICON lines up with the inset, not its button's edge: an unchosen tab shows the glyph only, so the button's own
|
|
1998
1814
|
margin around it reaches into the card's padding — and an open head (back · title · three tabs) keeps one line (Lh 2026-09-23) */
|
|
1999
|
-
.
|
|
1815
|
+
.head > .stack-sheet__tabs { margin-right: calc(-1 * var(--sp-2)); }
|
|
2000
1816
|
|
|
2001
1817
|
/* AT THE END (Lh 2026-09-29, the home): after the tabs, chevron down — the open sheet folds down. The head's end gives it its room
|
|
2002
1818
|
while open; the last tab then sits on the inset (no reach into the padding) */
|
|
2003
1819
|
.sheet-stack--tap .sheet-stack__back--end { left: auto; right: 0; }
|
|
2004
|
-
.sheet-stack--tap > .card.is-open > .
|
|
1820
|
+
.sheet-stack--tap > .card.is-open > .head:has(> .sheet-stack__back--end) > .stack-sheet__tabs { margin-right: 0; }
|
|
2005
1821
|
.sheet-stack--tap .sheet-stack__back > .icon { --icon-size: var(--stack-back-icon, calc(var(--tap-base) * 13 / 24)); } /* 26: the chevron fills the small disc (Lh 2026-09-23) */
|
|
2006
1822
|
.sheet-stack--tap .sheet-stack__back::after { content: ""; position: absolute; inset: calc((var(--_back-size) - var(--tap-sm)) / 2); }
|
|
2007
1823
|
|
|
2008
1824
|
/* the open sheet's title folds it (SheetStack.tsx): it says so to a pointer */
|
|
2009
|
-
.sheet-stack--tap > .card.is-open > .
|
|
2010
|
-
.sheet-stack--tap > .card.is-open > :not(.
|
|
1825
|
+
.sheet-stack--tap > .card.is-open > .head > :is(h1, h2, h3) { cursor: pointer; }
|
|
1826
|
+
.sheet-stack--tap > .card.is-open > :not(.head) { -webkit-user-select: var(--screen-select, none); user-select: var(--screen-select, none); } /* the open sheet reads as the rest of the screen: not selectable (Lh 2026-09-25; it was text) */
|
|
2011
1827
|
|
|
2012
1828
|
/* ---- where it sits in what base.css draws (docs/reference.md rule 15) ---- */
|
|
2013
1829
|
/* min-height: 0 — a flex item's floor is its content, and the stack's content
|
|
@@ -2054,8 +1870,8 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2054
1870
|
the listed states, and the state it lands on becomes the one a tap
|
|
2055
1871
|
returns to.
|
|
2056
1872
|
<button class="sheet__handle" type="button" aria-label="…"></button>
|
|
2057
|
-
<div class="
|
|
2058
|
-
<div class="
|
|
1873
|
+
<div class="head"><h2 class="words__title t-h2">…</h2>…</div>
|
|
1874
|
+
<div class="body">…controls, or small content cards…</div>
|
|
2059
1875
|
</article>
|
|
2060
1876
|
Written top-down: the handle, the title row (what peek shows), then
|
|
2061
1877
|
the body. The handle and the head stay where they are at every
|
|
@@ -2127,38 +1943,9 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2127
1943
|
.sheet--away { --_y: 100%; --_cover: var(--_box); visibility: hidden; transition: translate var(--motion-sheet) var(--ease), visibility 0s var(--ease-linear) var(--motion-sheet); }
|
|
2128
1944
|
.sheet.is-dragging { transition: none; } /* follows the finger; the snap gets the ease back */
|
|
2129
1945
|
|
|
2130
|
-
/* the body — everything under the head, the one thing in a sheet that
|
|
2131
|
-
scrolls. Its scrollport runs to the card's side and bottom edges (reading
|
|
2132
|
-
--card-pad, the way .bleed does) so content scrolls clear of the edge
|
|
2133
|
-
rather than stopping inside the padding, and a .bleed strip inside it
|
|
2134
|
-
still reaches the edges. The card's own grid rhythm continues inside. */
|
|
2135
|
-
.sheet__body {
|
|
2136
|
-
flex: 1;
|
|
2137
|
-
min-height: 0;
|
|
2138
|
-
display: grid;
|
|
2139
|
-
gap: var(--card-gap);
|
|
2140
|
-
align-content: start;
|
|
2141
|
-
margin-inline: calc(-1 * var(--card-pad));
|
|
2142
|
-
padding-inline: var(--card-pad);
|
|
2143
|
-
overflow-y: auto;
|
|
2144
|
-
overscroll-behavior: contain;
|
|
2145
|
-
/* the part of the sheet that slid under the box's bottom edge cannot be
|
|
2146
|
-
seen, and the scroller has to know that: scroll-padding is exactly "the
|
|
2147
|
-
obscured part of my scrollport", so a focused field, scrollIntoView and
|
|
2148
|
-
anchor navigation all land a control in the visible part, never under
|
|
2149
|
-
the cut. A length from the box's container units (--_box), since the
|
|
2150
|
-
cut is a share of the SHEET's height, not of the body's. */
|
|
2151
|
-
scroll-padding-bottom: var(--_cover);
|
|
2152
|
-
/* …and its content has to be able to LEAVE that part: the same length as bottom padding, so the last row
|
|
2153
|
-
scrolls up to the visible edge at half and 3q as it does at full — everything between the head and the
|
|
2154
|
-
foot can be reached at any state (Lh, 2026-09-21). Padding, not a shorter box: nothing that shows moves
|
|
2155
|
-
when the state changes, only how far the body scrolls; a child that fills the body (a composer) fills
|
|
2156
|
-
the part that shows. */
|
|
2157
|
-
padding-bottom: var(--_cover);
|
|
2158
|
-
}
|
|
2159
1946
|
/* ---- the sheet's foot: the button that FINISHES the sheet, on the sheet (Lh, 2026-09-20) ----
|
|
2160
1947
|
A screen with a sheet has no bar in front of it: the button that completes what the sheet asks — the
|
|
2161
|
-
page's conclusion — is a .
|
|
1948
|
+
page's conclusion — is a .foot, the sheet's last child, on the sheet's own material. The sheet is
|
|
2162
1949
|
full height at every state, so its real bottom edge is under the cut unless it stands at full. So the
|
|
2163
1950
|
foot is a layer as tall as the sheet, its buttons at its bottom, slid UP by the very share the sheet
|
|
2164
1951
|
slid down (--_y, + the drag): the two cancel, and the buttons stand on the box's bottom edge at half,
|
|
@@ -2166,18 +1953,11 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2166
1953
|
length — so a box that resizes (the keyboard) moves them as one, with nothing to catch up. The layer
|
|
2167
1954
|
takes no taps, its buttons do; the strip behind them is the sheet's ground, --_foot tall, and the body
|
|
2168
1955
|
stops that far above the sheet's edge. At peek there is only the handle and the title: the foot is gone.
|
|
2169
|
-
One row, ≤ 2 buttons. <div class="
|
|
1956
|
+
One row, ≤ 2 buttons (parts.css). <div class="foot"><button class="btn btn--primary btn--block">…</button></div> */
|
|
2170
1957
|
/* …and the link row under the button, when there is one (its line + the gap over it) */
|
|
2171
|
-
.sheet:has(> .
|
|
2172
|
-
|
|
2173
|
-
.sheet:
|
|
2174
|
-
/* that padding can be taller than the body's own box (a short box: a small phone with the keyboard up) and a
|
|
2175
|
-
box is never smaller than its padding — so the pinned parts must not give way to it: the body runs past
|
|
2176
|
-
the sheet's clipped edge instead, where nothing shows anyway. At peek and away no part of the body shows. */
|
|
2177
|
-
.sheet > :not(.sheet__body) { flex-shrink: 0; }
|
|
2178
|
-
:is(.sheet--peek, .sheet--away) > .sheet__body { padding-bottom: 0; }
|
|
2179
|
-
.sheet__body > * { min-width: 0; } /* as .card > *: children shrink to the track, never widen it */
|
|
2180
|
-
.sheet__body:last-child { margin-bottom: calc(-1 * var(--card-pad)); padding-bottom: calc(var(--card-pad) + var(--_cover) + var(--_safe-b-open)); }
|
|
1958
|
+
.sheet:has(> .foot--link) { --_foot: calc(var(--card-gap) + var(--sheet-foot-h, calc(var(--btn-h) + var(--sp-1) + var(--link-sm-min-h, calc(var(--tap-base) * 7 / 12)))) + var(--card-pad) + var(--_safe-b-open)); } /* --sheet-foot-h: the foot's rows as the Sheet measured them (a button grows with the text size) */
|
|
1959
|
+
/* the body's padding can be taller than its own box, so the pinned parts must not give way to it (parts.css) */
|
|
1960
|
+
.sheet > :not(.body) { flex-shrink: 0; }
|
|
2181
1961
|
|
|
2182
1962
|
/* grab handle — first child of the sheet, but it does not take a row: it sits in the
|
|
2183
1963
|
card's top padding, the same air as a stack sheet's four dots (stack.css --_grip-y),
|
|
@@ -2203,22 +1983,6 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2203
1983
|
touch-action: none;
|
|
2204
1984
|
cursor: grab;
|
|
2205
1985
|
}
|
|
2206
|
-
/* paper: the head keeps the sheet's own colour, the content is the theme's paper, --action-bg, the ground of every field (Lh 2026-10-05: white; Lh 2026-10-20: the theme's, never a fixed white).
|
|
2207
|
-
The body and the foot read as paper; the handle and the head stay on the card.
|
|
2208
|
-
The flex gap under the head is outside the body, so it stays the sheet's tint.
|
|
2209
|
-
The first field would sit on that colour seam. The paper's inset is --sp-6 (24px at
|
|
2210
|
-
the default spacing), the body's own top padding, and only when the sheet is paper.
|
|
2211
|
-
A plain sheet keeps padding-top 0. A sheet in a stack wears the same class and the same
|
|
2212
|
-
inset: the stack's own gap under the head is the card's colour, so the row still needs this paper.
|
|
2213
|
-
The paper takes the side of the controls' paper (--action-dark): on a dark sheet its words still turn to onlight. */
|
|
2214
|
-
.sheet--paper > .sheet__body {
|
|
2215
|
-
--card-bg: var(--action-bg);
|
|
2216
|
-
--dark: var(--action-dark);
|
|
2217
|
-
background: var(--card-bg);
|
|
2218
|
-
color: var(--card-ink);
|
|
2219
|
-
padding-top: var(--sp-6);
|
|
2220
|
-
}
|
|
2221
|
-
.sheet--paper > .card__foot { --card-bg: var(--action-bg); --dark: var(--action-dark); --card-foot-ink: var(--card-ink); }
|
|
2222
1986
|
.sheet__handle--dots {
|
|
2223
1987
|
--_dot: var(--sp-1);
|
|
2224
1988
|
--_step: calc(var(--_dot) * 2.5);
|
|
@@ -2258,42 +2022,6 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2258
2022
|
.sheet__handle:focus-visible { outline: var(--focus); outline-offset: var(--sp-2); }
|
|
2259
2023
|
.sheet.is-dragging .sheet__handle { cursor: grabbing; }
|
|
2260
2024
|
|
|
2261
|
-
/* the head — a title row at least --tap tall, either kind, so the peek strip
|
|
2262
|
-
(--sheet-peek) is the same for every sheet:
|
|
2263
|
-
- in a step it is a plain card head (card.css): the heading left, the
|
|
2264
|
-
contextual thing at the far right
|
|
2265
|
-
- .sheet__head is the stage sheet's three-column head: a round button,
|
|
2266
|
-
the centred title and sub, a round button
|
|
2267
|
-
- a label .row with its .check / .toggle may be the head when the sheet's
|
|
2268
|
-
whole ask is that switch: peek shows it (a row is --tap tall plus its own
|
|
2269
|
-
padding; the strip cuts in that padding) — card #67's "ไม่อยู่บ้าน" */
|
|
2270
|
-
.sheet > .card__head { --card-head-min-h: var(--sheet-head-h); }
|
|
2271
|
-
/* a sheet's title is ONE line, always (Lh 2026-09-28, timebank #153: "ข้อกำหนดและเงื่อนไขการใช้งาน" wrapped to two lines at 390px) — the
|
|
2272
|
-
thing at its end keeps its place beside it; a caption still takes its own row. A title too long for the line RUNS sideways
|
|
2273
|
-
like a song title (Lh 2026-10-03, as the StackSheet's — it was cut with …, and the end of it could never be read): the Sheet
|
|
2274
|
-
measures --_over, the width it overflows by, and sets .is-long; one way — it waits, runs to its end, waits, and starts again
|
|
2275
|
-
from the first letter. The move is text-indent: the heading is the app's own element, there is no inner box to slide.
|
|
2276
|
-
Before the Sheet has measured, and where motion is off, it is cut with …. */
|
|
2277
|
-
.sheet > .card__head:not(:has(> :is(.t-caption, .t-body))) { --card-head-wrap: nowrap; }
|
|
2278
|
-
.sheet > .card__head > :is(h1, h2, h3):first-child, .sheet__title { white-space: nowrap; overflow-x: clip; overflow-y: visible; text-overflow: ellipsis; min-width: 0; } /* clip SIDEWAYS only: hidden cut the Thai tone marks over the line */
|
|
2279
|
-
.sheet > .card__head > :is(h1, h2, h3):first-child.is-long, .sheet__title.is-long {
|
|
2280
|
-
text-overflow: clip;
|
|
2281
|
-
animation: sheet-title-run var(--sheet-title-run-time, var(--_run, var(--motion-run))) var(--ease-in-out) infinite; /* --_run: from the overflow, 30px a second + the pauses */
|
|
2282
|
-
}
|
|
2283
|
-
@keyframes sheet-title-run { 0%, 20% { text-indent: 0; } 85%, 100% { text-indent: calc(-1 * var(--_over)); } }
|
|
2284
|
-
@media (prefers-reduced-motion: reduce) {
|
|
2285
|
-
.sheet > .card__head > :is(h1, h2, h3):first-child.is-long, .sheet__title.is-long { animation: none; text-overflow: ellipsis; }
|
|
2286
|
-
}
|
|
2287
|
-
.sheet__head {
|
|
2288
|
-
display: grid;
|
|
2289
|
-
grid-template-columns: var(--tap-sm) 1fr var(--tap-sm);
|
|
2290
|
-
align-items: center;
|
|
2291
|
-
gap: var(--sp-3);
|
|
2292
|
-
min-height: var(--tap);
|
|
2293
|
-
text-align: center;
|
|
2294
|
-
}
|
|
2295
|
-
.sheet__title { font: var(--sheet-title-font, var(--type-h2)); letter-spacing: var(--track-h2); margin: 0; }
|
|
2296
|
-
.sheet__sub { font: var(--sheet-sub-font, var(--type-caption)); color: var(--sheet-sub-ink, var(--card-muted)); }
|
|
2297
2025
|
|
|
2298
2026
|
/* ============================================================
|
|
2299
2027
|
.sheet-stage — the overlay stage: a page-height box the sheet
|
|
@@ -2440,11 +2168,11 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2440
2168
|
}
|
|
2441
2169
|
|
|
2442
2170
|
/* ---- the map IN FLOW (Lh 2026-10-17): `.map--inline` — a box in a card, or the whole of a sheet's body ----
|
|
2443
|
-
<div class="
|
|
2171
|
+
<div class="body"><div class="map map--inline"><div>…the engine…</div><label class="map-pick" …>…</label>…
|
|
2444
2172
|
<span class="map__ring" …></span></div></div>
|
|
2445
2173
|
Choosing where to meet without leaving the sheet: the open sheet becomes the map and its head stays on top (a stage
|
|
2446
2174
|
behind a half sheet covers the head and changes the look). No stage, so no band and no bar: the ring is at the centre
|
|
2447
|
-
of the map's OWN box and the hint at its own top. In a card it is a rounded media box; as a
|
|
2175
|
+
of the map's OWN box and the hint at its own top. In a card it is a rounded media box; as a sheet's Body's only child it
|
|
2448
2176
|
fills the body (the part above the foot), however far the sheet slid. */
|
|
2449
2177
|
.map--inline {
|
|
2450
2178
|
--_top: 0rem;
|
|
@@ -2455,8 +2183,8 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2455
2183
|
overflow: hidden;
|
|
2456
2184
|
}
|
|
2457
2185
|
.map--bleed { margin-inline: calc(-1 * var(--card-pad, 0rem)); border-radius: 0; } /* edge to edge is a band, and a band has no corner; --map-radius is for the box in the inset */
|
|
2458
|
-
|
|
2459
|
-
.
|
|
2186
|
+
/* a map that is a body's only child fills it; the body turns to a column for it (parts.css) */
|
|
2187
|
+
.body > .map--inline:only-child { flex: 1 0 auto; }
|
|
2460
2188
|
|
|
2461
2189
|
/* ---- map pick: a place on the map the member taps to choose it (Lh 2026-10-17) ----
|
|
2462
2190
|
<label class="map-pick" style="top: 30%; left: 40%"><input type="radio" name="meet" value="library">
|
|
@@ -2545,7 +2273,6 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2545
2273
|
the form's own spacing, from the top (never spread or centred: the keyboard needs the room under it); the next steps wait in a pile at the
|
|
2546
2274
|
bottom of the body, each its title line. Every step has a thin rule on top. A step opens and folds as a 1fr ↔ 0fr grid row, so the pile rises and
|
|
2547
2275
|
falls — no height is written. Nothing fades: done and next read at full ink. */
|
|
2548
|
-
.sheet__body:has(> .sheet-steps) { display: flex; flex-direction: column; }
|
|
2549
2276
|
.sheet-steps { flex-shrink: 0; min-height: calc(100% + var(--kb, 0rem)); /* the keyboard's height more: the pile of next steps stays under the keyboard, it never rises with it */ display: flex; flex-direction: column; touch-action: pan-y; position: relative; }
|
|
2550
2277
|
.sheet-steps__holder { position: absolute; top: 0; left: 0; width: var(--browser-text); height: var(--browser-text); padding: 0; border: 0; opacity: 0; pointer-events: none; font-size: var(--browser-text); } /* holds the cursor (and the phone's keyboard) while a step folds; font 1rem = the browser's own size, so iOS does not zoom to it */
|
|
2551
2278
|
.sheet-steps__track { list-style: none; margin: 0; padding: 0 0 var(--sheet-steps-end, var(--sp-6)); flex: 1; /* room under the LAST step: scrolled to the end it never touches the foot's button (Lh 2026-09-28, #153) */ display: flex; flex-direction: column; }
|
|
@@ -2581,7 +2308,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2581
2308
|
.sheet-step__check { margin-inline-start: auto; }
|
|
2582
2309
|
/* a step's child that bleeds (ChipRow bleed, MapArea bleed, a Banner) reaches the SHEET's edges (Lh 2026-10-19, the ask sheet's
|
|
2583
2310
|
จุดนัด step: the map edge to edge under the step's buttons). The fold's clip is the step body's box, which sat inside the sheet's
|
|
2584
|
-
inset, so the body takes that inset back and pads by it again, the way .
|
|
2311
|
+
inset, so the body takes that inset back and pads by it again, the way a sheet's .body does; the inner keeps its own box and its own
|
|
2585
2312
|
inset (--sheet-step-inner-pad-x: the inset BEYOND the sheet's) and publishes the whole, the sheet's plus its own, as --card-pad,
|
|
2586
2313
|
so a .bleed cancels it exactly. The sum is computed on the body, before the inner's --card-pad takes over; outside a card there is
|
|
2587
2314
|
no --card-pad and the step keeps its own inset (0px, as .bleed reads it). The inner reads the knob itself, not the sum: a theme's
|
|
@@ -2598,61 +2325,22 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2598
2325
|
/* ==== the step bar answers a press, as PRESS in actions.css answers every other control (#62: a block is written in its own file) ==== */
|
|
2599
2326
|
.sheet-step:has(> .sheet-step__go:active) { opacity: var(--press-dim); } /* the step bar's button is invisible over it: the bar answers */
|
|
2600
2327
|
|
|
2601
|
-
/* ==== a body that holds only an EmptyState stands it at --empty-state-at of its room, as a Step does (step.css) (#62: a block is written in its own file) ==== */
|
|
2602
|
-
.sheet__body:has(> .empty-state:only-child) { display: flex; flex-direction: column; gap: 0; }
|
|
2603
|
-
.sheet__body:has(> .empty-state:only-child)::before { content: ""; flex: calc(var(--empty-state-at, 0) * 5) 1 0; }
|
|
2604
|
-
.sheet__body:has(> .empty-state:only-child)::after { content: ""; flex: calc(5 - var(--empty-state-at, 0) * 5) 1 0; }
|
|
2605
2328
|
|
|
2606
|
-
/* ---- where it sits in what stack.css draws (docs/reference.md rule 15) ---- */
|
|
2607
|
-
/* a pull in the content, already at the top: the words move down, the card stays. --_refresh is the finger, private.
|
|
2608
|
-
A paper body adds its own --sp-6 on top of this (the rule below): the stack's gap under the head is the
|
|
2609
|
-
card's colour, so without the paper's inset the first row sits on that seam. */
|
|
2610
|
-
.sheet-stack > .card > .sheet__body { padding-top: var(--_refresh, 0rem); transition: padding-top var(--motion-sheet) var(--ease); }
|
|
2611
|
-
/* the head's band is as slim as it can be (Lh 2026-10-06: 20 over · 48 head · 20 under read as a heavy bar): the paper starts
|
|
2612
|
-
--sp-3 under the head, not a whole --card-gap (--sp-2 at first; Lh added 4 the same day). The body is pulled up by the difference — the card's gap is left alone, the
|
|
2613
|
-
stack's step and the body's own rows read it. */
|
|
2614
|
-
.sheet-stack > .card.sheet--paper > .sheet__body {
|
|
2615
|
-
margin-top: calc(var(--sp-3) - var(--card-gap));
|
|
2616
|
-
padding-top: calc(var(--sp-6) + var(--_refresh, 0rem));
|
|
2617
|
-
transition: padding-top var(--motion-sheet) var(--ease), background-color 0s var(--ease-linear);
|
|
2618
|
-
}
|
|
2619
|
-
/* a pull follows the finger at once, on paper too: the rule above is as strong as the stack's own `is-refreshing` one and comes later */
|
|
2620
|
-
.sheet-stack > .card.sheet--paper > .sheet__body.is-refreshing { transition: none; }
|
|
2621
|
-
/* a closed paper sheet's body stays clear (Lh 2026-10-06). The next sheet's round top does not
|
|
2622
|
-
cover the corners, and a paper body showed there beside the head. Clear, the card's own colour
|
|
2623
|
-
shows in that pocket. Open, the body is paper, and the first row sits --sp-6 down, the same paper
|
|
2624
|
-
inset a single paper sheet keeps: the flex gap under the head is the card's colour, so the row
|
|
2625
|
-
would otherwise sit on that seam. A pull adds --_refresh on top of the inset. On the way back
|
|
2626
|
-
into the stack the card colour fades in quickly (--motion-quick) and that fade ends with the
|
|
2627
|
-
sheet's own slide (--motion-sheet, plus the same stagger), so the corner is the head colour
|
|
2628
|
-
at the moment the sheet stops. Rising, the body is paper at once. */
|
|
2629
|
-
.sheet-stack > .card.sheet--paper:not(.is-open) > .sheet__body {
|
|
2630
|
-
background-color: transparent;
|
|
2631
|
-
transition:
|
|
2632
|
-
padding-top var(--motion-sheet) var(--ease),
|
|
2633
|
-
background-color var(--motion-quick) var(--ease) calc(var(--stagger, 0) * var(--motion-stagger) + var(--motion-sheet) - var(--motion-quick));
|
|
2634
|
-
}
|
|
2635
|
-
@media (prefers-reduced-motion: reduce) { .sheet-stack > .card.sheet--paper:not(.is-open) > .sheet__body {
|
|
2636
|
-
transition: padding-top var(--motion-sheet) var(--ease), background-color 0s var(--ease-linear);
|
|
2637
|
-
} }
|
|
2638
2329
|
/* ---- where it sits in what step.css draws (docs/reference.md rule 15) ---- */
|
|
2639
2330
|
.screen--fill > .appbar + .sheet-stage { margin-top: 0; }
|
|
2640
2331
|
|
|
2641
|
-
/* ---- where it sits in what stack.css draws: a body pulled to refresh holds still (docs/reference.md rule 15) ---- */
|
|
2642
|
-
.sheet-stack > .card > .sheet__body.is-refreshing { transition: none; }
|
|
2643
|
-
|
|
2644
2332
|
/* ---- css/step.css — .step: one screen, one task — card, optional sheet, bar outside ---- */
|
|
2645
2333
|
/* ============================================================
|
|
2646
2334
|
cardds/step.css — .step: one screen, one task.
|
|
2647
2335
|
What the member reads (words on the base — not a card, Lh 2026-09-16), what the member does when the
|
|
2648
2336
|
step asks for it (a sheet, sheet.css). The move: a page of words has
|
|
2649
2337
|
an .action-bar (actions.css) OUTSIDE the step, below it — the base's;
|
|
2650
|
-
a step with a sheet has none: the sheet's own .
|
|
2338
|
+
a step with a sheet has none: the sheet's own .foot finishes it
|
|
2651
2339
|
(see "LAYERS" below).
|
|
2652
2340
|
|
|
2653
2341
|
<section class="step">
|
|
2654
2342
|
<section class="page">…the words…</section> ← first
|
|
2655
|
-
<article class="card sheet sheet--half">…the controls… <div class="
|
|
2343
|
+
<article class="card sheet sheet--half">…the controls… <div class="foot">…</div></article> ← last, optional
|
|
2656
2344
|
</section>
|
|
2657
2345
|
<div class="action-bar">…</div> ← the screen's last child, only when there is no sheet
|
|
2658
2346
|
|
|
@@ -2704,7 +2392,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2704
2392
|
.screen > .step:first-child, .screen--lead > .step { --_lead: var(--screen-lead, 15cqh); } /* top="lead" says it; a Step first says it too */
|
|
2705
2393
|
|
|
2706
2394
|
/* LAYERS (Lh, 2026-09-20): the base, then the sheet over it, then the top bar. A bar is the BASE's — the
|
|
2707
|
-
move of a page of words — so a step with a sheet has NO bar: the sheet finishes on its own .
|
|
2395
|
+
move of a page of words — so a step with a sheet has NO bar: the sheet finishes on its own .foot
|
|
2708
2396
|
(sheet.css), and a form lives whole in ONE sheet, never item by item on the base. That is how cardds's
|
|
2709
2397
|
own screens are composed (the guide); the framework does not police it — a component never changes
|
|
2710
2398
|
because another one is there. */
|
|
@@ -2897,7 +2585,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2897
2585
|
}
|
|
2898
2586
|
|
|
2899
2587
|
/* 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 */
|
|
2900
|
-
.
|
|
2588
|
+
.head:has(> .tile-badge:first-child + .chip-row) > .tile-badge--stretch:first-child { grid-column: 1; grid-row: 1; max-block-size: none; }
|
|
2901
2589
|
|
|
2902
2590
|
/* corner badge: pin a tile badge on media (rating, price) — .card__media is relative */
|
|
2903
2591
|
.tile-badge--corner { position: absolute; right: var(--sp-3); bottom: var(--sp-3); }
|
|
@@ -3020,7 +2708,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3020
2708
|
/* a button may carry a WORD beside (or instead of) its icon — two named sides, ชาย · หญิง (Lh 2026-10-02): the label's look, one line */
|
|
3021
2709
|
.icon-btn-group > .icon-btn { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); padding-inline: var(--sp-2); font: var(--type-label); font-size: var(--fs-sm); white-space: nowrap; }
|
|
3022
2710
|
.icon-btn-group > .icon-btn + .icon-btn { border-inline-start: var(--border-w) solid var(--icon-btn-group-rule, var(--icon-btn-group-border, var(--outline))); }
|
|
3023
|
-
.
|
|
2711
|
+
.foot > .icon-btn-group { flex: 1 1 0; }
|
|
3024
2712
|
/* --vertical: the buttons one over the other, ONE button wide — at a row's end, where a panel across would take the words' room */
|
|
3025
2713
|
.icon-btn-group--vertical { flex-direction: column; flex: none; width: var(--tap); }
|
|
3026
2714
|
.icon-btn-group--vertical > .icon-btn { flex: 1 0 auto; min-height: var(--tap); }
|
|
@@ -3030,7 +2718,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3030
2718
|
does not stretch it: a foot's `flex: 1 1 0` is undone for it below, as the foot undoes it for `.btn--form` (card.css). */
|
|
3031
2719
|
.icon-btn-group--form { flex: 0 1 auto; justify-self: center; margin-inline: auto; } /* no align-self: a sheet's foot stands its buttons on the bottom edge by `align-items: end` */
|
|
3032
2720
|
.icon-btn-group--form > .icon-btn { flex: 0 1 auto; width: auto; min-width: var(--icon-btn-group-form-min-w, var(--tap)); }
|
|
3033
|
-
.
|
|
2721
|
+
.foot > :is(.icon-btn-group--form, .icon-btn-line) { flex: 0 1 auto; }
|
|
3034
2722
|
/* --labelled: the label's words, then the panel, ONE line in the middle (the words are read, not pressed: no frame, plain ink); too narrow → the words wrap
|
|
3035
2723
|
above the panel, both centred */
|
|
3036
2724
|
.icon-btn-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--icon-btn-group-gap, var(--sp-3)); min-width: 0; justify-self: center; margin-inline: auto; }
|
|
@@ -3281,7 +2969,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3281
2969
|
|
|
3282
2970
|
|
|
3283
2971
|
/* ---- action note (Lh 2026-09-24): the main button's place, the main button's size, but ON the ground — no fill, no border, no
|
|
3284
|
-
rounding — one line of muted words, an inline icon allowed; nothing to press. In a
|
|
2972
|
+
rounding — one line of muted words, an inline icon allowed; nothing to press. In a Foot or an ActionBar row it takes the
|
|
3285
2973
|
button's share (the whole width), so a foot or a bar keeps its height whether it holds a button or the note. ---- */
|
|
3286
2974
|
.action-note {
|
|
3287
2975
|
flex: 1 1 0;
|
|
@@ -3351,7 +3039,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3351
3039
|
.float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
|
|
3352
3040
|
a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove):not(.link):is(:disabled, [aria-disabled="true"]),
|
|
3353
3041
|
:where(.chip--pick, .tile--pick, .mood__opt, .toggle-field, label.btn):has(:disabled) { opacity: var(--off); }
|
|
3354
|
-
.sheet-stack--tap > .card > .
|
|
3042
|
+
.sheet-stack--tap > .card > .head > :is(h1, h2, h3):focus-visible { outline: var(--focus); outline-offset: var(--sp-1); } /* the keyboard's way into a stack sheet */
|
|
3355
3043
|
@media (prefers-reduced-motion: reduce) { :root { --press-scale: 1; } } /* the give goes; the dim, the shade and the focus ring stay */
|
|
3356
3044
|
|
|
3357
3045
|
/* ==== the chip a choice draws: picked (choice.css drives it with its input), and --sign (#62: a block is written in its own file) ==== */
|
|
@@ -3373,14 +3061,14 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3373
3061
|
|
|
3374
3062
|
/* ---- where it sits in what card.css draws (docs/reference.md rule 15) ---- */
|
|
3375
3063
|
/* a head's ChipRow takes a line of its own under the title: at most two lines of chips, a chip's words cut with an ellipsis */
|
|
3376
|
-
.
|
|
3064
|
+
.head > .chip-row { flex: 1 1 100%; order: 2; max-height: calc(2 * (var(--fs-sm) * var(--chip-sm-line, var(--lh-body)) + 2 * var(--chip-sm-pad-y, var(--sp-0)) + 2 * var(--border-w)) + var(--sp-2)); overflow: hidden; }
|
|
3377
3065
|
/* …beside a date that leads the head (card.css) they stand in the date's row, every chip in sight: the meeting place may take a line of its own */
|
|
3378
|
-
.
|
|
3379
|
-
.
|
|
3380
|
-
.
|
|
3066
|
+
.head:has(> .tile-badge:first-child + .chip-row) > .chip-row { grid-column: 2; grid-row: 1; max-height: none; }
|
|
3067
|
+
.head > .chip-row > .chip { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
3068
|
+
.foot > .btn { flex: 1 1 0; min-width: 0; }
|
|
3381
3069
|
/* …unless the button says its own size: `Btn form` is as wide as its words in a foot too, centred (Lh 2026-10-10: one button filling
|
|
3382
3070
|
a card's foot read too big — which button a card wears is the project's choice, so the foot must not undo it) */
|
|
3383
|
-
.
|
|
3071
|
+
.foot > .btn--form { flex: 0 1 auto; }
|
|
3384
3072
|
/* the page dots under the card sit centred under it — the indicator belongs
|
|
3385
3073
|
with the page that changes, never in the bar (Lh, 2026-09-12) */
|
|
3386
3074
|
.screen__centre > .pager__at { justify-self: center; }
|
|
@@ -4161,14 +3849,14 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4161
3849
|
/* ---- css/lists.css — row, rows, key-value, kv grid, timeline, legend, link ---- */
|
|
4162
3850
|
/* ============================================================
|
|
4163
3851
|
cardds/lists.css — frameless rows and pairs INSIDE a card:
|
|
4164
|
-
row (lead ·
|
|
4165
|
-
timeline · legend · link
|
|
3852
|
+
row (its parts, lead · words · end, are parts.css) · key-value
|
|
3853
|
+
rows · kv grid · timeline · legend · link
|
|
4166
3854
|
A row inside a card has no boundary of its own; .rows draws
|
|
4167
3855
|
hairlines between rows. A row that IS a card = .card--row.
|
|
4168
3856
|
============================================================ */
|
|
4169
3857
|
|
|
4170
3858
|
/* ---- row: leading visual · title + meta · trailing control ----
|
|
4171
|
-
<div class="row"><span class="avatar">A</span><
|
|
3859
|
+
<div class="row"><span class="avatar">A</span><span class="words"><span class="words__title">Alice Kau</span><span class="words__meta">Owner</span></span><button class="icon-btn icon-btn--sm">›</button></div> */
|
|
4172
3860
|
.row {
|
|
4173
3861
|
display: flex;
|
|
4174
3862
|
align-items: center;
|
|
@@ -4181,21 +3869,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4181
3869
|
/* no padding on a row (Lh 2026-09-16): padding is for room, not for spreading.
|
|
4182
3870
|
Space BETWEEN rows is .rows' gap; a lone row as card content takes the card's
|
|
4183
3871
|
gap. (.row--flush, which zeroed the old padding, is gone — every row is flush.) */
|
|
4184
|
-
.row__lead {
|
|
4185
|
-
width: var(--row-lead-size, var(--tap));
|
|
4186
|
-
height: var(--row-lead-size, var(--tap));
|
|
4187
|
-
flex: none;
|
|
4188
|
-
border-radius: var(--row-lead-radius, var(--r-control));
|
|
4189
|
-
border: var(--border-w) solid var(--row-lead-border, var(--outline));
|
|
4190
|
-
display: grid;
|
|
4191
|
-
place-items: center;
|
|
4192
|
-
}
|
|
4193
|
-
.row__body { flex: 1; min-width: 0; display: grid; gap: var(--row-body-gap, var(--sp-0)); }
|
|
4194
|
-
.row__title { font: var(--row-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) */
|
|
4195
|
-
.row__meta { font: var(--row-meta-font, var(--type-caption)); color: var(--row-meta-ink, var(--card-muted)); display: flex; align-items: center; gap: var(--row-meta-gap, var(--sp-1)); }
|
|
4196
|
-
.row__end { margin-left: auto; text-align: right; display: grid; gap: var(--row-end-gap, var(--sp-0)); justify-items: end; flex: none; }
|
|
4197
3872
|
.row--lg { min-height: var(--row-lg-min-h, var(--fab)); } /* menu rows: a taller target, round arrow at the end; .rows gives them more air */
|
|
4198
|
-
.row--lg .row__title { font: var(--fw-bold) var(--fs-lg) / var(--lh-h1) var(--font-display); }
|
|
4199
3873
|
/* a row that EXPANDS (Lh 2026-09-22): the row is a <details>' summary, what it shows comes out under it —
|
|
4200
3874
|
who liked a postcard, the rest of a list. An end chevron turns when open. The app owns the list.
|
|
4201
3875
|
<details class="row-expand"><summary class="row">…lead · body · end…</summary><div class="row-expand__more">…</div></details> */
|
|
@@ -4210,7 +3884,6 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4210
3884
|
pointer-events off here, aria-disabled from the markup. The tick is the .check's checked look
|
|
4211
3885
|
at --tap-sm, but not an input: nothing to press. */
|
|
4212
3886
|
.row--done { pointer-events: none; cursor: default; }
|
|
4213
|
-
.row--done .row__title { color: var(--card-muted); }
|
|
4214
3887
|
.row__done {
|
|
4215
3888
|
width: var(--row-done-size, var(--tap-sm));
|
|
4216
3889
|
height: var(--row-done-size, var(--tap-sm));
|
|
@@ -4373,6 +4046,388 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4373
4046
|
/* ---- where it sits in what sheet.css draws (docs/reference.md rule 15) ---- */
|
|
4374
4047
|
.sheet-step__inner > .link { justify-self: center; } /* a link of its own row in a step (skip, "change number", "set PIN again"): centred under the step, as the skip (Lh 2026-09-25) */
|
|
4375
4048
|
|
|
4049
|
+
/* ---- css/parts.css — the parts of a line: lead, words, end — a Row's and a row card's children ---- */
|
|
4050
|
+
/* ============================================================
|
|
4051
|
+
cardds/parts.css — the parts of a LINE: lead · words · end.
|
|
4052
|
+
A Row (lists.css) and a row card (.card--row, card.css) are
|
|
4053
|
+
both made of them, as their direct children in that order.
|
|
4054
|
+
An outer governs a part only through the part's knobs or a
|
|
4055
|
+
selector naming both, written here (Lh 2026-10-21).
|
|
4056
|
+
<div class="row"><span class="lead"><svg class="icon"/></span><span class="words"><span class="words__title">Alice Kau</span><span class="words__meta">Owner</span></span><span class="end"><span class="t-title">+1.0 h</span><span class="t-caption t-muted">Tue</span></span></div>
|
|
4057
|
+
============================================================ */
|
|
4058
|
+
|
|
4059
|
+
/* ---- lead: the outlined box at the start of a line ---- */
|
|
4060
|
+
.lead {
|
|
4061
|
+
width: var(--lead-size, var(--tap));
|
|
4062
|
+
height: var(--lead-size, var(--tap));
|
|
4063
|
+
flex: none;
|
|
4064
|
+
border-radius: var(--lead-radius, var(--r-control));
|
|
4065
|
+
border: var(--border-w) solid var(--lead-border, var(--outline));
|
|
4066
|
+
display: grid;
|
|
4067
|
+
place-items: center;
|
|
4068
|
+
}
|
|
4069
|
+
/* in a row card or a feed card's head: the small box in the card's own ink, a number or an initial in label type */
|
|
4070
|
+
:is(.card--row, .feed-card > .head) > .lead {
|
|
4071
|
+
width: var(--lead-size, var(--tap-sm));
|
|
4072
|
+
height: var(--lead-size, var(--tap-sm));
|
|
4073
|
+
border-color: var(--lead-border, currentColor);
|
|
4074
|
+
font: var(--lead-font, var(--type-label));
|
|
4075
|
+
}
|
|
4076
|
+
.feed-card > .head:has(> .t-caption) > .lead { grid-row: span 2; }
|
|
4077
|
+
|
|
4078
|
+
/* ---- words: the title over its meta, taking the room between the lead and the end ---- */
|
|
4079
|
+
.words { flex: 1; display: grid; gap: var(--words-gap, var(--sp-0)); }
|
|
4080
|
+
.row > .words { min-width: 0; }
|
|
4081
|
+
.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) */
|
|
4082
|
+
.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)); }
|
|
4083
|
+
.row--lg > .words > .words__title { font: var(--fw-bold) var(--fs-lg) / var(--lh-h1) var(--font-display); }
|
|
4084
|
+
.row--done > .words > .words__title { color: var(--card-muted); }
|
|
4085
|
+
|
|
4086
|
+
/* ---- end: the value over its caption, right-aligned at the end of a line ---- */
|
|
4087
|
+
.end { margin-left: auto; text-align: right; display: grid; gap: var(--end-gap, var(--sp-0)); justify-items: end; }
|
|
4088
|
+
.row > .end { flex: none; }
|
|
4089
|
+
|
|
4090
|
+
/* ---- head: the first row of a card, a sheet and a stack sheet. A lead, the Words, chips, an end, as its direct children.
|
|
4091
|
+
<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>
|
|
4092
|
+
The Words of a head are its title and its meta, flat in the head (no .words box round them): the title and the end share the first
|
|
4093
|
+
row, the meta takes a row of its own under both (base.css `order: 1`). An outer governs a head through the head's knobs or a selector
|
|
4094
|
+
naming both, written below under the outer's name (Lh 2026-10-21). ---- */
|
|
4095
|
+
/* header row: title left, floating action right — centered, since the
|
|
4096
|
+
trailing control (chip/badge/icon-btn/link) is almost always taller than
|
|
4097
|
+
a single line of title text; top-aligning them left the control visually
|
|
4098
|
+
low against the title's optical center. A head with a genuinely tall,
|
|
4099
|
+
multi-line title can opt back out with .head--top. */
|
|
4100
|
+
.head {
|
|
4101
|
+
display: flex;
|
|
4102
|
+
flex-wrap: var(--head-wrap, wrap); /* the caption takes a line of its own — no wrapper div */
|
|
4103
|
+
align-items: center;
|
|
4104
|
+
justify-content: space-between;
|
|
4105
|
+
column-gap: var(--head-col-gap, var(--sp-3));
|
|
4106
|
+
row-gap: var(--head-row-gap, var(--sp-0));
|
|
4107
|
+
min-height: var(--head-min-h, auto);
|
|
4108
|
+
}
|
|
4109
|
+
.head--top { align-items: flex-start; }
|
|
4110
|
+
|
|
4111
|
+
/* ---- the card skeleton: head · content · foot ----
|
|
4112
|
+
Every card is a head (the heading left, hints / actions / a more-menu at
|
|
4113
|
+
the far right), its content, and an optional foot of action buttons.
|
|
4114
|
+
The head's leading child — the heading, or the div that wraps heading and
|
|
4115
|
+
caption — takes the room, so a heading with nothing at the far right runs
|
|
4116
|
+
all the way across; whatever trails it hugs its own width. Only the
|
|
4117
|
+
heading (or the div that wraps it) is that leading child: a control that
|
|
4118
|
+
leads a custom head — a chip, an avatar, a tile badge — keeps its own
|
|
4119
|
+
width, else the rule stretched a chip into a bar and an avatar into an
|
|
4120
|
+
ellipse (two agents and the wallet demo caught it, 2026-09-10). */
|
|
4121
|
+
.head > :is(h1, h2, h3, div, p):first-child { flex: 1; min-width: 0; }
|
|
4122
|
+
|
|
4123
|
+
/* Skeleton head — the heading in a card's OWN head, and only there.
|
|
4124
|
+
The heading wraps, no squeeze, up to three lines and cut there with an
|
|
4125
|
+
ellipsis (Lh 2026-10-21: "มันควรจะ max สามบรรทัด" — a request's title ran to
|
|
4126
|
+
four lines on a phone; reverses 2026-09-16's "no clamp"). The count is the knob
|
|
4127
|
+
--head-title-lines. The group that holds heading ·
|
|
4128
|
+
caption is the head's own wrapping row (above) — no wrapper element, no
|
|
4129
|
+
height, only the row gap. */
|
|
4130
|
+
.head :is(h1, h2, h3) {
|
|
4131
|
+
overflow-wrap: anywhere;
|
|
4132
|
+
display: -webkit-box;
|
|
4133
|
+
-webkit-box-orient: vertical;
|
|
4134
|
+
-webkit-line-clamp: var(--head-title-lines, 3);
|
|
4135
|
+
line-clamp: var(--head-title-lines, 3);
|
|
4136
|
+
overflow: hidden;
|
|
4137
|
+
padding-block-start: var(--_mark-room); /* a stacked Thai mark rises over the first line's box: room inside the clip, given back outside */
|
|
4138
|
+
margin-block-start: calc(-1 * var(--_mark-room));
|
|
4139
|
+
--_mark-room: 0.2em;
|
|
4140
|
+
}
|
|
4141
|
+
|
|
4142
|
+
.head > .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) */
|
|
4143
|
+
.page > .head > 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) */
|
|
4144
|
+
.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 */
|
|
4145
|
+
|
|
4146
|
+
/* a stage sheet's head (`Head centre`): a round button · the centred title over its meta · a round button. The title and the meta
|
|
4147
|
+
stand in the middle column, the buttons span both rows; the 1fr rows keep the pair centred when a button is the taller */
|
|
4148
|
+
.head--centre {
|
|
4149
|
+
display: grid;
|
|
4150
|
+
grid-template-columns: var(--tap-sm) 1fr var(--tap-sm);
|
|
4151
|
+
grid-template-rows: 1fr auto auto 1fr;
|
|
4152
|
+
align-items: center;
|
|
4153
|
+
column-gap: var(--sp-3);
|
|
4154
|
+
row-gap: 0;
|
|
4155
|
+
min-height: var(--tap);
|
|
4156
|
+
text-align: center;
|
|
4157
|
+
}
|
|
4158
|
+
.head--centre > .words__title { grid-area: 2 / 2; }
|
|
4159
|
+
.head--centre > .words__meta { grid-area: 3 / 2; line-height: calc(var(--lh-body) * var(--fs-base)); } /* the meta stands on the body's line, as the sub did, an inline span in a line of the head's own type */
|
|
4160
|
+
.head--centre > :first-child:not(.words__title) { grid-area: 1 / 1 / -1 / 2; }
|
|
4161
|
+
.head--centre > :last-child:not(.words__title, .words__meta) { grid-area: 1 / 3 / -1 / 4; }
|
|
4162
|
+
|
|
4163
|
+
/* a Stamp in a card's head (a `Stamp` as the head's end): the words stand at the left, the stamp at the right BESIDE BOTH LINES — the heading and the
|
|
4164
|
+
caption pair up beside it, not the stamp beside the heading alone with the caption left under it. The stamp is its own size (--stamp-size,
|
|
4165
|
+
stamp.css); the head only places it.
|
|
4166
|
+
<div class="head"><h2 class="words__title t-h2">…</h2><span class="words__meta t-caption t-muted">…</span><span class="stamp">…</span></div> */
|
|
4167
|
+
.head:has(> .stamp) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
|
|
4168
|
+
.head:has(> .stamp) > :is(h1, h2, h3) { grid-column: 1; grid-row: 1; align-self: end; }
|
|
4169
|
+
|
|
4170
|
+
/* a head that LEADS with a date (Lh 2026-10-21, timebank's request card): a `Head` whose first child is a JourneyBadge and whose second is a
|
|
4171
|
+
ChipRow. The date stands at the left and the chips beside it, the two as tall as each other; the heading and its caption take the whole
|
|
4172
|
+
width under them, so the heading sits right over the words of the middle. The date is always as tall as the chips. The gap under the date row is --head-lead-gap; the date and the chips place themselves (journey.css, actions.css).
|
|
4173
|
+
<div class="head"><span class="tile-badge tile-badge--stretch">…</span><div class="chip-row">…</div><div><h2 class="words__title t-h1">…</h2>…</div></div> */
|
|
4174
|
+
.head:has(> .tile-badge:first-child + .chip-row) {
|
|
4175
|
+
display: grid;
|
|
4176
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
4177
|
+
align-items: center;
|
|
4178
|
+
row-gap: var(--head-lead-gap, var(--sp-3));
|
|
4179
|
+
}
|
|
4180
|
+
.head:has(> .tile-badge:first-child + .chip-row) > :nth-child(n + 3) { grid-column: 1 / -1; }
|
|
4181
|
+
|
|
4182
|
+
/* in a card with paper bands: the head and the foot are paper bands edge to edge, one look */
|
|
4183
|
+
:is(.card--bands, .card--bands > .card__face) > :is(.head, .foot) {
|
|
4184
|
+
--card-bg: var(--card-1-bg);
|
|
4185
|
+
--dark: var(--card-1-dark);
|
|
4186
|
+
background: var(--card-bg);
|
|
4187
|
+
color: var(--card-ink);
|
|
4188
|
+
margin-inline: calc(-1 * var(--card-pad));
|
|
4189
|
+
padding-inline: var(--card-pad);
|
|
4190
|
+
}
|
|
4191
|
+
:is(.card--bands, .card--bands > .card__face) > .head { margin-top: calc(-1 * var(--card-pad)); padding-block: var(--card-pad); }
|
|
4192
|
+
:is(.card--bands, .card--bands > .card__face) > .head { padding-block-end: var(--card-band-seam, var(--sp-2)); }
|
|
4193
|
+
/* the seam: the heading and the words under it read as ONE paragraph that changes colour at the band's edge (Lh 2026-10-21), so the room on
|
|
4194
|
+
each side of the head band's lower edge is --card-band-seam, not the card's padding and gap */
|
|
4195
|
+
:is(.card--bands, .card--bands > .card__face) > .head + * { margin-block-start: calc(var(--card-band-seam, var(--sp-2)) - var(--card-gap)); }
|
|
4196
|
+
|
|
4197
|
+
/* in a sheet stack */
|
|
4198
|
+
/* stack headers: uniform — [back?] title left, icons right, one height,
|
|
4199
|
+
same gap to content on every card */
|
|
4200
|
+
.sheet-stack > .card > .head {
|
|
4201
|
+
align-items: center;
|
|
4202
|
+
justify-content: flex-start;
|
|
4203
|
+
min-height: var(--tap);
|
|
4204
|
+
}
|
|
4205
|
+
.sheet-stack--display > .card > .head { align-items: start; min-height: 0; }
|
|
4206
|
+
.sheet-stack--tap > .card > .head { touch-action: none; }
|
|
4207
|
+
:is(.sheet-stack--tap > .card, .sheet-stack--tap > :not(.card, .sheet-stack__base) > .card) > .head {
|
|
4208
|
+
position: relative;
|
|
4209
|
+
padding-left: 0;
|
|
4210
|
+
transition: padding-left var(--motion-sheet) var(--ease);
|
|
4211
|
+
}
|
|
4212
|
+
.stack-sheet > .head { flex-wrap: nowrap; }
|
|
4213
|
+
.sheet-stack--tap > .card.is-open > .head:has(> .sheet-stack__back:not(.sheet-stack__back--end)) { padding-left: var(--stack-back-room, calc(var(--_back-size) + var(--sp-2))); }
|
|
4214
|
+
:is(.sheet-stack--tap > .card, .sheet-stack--tap > :not(.card, .sheet-stack__base) > .card) > .head:has(> .sheet-stack__back--end) { transition: padding-right var(--motion-sheet) var(--ease); }
|
|
4215
|
+
.sheet-stack--tap > .card.is-open > .head:has(> .sheet-stack__back--end) { padding-right: var(--stack-back-room, calc(var(--_back-size) + var(--sp-2))); }
|
|
4216
|
+
/* a stacked sheet is a control until it is open: its head is not text to select */
|
|
4217
|
+
.sheet-stack > .card > .head { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
|
|
4218
|
+
|
|
4219
|
+
/* in a sheet */
|
|
4220
|
+
/* the head — a title row at least --tap tall, either kind, so the peek strip
|
|
4221
|
+
(--sheet-peek) is the same for every sheet:
|
|
4222
|
+
- in a step it is a plain card head (card.css): the heading left, the
|
|
4223
|
+
contextual thing at the far right
|
|
4224
|
+
- `Head centre` is the stage sheet's three-column head: a round button,
|
|
4225
|
+
the centred title and meta, a round button
|
|
4226
|
+
- a label .row with its .check / .toggle may be the head when the sheet's
|
|
4227
|
+
whole ask is that switch: peek shows it (a row is --tap tall plus its own
|
|
4228
|
+
padding; the strip cuts in that padding) — card #67's "ไม่อยู่บ้าน" */
|
|
4229
|
+
.sheet > .head { --head-min-h: var(--sheet-head-h); }
|
|
4230
|
+
.sheet > .head:not(:has(> :is(.t-caption, .t-body))) { --head-wrap: nowrap; }
|
|
4231
|
+
|
|
4232
|
+
/* a sheet's title is ONE line, always (Lh 2026-09-28, timebank #153: "ข้อกำหนดและเงื่อนไขการใช้งาน" wrapped to two lines at 390px) — the
|
|
4233
|
+
thing at its end keeps its place beside it; a caption still takes its own row. A title too long for the line RUNS sideways
|
|
4234
|
+
like a song title (Lh 2026-10-03, as the StackSheet's — it was cut with …, and the end of it could never be read): the Sheet
|
|
4235
|
+
measures --_over, the width it overflows by, and sets .is-long; one way — it waits, runs to its end, waits, and starts again
|
|
4236
|
+
from the first letter. The move is text-indent: the heading is the app's own element, there is no inner box to slide.
|
|
4237
|
+
Before the Sheet has measured, and where motion is off, it is cut with …. */
|
|
4238
|
+
.sheet > .head > :is(.words__title, :is(h1, h2, h3):first-child) { white-space: nowrap; overflow-x: clip; overflow-y: visible; text-overflow: ellipsis; min-width: 0; } /* clip SIDEWAYS only: hidden cut the Thai tone marks over the line */
|
|
4239
|
+
.sheet > .head > :is(.words__title, :is(h1, h2, h3):first-child).is-long {
|
|
4240
|
+
text-overflow: clip;
|
|
4241
|
+
animation: sheet-title-run var(--sheet-title-run-time, var(--_run, var(--motion-run))) var(--ease-in-out) infinite; /* --_run: from the overflow, 30px a second + the pauses */
|
|
4242
|
+
}
|
|
4243
|
+
@keyframes sheet-title-run { 0%, 20% { text-indent: 0; } 85%, 100% { text-indent: calc(-1 * var(--_over)); } }
|
|
4244
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4245
|
+
.sheet > .head > :is(.words__title, :is(h1, h2, h3):first-child).is-long { animation: none; text-overflow: ellipsis; }
|
|
4246
|
+
}
|
|
4247
|
+
|
|
4248
|
+
/* in a stack sheet: the head is ONE line, always (Lh 2026-09-24) — the tabs keep their size, the TITLE gives. It never wraps, it runs sideways
|
|
4249
|
+
(StackSheet measures --_over, the width it overflows by, and sets .is-long; the run itself is stack.css's), one way: it waits, runs to the end,
|
|
4250
|
+
waits, and starts again from the first letter — like a song title. The head's line clamp (above) already cuts it, so no overflow is set here */
|
|
4251
|
+
.stack-sheet > .head > .words__title {
|
|
4252
|
+
flex: 1; min-width: 0; white-space: nowrap; overflow-wrap: normal;
|
|
4253
|
+
translate: 0 var(--stack-sheet-title-shift, -0.1em); /* FC Pride's line box carries more room above its letters than below: the
|
|
4254
|
+
letters sat ~0.1em under the middle of the back disc and the tabs — lifted onto it (Lh 2026-09-24) */
|
|
4255
|
+
}
|
|
4256
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4257
|
+
.stack-sheet > .head > .words__title.is-long { text-overflow: ellipsis; }
|
|
4258
|
+
}
|
|
4259
|
+
|
|
4260
|
+
/* in a feed card */
|
|
4261
|
+
.feed-card > .head { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; min-height: var(--feed-card-head-h, var(--tap)); }
|
|
4262
|
+
.feed-card > .head:has(> :is(.lead, .feed-card__lead)) { grid-template-columns: auto minmax(0, 1fr); } /* a Lead's own row of the head: parts.css */
|
|
4263
|
+
|
|
4264
|
+
/* ---- body: the content row, under the head and over the foot. What the member reads or fills in; in a sheet, a stack sheet
|
|
4265
|
+
and a modal the one part that scrolls. A grid column from the top, the card's rhythm inside.
|
|
4266
|
+
<div class="body">…controls, rows, small content cards…</div>
|
|
4267
|
+
Knobs --body-gap (the card's gap) and --body-pad-top (none; a paper sheet's inset). An outer governs a body through those
|
|
4268
|
+
knobs or a selector naming both, written below under the outer's name (Lh 2026-10-21). ---- */
|
|
4269
|
+
.body {
|
|
4270
|
+
display: grid;
|
|
4271
|
+
gap: var(--body-gap, var(--card-gap));
|
|
4272
|
+
align-content: start;
|
|
4273
|
+
min-height: 0;
|
|
4274
|
+
padding-top: var(--body-pad-top, 0rem);
|
|
4275
|
+
overflow-y: auto;
|
|
4276
|
+
overscroll-behavior: contain;
|
|
4277
|
+
}
|
|
4278
|
+
/* what a body holds alone: a map fills it, a SheetSteps runs its pile down it, an EmptyState stands at --empty-state-at of its room as in a Step (step.css) */
|
|
4279
|
+
.body:has(> .map--inline:only-child) { display: flex; flex-direction: column; }
|
|
4280
|
+
.body:has(> .sheet-steps) { display: flex; flex-direction: column; }
|
|
4281
|
+
.body:has(> .empty-state:only-child) { display: flex; flex-direction: column; gap: 0; }
|
|
4282
|
+
.body:has(> .empty-state:only-child)::before { content: ""; flex: calc(var(--empty-state-at, 0) * 5) 1 0; }
|
|
4283
|
+
.body:has(> .empty-state:only-child)::after { content: ""; flex: calc(5 - var(--empty-state-at, 0) * 5) 1 0; }
|
|
4284
|
+
|
|
4285
|
+
/* in a sheet and a stack sheet */
|
|
4286
|
+
/* everything under the head. Its scrollport runs to the card's side and bottom edges (reading --card-pad, the way .bleed does) so
|
|
4287
|
+
content scrolls clear of the edge rather than stopping inside the padding, and a .bleed strip inside it still reaches the edges.
|
|
4288
|
+
The outers are in a :where() so the body keeps the weight of one class, as the state rules below expect. */
|
|
4289
|
+
:where(.sheet, .sheet-stack .card) > .body {
|
|
4290
|
+
flex: 1;
|
|
4291
|
+
margin-inline: calc(-1 * var(--card-pad));
|
|
4292
|
+
padding-inline: var(--card-pad);
|
|
4293
|
+
/* the part of the sheet that slid under the box's bottom edge cannot be
|
|
4294
|
+
seen, and the scroller has to know that: scroll-padding is exactly "the
|
|
4295
|
+
obscured part of my scrollport", so a focused field, scrollIntoView and
|
|
4296
|
+
anchor navigation all land a control in the visible part, never under
|
|
4297
|
+
the cut. A length from the box's container units (--_box), since the
|
|
4298
|
+
cut is a share of the SHEET's height, not of the body's. */
|
|
4299
|
+
scroll-padding-bottom: var(--_cover);
|
|
4300
|
+
/* …and its content has to be able to LEAVE that part: the same length as bottom padding, so the last row
|
|
4301
|
+
scrolls up to the visible edge at half and 3q as it does at full — everything between the head and the
|
|
4302
|
+
foot can be reached at any state (Lh, 2026-09-21). Padding, not a shorter box: nothing that shows moves
|
|
4303
|
+
when the state changes, only how far the body scrolls; a child that fills the body (a composer) fills
|
|
4304
|
+
the part that shows. */
|
|
4305
|
+
padding-bottom: var(--_cover);
|
|
4306
|
+
}
|
|
4307
|
+
.sheet:has(> .foot) > .body { margin-bottom: calc(var(--_foot) - var(--card-pad)); } /* the body stops above the foot's strip (the card's own padding is the rest) */
|
|
4308
|
+
/* that padding can be taller than the body's own box (a short box: a small phone with the keyboard up) and a
|
|
4309
|
+
box is never smaller than its padding: the body runs past the sheet's clipped edge instead, where nothing
|
|
4310
|
+
shows anyway (the sheet's other parts keep their size, sheet.css). At peek and away no part of the body shows. */
|
|
4311
|
+
:is(.sheet--peek, .sheet--away) > .body { padding-bottom: 0; }
|
|
4312
|
+
:where(.sheet, .sheet-stack .card) > .body > * { min-width: 0; } /* as .card > *: children shrink to the track, never widen it */
|
|
4313
|
+
:where(.sheet, .sheet-stack .card) > .body:last-child { margin-bottom: calc(-1 * var(--card-pad)); padding-bottom: calc(var(--card-pad) + var(--_cover) + var(--_safe-b-open)); }
|
|
4314
|
+
/* paper: the head keeps the sheet's own colour, the content is the theme's paper, --action-bg, the ground of every field (Lh 2026-10-05: white; Lh 2026-10-20: the theme's, never a fixed white).
|
|
4315
|
+
The body and the foot read as paper; the handle and the head stay on the card.
|
|
4316
|
+
The flex gap under the head is outside the body, so it stays the sheet's tint.
|
|
4317
|
+
The first field would sit on that colour seam. The paper's inset is --sp-6 (24px at
|
|
4318
|
+
the default spacing), the body's own top padding, and only when the sheet is paper.
|
|
4319
|
+
A plain sheet keeps padding-top 0. A sheet in a stack wears the same class and the same
|
|
4320
|
+
inset: the stack's own gap under the head is the card's colour, so the row still needs this paper.
|
|
4321
|
+
The paper takes the side of the controls' paper (--action-dark): on a dark sheet its words still turn to onlight. */
|
|
4322
|
+
.sheet--paper > .body {
|
|
4323
|
+
--card-bg: var(--action-bg);
|
|
4324
|
+
--dark: var(--action-dark);
|
|
4325
|
+
background: var(--card-bg);
|
|
4326
|
+
color: var(--card-ink);
|
|
4327
|
+
padding-top: var(--body-pad-top, var(--sp-6));
|
|
4328
|
+
}
|
|
4329
|
+
|
|
4330
|
+
/* in a sheet stack */
|
|
4331
|
+
/* nothing slid under here: the stack's sheet is always whole. A pull in the content, already at the top: the words move down, the card stays.
|
|
4332
|
+
--_refresh is the finger, private. A paper body adds its own --sp-6 on top of this (the rule below): the stack's gap under the head is the
|
|
4333
|
+
card's colour, so without the paper's inset the first row sits on that seam. */
|
|
4334
|
+
.sheet-stack > .card > .body {
|
|
4335
|
+
--_cover: 0rem;
|
|
4336
|
+
padding-top: calc(var(--body-pad-top, 0rem) + var(--_refresh, 0rem));
|
|
4337
|
+
transition: padding-top var(--motion-sheet) var(--ease);
|
|
4338
|
+
}
|
|
4339
|
+
/* the head's band is as slim as it can be (Lh 2026-10-06: 20 over · 48 head · 20 under read as a heavy bar): the paper starts
|
|
4340
|
+
--sp-3 under the head, not a whole --card-gap (--sp-2 at first; Lh added 4 the same day). The body is pulled up by the difference — the card's gap is left alone, the
|
|
4341
|
+
stack's step and the body's own rows read it. */
|
|
4342
|
+
.sheet-stack > .card.sheet--paper > .body {
|
|
4343
|
+
margin-top: calc(var(--sp-3) - var(--card-gap));
|
|
4344
|
+
padding-top: calc(var(--body-pad-top, var(--sp-6)) + var(--_refresh, 0rem));
|
|
4345
|
+
transition: padding-top var(--motion-sheet) var(--ease), background-color 0s var(--ease-linear);
|
|
4346
|
+
}
|
|
4347
|
+
/* a pull follows the finger at once, on paper too: the rule above is as strong as the stack's own `is-refreshing` one and comes later */
|
|
4348
|
+
.sheet-stack > .card.sheet--paper > .body.is-refreshing { transition: none; }
|
|
4349
|
+
/* a closed paper sheet's body stays clear (Lh 2026-10-06). The next sheet's round top does not
|
|
4350
|
+
cover the corners, and a paper body showed there beside the head. Clear, the card's own colour
|
|
4351
|
+
shows in that pocket. Open, the body is paper, and the first row sits --sp-6 down, the same paper
|
|
4352
|
+
inset a single paper sheet keeps: the flex gap under the head is the card's colour, so the row
|
|
4353
|
+
would otherwise sit on that seam. A pull adds --_refresh on top of the inset. On the way back
|
|
4354
|
+
into the stack the card colour fades in quickly (--motion-quick) and that fade ends with the
|
|
4355
|
+
sheet's own slide (--motion-sheet, plus the same stagger), so the corner is the head colour
|
|
4356
|
+
at the moment the sheet stops. Rising, the body is paper at once. */
|
|
4357
|
+
.sheet-stack > .card.sheet--paper:not(.is-open) > .body {
|
|
4358
|
+
background-color: transparent;
|
|
4359
|
+
transition:
|
|
4360
|
+
padding-top var(--motion-sheet) var(--ease),
|
|
4361
|
+
background-color var(--motion-quick) var(--ease) calc(var(--stagger, 0) * var(--motion-stagger) + var(--motion-sheet) - var(--motion-quick));
|
|
4362
|
+
}
|
|
4363
|
+
@media (prefers-reduced-motion: reduce) { .sheet-stack > .card.sheet--paper:not(.is-open) > .body {
|
|
4364
|
+
transition: padding-top var(--motion-sheet) var(--ease), background-color 0s var(--ease-linear);
|
|
4365
|
+
} }
|
|
4366
|
+
/* a body pulled to refresh holds still */
|
|
4367
|
+
.sheet-stack > .card > .body.is-refreshing { transition: none; }
|
|
4368
|
+
|
|
4369
|
+
/* in a modal: the light part that holds the thing being asked about, padded on every side, shrinking (and scrolling) under the
|
|
4370
|
+
modal's max-height while the ask keeps its height (layover.css) */
|
|
4371
|
+
.modal > .body {
|
|
4372
|
+
padding: var(--body-pad-top, var(--card-pad)) var(--card-pad) var(--card-pad);
|
|
4373
|
+
flex: 0 1 auto;
|
|
4374
|
+
}
|
|
4375
|
+
|
|
4376
|
+
/* ---- foot: the last row of a card, a sheet and a stack sheet. What the member can do next: the action buttons on one line.
|
|
4377
|
+
One button takes the width, up to four share it in even parts — so the gaps read even too — and from three on they drop their
|
|
4378
|
+
side padding so the labels keep the room. <div class="foot"><button class="btn btn--primary btn--block">…</button></div>
|
|
4379
|
+
Knobs --foot-gap, --foot-ink, --foot-link-gap. An outer governs a foot through those knobs or a selector naming both, written
|
|
4380
|
+
below under the outer's name (Lh 2026-10-21). ---- */
|
|
4381
|
+
.foot { display: flex; gap: var(--foot-gap, var(--sp-2)); align-items: center; color: var(--foot-ink, inherit); }
|
|
4382
|
+
.foot:has(> :nth-child(3)) > .btn { --btn-pad-x: var(--sp-2); }
|
|
4383
|
+
/* a small link under the buttons (Foot link — Lh 2026-09-23, as the ActionBar's ctaLink): the row wraps, the link takes a
|
|
4384
|
+
whole short row of its own, centred — it never shares the buttons' line */
|
|
4385
|
+
.foot--link { flex-wrap: wrap; align-content: end; row-gap: var(--foot-link-gap, var(--sp-1)); }
|
|
4386
|
+
.foot__link { flex: 1 0 100%; display: flex; justify-content: center; }
|
|
4387
|
+
/* round (Foot round): the foot holds a few round IconBtns, each its own size (they never share the line), as ONE group in the middle with
|
|
4388
|
+
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 */
|
|
4389
|
+
.foot--round { justify-content: center; gap: var(--foot-gap, var(--sp-6)); }
|
|
4390
|
+
|
|
4391
|
+
/* in a card with paper bands: the foot band (the head's look, above) is slim */
|
|
4392
|
+
:is(.card--bands, .card--bands > .card__face) > .foot { margin-bottom: calc(-1 * var(--card-pad)); padding-block: var(--sp-3); }
|
|
4393
|
+
|
|
4394
|
+
/* in a sheet stack */
|
|
4395
|
+
/* a paper stack's foot is paper to the card's edges, and it covers the tinted flex gap above it so the
|
|
4396
|
+
button does not sit on a colour stripe. The head's gap stays: it is outside this foot. The button stays
|
|
4397
|
+
where it was — the padding gives back what the bleed takes. Its ink reads the action's side. */
|
|
4398
|
+
.sheet-stack > .card.sheet--paper > .foot {
|
|
4399
|
+
--dark: var(--action-dark);
|
|
4400
|
+
background: var(--action-bg);
|
|
4401
|
+
color: var(--card-ink);
|
|
4402
|
+
margin-top: calc(-1 * var(--card-gap));
|
|
4403
|
+
margin-inline: calc(-1 * var(--card-pad));
|
|
4404
|
+
margin-bottom: calc(-1 * var(--card-pad));
|
|
4405
|
+
padding-top: var(--card-gap);
|
|
4406
|
+
padding-inline: var(--card-pad);
|
|
4407
|
+
padding-bottom: var(--card-pad);
|
|
4408
|
+
}
|
|
4409
|
+
|
|
4410
|
+
/* in a sheet: the button that FINISHES the sheet stands on the box's bottom edge at half, 3q and full alike (sheet.css says why).
|
|
4411
|
+
The layer is as tall as the sheet, its buttons at its bottom, slid UP by the share the sheet slid down; it takes no taps, its buttons do */
|
|
4412
|
+
.sheet > .foot {
|
|
4413
|
+
position: absolute; inset: calc(-1 * var(--border-w)) 0 0; z-index: var(--z-over); /* the sheet's border box: the same height the sheet's own % reads */
|
|
4414
|
+
align-items: end;
|
|
4415
|
+
align-content: end;
|
|
4416
|
+
padding: 0 var(--card-pad) calc(var(--card-pad) + var(--_safe-b-open));
|
|
4417
|
+
background: linear-gradient(var(--card-bg), var(--card-bg)) bottom / 100% var(--_foot) no-repeat;
|
|
4418
|
+
pointer-events: none;
|
|
4419
|
+
translate: 0 calc(-1 * var(--_y) - var(--_drag, 0rem));
|
|
4420
|
+
transition: translate var(--motion-sheet) var(--ease), visibility 0s;
|
|
4421
|
+
}
|
|
4422
|
+
.sheet > .foot > * { pointer-events: auto; }
|
|
4423
|
+
.sheet.is-dragging > .foot { transition: none; }
|
|
4424
|
+
/* at peek and away the foot is NOT held on the box's edge: it stands on the sheet's own bottom edge (no counter-slide), so it
|
|
4425
|
+
LEAVES AND ARRIVES WITH ITS SHEET — solid the whole way, hidden only once the slide is over. It used to stay in place and
|
|
4426
|
+
fade: the body slid through the strip behind a half-transparent button (timebank, Lh 2026-10-01: "ตัวหนังสือลอดใต้ปุ่ม"). */
|
|
4427
|
+
:is(.sheet--peek, .sheet--away) > .foot { translate: 0 0; visibility: hidden; transition: translate var(--motion-sheet) var(--ease), visibility 0s var(--ease-linear) var(--motion-sheet); }
|
|
4428
|
+
/* a paper sheet's foot is paper, as its body is: the words read the controls' side */
|
|
4429
|
+
.sheet--paper > .foot { --card-bg: var(--action-bg); --dark: var(--action-dark); color: var(--foot-ink, var(--card-ink)); }
|
|
4430
|
+
|
|
4376
4431
|
/* ---- css/sticky.css — sticky note, its field, tone chooser, thread of posts, pile ---- */
|
|
4377
4432
|
/* cardds — sticky notes: the paper note, the field written on it, the tone chooser, notes stuck on a page, a thread of posts, the answer note.
|
|
4378
4433
|
A note is pastel paper: its tone is one of the theme's nine pastels (--pastel-*, tokens.css), its ink the onlight set, whatever card it lies on. */
|
|
@@ -5063,7 +5118,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
5063
5118
|
}
|
|
5064
5119
|
|
|
5065
5120
|
/* ---- where it sits in what card.css draws (docs/reference.md rule 15) ---- */
|
|
5066
|
-
.
|
|
5121
|
+
.head > .stamp { grid-column: 2; grid-row: 1 / span 2; margin-inline: 0; }
|
|
5067
5122
|
/* ---- where it sits in what people.css draws (docs/reference.md rule 15) ---- */
|
|
5068
5123
|
/* a stamp in the stack is the stamp's small size (--stamp-sm-size: one rule in stamp.css, 48 × 60), lapped like the heads. Measured 2026-10-11 in a Row's
|
|
5069
5124
|
lead with a title, a meta line and an end button: at 375 the meta line breaks in two, accepted by Lh (a lap of 16 would hold it; the lap stays 8)
|
|
@@ -5461,17 +5516,11 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
5461
5516
|
position: relative;
|
|
5462
5517
|
}
|
|
5463
5518
|
.tile__label { font: var(--tile-label-font, var(--type-title)); }
|
|
5464
|
-
.tile__value { font: var(--tile-value-font, var(--type-h2)); letter-spacing: var(--track-h2); font-variant-numeric: tabular-nums; }
|
|
5465
5519
|
.tile__sub { font: var(--tile-sub-font, var(--type-caption)); color: var(--tile-sub-ink, var(--card-muted)); } /* the muted words of the tile's ground; --dim faded the full ink to 2.4–3.4:1 */
|
|
5466
5520
|
.tile__text { display: grid; gap: var(--tile-text-gap, var(--sp-0)); }
|
|
5467
5521
|
.tile--on { background: var(--tile-on-bg, var(--accent)); --dark: var(--accent-dark); color: var(--tile-on-ink, var(--card-ink)); border-color: transparent; }
|
|
5468
5522
|
/* .tile--pick's hidden input and :has(:checked) fill are declared once in choice.css, alongside .chip--pick and .mood__opt */
|
|
5469
5523
|
.tile--wide { grid-column: 1 / -1; }
|
|
5470
|
-
/* stat: READ, not pressed — no frame of its own inside a card (a frame says "tap me"): icon · value · words on the card's ground */
|
|
5471
|
-
/* a stat tile has no fill of its own, so it has no ink of its own: it takes the ink of what it stands on (currentColor on `color`
|
|
5472
|
-
= the inherited colour), as the card's heading does. It kept the plain tile's --action-ink, dark on a dark card (timebank, tone 3,
|
|
5473
|
-
Lh 2026-10-18). --tile-ink still overrides; a toned stat tile (.tile--N, below) takes its fill and its ink back */
|
|
5474
|
-
.tile--stat { --dark: inherit; color: var(--tile-ink, currentColor); border-color: transparent; background: none; padding-inline: 0; min-height: var(--tile-stat-min-h, var(--avatar-xl)); gap: var(--tile-stat-gap, var(--sp-3)); grid-template-columns: auto 1fr; align-items: center; }
|
|
5475
5524
|
/* upload: dashed, centred plus + label */
|
|
5476
5525
|
.tile--upload {
|
|
5477
5526
|
border-style: dashed;
|
|
@@ -5490,7 +5539,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
5490
5539
|
.tile--3 { background: var(--tile-3-bg, var(--card-3-bg)); --dark: var(--card-3-dark); color: var(--tile-3-ink, var(--card-ink)); border-color: transparent; }
|
|
5491
5540
|
|
|
5492
5541
|
/* ---- wave: audio waveform stand-in for voice rows ----
|
|
5493
|
-
<span class="wave"></span> — sits in a .
|
|
5542
|
+
<span class="wave"></span> — sits in a .words, fills the width */
|
|
5494
5543
|
.wave {
|
|
5495
5544
|
/* only WHOLE bars show (Lh 2026-09-23 — a clipped last bar read thinner): the columns are as many whole bar-widths as fit
|
|
5496
5545
|
(auto-fill), spread edge to edge; bars that do not fit go to rows of no height, clipped away */
|
|
@@ -5642,14 +5691,14 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
5642
5691
|
/* ---- the Modal — the case drops in, its drawer opens below (Lh 2026-09-16: ONE card, two parts)
|
|
5643
5692
|
<div class="sheet-stage sheet-stage--dim"> (dim = the page under a scrim; a Modal on a clean ground is the stage without it — Lh 2026-09-22, `--ask` retired: the stage does the ground, the modal centres itself)
|
|
5644
5693
|
<article class="card modal">
|
|
5645
|
-
<div class="
|
|
5694
|
+
<div class="body">…the card's content (a head, rows, a timeline)…</div>
|
|
5646
5695
|
<div class="modal__drawer"><h2 class="t-h2">Take the case?</h2><p class="t-caption">This cannot be undone.</p>
|
|
5647
5696
|
<div class="btn-trio">…</div>
|
|
5648
5697
|
</div>
|
|
5649
5698
|
</article>
|
|
5650
5699
|
</div>
|
|
5651
5700
|
.modal is the card — no border (the shadow is its edge on the scrim);
|
|
5652
|
-
.
|
|
5701
|
+
.body the light part that holds the thing being asked about (it
|
|
5653
5702
|
scrolls when tall); .modal__drawer the dark end that asks. The ground is
|
|
5654
5703
|
whatever the stage shows (dim it or not). Two beats (2 × --motion-sheet) when
|
|
5655
5704
|
the stage appears, and the same two backwards when it closes:
|
|
@@ -5681,16 +5730,6 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
5681
5730
|
overflow: clip;
|
|
5682
5731
|
box-shadow: var(--modal-shadow, var(--shadow-sheet));
|
|
5683
5732
|
}
|
|
5684
|
-
.modal__lift {
|
|
5685
|
-
padding: var(--card-pad);
|
|
5686
|
-
display: grid;
|
|
5687
|
-
gap: var(--card-gap);
|
|
5688
|
-
align-content: start;
|
|
5689
|
-
flex: 0 1 auto;
|
|
5690
|
-
min-height: 0;
|
|
5691
|
-
overflow-y: auto; /* tall content scrolls inside; the drawer stays */
|
|
5692
|
-
overscroll-behavior: contain;
|
|
5693
|
-
}
|
|
5694
5733
|
.modal__drawer {
|
|
5695
5734
|
flex-shrink: 0;
|
|
5696
5735
|
height: var(--drawer-h);
|
|
@@ -5715,8 +5754,8 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
5715
5754
|
--accent: var(--card-ink);
|
|
5716
5755
|
--accent-dark: calc(1 - var(--dark));
|
|
5717
5756
|
}
|
|
5718
|
-
/* the CONFIRM: a Modal with no
|
|
5719
|
-
.modal:not(:has(> .
|
|
5757
|
+
/* the CONFIRM: a Modal with no Body: the ModalAsk IS the card, as tall as its words (no fixed band, no second beat) */
|
|
5758
|
+
.modal:not(:has(> .body)) > .modal__drawer { height: auto; padding-block: var(--modal-confirm-pad-y, var(--sp-6)); animation: none; }
|
|
5720
5759
|
.modal__drawer .t-caption { --t-caption-ink: var(--modal-drawer-caption-ink, var(--card-muted)); }
|
|
5721
5760
|
.modal__drawer > h2:focus { outline: none; } /* the question takes the cursor when the modal arrives (for a screen reader, the keyboard's way in) — it is not a control: no ring */
|
|
5722
5761
|
/* the answers as WORD buttons (a BtnRow of Btns; Lh 2026-10-11): the row fills the ask with room over it and each button keeps its words on one
|
|
@@ -6083,7 +6122,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
6083
6122
|
0 0.5rem 1rem -0.25rem color-mix(in srgb, var(--accent) 45%, transparent);
|
|
6084
6123
|
}
|
|
6085
6124
|
/* a peeked stack tab is the icon alone: no sheen and no shadow until its sheet is open (the fill fades with the sheet) */
|
|
6086
|
-
[data-finish="lit"] .sheet-stack--tap > .card:not(.is-open) > .
|
|
6125
|
+
[data-finish="lit"] .sheet-stack--tap > .card:not(.is-open) > .head .stack-sheet__tab {
|
|
6087
6126
|
background-image: none;
|
|
6088
6127
|
box-shadow: none;
|
|
6089
6128
|
}
|
|
@@ -6122,7 +6161,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
6122
6161
|
}
|
|
6123
6162
|
/* a dark card (the brand tone, a cover): multiply would only blacken it, so the grain lightens, fainter */
|
|
6124
6163
|
[data-finish="print"] :is(.card--3, .card--cover)::after { mix-blend-mode: screen; opacity: calc(var(--print-grain, 0.32) * 0.56); }
|
|
6125
|
-
[data-finish="print"] .card:not(.card--row, .card--cover, .feed-card--small, .sheet-stack > *, .sheet-stack > :not(.sheet-stack__base) > *) > .
|
|
6164
|
+
[data-finish="print"] .card:not(.card--row, .card--cover, .feed-card--small, .sheet-stack > *, .sheet-stack > :not(.sheet-stack__base) > *) > .head {
|
|
6126
6165
|
padding-bottom: var(--sp-2);
|
|
6127
6166
|
border-bottom: var(--rule-w) dotted color-mix(in srgb, currentColor 45%, transparent);
|
|
6128
6167
|
}
|
|
@@ -6133,7 +6172,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
6133
6172
|
[data-finish="print"] .chip { border-color: var(--chip-border, var(--_ink)); } /* a holder that clears a chip's edge (a note's chips) clears it in print too */
|
|
6134
6173
|
[data-finish="print"] .btn--primary { box-shadow: 0.125rem 0.125rem 0 0 color-mix(in srgb, var(--card-ink) 60%, transparent); }
|
|
6135
6174
|
[data-finish="print"] :is(.btn, .chip):active { box-shadow: none; translate: 0.125rem 0.125rem; }
|
|
6136
|
-
[data-finish="print"] .
|
|
6175
|
+
[data-finish="print"] .card--row > .lead { border-style: dashed; }
|
|
6137
6176
|
|
|
6138
6177
|
/* ============================================================
|
|
6139
6178
|
sticker — a die-cut sticker on a sheet: --sticker-cut of white paper left round the print, a short hard
|
|
@@ -6168,5 +6207,5 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
6168
6207
|
[data-finish="ink"] :is(.btn, .chip, .icon-btn:not(.icon-btn-group > *)) { border: var(--ink-w, 0.15625rem) solid currentColor; box-shadow: 0.1875rem 0.1875rem 0 0 currentColor; }
|
|
6169
6208
|
[data-finish="ink"] .btn--primary { border-color: var(--on-surface); box-shadow: 0.1875rem 0.1875rem 0 0 var(--on-surface); }
|
|
6170
6209
|
[data-finish="ink"] .toggle { box-shadow: 0.125rem 0.125rem 0 0 var(--on-surface); }
|
|
6171
|
-
[data-finish="ink"] .
|
|
6210
|
+
[data-finish="ink"] .card--row > .lead { border-width: var(--ink-w, 0.15625rem); }
|
|
6172
6211
|
|