@usableapp/cardds 0.7.178 → 0.7.179
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 +31 -0
- package/css/actions.css +11 -8
- package/css/base.css +13 -2
- package/css/card.css +39 -7
- package/css/layover.css +25 -16
- package/css/lists.css +58 -4
- package/css/media.css +33 -0
- package/css/parts.css +16 -1
- package/css/tokens.css +4 -1
- package/dist/actions/Btn.d.ts +6 -2
- package/dist/actions/Btn.js +5 -2
- package/dist/cardds.css +199 -39
- package/dist/cards/CardParts.d.ts +12 -5
- package/dist/cards/CardParts.js +8 -7
- package/dist/cards/FeedPost.d.ts +31 -0
- package/dist/cards/FeedPost.js +14 -0
- package/dist/catalog.json +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/layover/Popup.d.ts +2 -2
- package/dist/layover/Popup.js +1 -1
- package/dist/lists/Bubble.d.ts +25 -6
- package/dist/lists/Bubble.js +17 -8
- package/dist/lists/Row.d.ts +11 -2
- package/dist/lists/Row.js +4 -3
- package/dist/media/Mosaic.d.ts +4 -3
- package/dist/media/Mosaic.js +8 -4
- package/dist/media/Thumb.d.ts +14 -0
- package/dist/media/Thumb.js +12 -0
- package/dist/parts/Foot.d.ts +7 -2
- package/dist/parts/Foot.js +4 -3
- package/dist/scaffold/Centre.d.ts +1 -1
- package/dist/scaffold/Centre.js +1 -1
- package/dist/scaffold/Panes.d.ts +1 -0
- package/dist/scaffold/Panes.js +1 -0
- package/dist/sheets/Modal.d.ts +1 -1
- package/dist/sheets/Modal.js +1 -1
- package/dist/templates/Splash.d.ts +1 -1
- package/dist/templates/Splash.js +1 -1
- package/dist/type/Phrase.d.ts +9 -0
- package/dist/type/Phrase.js +11 -0
- package/dist/type/Strong.d.ts +7 -0
- package/dist/type/Strong.js +9 -0
- package/dist/type/Text.d.ts +5 -1
- package/dist/type/Text.js +7 -3
- package/dist/type/icons.d.ts +1 -1
- package/dist/type/icons.js +2 -2
- package/docs/reference.md +84 -6
- package/icons.svg +1 -0
- package/lint/rules.mjs +2 -2
- package/package.json +1 -1
package/dist/actions/Btn.d.ts
CHANGED
|
@@ -25,6 +25,10 @@ interface BtnBase extends Omit<ComponentProps<'button'>, 'form' | 'children'> {
|
|
|
25
25
|
* be pressed (it is `disabled`, so it fades like one; `aria-busy`). CONTROLLED: the app turns it on at the press and off when the work is
|
|
26
26
|
* done. A round keeps its `label` as its spoken name and needs no `icon` while busy. Under reduced motion the ring stands still */
|
|
27
27
|
busy?: boolean;
|
|
28
|
+
/** DONE ALREADY (cardds#213): the move was made and cannot be made again — the button fades (`--off`), takes no press (no give, no dim) and
|
|
29
|
+
* never calls `onClick`, yet stays in the tab order and is read with its name (unlike `disabled`, which takes it out). In a `BtnGroup` with
|
|
30
|
+
* `select` its share is never switched by a press. The app says what was done in `label` ("Passed on") and may swap the icon (a check) */
|
|
31
|
+
'aria-disabled'?: boolean | 'true' | 'false';
|
|
28
32
|
}
|
|
29
33
|
export interface PillBtnProps extends BtnBase {
|
|
30
34
|
/** `pill` (default): the worded button, as wide as its words */
|
|
@@ -104,7 +108,6 @@ export declare function Btn(props: BtnProps): import("react").DetailedReactHTMLE
|
|
|
104
108
|
"aria-describedby"?: string | undefined | undefined;
|
|
105
109
|
"aria-description"?: string | undefined | undefined;
|
|
106
110
|
"aria-details"?: string | undefined | undefined;
|
|
107
|
-
"aria-disabled": (boolean | "true" | "false") | undefined;
|
|
108
111
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
109
112
|
"aria-errormessage"?: string | undefined | undefined;
|
|
110
113
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
@@ -227,7 +230,6 @@ export declare function Btn(props: BtnProps): import("react").DetailedReactHTMLE
|
|
|
227
230
|
onWaitingCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
228
231
|
onAuxClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
229
232
|
onAuxClickCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
230
|
-
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
231
233
|
onClickCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
232
234
|
onContextMenu?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
233
235
|
onContextMenuCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -363,6 +365,8 @@ export declare function Btn(props: BtnProps): import("react").DetailedReactHTMLE
|
|
|
363
365
|
href: string | undefined;
|
|
364
366
|
type: "button" | "reset" | "submit" | undefined;
|
|
365
367
|
disabled: boolean | undefined;
|
|
368
|
+
'aria-disabled': true | undefined;
|
|
369
|
+
onClick: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
366
370
|
className: string;
|
|
367
371
|
}, HTMLButtonElement>;
|
|
368
372
|
export {};
|
package/dist/actions/Btn.js
CHANGED
|
@@ -12,7 +12,8 @@ import { Badge } from '../numbers/Badge.js';
|
|
|
12
12
|
* and render that `<Menu popover actions id>` wherever you like — the panel anchors to the button that opened it. To open anything else, `onClick`.
|
|
13
13
|
*/
|
|
14
14
|
export function Btn(props) {
|
|
15
|
-
const { shape, size, tone, href, sending, onSent, busy, disabled, onAnimationEnd, className, type, children, block, form, label, icon, count, ...rest } = props;
|
|
15
|
+
const { shape, size, tone, href, sending, onSent, busy, disabled, onAnimationEnd, className, type, children, block, form, label, icon, count, onClick, 'aria-disabled': done, ...rest } = props;
|
|
16
|
+
const off = done === true || done === 'true';
|
|
16
17
|
const ended = useSendOut(sending, onSent, onAnimationEnd);
|
|
17
18
|
const round = shape === 'round';
|
|
18
19
|
const base = round ? 'icon-btn' : 'btn';
|
|
@@ -26,7 +27,9 @@ export function Btn(props) {
|
|
|
26
27
|
href: busy ? undefined : href, // a busy link goes nowhere
|
|
27
28
|
type: href ? undefined : type ?? 'button',
|
|
28
29
|
disabled: href ? disabled : disabled || busy,
|
|
29
|
-
'aria-disabled': href && busy ? true : undefined,
|
|
30
|
+
'aria-disabled': off || (href && busy) ? true : undefined,
|
|
31
|
+
// done already: the press reaches nobody (a link goes nowhere either)
|
|
32
|
+
onClick: off ? (e) => e.preventDefault() : onClick,
|
|
30
33
|
'aria-busy': busy || undefined,
|
|
31
34
|
'aria-label': round ? (shown ? `${label} ${shown}` : label) : undefined,
|
|
32
35
|
className: cx(base, step, look, invert, shown && 'icon-btn--count', block && 'btn--block', form && 'btn--form', sending && 'is-sending', busy && 'is-busy', className),
|
package/dist/cardds.css
CHANGED
|
@@ -85,7 +85,9 @@
|
|
|
85
85
|
--screen-w: 34.375rem; /* 550: the column's CAP — .screen, .action-bar, .sheet-stage. On a phone the screen is the device, edge to edge —
|
|
86
86
|
also a phone set to a small display size, a fold's outer screen (540 was seen, Lh 2026-10-01); the cap only keeps
|
|
87
87
|
a tablet / desktop window to a phone-sized column. Was 25rem (a 412px phone showed a strip each side), then 30rem */
|
|
88
|
-
--
|
|
88
|
+
--centre-at: 0.4; /* the human centre, as a share: 40% down a screen AND 40% down a box that stands on it (Lh, 2026-09-10, 2026-11-18) */
|
|
89
|
+
--screen-centre: calc(var(--centre-at) * 100%); /* the human centre of a screen: the middle of its top four fifths — the bottom fifth is the thumb's. A centred box's top is here */
|
|
90
|
+
--centre-lift: calc(-1 * var(--screen-centre)); /* a centred box's translate: its own 40% point (not its middle) lands on --screen-centre. A translate % is of the box's own height */
|
|
89
91
|
|
|
90
92
|
/* ---- the four bases: what a project retunes (Lh, 2026-09-20) ----
|
|
91
93
|
Every size token below is multiplier × its family's base. A project sets a BASE
|
|
@@ -415,6 +417,7 @@
|
|
|
415
417
|
/* derived tints — read the element's own ink, so they work on any slot */
|
|
416
418
|
--outline: var(--action-border); /* control edges (palette.css softens) */
|
|
417
419
|
--hairline: color-mix(in srgb, currentColor 18%, transparent); /* dividers inside cards */
|
|
420
|
+
--hairline-soft: color-mix(in srgb, currentColor 10%, transparent); /* a line that only has to be seen: the rule under a joined row */
|
|
418
421
|
--ink-tint: color-mix(in srgb, currentColor 12%, transparent); /* hover, rails, rests */
|
|
419
422
|
--unread-bg: color-mix(in srgb, currentColor 4%, transparent); /* a very light grey over any ground: a row never read (Row unread) */
|
|
420
423
|
--ink-rail: color-mix(in srgb, currentColor 30%, transparent); /* todo steps, ghost edges */
|
|
@@ -851,6 +854,14 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
851
854
|
|
|
852
855
|
.t-muted { color: var(--card-muted); } /* the muted words of whatever it stands on: the screen, a card of any tone, a drawer */
|
|
853
856
|
.t-caps { text-transform: uppercase; }
|
|
857
|
+
/* ---- strong: some words heavier INSIDE running text (cardds#229) ----
|
|
858
|
+
<p class="t-caption"><strong class="strong">Noi</strong> • asked for a ride</p> Weight only: the size, ink and line are the text's. */
|
|
859
|
+
.strong { font-weight: var(--strong-weight, var(--fw-bold)); }
|
|
860
|
+
/* ---- the corner word of a Text (cardds#229): one short word at the top end, the first line runs round it, the rest is full width ----
|
|
861
|
+
<span class="t-caption t-lines t-lines--3"><span class="t-corner-flow"><span class="t-corner">5 min</span>words…</span></span>
|
|
862
|
+
The flow is a block of its own: the cut (`-webkit-box`) turns its direct children into flex items, which ignore a float. */
|
|
863
|
+
.t-corner-flow { display: block; }
|
|
864
|
+
.t-corner { float: inline-end; margin-inline-start: var(--text-corner-gap, var(--sp-2)); color: var(--text-corner-ink, var(--card-muted)); }
|
|
854
865
|
/* ---- mark: a highlighter stroke over a word INSIDE running text (a sender's name in a greeting) ----
|
|
855
866
|
<p class="t-body"><mark class="mark">ธนาคารเวลา</mark> ส่งแสตมป์ดวงแรกให้คุณ</p>
|
|
856
867
|
The words keep their ink and their size; the stroke is the signal washed thin, drawn as a pen would: unlike corners, the ink
|
|
@@ -873,6 +884,9 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
873
884
|
.mark--warn { --_bg: color-mix(in srgb, var(--signal-warn) 30%, transparent); }
|
|
874
885
|
.mark--error { --_bg: color-mix(in srgb, var(--signal-error) 30%, transparent); }
|
|
875
886
|
.mark--info { --_bg: color-mix(in srgb, var(--signal-info) 30%, transparent); }
|
|
887
|
+
/* a phrase that is not split (Phrase, cardds#224): an inline-block is one unit, so the line breaks before it or after it, never inside it; sized to its own words,
|
|
888
|
+
and never wider than the box it stands in (a phrase longer than that breaks inside itself rather than run out of the box). Nothing is clipped or hidden */
|
|
889
|
+
.phrase { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
|
|
876
890
|
.grow { flex: 1; min-width: 0; } /* the child that takes the remaining row space */
|
|
877
891
|
/* read, not shown (Lh 2026-09-23): words a screen reader needs — a page's h1 the design leaves out — kept in the page, taking no room.
|
|
878
892
|
The 1px is the one the platform needs to keep it in the accessibility tree, not a length of the design. */
|
|
@@ -948,10 +962,10 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
948
962
|
.screen--fill > .screen__centre {
|
|
949
963
|
position: absolute;
|
|
950
964
|
top: var(--screen-centre);
|
|
951
|
-
translate: 0 -
|
|
965
|
+
translate: 0 var(--centre-lift); /* its own 40% point on --screen-centre, as a .card--centre (card.css) */
|
|
952
966
|
/* the cap: as a .card--centre's (card.css, which says why) */
|
|
953
967
|
--_lead: 0rem;
|
|
954
|
-
max-height:
|
|
968
|
+
max-height: min((var(--screen-centre) - var(--_lead) - var(--screen-gap)) / var(--centre-at), (100% - var(--screen-centre) - var(--bar-reserve)) / (1 - var(--centre-at)));
|
|
955
969
|
overflow-y: auto;
|
|
956
970
|
overscroll-behavior: contain;
|
|
957
971
|
}
|
|
@@ -1116,6 +1130,11 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1116
1130
|
|
|
1117
1131
|
.card__media { border-radius: var(--card-media-radius, var(--r-media)); overflow: hidden; position: relative; } /* relative: corner badges */
|
|
1118
1132
|
.card__media > img { width: 100%; height: auto; object-fit: cover; }
|
|
1133
|
+
/* a full-width picture outside a card (CardMedia full, cardds#226): the holder's width, the corner --r-media, the picture's own ratio — one taller than --card-media-max-ratio
|
|
1134
|
+
(height ÷ width, default 1.25 = 4:5) is cut at its middle. The wrapper is the container the cap is measured in (cqw = its width) */
|
|
1135
|
+
.card__media--full { container-type: inline-size; width: 100%; }
|
|
1136
|
+
.card__media--full > img { display: block; max-height: calc(100cqw * var(--card-media-max-ratio, 1.25)); object-position: center; }
|
|
1137
|
+
.card__media--full > .ph { min-height: 0; aspect-ratio: 4 / 3; border-radius: 0; }
|
|
1119
1138
|
/* media beside (MediaBeside, Lh 2026-10-28): the words, and at their end a small square picture, the media's corner, cropped to fill it */
|
|
1120
1139
|
.media-beside { display: grid; grid-template-columns: minmax(0, 1fr) var(--media-beside-size, calc(var(--tap) * 3 / 2)); gap: var(--media-beside-gap, var(--sp-3)); align-items: start; }
|
|
1121
1140
|
.media-beside__words { display: grid; gap: var(--sp-1); min-width: 0; }
|
|
@@ -1231,8 +1250,10 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1231
1250
|
Where the centre of a phone IS, to the person holding it: the bottom fifth is
|
|
1232
1251
|
the thumb's — the bar, the controls — so what is meant to be read sits at the
|
|
1233
1252
|
middle of the four fifths above it, --screen-centre (40%) down the screen, not
|
|
1234
|
-
at 50%. (Lh, 2026-09-10.)
|
|
1235
|
-
|
|
1253
|
+
at 50%. (Lh, 2026-09-10.) The card stands on that line by ITS OWN 40% point,
|
|
1254
|
+
not its middle (Lh, 2026-11-18): the point 40% down the card is the point 40%
|
|
1255
|
+
down the screen, so the card's middle is a tenth of its height under the
|
|
1256
|
+
line, still over the screen's own middle (--centre-lift). Any screen with one card and nothing else to read may.
|
|
1236
1257
|
<div class="screen screen--fill"><header class="topbar">…</header><article class="card card--centre">…</article></div>
|
|
1237
1258
|
<div class="action-bar">…</div>
|
|
1238
1259
|
The card hugs its words and keeps the screen's inset. It is capped so that it
|
|
@@ -1241,14 +1262,15 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1241
1262
|
.card--centre {
|
|
1242
1263
|
position: absolute;
|
|
1243
1264
|
top: var(--screen-centre);
|
|
1244
|
-
translate: 0 -
|
|
1245
|
-
/* the cap:
|
|
1246
|
-
|
|
1247
|
-
|
|
1265
|
+
translate: 0 var(--centre-lift);
|
|
1266
|
+
/* the cap: the room above the centre (the title bar's height, when one is
|
|
1267
|
+
there, and the screen's gap) is the card's 40% above its point, so the card
|
|
1268
|
+
may be that room / 0.4 tall; the room below it (the bar's reserve) is its 60%,
|
|
1269
|
+
so that room / 0.6 — whichever is less. --_lead is the title bar's height
|
|
1248
1270
|
only on a screen that HAS one: without a .topbar/.appbar before it the
|
|
1249
1271
|
block keeps that room (a card and its pager under it needs it on a short phone; Lh, 2026-09-11). */
|
|
1250
1272
|
--_lead: 0rem;
|
|
1251
|
-
max-height:
|
|
1273
|
+
max-height: min((var(--screen-centre) - var(--_lead) - var(--screen-gap)) / var(--centre-at), (100% - var(--screen-centre) - var(--bar-reserve)) / (1 - var(--centre-at)));
|
|
1252
1274
|
overflow-y: auto;
|
|
1253
1275
|
overscroll-behavior: contain;
|
|
1254
1276
|
}
|
|
@@ -1322,6 +1344,14 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1322
1344
|
|
|
1323
1345
|
/* ---- card list: rows, each row its own boundary ---- */
|
|
1324
1346
|
.card-list { display: grid; gap: var(--card-list-gap, var(--sp-3)); }
|
|
1347
|
+
/* thin (`CardList thin`, cardds#213, a feed — Lh 2026-11-17 "ก การ์ดบาง"): every card in the list thinner by its three rest values, set for the
|
|
1348
|
+
list's cards alone (a card reads them as `--card-pad` / `--card-gap` / its corner, so its variants and parts follow); a card outside, and a
|
|
1349
|
+
`Thread` standing between the cards, do not change */
|
|
1350
|
+
.card-list--thin > .card {
|
|
1351
|
+
--card-pad-rest: var(--card-list-thin-pad, var(--sp-4));
|
|
1352
|
+
--card-gap-rest: var(--card-list-thin-gap, var(--sp-5));
|
|
1353
|
+
--r-card: var(--card-list-thin-radius, var(--r-base));
|
|
1354
|
+
}
|
|
1325
1355
|
|
|
1326
1356
|
.card--row {
|
|
1327
1357
|
border-radius: var(--card-row-radius, var(--r-card-row)); /* small: the big card's corner in proportion, not its size */
|
|
@@ -1390,6 +1420,22 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1390
1420
|
.feed-card { row-gap: 0; }
|
|
1391
1421
|
.feed-card > .head:has(> .t-caption) > .feed-card__lead { grid-row: span 2; }
|
|
1392
1422
|
.feed-card__lead { display: grid; } /* placed by the head's align-items: top with a caption, middle without (parts.css) */ /* a Stamp here is the small one, 48 × 60 (stamp.css) */
|
|
1423
|
+
/* FeedPost (cardds#213, Lh 2026-11-17 "ก การ์ดบาง"): ONE post in a feed — head · words · a picture full width · the moves (a BtnGroup frame).
|
|
1424
|
+
GROUPS: the head's lines --sp-1 apart, the post's parts --sp-5 (the card's gap, so a thin CardList's cards and its posts read alike).
|
|
1425
|
+
The head: the author bold in the label's size, ` · time` small and muted on the same line, how it came under them (the Head's meta).
|
|
1426
|
+
The picture: full width at its own shape, cut in its middle past the tallest shape the post allows (width / height, 4 / 3; on a sheet
|
|
1427
|
+
an app sets 4 / 5) — the box is a size container, so the cap is a share of its own width (cqi, iOS 16).
|
|
1428
|
+
<article class="card feed-post"><div class="head"><span class="avatar">…</span><h2 class="words__title">Somsri<span class="feed-post__time"> · 40 min</span></h2>…</div>
|
|
1429
|
+
<p class="t-body">…</p><div class="feed-post__media"><img …></div><div class="icon-btn-group" role="group">…</div></article> */
|
|
1430
|
+
.feed-post { --card-gap: var(--feed-post-gap, var(--sp-5)); }
|
|
1431
|
+
.feed-post > .head {
|
|
1432
|
+
--head-row-gap: var(--sp-1);
|
|
1433
|
+
--words-title-font: var(--fw-bold) var(--fs-label) / round(down, calc(var(--lh-label) * 1em), 1px) var(--face-label);
|
|
1434
|
+
}
|
|
1435
|
+
.feed-post__time { font: var(--type-caption); color: var(--card-muted); }
|
|
1436
|
+
.feed-post__media { container-type: inline-size; border-radius: var(--r-media); overflow: hidden; }
|
|
1437
|
+
.feed-post__media > * { display: block; width: 100%; max-height: calc(100cqi / (var(--feed-post-media-ratio, 4 / 3))); object-fit: cover; object-position: center; border-radius: inherit; }
|
|
1438
|
+
.feed-post__media > img { height: auto; }
|
|
1393
1439
|
/* FeedEnd (Lh 2026-10-29): the end of a feed — a drawn cat, its tail wagging, and a caption. Quiet: the ground's muted ink. */
|
|
1394
1440
|
.feed-end { display: grid; justify-items: center; gap: var(--sp-2); padding-block: var(--sp-4); color: var(--feed-end-ink, var(--on-surface-muted)); text-align: center; }
|
|
1395
1441
|
.feed-end__cat { width: var(--feed-end-size, var(--stamp)); height: auto; }
|
|
@@ -3147,7 +3193,9 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3147
3193
|
.icon-btn-line__words { font: var(--type-label); text-align: center; min-width: 0; }
|
|
3148
3194
|
.icon-btn-line > .icon-btn-group--form { margin-inline: 0; }
|
|
3149
3195
|
.icon-btn-group > .icon-btn[aria-pressed="true"] { background: var(--icon-btn-group-on-bg, var(--accent)); color: var(--icon-btn-group-on-ink, var(--on-accent)); } /* `select`: a pressed button STAYS filled (Lh 2026-09-29) */
|
|
3150
|
-
.icon-btn-group > .icon-btn:active:not(:disabled) { scale: 1; opacity: var(--press-dim); } /* a part of one frame DIMS, it never shrinks inside it */
|
|
3196
|
+
.icon-btn-group > .icon-btn:active:not(:disabled, [aria-disabled="true"]) { scale: 1; opacity: var(--press-dim); } /* a part of one frame DIMS, it never shrinks inside it */
|
|
3197
|
+
/* a share DONE ALREADY (`Btn aria-disabled`, cardds#213: a post passed on) fades with the press list's `--off` and takes no dim; pressed and done (its
|
|
3198
|
+
value still on) it is the pressed fill, faded */
|
|
3151
3199
|
|
|
3152
3200
|
/* fab: the square floating action, bottom-right of a stage or screen */
|
|
3153
3201
|
.fab { width: var(--fab); height: var(--fab); border-radius: var(--r-card); position: absolute; right: var(--sp-4); bottom: calc(var(--sp-5) + var(--bar-h) + var(--sp-3) + var(--safe-bottom)); box-shadow: var(--shadow-float); z-index: var(--z-fab); }
|
|
@@ -3512,18 +3560,19 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3512
3560
|
dims only when the finger is on the card itself, never while it is on one of those.
|
|
3513
3561
|
.t-expand--more (Lh 2026-10-25) = a `Text expand` that does not fit: the whole box opens or folds. It is WORDS, so it neither
|
|
3514
3562
|
dims nor gives: its ink never changes under the finger (Lh 2026-10-25), the opening is the answer. Pointer only (below).
|
|
3563
|
+
.thumb (cardds#232) = a `Thumb`, a small square photo that is a button: it GIVES (scale) like a tile, and has the focus ring.
|
|
3515
3564
|
.bubble--press (Lh 2026-10-28) = a chat `Bubble` that is a link (`href`) or pressed (`onClick`): a message is as wide as a row, so it DIMS.
|
|
3516
3565
|
.link-block (Lh 2026-10-28) = a `LinkBlock`, a few pieces of a card's content as one link: as wide as the card, it DIMS.
|
|
3517
3566
|
.card--folds > .head (Lh 2026-10-29) = the head of a `Card folds`: a tap opens or folds the card, so it DIMS (pointer and :active only —
|
|
3518
3567
|
the focus ring is the card's, from its unseen open button, card.css). A control in the head keeps its own press. */
|
|
3519
3568
|
:where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day, .calendar__pick,
|
|
3520
3569
|
.float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
|
|
3521
|
-
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, .map-pick, .count-in__cancel) {
|
|
3570
|
+
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, .map-pick, .count-in__cancel, .thumb) {
|
|
3522
3571
|
cursor: pointer;
|
|
3523
3572
|
touch-action: manipulation;
|
|
3524
3573
|
transition: scale var(--motion-press) var(--ease-out);
|
|
3525
3574
|
}
|
|
3526
|
-
:where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .card--press, .feed-card--small, .card--folds > .head, .toggle-field, .post-box__edge, .bubble--press, .link-block) {
|
|
3575
|
+
:where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .card--press, .feed-card--small, .card--folds > .head, .toggle-field, .post-box__edge, .bubble--press, .link-block, .row--todo) {
|
|
3527
3576
|
cursor: pointer;
|
|
3528
3577
|
touch-action: manipulation;
|
|
3529
3578
|
transition: opacity var(--motion-press) var(--ease-out);
|
|
@@ -3538,8 +3587,8 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3538
3587
|
}
|
|
3539
3588
|
:where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day, .calendar__pick,
|
|
3540
3589
|
.float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
|
|
3541
|
-
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, .map-pick):active:not(:disabled, [aria-disabled="true"], :has(:disabled)) { scale: var(--press-scale); }
|
|
3542
|
-
:where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .card--press, .feed-card--small, .card--folds > .head, .toggle-field, .post-box__edge, .bubble--press, .link-block):active:not([aria-disabled="true"], :has(:disabled)) { opacity: var(--press-dim); }
|
|
3590
|
+
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, .map-pick, .thumb):active:not(:disabled, [aria-disabled="true"], :has(:disabled)) { scale: var(--press-scale); }
|
|
3591
|
+
:where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .card--press, .feed-card--small, .card--folds > .head, .toggle-field, .post-box__edge, .bubble--press, .link-block, .row--todo):active:not([aria-disabled="true"], :has(:disabled)) { opacity: var(--press-dim); }
|
|
3543
3592
|
.card--press:active:has(:is(a[href], button, [role=button], input, select, textarea, summary):active) { opacity: 1; } /* the finger is on a link or a button inside: that one answers, the card stays */
|
|
3544
3593
|
.card--folds > .head:active:has(:is(a[href], button, [role=button], input, select, textarea, summary):active) { opacity: 1; } /* a button in a folding card's head answers itself, the head stays */
|
|
3545
3594
|
/* SHADE — what has something BEHIND it (a peeked sheet over the pile, a postcard's face over its back, a post letter's sheet over the other) must not turn see-through:
|
|
@@ -3549,17 +3598,17 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3549
3598
|
/* the focus ring: on the control, or on the label that wraps a hidden input (chip, tile, file button, a row that is a label, a card that is a label round its radio) */
|
|
3550
3599
|
:where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day, .calendar__pick,
|
|
3551
3600
|
.float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
|
|
3552
|
-
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):focus-visible,
|
|
3601
|
+
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, .thumb):focus-visible,
|
|
3553
3602
|
:where(.chip--pick, .tile--pick, label.btn, label.row, .toggle-field):has(:focus-visible), :where(label.card:has(> input[type="radio"]:focus-visible)) { outline: var(--focus); outline-offset: var(--sp-1); }
|
|
3554
3603
|
:where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .feed-card--small, .toggle-field, .post-box__edge, .t-expand--more, .bubble--press, .link-block):not(label, .toggle-field):focus-visible { outline: var(--focus); outline-offset: var(--sp-1); }
|
|
3555
3604
|
/* disabled: no pointer anywhere; a control fades (a link and a row keep their own muted look) */
|
|
3556
3605
|
:where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day, .calendar__pick,
|
|
3557
3606
|
.float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
|
|
3558
|
-
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, a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .toggle-field, .post-box__edge):is(:disabled, [aria-disabled="true"]),
|
|
3607
|
+
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, .thumb, a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .toggle-field, .post-box__edge):is(:disabled, [aria-disabled="true"]),
|
|
3559
3608
|
:where(.chip--pick, .tile--pick, .mood__opt, .toggle-field, label.btn, label.row):has(:disabled) { cursor: default; }
|
|
3560
3609
|
:where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day, .calendar__pick,
|
|
3561
3610
|
.float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
|
|
3562
|
-
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"]),
|
|
3611
|
+
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, .thumb):not(.link):is(:disabled, [aria-disabled="true"]),
|
|
3563
3612
|
:where(.chip--pick, .tile--pick, .mood__opt, .toggle-field, label.btn):has(:disabled) { opacity: var(--off); }
|
|
3564
3613
|
.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 */
|
|
3565
3614
|
@media (prefers-reduced-motion: reduce) { :root { --press-scale: 1; } } /* the give goes; the dim, the shade and the focus ring stay */
|
|
@@ -4428,6 +4477,15 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4428
4477
|
Space BETWEEN rows is .rows' gap; a lone row as card content takes the card's
|
|
4429
4478
|
gap. (.row--flush, which zeroed the old padding, is gone — every row is flush.) */
|
|
4430
4479
|
.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 */
|
|
4480
|
+
/* a lead as tall as N lines of the words beside it (Row leadLines, cardds#229): the stamp N lines tall at its 4:5 shape, a Lead a square as wide as that stamp, the row's
|
|
4481
|
+
centring puts it in the middle of the height. The line is the level's own (body, or caption with `leadText="caption"`), so it follows the text size */
|
|
4482
|
+
.row--lead-1 { --_lead-n: 1; }
|
|
4483
|
+
.row--lead-2 { --_lead-n: 2; }
|
|
4484
|
+
.row--lead-3 { --_lead-n: 3; }
|
|
4485
|
+
.row--lead-lines { --_lead-line: round(down, calc(var(--lh-body) * var(--fs-body)), 1px); --_lead-w: calc(var(--_lead-n) * var(--_lead-line) * 4 / 5); }
|
|
4486
|
+
.row--lead-caption { --_lead-line: round(down, calc(var(--lh-caption) * var(--fs-caption)), 1px); }
|
|
4487
|
+
.row--lead-lines > .avatar-stack { --stamp-sm-size: var(--_lead-w); }
|
|
4488
|
+
.row--lead-lines > .lead { --lead-size: var(--_lead-w); }
|
|
4431
4489
|
/* a row that EXPANDS (Lh 2026-09-22): the row is a <details>' summary, what it shows comes out under it —
|
|
4432
4490
|
who liked a postcard, the rest of a list. An end chevron turns when open. The app owns the list.
|
|
4433
4491
|
<details class="row-expand"><summary class="row">…lead · body · end…</summary><div class="row-expand__more">…</div></details> */
|
|
@@ -4453,6 +4511,17 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4453
4511
|
display: grid;
|
|
4454
4512
|
place-items: center;
|
|
4455
4513
|
}
|
|
4514
|
+
/* a checklist item still to do (`Row todo`, cardds#223): the tick's place and size, empty and dashed; the words fade (the ring too, the one ink): not done yet, not active.
|
|
4515
|
+
The row is a link or a button (the press list in actions.css): the whole row is the target. The circle is drawn, never a control. */
|
|
4516
|
+
.row--todo { --_todo-fade: color-mix(in srgb, var(--card-ink) 40%, transparent); --_todo-ink: var(--row-todo-ink, var(--_todo-fade)); }
|
|
4517
|
+
.row__todo {
|
|
4518
|
+
width: var(--row-done-size, var(--tap-sm));
|
|
4519
|
+
height: var(--row-done-size, var(--tap-sm));
|
|
4520
|
+
flex: none;
|
|
4521
|
+
margin-left: auto;
|
|
4522
|
+
border-radius: 50%;
|
|
4523
|
+
border: var(--border-w) dashed var(--row-todo-ring, var(--_todo-ink));
|
|
4524
|
+
}
|
|
4456
4525
|
|
|
4457
4526
|
/* rows: a list of rows separated by hairlines */
|
|
4458
4527
|
.rows { display: grid; --rows-gap: var(--sp-4); row-gap: var(--rows-gap); }
|
|
@@ -4477,7 +4546,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4477
4546
|
touches the next and reads as a band. The between-rows hairline is not drawn (the border is the line); a list for a holder that fills its width (a Popup) */
|
|
4478
4547
|
.rows.rows--joined { --rows-gap: 0rem; }
|
|
4479
4548
|
.rows--joined > .row + .row::before { display: none; }
|
|
4480
|
-
.rows--joined > :is(.row, .row-expand) { border-bottom: var(--border-w) solid var(--rows-joined-border, var(--hairline)); }
|
|
4549
|
+
.rows--joined > :is(.row, .row-expand) { border-bottom: var(--rows-joined-border-w, var(--px)) solid var(--rows-joined-border, var(--hairline-soft)); } /* thin and faint (Lh 2026-11-18: the dark line was too strong): was --border-w at --hairline */
|
|
4481
4550
|
.rows--joined > .row, .rows--joined > .row-expand > summary { padding: var(--rows-joined-pad-y, var(--sp-3)) var(--rows-joined-pad-x, var(--sp-4)); }
|
|
4482
4551
|
.rows--joined > .row-expand > .row-expand__more { padding: 0 var(--rows-joined-pad-x, var(--sp-4)) var(--rows-joined-pad-y, var(--sp-3)); }
|
|
4483
4552
|
.rows--joined > .rows__head { padding: var(--rows-joined-pad-y, var(--sp-3)) var(--rows-joined-pad-x, var(--sp-4)) 0; }
|
|
@@ -4515,6 +4584,9 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4515
4584
|
the round Btn hangs up from it at the end corner while the reader is away from the end */
|
|
4516
4585
|
.thread__end { position: sticky; bottom: 0; height: 0; margin-top: calc(-1 * var(--thread-gap, var(--sp-4))); display: grid; justify-items: end; z-index: 1; }
|
|
4517
4586
|
.thread__jump { translate: 0 calc(-100% - var(--thread-jump-at, var(--sp-3))); }
|
|
4587
|
+
/* a Thread standing in a CardList between its cards (a feed, cardds#214): a bubble is no card, so it needs more room than the gap between two
|
|
4588
|
+
cards, the same over it and under it (the end room above is a chat's, for the bar under it) */
|
|
4589
|
+
.card-list > .thread { padding-block: var(--thread-room-size, var(--sp-4)); }
|
|
4518
4590
|
.bubble__author + *::before { content: "·"; margin-inline-end: var(--bubble-meta-gap, var(--sp-1)); }
|
|
4519
4591
|
.bubble__author:has(+ *) { margin-inline-end: var(--bubble-meta-gap, var(--sp-1)); }
|
|
4520
4592
|
.bubble__day:has(+ *) { margin-inline-end: var(--bubble-meta-gap, var(--sp-1)); } /* the day, then the time: "Dec 4 8:15" */
|
|
@@ -4541,20 +4613,51 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4541
4613
|
font: var(--bubble-body-font, var(--type-body));
|
|
4542
4614
|
overflow-wrap: anywhere;
|
|
4543
4615
|
}
|
|
4544
|
-
.bubble--right
|
|
4616
|
+
.bubble--right .bubble__body {
|
|
4545
4617
|
border-bottom-left-radius: var(--r-card);
|
|
4546
4618
|
border-bottom-right-radius: var(--bubble-tail-radius, var(--r-tail));
|
|
4547
4619
|
background: var(--accent);
|
|
4620
|
+
--dark: var(--accent-dark); /* the accent fill's side: the muted ink of its quote follows it */
|
|
4548
4621
|
color: var(--on-accent);
|
|
4549
4622
|
text-align: right;
|
|
4550
4623
|
}
|
|
4624
|
+
/* the line of the message this one answers (Bubble quote, cardds#227): first inside the body, over the words, one line cut with "…", a rule at its start as the
|
|
4625
|
+
MessageBar's quote has; its words and rule are the muted ink of the body's ground, so fainter than the words on a theirs and a mine bubble alike */
|
|
4626
|
+
.bubble__quote {
|
|
4627
|
+
display: block;
|
|
4628
|
+
margin-bottom: var(--sp-1);
|
|
4629
|
+
padding-inline-start: var(--sp-3);
|
|
4630
|
+
border-inline-start: var(--sp-1) solid var(--bubble-quote-rule-ink, var(--card-muted));
|
|
4631
|
+
font: var(--type-caption);
|
|
4632
|
+
color: var(--bubble-quote-ink, var(--card-muted));
|
|
4633
|
+
white-space: nowrap;
|
|
4634
|
+
overflow: hidden;
|
|
4635
|
+
text-overflow: ellipsis;
|
|
4636
|
+
text-align: start;
|
|
4637
|
+
}
|
|
4551
4638
|
.bubble__meta { display: flex; align-items: center; gap: var(--bubble-meta-gap, var(--sp-1)); font: var(--bubble-meta-font, var(--type-caption)); color: var(--bubble-meta-ink, var(--card-muted)); }
|
|
4552
4639
|
.bubble--right > .bubble__meta { justify-self: end; }
|
|
4553
|
-
.bubble__meta > .icon { --icon-ink: var(--bubble-meta-icon-ink, var(--accent-ink)); }
|
|
4640
|
+
.bubble__meta > .icon, .bubble__time > .icon { --icon-ink: var(--bubble-meta-icon-ink, var(--accent-ink)); }
|
|
4641
|
+
/* the line ABOVE the message (Bubble metaAbove, cardds#214): who sent it, read before the words — lead · name · time on one line, the bubble
|
|
4642
|
+
under it from the start edge (not led in beside the lead: that left a few words a line). The line comes first in the markup (the reader hears
|
|
4643
|
+
who, then what), the same meta line as below the message and its separators. The bubble hugs its words however long the line is
|
|
4644
|
+
(justify-items), and the line never wraps: the name gives way with "…", the lead and the time keep their size. Under the line --sp-2. */
|
|
4645
|
+
.bubble--meta-above { row-gap: var(--bubble-meta-above-gap, var(--sp-2)); justify-items: start; }
|
|
4646
|
+
.bubble--meta-above.bubble--right { justify-items: end; }
|
|
4647
|
+
.bubble--meta-above > .bubble__meta { min-width: 0; max-width: 100%; }
|
|
4648
|
+
.bubble__lead { flex: none; display: flex; margin-inline-end: var(--bubble-lead-gap, var(--sp-1)); } /* on top of the line's gap */
|
|
4649
|
+
.bubble--meta-above .bubble__author { flex: 0 1 auto; min-width: 0; overflow-x: clip; overflow-y: visible; text-overflow: ellipsis; white-space: nowrap; font: var(--bubble-author-font, var(--type-label)); color: var(--bubble-author-ink, var(--card-ink)); } /* clip SIDEWAYS only: hidden cut the Thai tone marks over the line */
|
|
4650
|
+
.bubble__time { flex: none; display: flex; align-items: center; gap: var(--bubble-meta-gap, var(--sp-1)); white-space: nowrap; }
|
|
4651
|
+
/* the message with one round button of the app beside it (Bubble action, cardds#214): a row of the message and the button, the button on the
|
|
4652
|
+
side the thread's middle is (after theirs, before mine), centred on the message's height. The bubble's 75% cap holds both */
|
|
4653
|
+
.bubble__row { display: flex; align-items: center; gap: var(--bubble-action-gap, var(--sp-2)); min-width: 0; max-width: 100%; }
|
|
4654
|
+
.bubble--right .bubble__row { flex-direction: row-reverse; }
|
|
4655
|
+
.bubble__row > .bubble__body { flex: 0 1 auto; }
|
|
4656
|
+
.bubble__action { flex: none; display: grid; }
|
|
4554
4657
|
/* a bubble that is a link or is pressed (Bubble href / onClick, Lh 2026-10-28): the press answer is the DIM (actions.css), no underline */
|
|
4555
4658
|
a.bubble { color: inherit; text-decoration: none; }
|
|
4556
4659
|
/* highlighted (Bubble highlighted): the message the member is looking at, a ring a hair outside its body */
|
|
4557
|
-
.bubble--highlighted
|
|
4660
|
+
.bubble--highlighted .bubble__body { outline: var(--sp-0) solid var(--bubble-highlighted-ink, var(--accent)); outline-offset: var(--sp-0); }
|
|
4558
4661
|
|
|
4559
4662
|
/* ---- timeline: a hairline with date chips, entries to the right ----
|
|
4560
4663
|
<ol class="timeline"><li class="timeline__item"><span class="timeline__mark">Wed 14</span><p class="t-body">…</p></li>…</ol> */
|
|
@@ -4697,7 +4800,8 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
4697
4800
|
}
|
|
4698
4801
|
.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)); }
|
|
4699
4802
|
.row--lg > .words > .words__title { font: var(--fw-bold) var(--fs-lg) / round(down, calc(var(--lh-h1) * 1em), 1px) var(--font-display); }
|
|
4700
|
-
.row--done > .words > .words__title { color: var(--card-muted); }
|
|
4803
|
+
.row--done:not(.row--full-ink) > .words > .words__title { color: var(--card-muted); }
|
|
4804
|
+
.row--todo > .words > :is(.words__title, .words__meta) { color: var(--_todo-ink); } /* a to-do line fades: title and second line (Row todo, cardds#223) */
|
|
4701
4805
|
|
|
4702
4806
|
/* ---- end: the value over its caption, right-aligned at the end of a line ---- */
|
|
4703
4807
|
.end { margin-left: auto; text-align: right; display: grid; gap: var(--end-gap, var(--sp-0)); justify-items: end; }
|
|
@@ -5268,6 +5372,20 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
5268
5372
|
: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); }
|
|
5269
5373
|
/* a paper sheet's foot is paper, as its body is: the words read the controls' side */
|
|
5270
5374
|
.sheet--paper > .foot { --card-bg: var(--action-bg); --dark: var(--action-dark); color: var(--foot-ink, var(--card-ink)); }
|
|
5375
|
+
/* layer (Foot layer, cardds#214): the strip behind a sheet's foot — the foot's own height and the room round it, --_foot, the strip the body stops above —
|
|
5376
|
+
has a ground of its own, edge to edge, so the foot reads as a layer apart from the words that scroll behind it. Painted on the foot's own layer, as the
|
|
5377
|
+
strip is (above): no padding, margin or height is added, so the body stops where it did. The ground is the sheet's, a little darker (8% of the dark ink
|
|
5378
|
+
over --card-bg: opaque, as the strip must be, and darker on a dark sheet too); the rule over it is the first --rule-w of the strip (a border would stand at the
|
|
5379
|
+
top of the sheet-tall layer). What stands on the strip keeps its own look: a MessageBar's box is still the paper. Knobs --foot-layer-bg, --foot-layer-rule-ink */
|
|
5380
|
+
.sheet > .foot.foot--layer {
|
|
5381
|
+
--_layer-bg: color-mix(in srgb, var(--ink-onlight) 8%, var(--card-bg));
|
|
5382
|
+
background-image:
|
|
5383
|
+
linear-gradient(var(--foot-layer-rule-ink, var(--hairline)), var(--foot-layer-rule-ink, var(--hairline))),
|
|
5384
|
+
linear-gradient(var(--foot-layer-bg, var(--_layer-bg)), var(--foot-layer-bg, var(--_layer-bg)));
|
|
5385
|
+
background-position: left 0 bottom calc(var(--_foot) - var(--rule-w)), left 0 bottom 0;
|
|
5386
|
+
background-size: 100% var(--rule-w), 100% var(--_foot);
|
|
5387
|
+
background-repeat: no-repeat;
|
|
5388
|
+
}
|
|
5271
5389
|
|
|
5272
5390
|
/* ---- css/sticky.css — sticky note, its field, tone chooser, thread of posts, pile ---- */
|
|
5273
5391
|
/* 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.
|
|
@@ -6536,6 +6654,39 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
6536
6654
|
.mosaic > :first-child { grid-row: span 2; }
|
|
6537
6655
|
.mosaic > * { min-height: 0; border-radius: 0; } /* opacity/border-width here were no-ops: .ph restates its own below, and nothing else in a mosaic carries either by default */
|
|
6538
6656
|
.mosaic > img { width: 100%; height: 100%; object-fit: cover; }
|
|
6657
|
+
/* two photos (cardds#226): side by side, one row, equally tall */
|
|
6658
|
+
.mosaic--2 { grid-template-columns: 1fr 1fr; }
|
|
6659
|
+
.mosaic--2 > :first-child { grid-row: auto; }
|
|
6660
|
+
/* four or more: the small lower photo is darkened with "+n", n the photos not shown. The darkening is the scrim twice (75% black): one scrim is 3.9:1 under white words over a white photo, two are 10.4:1 */
|
|
6661
|
+
.mosaic__more-cell { position: relative; display: grid; }
|
|
6662
|
+
.mosaic__more-cell > :first-child { width: 100%; height: 100%; min-height: 0; border-radius: 0; object-fit: cover; }
|
|
6663
|
+
.mosaic__more {
|
|
6664
|
+
position: absolute; inset: 0; display: grid; place-items: center;
|
|
6665
|
+
background: linear-gradient(var(--mosaic-more-bg, var(--scrim)), var(--mosaic-more-bg, var(--scrim))), var(--mosaic-more-bg, var(--scrim));
|
|
6666
|
+
color: var(--mosaic-more-ink, var(--ink-ondark));
|
|
6667
|
+
font: var(--mosaic-more-font, var(--type-title));
|
|
6668
|
+
}
|
|
6669
|
+
|
|
6670
|
+
/* ---- thumb: one small square photo that can be pressed, and the grid it stands in (cardds#232) ----
|
|
6671
|
+
<div class="thumb-grid"><button class="thumb" aria-label="Photo 1"><img src="…" alt=""></button>…</div>
|
|
6672
|
+
The photo only — no words over or under it. The whole square is the control (its press is the shared list at the end of actions.css). */
|
|
6673
|
+
.thumb-grid {
|
|
6674
|
+
display: grid;
|
|
6675
|
+
grid-template-columns: repeat(var(--thumb-grid-cols, 5), minmax(0, 1fr)); /* five to a row; the squares grow with the width they stand in */
|
|
6676
|
+
gap: var(--thumb-grid-gap, var(--sp-2));
|
|
6677
|
+
}
|
|
6678
|
+
.thumb {
|
|
6679
|
+
display: block;
|
|
6680
|
+
aspect-ratio: 1;
|
|
6681
|
+
min-width: 0;
|
|
6682
|
+
padding: 0;
|
|
6683
|
+
border: 0;
|
|
6684
|
+
background: none;
|
|
6685
|
+
color: inherit;
|
|
6686
|
+
border-radius: var(--thumb-radius, var(--r-control));
|
|
6687
|
+
overflow: hidden;
|
|
6688
|
+
}
|
|
6689
|
+
.thumb > img, .thumb > .ph { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 0; }
|
|
6539
6690
|
|
|
6540
6691
|
/* ---- postcard: a member's introduction in the shape of a cover card — the photo fills it,
|
|
6541
6692
|
the band at the bottom names it; tap the photo to turn it over (Lh 2026-09-12; reshaped 2026-09-22) ----
|
|
@@ -6665,8 +6816,8 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
6665
6816
|
1. the card drops in from above the stage to the screen's centre — its
|
|
6666
6817
|
drawer still inside it, height 0: nothing of the ask shows yet
|
|
6667
6818
|
2. the drawer comes out of the card's bottom edge while the lift moves
|
|
6668
|
-
up, both at once: the card grows
|
|
6669
|
-
(the modal
|
|
6819
|
+
up, both at once: the card grows about its 40% point, which never moves
|
|
6820
|
+
(the modal stands itself on --screen-centre — absolute, margin auto; a growing card keeps that point where it is)
|
|
6670
6821
|
Closing: <Modal open onClosed> — set open={false} and the Modal component plays the
|
|
6671
6822
|
same animations in reverse (Animation.reverse() on each — nothing duplicated), then
|
|
6672
6823
|
calls onClosed for the app to unmount the stage. Modal no longer knows its own
|
|
@@ -6674,14 +6825,16 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
6674
6825
|
sets open={false}).
|
|
6675
6826
|
Reduced motion: the finished state, no beats; closing fires at once. */
|
|
6676
6827
|
.modal {
|
|
6677
|
-
position: absolute; /* at the stage's centre, and kept there as it grows: its
|
|
6678
|
-
top:
|
|
6828
|
+
position: absolute; /* at the stage's centre, and kept there as it grows: its 40% point is pinned at --screen-centre and */
|
|
6829
|
+
top: var(--screen-centre); /* translate -40% of its OWN height (--centre-lift) re-seats it on every height. NOT inset 0 + margin auto + */
|
|
6679
6830
|
inset-inline: 0; /* align-self: center — Safari 18 ignores align-self on an absolute box in a block container, */
|
|
6680
6831
|
margin-inline: auto; /* so the card stretched to the whole stage (iOS 18.6, Lh 2026-09-24); nor height: fit-content */
|
|
6681
|
-
translate: 0 -
|
|
6832
|
+
translate: 0 var(--centre-lift);
|
|
6682
6833
|
width: calc(100% - 2 * var(--screen-pad));
|
|
6683
6834
|
z-index: var(--z-over-2); /* over the dim stage's scrim (z 1) */
|
|
6684
|
-
|
|
6835
|
+
/* the cap, as a .card--centre's (card.css): its 40% above the point must clear the top bar's line (--_top) and the screen's gap, its 60% below
|
|
6836
|
+
must stay out of the bar's room (--bar-reserve); past that the body scrolls (the drawer keeps its height). % of the stage: it is the box it stands in */
|
|
6837
|
+
max-height: min((var(--screen-centre) - var(--_top, 0rem) - var(--screen-gap, var(--sp-5))) / var(--centre-at), (100% - var(--screen-centre) - var(--bar-reserve)) / (1 - var(--centre-at)));
|
|
6685
6838
|
padding: 0; /* the parts pad themselves */
|
|
6686
6839
|
border: 0; /* no frame on the modal (Lh 2026-09-16) — its edge is the shadow */
|
|
6687
6840
|
display: flex; /* a column: the lift shrinks (and scrolls) under max-height, the drawer keeps its height. NOT a grid */
|
|
@@ -6727,8 +6880,8 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
6727
6880
|
.modal { animation: modal-drop calc(2 * var(--motion-sheet)) var(--ease) both; }
|
|
6728
6881
|
.modal__drawer { animation: modal-open calc(2 * var(--motion-sheet)) var(--ease) both; }
|
|
6729
6882
|
@keyframes modal-drop {
|
|
6730
|
-
0% { translate: 0 calc(-
|
|
6731
|
-
50%, 100% { translate: 0 -
|
|
6883
|
+
0% { translate: 0 calc(var(--centre-lift) - 100cqh); } /* above the stage */
|
|
6884
|
+
50%, 100% { translate: 0 var(--centre-lift); } /* 1. at the centre — and it stays: beat 2 is the drawer's */
|
|
6732
6885
|
}
|
|
6733
6886
|
@keyframes modal-open {
|
|
6734
6887
|
0%, 50% { height: 0; padding-block: 0; } /* inside the card */
|
|
@@ -6811,23 +6964,28 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
6811
6964
|
<div class="popup popup--end" id="inbox" popover role="group"><div class="popup__head"><span class="words">…</span><button class="btn">Read all</button></div>
|
|
6812
6965
|
<div class="rows rows--joined"><a class="row">…</a>…</div></div>
|
|
6813
6966
|
Native popover, as .menu: light dismiss, Esc, top layer, anchored to its invoker where anchor positioning exists. It is a paper of its own (the card-1 ground, so
|
|
6814
|
-
the words on it follow that side), never wider than the
|
|
6967
|
+
the words on it follow that side), never wider than the room it has less its two margins, and scrolls inside itself when the room under the button is short: the head
|
|
6815
6968
|
is sticky, opaque, so a row's fill passes under it. Without anchor positioning (iOS before 26) it hangs under the top bar: the margin from the screen's start edge,
|
|
6816
|
-
or from its end edge (a margin in) with .popup--end. .popup--end = the button is at the screen's right: the popup's right edge is the button's, it grows leftwards (as .menu--end), its
|
|
6969
|
+
or from its end edge (a margin in) with .popup--end. .popup--end = the button is at the screen's right: the popup's right edge is --sp-2 in from the button's, it grows leftwards (as .menu--end), its far margin kept by max-width.
|
|
6970
|
+
Narrower than the cards under it (cardds#222, Lh 2026-11-17: "ซ้อนกันเกินไป"): a card stands --screen-pad in from the screen, so the popup stands --sp-2 in from the card's edge on the button's side and --sp-6 in on the far side — the card's edge shows on both. */
|
|
6817
6971
|
.popup {
|
|
6818
6972
|
--card-bg: var(--card-1-bg); /* the paper's own slot (a ring, a fold reads it); its side, the inks follow (tokens.css) */
|
|
6819
6973
|
--dark: var(--card-1-dark);
|
|
6820
6974
|
--_popup-w: calc(var(--tap-base) * 8); /* 384: the widest it grows */
|
|
6821
6975
|
--_popup-max-h: calc(var(--tap-base) * 12); /* 576: the tallest it grows, short screens aside */
|
|
6822
6976
|
--_popup-room: calc(100dvh - var(--safe-top) - var(--header-h) - var(--sp-2) - var(--popup-margin, var(--sp-3))); /* the room under the top bar; anchored, what is under the button (below) */
|
|
6977
|
+
--_popup-near: calc(var(--screen-pad) + var(--sp-2)); /* from the screen's edge, the button's side: --sp-2 inside the card's edge */
|
|
6978
|
+
--_popup-far: calc(var(--screen-pad) + var(--sp-6)); /* from the screen's edge, the far side: --sp-6 inside the card's edge */
|
|
6979
|
+
--_popup-m-near: var(--popup-margin, var(--_popup-near));
|
|
6980
|
+
--_popup-m-far: var(--popup-margin, var(--_popup-far));
|
|
6823
6981
|
display: none; /* explicit closed state — never display on the base rule */
|
|
6824
6982
|
margin: 0;
|
|
6825
6983
|
padding: 0;
|
|
6826
6984
|
inset: auto;
|
|
6827
6985
|
inset-block-start: calc(var(--safe-top) + var(--header-h) + var(--sp-2));
|
|
6828
|
-
inset-inline-start: var(--
|
|
6986
|
+
inset-inline-start: var(--_popup-m-near);
|
|
6829
6987
|
width: var(--popup-w, var(--_popup-w));
|
|
6830
|
-
max-width: calc(100% -
|
|
6988
|
+
max-width: calc(100% - var(--_popup-m-near) - var(--_popup-m-far));
|
|
6831
6989
|
max-height: min(var(--popup-max-h, var(--_popup-max-h)), var(--_popup-room));
|
|
6832
6990
|
overflow-y: auto;
|
|
6833
6991
|
overscroll-behavior: contain;
|
|
@@ -6839,7 +6997,7 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
6839
6997
|
}
|
|
6840
6998
|
.popup:popover-open { display: block; }
|
|
6841
6999
|
.popup.\:popover-open { display: block; } /* the polyfill's open (iOS 16.4), its own rule as .menu's */
|
|
6842
|
-
.popup--end { inset-inline-start: auto; inset-inline-end: var(--
|
|
7000
|
+
.popup--end { inset-inline-start: auto; inset-inline-end: var(--_popup-m-near); }
|
|
6843
7001
|
.popup__head {
|
|
6844
7002
|
position: sticky;
|
|
6845
7003
|
inset-block-start: 0;
|
|
@@ -6858,10 +7016,12 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
6858
7016
|
position-area: block-end span-inline-end; /* from the button's start edge, rightwards */
|
|
6859
7017
|
inset: auto;
|
|
6860
7018
|
margin-block: var(--sp-2) var(--popup-margin, var(--sp-3));
|
|
7019
|
+
--_popup-near: var(--sp-2); /* the area starts at the button, whose edge is the card's: the margin is measured from it */
|
|
7020
|
+
margin-inline: var(--_popup-m-near) var(--_popup-m-far);
|
|
6861
7021
|
--_popup-room: calc(100% - var(--sp-2) - var(--popup-margin, var(--sp-3))); /* % of the area under the button */
|
|
6862
7022
|
position-try-fallbacks: flip-block;
|
|
6863
7023
|
}
|
|
6864
|
-
.popup--end[popover] { position-area: block-end span-inline-start; } /* the button's right edge, leftwards (as .menu--end): the
|
|
7024
|
+
.popup--end[popover] { position-area: block-end span-inline-start; margin-inline: var(--_popup-m-far) var(--_popup-m-near); } /* the button's right edge, leftwards (as .menu--end): the area starts at the screen's left, so the far margin is from the screen */
|
|
6865
7025
|
}
|
|
6866
7026
|
@media (prefers-reduced-motion: no-preference) {
|
|
6867
7027
|
.popup[popover] {
|
|
@@ -7002,12 +7162,12 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
7002
7162
|
/* ---- splash: the app's mark at the human centre while it boots (Lh 2026-09-24) ----
|
|
7003
7163
|
<section class="screen screen--fill splash"><div class="splash__group"><div class="splash__mark">{the app's lottie/img}</div>
|
|
7004
7164
|
<p class="splash__text">…</p></div></section>
|
|
7005
|
-
The group's
|
|
7165
|
+
The group's own 40% point is on --screen-centre (40% down), the same line a centred card uses. The mark is the app's own content —
|
|
7006
7166
|
a lottie box often carries empty room around its drawing — the app sets the knobs below, cardds does not guess it. */
|
|
7007
7167
|
.splash { position: relative; background: var(--splash-bg, var(--surface)); transition: opacity var(--motion-sheet) var(--ease); }
|
|
7008
7168
|
.splash--leaving { opacity: 0; }
|
|
7009
7169
|
.splash__group {
|
|
7010
|
-
position: absolute; inset-inline: var(--screen-pad); top: var(--splash-at, var(--screen-centre)); translate: 0 -
|
|
7170
|
+
position: absolute; inset-inline: var(--screen-pad); top: var(--splash-at, var(--screen-centre)); translate: 0 var(--centre-lift);
|
|
7011
7171
|
display: grid; justify-items: center; gap: var(--splash-gap, var(--sp-4)); text-align: center;
|
|
7012
7172
|
}
|
|
7013
7173
|
.splash__mark { width: var(--splash-mark-w, 60%); max-width: 100%; translate: var(--splash-mark-x, 0) var(--splash-mark-y, 0); }
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type ComponentProps, type ReactNode } from 'react';
|
|
2
2
|
export interface CardMediaProps extends ComponentProps<'div'> {
|
|
3
|
+
/** a full-width picture OUTSIDE a card (a `Page` of a full screen, a `Panes` slide): edge to edge of what holds it, corner `--r-media`, the picture's own ratio — a taller one is cut at the middle past `--card-media-max-ratio` (height ÷ width, default 1.25: 4:5) */
|
|
4
|
+
full?: boolean;
|
|
3
5
|
}
|
|
4
6
|
/** CardMedia — rounded media inside a card (a Placeholder or img); a corner JourneyBadge pins to it: the badge on the corner of a picture is the paper,
|
|
5
|
-
* its corner concentric with the media's; a theme's `--tile-badge-bg` / `--tile-badge-radius` still win. Ruled (Lh 2026-10-21). */
|
|
6
|
-
export declare function CardMedia({ className, ...rest }: CardMediaProps): import("react").JSX.Element;
|
|
7
|
+
* its corner concentric with the media's; a theme's `--tile-badge-bg` / `--tile-badge-radius` still win. Ruled (Lh 2026-10-21). `full`: the same media outside a card, edge to edge, the picture's own ratio up to 4:5. */
|
|
8
|
+
export declare function CardMedia({ full, className, ...rest }: CardMediaProps): import("react").JSX.Element;
|
|
7
9
|
export interface MediaBesideProps extends ComponentProps<'div'> {
|
|
8
10
|
/** the picture: a SMALL SQUARE at the side of the words (an `img` or a `Placeholder`), cropped to fill it, the media's corner. Knob `--media-beside-size`
|
|
9
11
|
* (default one and a half taps, 72) */
|
|
@@ -17,12 +19,17 @@ export interface CardListProps extends ComponentProps<'div'> {
|
|
|
17
19
|
* saying there is more. The list measures its own rows (they wrap to any height) and keeps the window right when they change. Leave it out and the
|
|
18
20
|
* list is as long as its rows and scrolls with what holds it */
|
|
19
21
|
show?: number;
|
|
22
|
+
/** THIN (cardds#213, a feed): every `Card` in the list is thinner — its padding `--sp-4`, its corner `--r-base`, the gap between its parts
|
|
23
|
+
* `--sp-5` (the cards stay `--card-list-gap`, `--sp-3`, apart). Posts (`FeedPost`) and plain cards alike; a card outside the list does not
|
|
24
|
+
* change. Knobs `--card-list-thin-pad` · `--card-list-thin-radius` · `--card-list-thin-gap` */
|
|
25
|
+
thin?: boolean;
|
|
20
26
|
}
|
|
21
27
|
/** CardList — a stack of `Card row`s, each its own boundary: a list of things to open or to pick (past requests to reuse). It stands on the base or straight in a sheet's
|
|
22
|
-
* body and scrolls with it; never inside a card (a card never wraps a card — `cardds check` rule `card-in-card`). Rows inside a card are `Rows`.
|
|
28
|
+
* body and scrolls with it; never inside a card (a card never wraps a card — `cardds check` rule `card-in-card`). Rows inside a card are `Rows`. A `Thread` may stand in it between two cards (a feed): it takes its own room over and under it (`--thread-room-size`).
|
|
23
29
|
* A SHORT WINDOW of past entries under a form (`show={2.5}`): the list scrolls in itself, a few rows in sight; each row a `Card row as="label"` round a radio
|
|
24
|
-
* (pick one) with `onRemove` for its corner cross (take it off the list) — the app owns the list, the picked one and what a removal does.
|
|
25
|
-
|
|
30
|
+
* (pick one) with `onRemove` for its corner cross (take it off the list) — the app owns the list, the picked one and what a removal does.
|
|
31
|
+
* A FEED of posts and cards (`thin`): every card in it thinner, so a screen holds more of them. */
|
|
32
|
+
export declare function CardList({ show, thin, className, style, ref, ...rest }: CardListProps): import("react").JSX.Element;
|
|
26
33
|
export interface IconRowProps extends ComponentProps<'span'> {
|
|
27
34
|
}
|
|
28
35
|
/** IconRow — a trailing cluster of Icons in a card or stack head. */
|