@usableapp/cardds 0.7.178 → 0.7.180
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 +38 -0
- package/bin/cardds.mjs +23 -3
- 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 +20 -2
- package/css/stack.css +43 -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 +246 -41
- package/dist/cards/Card.d.ts +1 -1
- package/dist/cards/Card.js +4 -1
- 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/parts/Head.d.ts +3 -1
- package/dist/parts/Head.js +3 -1
- 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/sheets/SheetStack.d.ts +3 -1
- package/dist/sheets/SheetStack.js +2 -1
- package/dist/sheets/StackSheet.d.ts +6 -4
- package/dist/sheets/StackSheet.js +8 -3
- package/dist/sheets/stackCard.d.ts +2 -0
- package/dist/templates/Home.d.ts +3 -1
- package/dist/templates/Home.js +2 -2
- package/dist/templates/Splash.d.ts +1 -1
- package/dist/templates/Splash.js +1 -1
- package/dist/type/Icon.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 +121 -8
- package/icons.svg +1 -0
- package/lib/audit.mjs +330 -0
- package/lib/guide.mjs +1 -1
- package/lib/mcp.mjs +13 -0
- package/lint/rules.mjs +2 -2
- package/package.json +1 -1
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; }
|
|
@@ -2007,7 +2053,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2007
2053
|
border-color var(--motion-sheet) var(--ease),
|
|
2008
2054
|
box-shadow var(--motion-sheet) var(--ease);
|
|
2009
2055
|
}
|
|
2010
|
-
.stack-sheet__tab > .stack-sheet__count { /* outranks .badge (numbers.css loads after this file) */
|
|
2056
|
+
:is(.stack-sheet__tab, .stack-sheet__tab-icon) > .stack-sheet__count { /* outranks .badge (numbers.css loads after this file) */
|
|
2011
2057
|
position: absolute;
|
|
2012
2058
|
top: calc(-1 * var(--stack-sheet-count-out, var(--sp-2))); /* how far it stands OUT of the tab's corner, up and to the right: at sp-1 it
|
|
2013
2059
|
sat exactly on the chosen tab's disc edge — it reads as a mark beside the icon, not part of the disc (Lh 2026-10-01) */
|
|
@@ -2035,6 +2081,48 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2035
2081
|
sp-4 since Lh 2026-10-30 (was sp-2): the last tab's count badge still stood almost cropped by the corner */
|
|
2036
2082
|
.head > .stack-sheet__tabs { margin-right: var(--stack-sheet-tabs-end, var(--sp-4)); }
|
|
2037
2083
|
|
|
2084
|
+
.stack-sheet__tabs--named { align-items: flex-start; gap: var(--stack-sheet-tabs-named-gap, var(--sp-3)); }
|
|
2085
|
+
.head > .stack-sheet__tabs--named { margin-right: 0; }
|
|
2086
|
+
.stack-sheet__tab.stack-sheet__tab--named {
|
|
2087
|
+
flex: none;
|
|
2088
|
+
display: grid;
|
|
2089
|
+
justify-items: center;
|
|
2090
|
+
gap: var(--stack-sheet-tab-gap, var(--sp-0));
|
|
2091
|
+
width: auto;
|
|
2092
|
+
height: auto;
|
|
2093
|
+
margin: 0;
|
|
2094
|
+
padding: var(--stack-sheet-tab-pad, var(--sp-2) var(--sp-2) var(--sp-1));
|
|
2095
|
+
border: 0;
|
|
2096
|
+
border-radius: var(--stack-sheet-tab-radius, var(--sp-4));
|
|
2097
|
+
background: transparent;
|
|
2098
|
+
box-shadow: none;
|
|
2099
|
+
color: var(--stack-sheet-tab-ink, var(--card-muted));
|
|
2100
|
+
font: var(--fw-caption) var(--fs-2xs) / var(--lh-label) var(--face-caption);
|
|
2101
|
+
white-space: nowrap;
|
|
2102
|
+
text-align: center;
|
|
2103
|
+
cursor: pointer;
|
|
2104
|
+
touch-action: manipulation;
|
|
2105
|
+
}
|
|
2106
|
+
.stack-sheet__tab-icon { position: relative; display: inline-flex; }
|
|
2107
|
+
.stack-sheet__tab-name { display: block; }
|
|
2108
|
+
.stack-sheet__tab-icon > .stack-sheet__count {
|
|
2109
|
+
right: auto;
|
|
2110
|
+
left: calc(100% - var(--sp-1) - var(--sp-0));
|
|
2111
|
+
}
|
|
2112
|
+
.stack-sheet__tab.stack-sheet__tab--named[aria-selected="true"] {
|
|
2113
|
+
background: var(--icon-btn-invert-bg, var(--btn-primary-bg, var(--accent)));
|
|
2114
|
+
color: var(--icon-btn-invert-ink, var(--btn-primary-ink, var(--on-accent)));
|
|
2115
|
+
}
|
|
2116
|
+
.stack-sheet__tab--named:active { scale: var(--press-scale); }
|
|
2117
|
+
.stack-sheet__tab--named:focus-visible { outline: var(--focus); outline-offset: var(--sp-1); }
|
|
2118
|
+
.sheet-stack--tap > .card:not(.is-open) > .head .stack-sheet__tab.stack-sheet__tab--named[aria-selected="true"] {
|
|
2119
|
+
background: transparent;
|
|
2120
|
+
color: var(--stack-sheet-tab-ink, var(--card-muted));
|
|
2121
|
+
}
|
|
2122
|
+
.sheet-stack:not(.sheet-stack--display, .sheet-stack--fanned):has(.head .stack-sheet__tab--named) {
|
|
2123
|
+
--stack-step: calc(var(--card-pad-rest) + var(--tap) + var(--card-gap-rest) + var(--sp-6));
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2038
2126
|
/* 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
|
|
2039
2127
|
while open; the last tab then sits on the inset (no reach into the padding) */
|
|
2040
2128
|
:is(.sheet-stack--tap > .card, .sheet-stack--tap > :not(.card, .sheet-stack__base) > .card) > .head > .sheet-stack__back--end { left: auto; right: 0; } /* as specific as the rule that sets it at the start (above), so it wins: a shorter selector lost, and the back stood over the title */
|
|
@@ -3147,7 +3235,9 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3147
3235
|
.icon-btn-line__words { font: var(--type-label); text-align: center; min-width: 0; }
|
|
3148
3236
|
.icon-btn-line > .icon-btn-group--form { margin-inline: 0; }
|
|
3149
3237
|
.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 */
|
|
3238
|
+
.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 */
|
|
3239
|
+
/* 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
|
|
3240
|
+
value still on) it is the pressed fill, faded */
|
|
3151
3241
|
|
|
3152
3242
|
/* fab: the square floating action, bottom-right of a stage or screen */
|
|
3153
3243
|
.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 +3602,19 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3512
3602
|
dims only when the finger is on the card itself, never while it is on one of those.
|
|
3513
3603
|
.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
3604
|
dims nor gives: its ink never changes under the finger (Lh 2026-10-25), the opening is the answer. Pointer only (below).
|
|
3605
|
+
.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
3606
|
.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
3607
|
.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
3608
|
.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
3609
|
the focus ring is the card's, from its unseen open button, card.css). A control in the head keeps its own press. */
|
|
3519
3610
|
: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
3611
|
.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) {
|
|
3612
|
+
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
3613
|
cursor: pointer;
|
|
3523
3614
|
touch-action: manipulation;
|
|
3524
3615
|
transition: scale var(--motion-press) var(--ease-out);
|
|
3525
3616
|
}
|
|
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) {
|
|
3617
|
+
: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
3618
|
cursor: pointer;
|
|
3528
3619
|
touch-action: manipulation;
|
|
3529
3620
|
transition: opacity var(--motion-press) var(--ease-out);
|
|
@@ -3538,8 +3629,8 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3538
3629
|
}
|
|
3539
3630
|
: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
3631
|
.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); }
|
|
3632
|
+
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); }
|
|
3633
|
+
: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
3634
|
.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
3635
|
.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
3636
|
/* 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 +3640,17 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3549
3640
|
/* 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
3641
|
: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
3642
|
.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,
|
|
3643
|
+
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
3644
|
: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
3645
|
: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
3646
|
/* disabled: no pointer anywhere; a control fades (a link and a row keep their own muted look) */
|
|
3556
3647
|
: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
3648
|
.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"]),
|
|
3649
|
+
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
3650
|
:where(.chip--pick, .tile--pick, .mood__opt, .toggle-field, label.btn, label.row):has(:disabled) { cursor: default; }
|
|
3560
3651
|
: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
3652
|
.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"]),
|
|
3653
|
+
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
3654
|
:where(.chip--pick, .tile--pick, .mood__opt, .toggle-field, label.btn):has(:disabled) { opacity: var(--off); }
|
|
3564
3655
|
.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
3656
|
@media (prefers-reduced-motion: reduce) { :root { --press-scale: 1; } } /* the give goes; the dim, the shade and the focus ring stay */
|
|
@@ -4428,6 +4519,15 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4428
4519
|
Space BETWEEN rows is .rows' gap; a lone row as card content takes the card's
|
|
4429
4520
|
gap. (.row--flush, which zeroed the old padding, is gone — every row is flush.) */
|
|
4430
4521
|
.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 */
|
|
4522
|
+
/* 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
|
|
4523
|
+
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 */
|
|
4524
|
+
.row--lead-1 { --_lead-n: 1; }
|
|
4525
|
+
.row--lead-2 { --_lead-n: 2; }
|
|
4526
|
+
.row--lead-3 { --_lead-n: 3; }
|
|
4527
|
+
.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); }
|
|
4528
|
+
.row--lead-caption { --_lead-line: round(down, calc(var(--lh-caption) * var(--fs-caption)), 1px); }
|
|
4529
|
+
.row--lead-lines > .avatar-stack { --stamp-sm-size: var(--_lead-w); }
|
|
4530
|
+
.row--lead-lines > .lead { --lead-size: var(--_lead-w); }
|
|
4431
4531
|
/* a row that EXPANDS (Lh 2026-09-22): the row is a <details>' summary, what it shows comes out under it —
|
|
4432
4532
|
who liked a postcard, the rest of a list. An end chevron turns when open. The app owns the list.
|
|
4433
4533
|
<details class="row-expand"><summary class="row">…lead · body · end…</summary><div class="row-expand__more">…</div></details> */
|
|
@@ -4453,6 +4553,17 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4453
4553
|
display: grid;
|
|
4454
4554
|
place-items: center;
|
|
4455
4555
|
}
|
|
4556
|
+
/* 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.
|
|
4557
|
+
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. */
|
|
4558
|
+
.row--todo { --_todo-fade: color-mix(in srgb, var(--card-ink) 40%, transparent); --_todo-ink: var(--row-todo-ink, var(--_todo-fade)); }
|
|
4559
|
+
.row__todo {
|
|
4560
|
+
width: var(--row-done-size, var(--tap-sm));
|
|
4561
|
+
height: var(--row-done-size, var(--tap-sm));
|
|
4562
|
+
flex: none;
|
|
4563
|
+
margin-left: auto;
|
|
4564
|
+
border-radius: 50%;
|
|
4565
|
+
border: var(--border-w) dashed var(--row-todo-ring, var(--_todo-ink));
|
|
4566
|
+
}
|
|
4456
4567
|
|
|
4457
4568
|
/* rows: a list of rows separated by hairlines */
|
|
4458
4569
|
.rows { display: grid; --rows-gap: var(--sp-4); row-gap: var(--rows-gap); }
|
|
@@ -4477,7 +4588,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4477
4588
|
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
4589
|
.rows.rows--joined { --rows-gap: 0rem; }
|
|
4479
4590
|
.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)); }
|
|
4591
|
+
.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
4592
|
.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
4593
|
.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
4594
|
.rows--joined > .rows__head { padding: var(--rows-joined-pad-y, var(--sp-3)) var(--rows-joined-pad-x, var(--sp-4)) 0; }
|
|
@@ -4515,6 +4626,9 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4515
4626
|
the round Btn hangs up from it at the end corner while the reader is away from the end */
|
|
4516
4627
|
.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
4628
|
.thread__jump { translate: 0 calc(-100% - var(--thread-jump-at, var(--sp-3))); }
|
|
4629
|
+
/* 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
|
|
4630
|
+
cards, the same over it and under it (the end room above is a chat's, for the bar under it) */
|
|
4631
|
+
.card-list > .thread { padding-block: var(--thread-room-size, var(--sp-4)); }
|
|
4518
4632
|
.bubble__author + *::before { content: "·"; margin-inline-end: var(--bubble-meta-gap, var(--sp-1)); }
|
|
4519
4633
|
.bubble__author:has(+ *) { margin-inline-end: var(--bubble-meta-gap, var(--sp-1)); }
|
|
4520
4634
|
.bubble__day:has(+ *) { margin-inline-end: var(--bubble-meta-gap, var(--sp-1)); } /* the day, then the time: "Dec 4 8:15" */
|
|
@@ -4541,20 +4655,51 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4541
4655
|
font: var(--bubble-body-font, var(--type-body));
|
|
4542
4656
|
overflow-wrap: anywhere;
|
|
4543
4657
|
}
|
|
4544
|
-
.bubble--right
|
|
4658
|
+
.bubble--right .bubble__body {
|
|
4545
4659
|
border-bottom-left-radius: var(--r-card);
|
|
4546
4660
|
border-bottom-right-radius: var(--bubble-tail-radius, var(--r-tail));
|
|
4547
4661
|
background: var(--accent);
|
|
4662
|
+
--dark: var(--accent-dark); /* the accent fill's side: the muted ink of its quote follows it */
|
|
4548
4663
|
color: var(--on-accent);
|
|
4549
4664
|
text-align: right;
|
|
4550
4665
|
}
|
|
4666
|
+
/* 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
|
|
4667
|
+
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 */
|
|
4668
|
+
.bubble__quote {
|
|
4669
|
+
display: block;
|
|
4670
|
+
margin-bottom: var(--sp-1);
|
|
4671
|
+
padding-inline-start: var(--sp-3);
|
|
4672
|
+
border-inline-start: var(--sp-1) solid var(--bubble-quote-rule-ink, var(--card-muted));
|
|
4673
|
+
font: var(--type-caption);
|
|
4674
|
+
color: var(--bubble-quote-ink, var(--card-muted));
|
|
4675
|
+
white-space: nowrap;
|
|
4676
|
+
overflow: hidden;
|
|
4677
|
+
text-overflow: ellipsis;
|
|
4678
|
+
text-align: start;
|
|
4679
|
+
}
|
|
4551
4680
|
.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
4681
|
.bubble--right > .bubble__meta { justify-self: end; }
|
|
4553
|
-
.bubble__meta > .icon { --icon-ink: var(--bubble-meta-icon-ink, var(--accent-ink)); }
|
|
4682
|
+
.bubble__meta > .icon, .bubble__time > .icon { --icon-ink: var(--bubble-meta-icon-ink, var(--accent-ink)); }
|
|
4683
|
+
/* the line ABOVE the message (Bubble metaAbove, cardds#214): who sent it, read before the words — lead · name · time on one line, the bubble
|
|
4684
|
+
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
|
|
4685
|
+
who, then what), the same meta line as below the message and its separators. The bubble hugs its words however long the line is
|
|
4686
|
+
(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. */
|
|
4687
|
+
.bubble--meta-above { row-gap: var(--bubble-meta-above-gap, var(--sp-2)); justify-items: start; }
|
|
4688
|
+
.bubble--meta-above.bubble--right { justify-items: end; }
|
|
4689
|
+
.bubble--meta-above > .bubble__meta { min-width: 0; max-width: 100%; }
|
|
4690
|
+
.bubble__lead { flex: none; display: flex; margin-inline-end: var(--bubble-lead-gap, var(--sp-1)); } /* on top of the line's gap */
|
|
4691
|
+
.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 */
|
|
4692
|
+
.bubble__time { flex: none; display: flex; align-items: center; gap: var(--bubble-meta-gap, var(--sp-1)); white-space: nowrap; }
|
|
4693
|
+
/* 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
|
|
4694
|
+
side the thread's middle is (after theirs, before mine), centred on the message's height. The bubble's 75% cap holds both */
|
|
4695
|
+
.bubble__row { display: flex; align-items: center; gap: var(--bubble-action-gap, var(--sp-2)); min-width: 0; max-width: 100%; }
|
|
4696
|
+
.bubble--right .bubble__row { flex-direction: row-reverse; }
|
|
4697
|
+
.bubble__row > .bubble__body { flex: 0 1 auto; }
|
|
4698
|
+
.bubble__action { flex: none; display: grid; }
|
|
4554
4699
|
/* 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
4700
|
a.bubble { color: inherit; text-decoration: none; }
|
|
4556
4701
|
/* highlighted (Bubble highlighted): the message the member is looking at, a ring a hair outside its body */
|
|
4557
|
-
.bubble--highlighted
|
|
4702
|
+
.bubble--highlighted .bubble__body { outline: var(--sp-0) solid var(--bubble-highlighted-ink, var(--accent)); outline-offset: var(--sp-0); }
|
|
4558
4703
|
|
|
4559
4704
|
/* ---- timeline: a hairline with date chips, entries to the right ----
|
|
4560
4705
|
<ol class="timeline"><li class="timeline__item"><span class="timeline__mark">Wed 14</span><p class="t-body">…</p></li>…</ol> */
|
|
@@ -4697,7 +4842,8 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
4697
4842
|
}
|
|
4698
4843
|
.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
4844
|
.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); }
|
|
4845
|
+
.row--done:not(.row--full-ink) > .words > .words__title { color: var(--card-muted); }
|
|
4846
|
+
.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
4847
|
|
|
4702
4848
|
/* ---- end: the value over its caption, right-aligned at the end of a line ---- */
|
|
4703
4849
|
.end { margin-left: auto; text-align: right; display: grid; gap: var(--end-gap, var(--sp-0)); justify-items: end; }
|
|
@@ -4837,7 +4983,10 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
4837
4983
|
.head:has(> .tile-badge:first-child + .head__chips) { row-gap: var(--head-words-gap, var(--sp-1)); }
|
|
4838
4984
|
.head:has(> .tile-badge:first-child + .head__chips) > :is(.tile-badge:first-child, .head__chips) { margin-block-end: max(0rem, calc(var(--head-group-gap, var(--sp-5)) - var(--head-words-gap, var(--sp-1)))); } /* the date and its chips both keep it, so the stretched date stays as tall as the chips */
|
|
4839
4985
|
.head__chips { grid-column: 2; grid-row: 1; align-self: stretch; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: var(--head-chips-gap, var(--head-col-gap, var(--sp-3))); }
|
|
4840
|
-
.head__chips-top { min-height: calc(round(down, calc(var(--fs-sm) * var(--chip-sm-line, var(--lh-body))), 1px) + 2 * var(--chip-sm-pad-y, var(--sp-0)) + 2 * var(--border-w)); } /* one small chip tall (actions.css: a head's chips) */
|
|
4986
|
+
.head__chips-top, .head__fold { min-height: calc(round(down, calc(var(--fs-sm) * var(--chip-sm-line, var(--lh-body))), 1px) + 2 * var(--chip-sm-pad-y, var(--sp-0)) + 2 * var(--border-w)); } /* one small chip tall (actions.css: a head's chips) */
|
|
4987
|
+
.head:has(> .tile-badge:first-child + :is(.chip-row, .head__chips)):has(> .head__fold) { grid-template-columns: auto minmax(0, 1fr) auto; }
|
|
4988
|
+
.head:has(> .tile-badge:first-child + :is(.chip-row, .head__chips)) > .head__fold.head__fold { grid-column: 3; grid-row: 1; align-self: center; display: flex; align-items: center; }
|
|
4989
|
+
.head:has(> .tile-badge:first-child + .head__chips) > .head__fold.head__fold { align-self: start; }
|
|
4841
4990
|
|
|
4842
4991
|
/* a head that LEADS with a person or a thing (Lh 2026-10-28, timebank's welcome card; re-laid for a phone's width the same day): a `Head` whose
|
|
4843
4992
|
first child is a `Lead`, an `Avatar` or an `AvatarStack` (a stamp in one) and whose second is the `Words` title. The lead at the left, as tall
|
|
@@ -5268,6 +5417,20 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
5268
5417
|
: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
5418
|
/* a paper sheet's foot is paper, as its body is: the words read the controls' side */
|
|
5270
5419
|
.sheet--paper > .foot { --card-bg: var(--action-bg); --dark: var(--action-dark); color: var(--foot-ink, var(--card-ink)); }
|
|
5420
|
+
/* 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 —
|
|
5421
|
+
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
|
|
5422
|
+
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
|
|
5423
|
+
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
|
|
5424
|
+
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 */
|
|
5425
|
+
.sheet > .foot.foot--layer {
|
|
5426
|
+
--_layer-bg: color-mix(in srgb, var(--ink-onlight) 8%, var(--card-bg));
|
|
5427
|
+
background-image:
|
|
5428
|
+
linear-gradient(var(--foot-layer-rule-ink, var(--hairline)), var(--foot-layer-rule-ink, var(--hairline))),
|
|
5429
|
+
linear-gradient(var(--foot-layer-bg, var(--_layer-bg)), var(--foot-layer-bg, var(--_layer-bg)));
|
|
5430
|
+
background-position: left 0 bottom calc(var(--_foot) - var(--rule-w)), left 0 bottom 0;
|
|
5431
|
+
background-size: 100% var(--rule-w), 100% var(--_foot);
|
|
5432
|
+
background-repeat: no-repeat;
|
|
5433
|
+
}
|
|
5271
5434
|
|
|
5272
5435
|
/* ---- css/sticky.css — sticky note, its field, tone chooser, thread of posts, pile ---- */
|
|
5273
5436
|
/* 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 +6699,39 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
6536
6699
|
.mosaic > :first-child { grid-row: span 2; }
|
|
6537
6700
|
.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
6701
|
.mosaic > img { width: 100%; height: 100%; object-fit: cover; }
|
|
6702
|
+
/* two photos (cardds#226): side by side, one row, equally tall */
|
|
6703
|
+
.mosaic--2 { grid-template-columns: 1fr 1fr; }
|
|
6704
|
+
.mosaic--2 > :first-child { grid-row: auto; }
|
|
6705
|
+
/* 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 */
|
|
6706
|
+
.mosaic__more-cell { position: relative; display: grid; }
|
|
6707
|
+
.mosaic__more-cell > :first-child { width: 100%; height: 100%; min-height: 0; border-radius: 0; object-fit: cover; }
|
|
6708
|
+
.mosaic__more {
|
|
6709
|
+
position: absolute; inset: 0; display: grid; place-items: center;
|
|
6710
|
+
background: linear-gradient(var(--mosaic-more-bg, var(--scrim)), var(--mosaic-more-bg, var(--scrim))), var(--mosaic-more-bg, var(--scrim));
|
|
6711
|
+
color: var(--mosaic-more-ink, var(--ink-ondark));
|
|
6712
|
+
font: var(--mosaic-more-font, var(--type-title));
|
|
6713
|
+
}
|
|
6714
|
+
|
|
6715
|
+
/* ---- thumb: one small square photo that can be pressed, and the grid it stands in (cardds#232) ----
|
|
6716
|
+
<div class="thumb-grid"><button class="thumb" aria-label="Photo 1"><img src="…" alt=""></button>…</div>
|
|
6717
|
+
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). */
|
|
6718
|
+
.thumb-grid {
|
|
6719
|
+
display: grid;
|
|
6720
|
+
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 */
|
|
6721
|
+
gap: var(--thumb-grid-gap, var(--sp-2));
|
|
6722
|
+
}
|
|
6723
|
+
.thumb {
|
|
6724
|
+
display: block;
|
|
6725
|
+
aspect-ratio: 1;
|
|
6726
|
+
min-width: 0;
|
|
6727
|
+
padding: 0;
|
|
6728
|
+
border: 0;
|
|
6729
|
+
background: none;
|
|
6730
|
+
color: inherit;
|
|
6731
|
+
border-radius: var(--thumb-radius, var(--r-control));
|
|
6732
|
+
overflow: hidden;
|
|
6733
|
+
}
|
|
6734
|
+
.thumb > img, .thumb > .ph { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 0; }
|
|
6539
6735
|
|
|
6540
6736
|
/* ---- postcard: a member's introduction in the shape of a cover card — the photo fills it,
|
|
6541
6737
|
the band at the bottom names it; tap the photo to turn it over (Lh 2026-09-12; reshaped 2026-09-22) ----
|
|
@@ -6665,8 +6861,8 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
6665
6861
|
1. the card drops in from above the stage to the screen's centre — its
|
|
6666
6862
|
drawer still inside it, height 0: nothing of the ask shows yet
|
|
6667
6863
|
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
|
|
6864
|
+
up, both at once: the card grows about its 40% point, which never moves
|
|
6865
|
+
(the modal stands itself on --screen-centre — absolute, margin auto; a growing card keeps that point where it is)
|
|
6670
6866
|
Closing: <Modal open onClosed> — set open={false} and the Modal component plays the
|
|
6671
6867
|
same animations in reverse (Animation.reverse() on each — nothing duplicated), then
|
|
6672
6868
|
calls onClosed for the app to unmount the stage. Modal no longer knows its own
|
|
@@ -6674,14 +6870,16 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
6674
6870
|
sets open={false}).
|
|
6675
6871
|
Reduced motion: the finished state, no beats; closing fires at once. */
|
|
6676
6872
|
.modal {
|
|
6677
|
-
position: absolute; /* at the stage's centre, and kept there as it grows: its
|
|
6678
|
-
top:
|
|
6873
|
+
position: absolute; /* at the stage's centre, and kept there as it grows: its 40% point is pinned at --screen-centre and */
|
|
6874
|
+
top: var(--screen-centre); /* translate -40% of its OWN height (--centre-lift) re-seats it on every height. NOT inset 0 + margin auto + */
|
|
6679
6875
|
inset-inline: 0; /* align-self: center — Safari 18 ignores align-self on an absolute box in a block container, */
|
|
6680
6876
|
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 -
|
|
6877
|
+
translate: 0 var(--centre-lift);
|
|
6682
6878
|
width: calc(100% - 2 * var(--screen-pad));
|
|
6683
6879
|
z-index: var(--z-over-2); /* over the dim stage's scrim (z 1) */
|
|
6684
|
-
|
|
6880
|
+
/* 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
|
|
6881
|
+
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 */
|
|
6882
|
+
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
6883
|
padding: 0; /* the parts pad themselves */
|
|
6686
6884
|
border: 0; /* no frame on the modal (Lh 2026-09-16) — its edge is the shadow */
|
|
6687
6885
|
display: flex; /* a column: the lift shrinks (and scrolls) under max-height, the drawer keeps its height. NOT a grid */
|
|
@@ -6727,8 +6925,8 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
6727
6925
|
.modal { animation: modal-drop calc(2 * var(--motion-sheet)) var(--ease) both; }
|
|
6728
6926
|
.modal__drawer { animation: modal-open calc(2 * var(--motion-sheet)) var(--ease) both; }
|
|
6729
6927
|
@keyframes modal-drop {
|
|
6730
|
-
0% { translate: 0 calc(-
|
|
6731
|
-
50%, 100% { translate: 0 -
|
|
6928
|
+
0% { translate: 0 calc(var(--centre-lift) - 100cqh); } /* above the stage */
|
|
6929
|
+
50%, 100% { translate: 0 var(--centre-lift); } /* 1. at the centre — and it stays: beat 2 is the drawer's */
|
|
6732
6930
|
}
|
|
6733
6931
|
@keyframes modal-open {
|
|
6734
6932
|
0%, 50% { height: 0; padding-block: 0; } /* inside the card */
|
|
@@ -6811,23 +7009,28 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
6811
7009
|
<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
7010
|
<div class="rows rows--joined"><a class="row">…</a>…</div></div>
|
|
6813
7011
|
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
|
|
7012
|
+
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
7013
|
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
|
|
7014
|
+
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.
|
|
7015
|
+
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
7016
|
.popup {
|
|
6818
7017
|
--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
7018
|
--dark: var(--card-1-dark);
|
|
6820
7019
|
--_popup-w: calc(var(--tap-base) * 8); /* 384: the widest it grows */
|
|
6821
7020
|
--_popup-max-h: calc(var(--tap-base) * 12); /* 576: the tallest it grows, short screens aside */
|
|
6822
7021
|
--_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) */
|
|
7022
|
+
--_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 */
|
|
7023
|
+
--_popup-far: calc(var(--screen-pad) + var(--sp-6)); /* from the screen's edge, the far side: --sp-6 inside the card's edge */
|
|
7024
|
+
--_popup-m-near: var(--popup-margin, var(--_popup-near));
|
|
7025
|
+
--_popup-m-far: var(--popup-margin, var(--_popup-far));
|
|
6823
7026
|
display: none; /* explicit closed state — never display on the base rule */
|
|
6824
7027
|
margin: 0;
|
|
6825
7028
|
padding: 0;
|
|
6826
7029
|
inset: auto;
|
|
6827
7030
|
inset-block-start: calc(var(--safe-top) + var(--header-h) + var(--sp-2));
|
|
6828
|
-
inset-inline-start: var(--
|
|
7031
|
+
inset-inline-start: var(--_popup-m-near);
|
|
6829
7032
|
width: var(--popup-w, var(--_popup-w));
|
|
6830
|
-
max-width: calc(100% -
|
|
7033
|
+
max-width: calc(100% - var(--_popup-m-near) - var(--_popup-m-far));
|
|
6831
7034
|
max-height: min(var(--popup-max-h, var(--_popup-max-h)), var(--_popup-room));
|
|
6832
7035
|
overflow-y: auto;
|
|
6833
7036
|
overscroll-behavior: contain;
|
|
@@ -6839,7 +7042,7 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
6839
7042
|
}
|
|
6840
7043
|
.popup:popover-open { display: block; }
|
|
6841
7044
|
.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(--
|
|
7045
|
+
.popup--end { inset-inline-start: auto; inset-inline-end: var(--_popup-m-near); }
|
|
6843
7046
|
.popup__head {
|
|
6844
7047
|
position: sticky;
|
|
6845
7048
|
inset-block-start: 0;
|
|
@@ -6858,10 +7061,12 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
6858
7061
|
position-area: block-end span-inline-end; /* from the button's start edge, rightwards */
|
|
6859
7062
|
inset: auto;
|
|
6860
7063
|
margin-block: var(--sp-2) var(--popup-margin, var(--sp-3));
|
|
7064
|
+
--_popup-near: var(--sp-2); /* the area starts at the button, whose edge is the card's: the margin is measured from it */
|
|
7065
|
+
margin-inline: var(--_popup-m-near) var(--_popup-m-far);
|
|
6861
7066
|
--_popup-room: calc(100% - var(--sp-2) - var(--popup-margin, var(--sp-3))); /* % of the area under the button */
|
|
6862
7067
|
position-try-fallbacks: flip-block;
|
|
6863
7068
|
}
|
|
6864
|
-
.popup--end[popover] { position-area: block-end span-inline-start; } /* the button's right edge, leftwards (as .menu--end): the
|
|
7069
|
+
.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
7070
|
}
|
|
6866
7071
|
@media (prefers-reduced-motion: no-preference) {
|
|
6867
7072
|
.popup[popover] {
|
|
@@ -7002,12 +7207,12 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
7002
7207
|
/* ---- splash: the app's mark at the human centre while it boots (Lh 2026-09-24) ----
|
|
7003
7208
|
<section class="screen screen--fill splash"><div class="splash__group"><div class="splash__mark">{the app's lottie/img}</div>
|
|
7004
7209
|
<p class="splash__text">…</p></div></section>
|
|
7005
|
-
The group's
|
|
7210
|
+
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
7211
|
a lottie box often carries empty room around its drawing — the app sets the knobs below, cardds does not guess it. */
|
|
7007
7212
|
.splash { position: relative; background: var(--splash-bg, var(--surface)); transition: opacity var(--motion-sheet) var(--ease); }
|
|
7008
7213
|
.splash--leaving { opacity: 0; }
|
|
7009
7214
|
.splash__group {
|
|
7010
|
-
position: absolute; inset-inline: var(--screen-pad); top: var(--splash-at, var(--screen-centre)); translate: 0 -
|
|
7215
|
+
position: absolute; inset-inline: var(--screen-pad); top: var(--splash-at, var(--screen-centre)); translate: 0 var(--centre-lift);
|
|
7011
7216
|
display: grid; justify-items: center; gap: var(--splash-gap, var(--sp-4)); text-align: center;
|
|
7012
7217
|
}
|
|
7013
7218
|
.splash__mark { width: var(--splash-mark-w, 60%); max-width: 100%; translate: var(--splash-mark-x, 0) var(--splash-mark-y, 0); }
|
package/dist/cards/Card.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ export interface CardProps extends ComponentProps<'article'> {
|
|
|
82
82
|
removeLabel?: string;
|
|
83
83
|
/** THE FOLD — the card can fold to its head: folded, only its `Head` shows; a tap on the head (not on a control in it) opens the rest
|
|
84
84
|
* (the content and the `Foot`), another folds it again. The rest opens and folds as a grid row, nothing jumps; folded it is `inert`.
|
|
85
|
-
* The card draws its own chevron down as the head's last `end` (after the app's own ends), turned up while open, as a Banner's; it stands on the middle of the WHOLE head, not on the title's first line as the other ends do.
|
|
85
|
+
* The card draws its own chevron down as the head's last `end` (after the app's own ends), turned up while open, as a Banner's; it stands on the middle of the WHOLE head, not on the title's first line as the other ends do. In a `Head variant="date"` (with its date and chips) it stands instead at the head's top right, beside the chips, and takes no row under the title.
|
|
86
86
|
* The keyboard and a screen reader meet ONE unseen button after the head, named by the head (or `openLabel`), that says open or folded.
|
|
87
87
|
* The card finds its `Head` by type, as a two-faced card does. Not on a `row`, `sm`, `stack`, `paper="bands"` card, nor with `back` or `onPress`:
|
|
88
88
|
* there it is ignored. A folding card is never pressed whole (the head is its press). Knob: none — the motion is the sheet's (`--motion-sheet`) */
|
package/dist/cards/Card.js
CHANGED
|
@@ -153,7 +153,10 @@ export function Card({ tone, paper, sm, row, cover, fold, centre, wide, band, as
|
|
|
153
153
|
if (folding) {
|
|
154
154
|
const headId = headKid.props.id ?? `${foldId}h`;
|
|
155
155
|
const rest = kids.filter((c) => c !== headKid);
|
|
156
|
-
|
|
156
|
+
const chevron = _jsx(Icon, { name: "chevron-down", size: "sm", className: "card__chevron" });
|
|
157
|
+
const dateHead = headKid.props.variant === 'date' && headKid.props.lead != null && (headKid.props.chips != null || headKid.props.chipsBelow != null);
|
|
158
|
+
const foldMark = dateHead ? { fold: chevron } : { end: _jsxs(_Fragment, { children: [headKid.props.end, _jsx("span", { className: "card__fold", children: chevron })] }) };
|
|
159
|
+
return createElement(as, props, inner(_jsxs(_Fragment, { children: [cloneElement(headKid, { id: headId, ...foldMark }), _jsx("button", { type: "button", className: "card__open", "aria-expanded": opened, "aria-controls": `${foldId}r`, ...(openLabel ? { 'aria-label': openLabel } : { 'aria-labelledby': headId }), onClick: () => askOpen(!opened) }), _jsx("div", { className: "card__more", id: `${foldId}r`, inert: folded, children: _jsx("div", { className: "card__rest", children: rest }) })] })));
|
|
157
160
|
}
|
|
158
161
|
if (turns) {
|
|
159
162
|
const ownHeadKid = kids.find((c) => isValidElement(c) && c.type === Head);
|