@usableapp/cardds 0.7.159 → 0.7.161
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 +24 -0
- package/css/actions.css +37 -6
- package/css/base.css +2 -1
- package/css/card.css +1 -1
- package/css/choice.css +3 -3
- package/css/forms.css +3 -3
- package/css/journey.css +8 -6
- package/css/layover.css +1 -1
- package/css/media.css +1 -1
- package/css/numbers.css +4 -4
- package/css/parts.css +71 -17
- package/css/post.css +3 -3
- package/css/sheet.css +1 -1
- package/css/stack.css +2 -2
- package/css/stamp.css +2 -2
- package/css/sticky.css +1 -1
- package/css/theme.template.css +2 -1
- package/css/tokens.css +8 -8
- package/dist/actions/LinkBlock.d.ts +3 -2
- package/dist/actions/LinkBlock.js +5 -3
- package/dist/cardds.css +148 -60
- package/dist/catalog.json +1 -1
- package/dist/lists/Row.js +5 -2
- package/dist/parts/Head.d.ts +1 -0
- package/dist/parts/Head.js +5 -1
- package/dist/parts/Words.d.ts +2 -1
- package/dist/parts/Words.js +8 -3
- package/dist/parts/endRoom.d.ts +9 -0
- package/dist/parts/endRoom.js +35 -0
- package/dist/type/icons.js +1 -1
- package/docs/reference.md +5 -0
- package/icons.svg +1 -1
- package/package.json +1 -1
package/dist/cardds.css
CHANGED
|
@@ -377,14 +377,14 @@
|
|
|
377
377
|
onlight shade washed 14% into the surface (tone 2's formula) */
|
|
378
378
|
:root, [data-palette], [data-mode] {
|
|
379
379
|
/* each kind's style, from its tokens: set here so a palette or a mode that tunes a kind's weight, size, leading or face reaches .t-<kind> */
|
|
380
|
-
--type-display: var(--fw-display) var(--fs-display) / var(--lh-display) var(--face-display);
|
|
381
|
-
--type-h1: var(--fw-h1) var(--fs-h1) / var(--lh-h1) var(--face-h1);
|
|
382
|
-
--type-h2: var(--fw-h2) var(--fs-h2) / var(--lh-h2) var(--face-h2);
|
|
383
|
-
--type-title: var(--fw-title) var(--fs-title) / var(--lh-title) var(--face-title);
|
|
384
|
-
--type-body: var(--fw-body) var(--fs-body) / var(--lh-body) var(--face-body);
|
|
385
|
-
--type-label: var(--fw-label) var(--fs-label) / var(--lh-label) var(--face-label);
|
|
386
|
-
--type-caption: var(--fw-caption) var(--fs-caption) / var(--lh-caption) var(--face-caption);
|
|
387
|
-
--type-stat: var(--fw-stat) var(--fs-stat) / var(--lh-stat) var(--face-stat);
|
|
380
|
+
--type-display: var(--fw-display) var(--fs-display) / round(down, calc(var(--lh-display) * 1em), 1px) var(--face-display);
|
|
381
|
+
--type-h1: var(--fw-h1) var(--fs-h1) / round(down, calc(var(--lh-h1) * 1em), 1px) var(--face-h1);
|
|
382
|
+
--type-h2: var(--fw-h2) var(--fs-h2) / round(down, calc(var(--lh-h2) * 1em), 1px) var(--face-h2);
|
|
383
|
+
--type-title: var(--fw-title) var(--fs-title) / round(down, calc(var(--lh-title) * 1em), 1px) var(--face-title);
|
|
384
|
+
--type-body: var(--fw-body) var(--fs-body) / round(down, calc(var(--lh-body) * 1em), 1px) var(--face-body);
|
|
385
|
+
--type-label: var(--fw-label) var(--fs-label) / round(down, calc(var(--lh-label) * 1em), 1px) var(--face-label);
|
|
386
|
+
--type-caption: var(--fw-caption) var(--fs-caption) / round(down, calc(var(--lh-caption) * 1em), 1px) var(--face-caption);
|
|
387
|
+
--type-stat: var(--fw-stat) var(--fs-stat) / round(down, calc(var(--lh-stat) * 1em), 1px) var(--face-stat);
|
|
388
388
|
/* shadows of paper laid on paper: mixed from the onlight ink, so re-derived where a palette is set */
|
|
389
389
|
--shadow-paper: 0 var(--sp-1) var(--sp-2) color-mix(in srgb, var(--ink-onlight) 16%, transparent); /* a stamp lying on paper: follows its teeth (drop-shadow) */
|
|
390
390
|
--shadow-lift: 0 var(--sp-0) var(--sp-1) color-mix(in srgb, var(--ink-onlight) 35%, transparent); /* a small disc lifted over a picture */
|
|
@@ -610,6 +610,7 @@ body {
|
|
|
610
610
|
background: var(--surface);
|
|
611
611
|
color: var(--card-ink);
|
|
612
612
|
font: var(--type-body);
|
|
613
|
+
line-height: var(--lh-body); /* the INHERITED leading stays a ratio: the --type-* styles round theirs to whole px for their own size (tokens.css), a length here would reach every child at any size */
|
|
613
614
|
-webkit-font-smoothing: antialiased;
|
|
614
615
|
}
|
|
615
616
|
|
|
@@ -758,7 +759,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
758
759
|
.t-expand__sign { justify-self: center; } /* the chevron: down = there is more, up = fold it */
|
|
759
760
|
.t-label { font: var(--type-label); }
|
|
760
761
|
.t-caption { font: var(--type-caption); color: var(--t-caption-ink, inherit); }
|
|
761
|
-
.t-caption:has(+ .t-h1), .t-h1 + .t-caption { line-height: var(--lh-h1-caption); } /* an h1's caption, over it or under it (Words meta) */
|
|
762
|
+
.t-caption:has(+ .t-h1), .t-h1 + .t-caption { line-height: round(down, calc(var(--lh-h1-caption) * 1em), 1px); } /* an h1's caption, over it or under it (Words meta) */
|
|
762
763
|
.t-caption:has(+ .t-h1) { display: inline-flex; } /* a caption over an h1 is a span in its div's line: inline, its wrapped lines stood on the div's body leading (33px).
|
|
763
764
|
As a box it keeps its own leading inside; an inline-flex stands on that line by its FIRST line (an inline-block's would be its last), so a caption
|
|
764
765
|
that wraps starts where a one-line one does and its next line goes down, the h1 with it (Lh 2026-10-25) */
|
|
@@ -1297,7 +1298,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1297
1298
|
.card-feed { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--card-feed-gap, var(--card-gap-rest)); }
|
|
1298
1299
|
.feed-card { row-gap: 0; }
|
|
1299
1300
|
.feed-card > .head:has(> .t-caption) > .feed-card__lead { grid-row: span 2; }
|
|
1300
|
-
.feed-card__lead { display: grid; align-
|
|
1301
|
+
.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) */
|
|
1301
1302
|
.card-feed__end { text-align: center; }
|
|
1302
1303
|
.feed-card__more { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; }
|
|
1303
1304
|
.feed-card--small > .feed-card__more { grid-template-rows: 0fr; }
|
|
@@ -1667,7 +1668,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1667
1668
|
stack deliberately runs a second line under the next card. */
|
|
1668
1669
|
.sheet-stack > .card > .head :is(h1, h2, h3) {
|
|
1669
1670
|
font-size: var(--fs-h1);
|
|
1670
|
-
line-height: var(--lh-solid);
|
|
1671
|
+
line-height: round(down, calc(var(--lh-solid) * 1em), 1px);
|
|
1671
1672
|
letter-spacing: var(--track-h2);
|
|
1672
1673
|
margin-right: auto; /* pins the icon cluster right */
|
|
1673
1674
|
display: block;
|
|
@@ -1896,7 +1897,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1896
1897
|
padding: 0 var(--stack-sheet-count-pad-x, 0.25em) var(--stack-sheet-count-lift, 0.1em); /* "99+" keeps its room at every text size;
|
|
1897
1898
|
the room UNDER the number lifts it onto the circle's middle: a digit has no descender, so a centred line box sets it low (Lh 2026-10-01) */
|
|
1898
1899
|
font: var(--type-caption);
|
|
1899
|
-
line-height: var(--lh-solid);
|
|
1900
|
+
line-height: round(down, calc(var(--lh-solid) * 1em), 1px);
|
|
1900
1901
|
pointer-events: none;
|
|
1901
1902
|
}
|
|
1902
1903
|
/* a tab not chosen is the icon alone — no ring, no ground (Lh 2026-09-23: "the circle around is not pretty"); the chosen one turns
|
|
@@ -2454,7 +2455,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2454
2455
|
flex: none; display: grid; place-items: center; box-sizing: border-box; inline-size: var(--sheet-step-num-size, 1.408em); block-size: var(--sheet-step-num-size, 1.408em); /* em, not rem (Lh 2026-10-03, as the StackSheet's count): the disc is cut from ITS OWN number's size —
|
|
2455
2456
|
at a large text size the number grew and a 24px disc did not, so the digit sat on its bottom edge; 1.408em of a 17px caption = the 24px it always was */
|
|
2456
2457
|
padding-bottom: var(--sheet-step-num-lift, 0.1em); /* the room UNDER the number lifts it onto the disc's middle: a digit has no descender, so a centred line box sets it low */
|
|
2457
|
-
border-radius: 50%; font: var(--sheet-step-num-font, var(--type-caption)); line-height: var(--lh-solid); font-variant-numeric: tabular-nums;
|
|
2458
|
+
border-radius: 50%; font: var(--sheet-step-num-font, var(--type-caption)); line-height: round(down, calc(var(--lh-solid) * 1em), 1px); font-variant-numeric: tabular-nums;
|
|
2458
2459
|
background: var(--sheet-step-num-bg, var(--card-bg)); color: var(--sheet-step-num-ink, inherit);
|
|
2459
2460
|
}
|
|
2460
2461
|
.sheet-step__summary { color: var(--sheet-step-summary-ink, var(--card-muted)); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
@@ -2609,7 +2610,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2609
2610
|
.field select,
|
|
2610
2611
|
.field textarea,
|
|
2611
2612
|
.field--rows {
|
|
2612
|
-
font: var(--field-font, var(--fw-regular) var(--fs-lg) / var(--lh-field) var(--font-ui)); /* 26: the words being typed read a size up from body (Lh 2026-09-22); the Composer already does. .field--rows too, so 1lh is the textarea's line for its icon */
|
|
2613
|
+
font: var(--field-font, var(--fw-regular) var(--fs-lg) / round(down, calc(var(--lh-field) * 1em), 1px) var(--font-ui)); /* 26: the words being typed read a size up from body (Lh 2026-09-22); the Composer already does. .field--rows too, so 1lh is the textarea's line for its icon */
|
|
2613
2614
|
}
|
|
2614
2615
|
.field input,
|
|
2615
2616
|
.field select,
|
|
@@ -2681,7 +2682,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2681
2682
|
display: grid;
|
|
2682
2683
|
place-items: center;
|
|
2683
2684
|
font-size: var(--add-row-plus-font-size, var(--fs-md));
|
|
2684
|
-
line-height: var(--lh-solid);
|
|
2685
|
+
line-height: round(down, calc(var(--lh-solid) * 1em), 1px);
|
|
2685
2686
|
}
|
|
2686
2687
|
.add-row__plus .icon { --icon-size: var(--icon-xs); }
|
|
2687
2688
|
|
|
@@ -2729,7 +2730,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2729
2730
|
margin: 0;
|
|
2730
2731
|
padding: var(--message-bar-input-pad-y, var(--sp-2)) var(--message-bar-input-pad-x, var(--sp-4));
|
|
2731
2732
|
border: 0;
|
|
2732
|
-
font: var(--message-bar-input-font, var(--fw-regular) var(--fs-lg) / var(--lh-field) var(--font-ui)); /* the words being typed read as a Field's */
|
|
2733
|
+
font: var(--message-bar-input-font, var(--fw-regular) var(--fs-lg) / round(down, calc(var(--lh-field) * 1em), 1px) var(--font-ui)); /* the words being typed read as a Field's */
|
|
2733
2734
|
white-space: pre-wrap;
|
|
2734
2735
|
overflow-wrap: anywhere;
|
|
2735
2736
|
}
|
|
@@ -2824,21 +2825,23 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2824
2825
|
/* the label is the badge's own ink, smaller: a badge is a small fill of any colour (a palette paints it yellow), and only its own ink is
|
|
2825
2826
|
sure to hold 4.5:1 on it; --dim faded it to 2.4:1 */
|
|
2826
2827
|
.tile-badge__label { font: var(--tile-badge-label-font, var(--type-caption)); color: var(--tile-badge-label-ink, inherit); }
|
|
2827
|
-
.tile-badge__value { font: var(--fw-heavy) var(--fs-lg) / var(--lh-tight) var(--font-display); font-variant-numeric: tabular-nums; }
|
|
2828
|
+
.tile-badge__value { font: var(--fw-heavy) var(--fs-lg) / round(down, calc(var(--lh-tight) * 1em), 1px) var(--font-display); font-variant-numeric: tabular-nums; }
|
|
2828
2829
|
|
|
2829
2830
|
/* plain: no fill — a date box beside a title (Jun / 18) */
|
|
2830
2831
|
.tile-badge--plain { background: transparent; --dark: inherit; color: inherit; padding: 0; min-width: var(--tile-badge-plain-min-w, var(--tap-sm)); }
|
|
2831
|
-
.tile-badge--plain .tile-badge__value { font: var(--fw-heavy) var(--fs-h1) / var(--lh-solid) var(--font-display); }
|
|
2832
|
+
.tile-badge--plain .tile-badge__value { font: var(--fw-heavy) var(--fs-h1) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-display); }
|
|
2832
2833
|
|
|
2833
2834
|
/* stretch: a date in a head (Lh 2026-10-19) — as tall as the title block beside it and no taller (the head stretches it; size
|
|
2834
2835
|
containment keeps its own words from adding height). Its height picks the form: short (a one-line title) = two lines, the day name
|
|
2835
2836
|
over the number and the month on one line; tall (a two-line title) = three lines, day · number · month. It grows no taller than
|
|
2836
2837
|
its three lines (2026-10-21, timebank: beside a four-line title it was a tall empty block); held there, it stands at the head's top. */
|
|
2837
2838
|
.tile-badge--stretch {
|
|
2838
|
-
line-height: var(--tile-badge-line, var(--lh-badge)); /* the knob's own property
|
|
2839
|
+
line-height: var(--tile-badge-line, var(--lh-badge)); /* the knob's own property, a ratio here: each line rounds it at its own size (below), and the caps add those lines */
|
|
2839
2840
|
align-self: stretch;
|
|
2840
|
-
|
|
2841
|
-
|
|
2841
|
+
--_line-caption: round(down, calc(var(--fs-caption) * var(--tile-badge-line, var(--lh-badge))), 1px);
|
|
2842
|
+
--_line-value: round(down, calc(var(--fs-lg) * var(--tile-badge-line, var(--lh-badge))), 1px);
|
|
2843
|
+
min-block-size: calc(var(--_line-caption) + var(--_line-value) + 2 * var(--sp-3)); /* size containment hides the lines from the box, so it asks for the shortest form's height itself: a head whose chips are shorter (one chip) no longer leaves the lines hanging out of the fill */
|
|
2844
|
+
max-block-size: calc(2 * var(--_line-caption) + var(--_line-value) + 2 * var(--sp-3));
|
|
2842
2845
|
container-type: size;
|
|
2843
2846
|
/* size containment hides the words' width from the box, so the component passes their count (--_badge-chars: the value, plus half of the sub that stands beside it)
|
|
2844
2847
|
and the box is the wider of a two-digit date and that many digits; the app's knob still wins */
|
|
@@ -2852,7 +2855,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2852
2855
|
row-gap: 0;
|
|
2853
2856
|
padding: var(--sp-3); /* the same room on all four sides; the box's min height and width count it */
|
|
2854
2857
|
}
|
|
2855
|
-
.tile-badge--stretch > * { line-height:
|
|
2858
|
+
.tile-badge--stretch > * { line-height: round(down, calc(var(--tile-badge-line, var(--lh-badge)) * 1em), 1px); white-space: nowrap; } /* a value never breaks at its dash */
|
|
2856
2859
|
.tile-badge--stretch > :first-child { grid-column: 1 / -1; }
|
|
2857
2860
|
@container (min-height: 3.5rem) { /* just under the three lines' own height, the most the badge grows to */
|
|
2858
2861
|
.tile-badge--stretch > * { grid-column: 1 / -1; }
|
|
@@ -2939,7 +2942,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2939
2942
|
margin: 0; text-align: start;
|
|
2940
2943
|
border-radius: var(--appbar-who-radius, var(--r-chip));
|
|
2941
2944
|
}
|
|
2942
|
-
.appbar__title, .appbar__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: var(--lh-caption); } /* clipped lines: room for Thai marks */
|
|
2945
|
+
.appbar__title, .appbar__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: round(down, calc(var(--lh-caption) * 1em), 1px); } /* clipped lines: room for Thai marks */
|
|
2943
2946
|
.appbar__title { font: var(--type-label); }
|
|
2944
2947
|
.appbar__sub { font: var(--type-caption); color: var(--on-surface-muted); }
|
|
2945
2948
|
/* the bar's trailing controls (one or two: a labelled switch chip, a wallet button — home,
|
|
@@ -2958,7 +2961,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2958
2961
|
display: grid;
|
|
2959
2962
|
place-items: center;
|
|
2960
2963
|
font-size: var(--fs-lg);
|
|
2961
|
-
line-height: var(--lh-solid);
|
|
2964
|
+
line-height: round(down, calc(var(--lh-solid) * 1em), 1px);
|
|
2962
2965
|
}
|
|
2963
2966
|
.icon-btn--invert { background: var(--icon-btn-invert-bg, var(--accent)); color: var(--icon-btn-invert-ink, var(--on-accent)); border-color: transparent; }
|
|
2964
2967
|
.icon-btn--sm { width: var(--icon-btn-sm-size, var(--tap-sm)); height: var(--icon-btn-sm-size, var(--tap-sm)); font-size: var(--fs-title); }
|
|
@@ -3039,7 +3042,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3039
3042
|
/* sm (Btn sm, Lh 2026-10-28): one small tap tall (the touch floor, 44), the small words, closer sides — a worded move at a card head's end */
|
|
3040
3043
|
.btn--sm { min-height: var(--btn-sm-size, var(--form-tap-sm)); padding-block: var(--sp-1); padding-inline: var(--btn-sm-pad-x, var(--sp-4)); font-size: var(--btn-sm-font-size, var(--fs-sm)); }
|
|
3041
3044
|
/* xl: the one giant call to action in a tinted card ("Taxi!") */
|
|
3042
|
-
.btn--xl { min-height: var(--btn-xl-h); font: var(--fw-heavy) var(--fs-3xl) / var(--lh-solid) var(--font-display); letter-spacing: var(--track-h1); border-radius: var(--r-card); padding-inline: var(--sp-8); }
|
|
3045
|
+
.btn--xl { min-height: var(--btn-xl-h); font: var(--fw-heavy) var(--fs-3xl) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-display); letter-spacing: var(--track-h1); border-radius: var(--r-card); padding-inline: var(--sp-8); }
|
|
3043
3046
|
/* disabled keeps the slot — a control that vanishes moves everything else,
|
|
3044
3047
|
and a pager whose "previous" disappeared on page one would shift the bar
|
|
3045
3048
|
under the thumb on every page */
|
|
@@ -3064,6 +3067,37 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3064
3067
|
/* link block (LinkBlock, Lh 2026-10-28): a few pieces of a card's content as one link — stacked with the card's gap, the holder's ink, no underline,
|
|
3065
3068
|
no frame, no padding; the DIM press answer (below) */
|
|
3066
3069
|
.link-block { display: grid; gap: var(--link-block-gap, var(--card-gap)); color: inherit; text-decoration: none; }
|
|
3070
|
+
/* a Row in a link block with a lead and a meta (Lh 2026-10-28, the place under a map): laid as a led Head is (parts.css) — everything at the TOP,
|
|
3071
|
+
the lead at the left as tall as the row, the title with the end (and an arrow) at the right of its first line, the meta on a line of its own
|
|
3072
|
+
UNDER BOTH. The Words box gives way (display: contents) so its title and meta stand in the row's grid; the gaps are margins, the four spare
|
|
3073
|
+
columns of no width hold the ends. Only here: a list's rows are untouched.
|
|
3074
|
+
<a class="link-block">…<div class="row"><span class="lead">…</span><span class="words"><span class="words__title">…</span><span class="words__meta">…</span></span><span class="end">…</span><svg class="icon"/></div></a> */
|
|
3075
|
+
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) {
|
|
3076
|
+
display: grid;
|
|
3077
|
+
grid-template-columns: auto minmax(0, 1fr) repeat(4, auto);
|
|
3078
|
+
grid-template-rows: minmax(min-content, 0);
|
|
3079
|
+
grid-auto-rows: auto;
|
|
3080
|
+
column-gap: 0;
|
|
3081
|
+
row-gap: var(--words-gap, var(--sp-0));
|
|
3082
|
+
align-items: start;
|
|
3083
|
+
align-content: start;
|
|
3084
|
+
}
|
|
3085
|
+
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .lead { grid-column: 1; grid-row: 1 / 3; margin-inline-end: var(--row-gap, var(--sp-3)); }
|
|
3086
|
+
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words { display: contents; }
|
|
3087
|
+
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words > .words__title { grid-column: 2; grid-row: 1; }
|
|
3088
|
+
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words > .words__meta { grid-column: 2 / -1; grid-row: 2; }
|
|
3089
|
+
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > :nth-child(n + 3) { grid-row: 1; margin-inline-start: var(--row-gap, var(--sp-3)); }
|
|
3090
|
+
/* …and the title's later lines run UNDER the end and the arrow at full width, round the Words' room for them (parts.css "the ends in the corner") */
|
|
3091
|
+
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child > .words__room) > .words > .words__title { grid-column: 2 / -1; }
|
|
3092
|
+
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child > .words__room) > .words > .words__title > .words__room { display: flex; gap: var(--row-gap, var(--sp-3)); padding-inline-start: var(--row-gap, var(--sp-3)); }
|
|
3093
|
+
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child > .words__room) > :nth-child(3) { grid-column: 3; }
|
|
3094
|
+
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child > .words__room) > :nth-child(4) { grid-column: 4; }
|
|
3095
|
+
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child > .words__room) > :nth-child(5) { grid-column: 5; }
|
|
3096
|
+
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child > .words__room) > :nth-child(6) { grid-column: 6; }
|
|
3097
|
+
/* …and an End of words with its arrow stands centred in the title's FIRST line (title type's leading), as in a led Head (parts.css) */
|
|
3098
|
+
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) { --_line-h: round(down, calc(var(--lh-title) * var(--fs-title)), 1px); }
|
|
3099
|
+
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .end:not(:has(> .t-title)), .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words > .words__title > .words__room > .end:not(:has(> .t-title)) { margin-block-start: calc((var(--_line-h) - round(down, calc(var(--lh-caption) * var(--fs-caption)), 1px)) / 2); }
|
|
3100
|
+
.link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .end:not(:has(> .t-title)) + .icon, .link-block > .row:has(> .lead:first-child + .words > .words__title:first-child + .words__meta) > .words > .words__title > .words__room > .end:not(:has(> .t-title)) + .icon { --icon-margin: calc((var(--_line-h) - var(--end-icon-size, var(--icon-xs))) / 2) 0; }
|
|
3067
3101
|
/* a row of buttons sharing the width (twin CTAs inside a card) */
|
|
3068
3102
|
.btn-row { display: flex; gap: var(--btn-row-gap, var(--sp-2)); }
|
|
3069
3103
|
/* round (BtnRow round, Lh 2026-10-24): a few round IconBtns as one group in the middle of a card's content, a fixed gap apart — Foot round's look,
|
|
@@ -3116,9 +3150,9 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3116
3150
|
.dot--info { background: var(--signal-info); }
|
|
3117
3151
|
/* --sm: a small LABEL (a name on a note, a tag in a tight head) — low and tight; never a tap target */
|
|
3118
3152
|
/* one height wherever it stands (Lh 2026-10-21): the body's line, so a head that cuts its words with an ellipsis keeps the Thai marks over them, and a foot's or a middle's chip reads the same */
|
|
3119
|
-
.chip--sm { min-height: 0; gap: var(--chip-sm-gap, var(--sp-1)); padding: var(--chip-sm-pad-y, var(--sp-0)) var(--chip-sm-pad-x, var(--sp-2)); line-height: var(--chip-sm-line, var(--lh-body)); }
|
|
3153
|
+
.chip--sm { min-height: 0; gap: var(--chip-sm-gap, var(--sp-1)); padding: var(--chip-sm-pad-y, var(--sp-0)) var(--chip-sm-pad-x, var(--sp-2)); line-height: round(down, calc(var(--chip-sm-line, var(--lh-body)) * 1em), 1px); }
|
|
3120
3154
|
/* --xs: the smallest label — a count in a card's status row (👥 12), smaller than --sm; the icon follows its words (Lh 2026-10-24); never a tap target */
|
|
3121
|
-
.chip--xs { min-height: 0; gap: var(--chip-xs-gap, var(--sp-0)); padding: var(--chip-xs-pad-y, var(--sp-0)) var(--chip-xs-pad-x, var(--sp-1)); font-size: var(--chip-xs-font-size, var(--fs-2xs)); line-height: var(--chip-xs-line, var(--lh-tight)); }
|
|
3155
|
+
.chip--xs { min-height: 0; gap: var(--chip-xs-gap, var(--sp-0)); padding: var(--chip-xs-pad-y, var(--sp-0)) var(--chip-xs-pad-x, var(--sp-1)); font-size: var(--chip-xs-font-size, var(--fs-2xs)); line-height: round(down, calc(var(--chip-xs-line, var(--lh-tight)) * 1em), 1px); }
|
|
3122
3156
|
.chip--xs > .icon { width: var(--chip-xs-icon-size, 1em); height: var(--chip-xs-icon-size, 1em); }
|
|
3123
3157
|
/* soft: the accent washed into the chip's ground, no edge — a status to see, quieter than on (was the inbox Ribbon, Lh 2026-10-21) */
|
|
3124
3158
|
.chip--soft { background: var(--chip-soft-bg, var(--accent-wash)); color: var(--chip-soft-ink, var(--card-ink)); border-color: transparent; } /* the wash on the chip's own paper, opaque (--accent-wash): see-through, a dark tone came through under the light side's ink */
|
|
@@ -3415,7 +3449,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3415
3449
|
|
|
3416
3450
|
/* ---- where it sits in what card.css draws (docs/reference.md rule 15) ---- */
|
|
3417
3451
|
/* a head's ChipRow takes a line of its own under the title: at most two lines of chips, a chip's words cut with an ellipsis */
|
|
3418
|
-
.head > .chip-row { flex: 1 1 100%; order: 2; max-height: calc(2 * (var(--fs-sm) * var(--chip-sm-line, var(--lh-body)) + 2 * var(--chip-sm-pad-y, var(--sp-0)) + 2 * var(--border-w)) + var(--sp-2)); overflow: hidden; }
|
|
3452
|
+
.head > .chip-row { flex: 1 1 100%; order: 2; max-height: calc(2 * (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)) + var(--sp-2)); overflow: hidden; }
|
|
3419
3453
|
/* …beside a date that leads the head (card.css) they stand in the date's row, every chip in sight: the meeting place may take a line of its own */
|
|
3420
3454
|
.head:has(> .tile-badge:first-child + .chip-row) > .chip-row { grid-column: 2; grid-row: 1; max-height: none; }
|
|
3421
3455
|
.head > .chip-row > .chip { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
@@ -3522,7 +3556,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3522
3556
|
.ring__value { font: var(--ring-value-font, var(--type-stat)); letter-spacing: var(--track-display); }
|
|
3523
3557
|
.ring__label { font: var(--ring-label-font, var(--type-caption)); color: var(--ring-label-ink, var(--card-muted)); }
|
|
3524
3558
|
.ring--sm { --_size: var(--avatar-xl); --_w: var(--sp-3); }
|
|
3525
|
-
.ring--sm .ring__value { font: var(--fw-heavy) var(--fs-2xl) / var(--lh-solid) var(--font-display); }
|
|
3559
|
+
.ring--sm .ring__value { font: var(--fw-heavy) var(--fs-2xl) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-display); }
|
|
3526
3560
|
.ring--xs { --_size: var(--tap-sm); --_w: var(--dot-xs); } /* inline counter (step 3 of 5) */
|
|
3527
3561
|
.ring--xs .ring__value { font: var(--type-caption); }
|
|
3528
3562
|
|
|
@@ -3570,7 +3604,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3570
3604
|
background: var(--ink-tint); /* a number is words: on the 30% rail it fell under 4.5:1 on a mid-dark track; the 12% tint is what every tone holds its ink on */
|
|
3571
3605
|
color: var(--card-ink);
|
|
3572
3606
|
display: grid; place-items: center; box-sizing: border-box;
|
|
3573
|
-
font: var(--track-dot-font, var(--type-caption)); line-height: var(--lh-solid); font-variant-numeric: tabular-nums;
|
|
3607
|
+
font: var(--track-dot-font, var(--type-caption)); line-height: round(down, calc(var(--lh-solid) * 1em), 1px); font-variant-numeric: tabular-nums;
|
|
3574
3608
|
width: var(--track-dot-size, 1.877em); height: var(--track-dot-size, 1.877em); /* em, not rem (Lh 2026-10-03, as the SheetSteps' number and the StackSheet's count): the round is cut from ITS OWN
|
|
3575
3609
|
number's size — 1.877em of a 17px caption = the 32px of an icon's round; at a larger text it grows with its number, and the pill with it */
|
|
3576
3610
|
padding: 0 0 var(--track-dot-lift, 0.1em); /* the room UNDER the number lifts it onto the round's middle: a digit has no descender */
|
|
@@ -3580,10 +3614,10 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3580
3614
|
|
|
3581
3615
|
/* ---- band: data card — 2-line label · giant number · footnote ----
|
|
3582
3616
|
<article class="card card--band"><span class="band__label">Hours<br>banked</span><span class="band__num">18</span><span class="band__foot">this week</span></article> */
|
|
3583
|
-
.band__label { grid-area: label; align-self: start; font: var(--band-label-font, var(--type-label)); font-size: var(--band-label-font-size, var(--fs-body)); line-height: var(--lh-label); }
|
|
3617
|
+
.band__label { grid-area: label; align-self: start; font: var(--band-label-font, var(--type-label)); font-size: var(--band-label-font-size, var(--fs-body)); line-height: round(down, calc(var(--lh-label) * 1em), 1px); }
|
|
3584
3618
|
.band__num {
|
|
3585
3619
|
grid-area: num;
|
|
3586
|
-
font: var(--fw-heavy) var(--fs-giant) / var(--lh-band) var(--font-display);
|
|
3620
|
+
font: var(--fw-heavy) var(--fs-giant) / var(--lh-band) var(--font-display); /* a ratio, not rounded: its <small> unit sets a smaller size and inherits this leading */
|
|
3587
3621
|
letter-spacing: var(--track-display);
|
|
3588
3622
|
font-variant-numeric: tabular-nums;
|
|
3589
3623
|
}
|
|
@@ -3956,7 +3990,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3956
3990
|
color: var(--day-rest-ink, var(--card-muted)); /* an unpicked day at rest: the muted words of the ground it stands on (an opacity faded it under AA) */
|
|
3957
3991
|
}
|
|
3958
3992
|
.day__name { font: var(--day-name-font, var(--type-caption)); }
|
|
3959
|
-
.day__num { font: var(--fw-bold) var(--fs-lg) / var(--lh-tight) var(--font-display); font-variant-numeric: tabular-nums; }
|
|
3993
|
+
.day__num { font: var(--fw-bold) var(--fs-lg) / round(down, calc(var(--lh-tight) * 1em), 1px) var(--font-display); font-variant-numeric: tabular-nums; }
|
|
3960
3994
|
/* today: a light tone, no louder than a rest; the selected pill below wins when it is both (it comes after and weighs more) */
|
|
3961
3995
|
.day--today { background: var(--day-today-bg, var(--ink-tint)); color: var(--day-today-ink, var(--card-ink)); }
|
|
3962
3996
|
.day[aria-selected="true"] { background: var(--day-selected-bg, var(--accent)); color: var(--day-selected-ink, var(--on-accent)); }
|
|
@@ -3975,7 +4009,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3975
4009
|
display: grid;
|
|
3976
4010
|
place-items: center;
|
|
3977
4011
|
border-radius: 50%;
|
|
3978
|
-
font: var(--fw-medium) var(--fs-title) / var(--lh-solid) var(--font-ui);
|
|
4012
|
+
font: var(--fw-medium) var(--fs-title) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-ui);
|
|
3979
4013
|
font-variant-numeric: tabular-nums;
|
|
3980
4014
|
grid-column-start: var(--start, auto); /* --start on the 1st: weekday column 1–7 */
|
|
3981
4015
|
}
|
|
@@ -4134,7 +4168,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4134
4168
|
padding: 0;
|
|
4135
4169
|
background: transparent;
|
|
4136
4170
|
color: inherit;
|
|
4137
|
-
font: var(--composer-input-font, var(--fw-bold) var(--fs-2xl) / var(--lh-h2) var(--font-display));
|
|
4171
|
+
font: var(--composer-input-font, var(--fw-bold) var(--fs-2xl) / round(down, calc(var(--lh-h2) * 1em), 1px) var(--font-display));
|
|
4138
4172
|
letter-spacing: var(--track-h2);
|
|
4139
4173
|
outline: none;
|
|
4140
4174
|
}
|
|
@@ -4483,13 +4517,29 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
4483
4517
|
.row > .words { min-width: 0; }
|
|
4484
4518
|
.words__title { font: var(--words-title-font, var(--type-title)); overflow-wrap: anywhere; } /* wraps freely — no clip, so no padding trick for Thai marks (Lh 2026-09-16, same call as the card heading) */
|
|
4485
4519
|
.words__over { font: var(--words-over-font, var(--type-caption)); } /* the caption over the title (Words over): its own knob, as title and meta have — a low bar sets all three smaller from outside */
|
|
4520
|
+
/* the ends' room (Lh 2026-10-28): an unseen, inert copy of the ends of the line (Words renders it at the start of its title when the line hands
|
|
4521
|
+
it them: a led Head with a meta, a LinkBlock's Row), floated at the title's first line's end so its later lines run under the real ends.
|
|
4522
|
+
Nothing until a line lays its ends in the corner (parts.css head, actions.css link block) */
|
|
4523
|
+
.words__room {
|
|
4524
|
+
display: none; float: right; align-items: flex-start; width: max-content; visibility: hidden; -webkit-user-select: none; user-select: none;
|
|
4525
|
+
margin-block-end: min(0rem, calc(0.5em - 0.5lh)); /* the ends may reach into the next line's leading (empty), never its letters: an arrow a hair taller than a line keeps one line short, not two */
|
|
4526
|
+
letter-spacing: normal; /* a heading's tracking (.t-h2) is inherited and no type class of the ends resets it: the copy would come out narrower than the ends */
|
|
4527
|
+
}
|
|
4486
4528
|
.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)); }
|
|
4487
|
-
.row--lg > .words > .words__title { font: var(--fw-bold) var(--fs-lg) / var(--lh-h1) var(--font-display); }
|
|
4529
|
+
.row--lg > .words > .words__title { font: var(--fw-bold) var(--fs-lg) / round(down, calc(var(--lh-h1) * 1em), 1px) var(--font-display); }
|
|
4488
4530
|
.row--done > .words > .words__title { color: var(--card-muted); }
|
|
4489
4531
|
|
|
4490
4532
|
/* ---- end: the value over its caption, right-aligned at the end of a line ---- */
|
|
4491
4533
|
.end { margin-left: auto; text-align: right; display: grid; gap: var(--end-gap, var(--sp-0)); justify-items: end; }
|
|
4492
4534
|
.row > .end { flex: none; }
|
|
4535
|
+
/* an End of words with an icon after it or in it (a link's arrow: "Google Maps ↗"; Lh 2026-10-28): the two read as one. The icon is drawn at the
|
|
4536
|
+
words' size (--icon-xs, the caption's), so its drawing is about as tall as their x-height and its stroke as heavy as their stem (at the default
|
|
4537
|
+
bases: arrow 7.1 px tall, stroke 1.4 px; caption x-height 7.7 px, stem 1.5 px). Equal margins make it the caption's line box tall, so it
|
|
4538
|
+
stands centred on the words whether the line centres its parts (a Row) or tops them (a led Head). An End with a value keeps the icon as it is. */
|
|
4539
|
+
.end:not(:has(> .t-title)) + .icon, .end > .icon {
|
|
4540
|
+
--icon-size: var(--end-icon-size, var(--icon-xs));
|
|
4541
|
+
--icon-margin: calc((round(down, calc(var(--lh-caption) * var(--fs-caption)), 1px) - var(--end-icon-size, var(--icon-xs))) / 2) 0;
|
|
4542
|
+
}
|
|
4493
4543
|
|
|
4494
4544
|
/* ---- head: the first row of a card, a sheet and a stack sheet. A lead, the Words, chips, an end, as its direct children.
|
|
4495
4545
|
<div class="head"><h2 class="words__title t-h2">…</h2><span class="words__meta t-caption t-muted">…</span><button class="icon-btn icon-btn--sm">…</button></div>
|
|
@@ -4561,7 +4611,7 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
4561
4611
|
text-align: center;
|
|
4562
4612
|
}
|
|
4563
4613
|
.head--centre > .words__title { grid-area: 2 / 2; }
|
|
4564
|
-
.head--centre > .words__meta { grid-area: 3 / 2; line-height: calc(var(--lh-body) * var(--fs-base)); } /* the meta stands on the body's line, as the sub did, an inline span in a line of the head's own type */
|
|
4614
|
+
.head--centre > .words__meta { grid-area: 3 / 2; line-height: round(down, calc(var(--lh-body) * var(--fs-base)), 1px); } /* the meta stands on the body's line, as the sub did, an inline span in a line of the head's own type */
|
|
4565
4615
|
.head--centre > :first-child:not(.words__title) { grid-area: 1 / 1 / -1 / 2; }
|
|
4566
4616
|
.head--centre > :last-child:not(.words__title, .words__meta) { grid-area: 1 / 3 / -1 / 4; }
|
|
4567
4617
|
|
|
@@ -4605,23 +4655,60 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
4605
4655
|
}
|
|
4606
4656
|
.head:has(> .tile-badge:first-child + .chip-row) > :nth-child(n + 3) { grid-column: 1 / -1; grid-row: auto; }
|
|
4607
4657
|
|
|
4608
|
-
/* a head that LEADS with a person or a thing (Lh 2026-10-28, timebank's welcome card
|
|
4609
|
-
`AvatarStack` (a stamp in one) and whose second is the `Words` title.
|
|
4610
|
-
at the
|
|
4611
|
-
the
|
|
4612
|
-
|
|
4613
|
-
|
|
4658
|
+
/* 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
|
|
4659
|
+
first child is a `Lead`, an `Avatar` or an `AvatarStack` (a stamp in one) and whose second is the `Words` title. Everything stands at the TOP.
|
|
4660
|
+
Two columns: the lead at the left, as tall as the head; at its right the title, with whatever follows it (an `End`, an `IconBtn`, a `Btn sm`)
|
|
4661
|
+
together at the right of the title's first line, and the meta on a line of its own UNDER BOTH, as wide as the title and the ends together, so
|
|
4662
|
+
a long meta never wraps in a thin column. No end: the title takes the line. No meta: no second line, no gap, and the one line (title and ends)
|
|
4663
|
+
stands in the MIDDLE of the lead. The title is cut at
|
|
4664
|
+
--head-title-lines (above), the meta at --head-meta-lines (none). A head with no lead before its title is untouched.
|
|
4665
|
+
The gaps are margins, not column-gap: the head keeps four spare columns of no width for its ends, so the meta can run to the last (2 / -1).
|
|
4666
|
+
The first row is minmax(min-content, 0): a lead taller than title + meta gives its extra room to the meta's row, never between the two lines.
|
|
4667
|
+
<div class="head"><span class="avatar-stack">…</span><h2 class="words__title t-h2">…</h2><span class="words__meta t-caption t-muted">…</span><button class="icon-btn">…</button></div> */
|
|
4614
4668
|
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) {
|
|
4615
4669
|
display: grid;
|
|
4616
|
-
grid-template-columns: auto minmax(0, 1fr);
|
|
4617
|
-
grid-
|
|
4618
|
-
|
|
4670
|
+
grid-template-columns: auto minmax(0, 1fr) repeat(4, auto);
|
|
4671
|
+
grid-template-rows: minmax(min-content, 0);
|
|
4672
|
+
grid-auto-rows: auto;
|
|
4673
|
+
column-gap: 0;
|
|
4674
|
+
align-items: start;
|
|
4675
|
+
align-content: start;
|
|
4619
4676
|
}
|
|
4620
|
-
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :first-child { grid-column: 1; grid-row: 1
|
|
4621
|
-
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :
|
|
4622
|
-
|
|
4677
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :first-child { grid-column: 1; grid-row: 1; margin-inline-end: var(--head-col-gap, var(--sp-3)); }
|
|
4678
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title) + .words__meta) > :first-child { grid-row: 1 / 3; }
|
|
4679
|
+
/* the ends in the corner (Lh 2026-10-28: round buttons first; the same day any end, an End's words, a Btn sm): with a meta, whatever follows the
|
|
4680
|
+
title stands in the top-right corner OVER the title's column, and the title's lines wrap round it as round a float — a line past the ends'
|
|
4681
|
+
height runs the full width under them; the meta runs under all. The room is the Words' own .words__room (above): an unseen, inert copy of
|
|
4682
|
+
the ends that the component renders at the start of the title, floated, so it is exactly as wide and as tall as the ends whatever they say.
|
|
4683
|
+
The DOM order is untouched: the title is read first, the copy by nobody. No meta: no room, the centred line (below). The ends take the four
|
|
4684
|
+
spare columns in order, so the title can span them.
|
|
4685
|
+
<h2 class="words__title"><span class="words__room" aria-hidden="true" inert>…copies…</span>A long title</h2> */
|
|
4686
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title > .words__room) > .words__title {
|
|
4687
|
+
grid-column: 2 / -1;
|
|
4688
|
+
/* WebKit draws a float inside the -webkit-box line clamp as a box of its own ABOVE the words, so this title is a plain block: cut at
|
|
4689
|
+
--head-title-lines by its height (whole lines, no "…") */
|
|
4690
|
+
display: flow-root;
|
|
4691
|
+
max-height: calc(var(--head-title-lines, 3) * 1lh + var(--_mark-room) + var(--_mark-foot));
|
|
4692
|
+
}
|
|
4693
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title > .words__room) > .words__title > .words__room { display: flex; gap: var(--head-col-gap, var(--sp-3)); padding-inline-start: var(--head-col-gap, var(--sp-3)); }
|
|
4694
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title > .words__room) > :nth-child(4) { grid-column: 3; }
|
|
4695
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title > .words__room) > :nth-child(5) { grid-column: 4; }
|
|
4696
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title > .words__room) > :nth-child(6) { grid-column: 5; }
|
|
4697
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title > .words__room) > :nth-child(7) { grid-column: 6; }
|
|
4698
|
+
/* an End of words on the title's FIRST line (Lh 2026-10-28): the ends stand at the top, so an End's caption and its icon are centred in the
|
|
4699
|
+
first line of the title (its leading, rounded as the type rounds it), not at the head's top. Its copy in the room moves with it, so the room
|
|
4700
|
+
stays as tall as the ends and the second line still runs the full width. A round IconBtn or a Btn sm is taller than a line: it keeps the top.
|
|
4701
|
+
--_line-h: the title's line, from its level's tokens (h2, or h1 / display when the Words says so) */
|
|
4702
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta) { --_line-h: round(down, calc(var(--lh-h2) * var(--fs-h2)), 1px); }
|
|
4703
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .words__title.t-h1) { --_line-h: round(down, calc(var(--lh-h1) * var(--fs-h1)), 1px); }
|
|
4704
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .words__title.t-display) { --_line-h: round(down, calc(var(--lh-display) * var(--fs-display)), 1px); }
|
|
4705
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta) > .end:not(:has(> .t-title)), .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta) > .words__title > .words__room > .end:not(:has(> .t-title)) { margin-block-start: calc((var(--_line-h) - round(down, calc(var(--lh-caption) * var(--fs-caption)), 1px)) / 2); }
|
|
4706
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta) > .end:not(:has(> .t-title)) + .icon, .head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta) > .words__title > .words__room > .end:not(:has(> .t-title)) + .icon { --icon-margin: calc((var(--_line-h) - var(--end-icon-size, var(--icon-xs))) / 2) 0; }
|
|
4707
|
+
/* no meta: one line beside the lead, the title and the ends centred to it, the title still at the left (Lh 2026-10-28) */
|
|
4708
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)):not(:has(> .words__meta)) { align-items: center; }
|
|
4709
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(2) { grid-column: 2; grid-row: 1; }
|
|
4623
4710
|
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > .words__meta:nth-child(3) {
|
|
4624
|
-
grid-column: 2; grid-row: 2;
|
|
4711
|
+
grid-column: 2 / -1; grid-row: 2;
|
|
4625
4712
|
overflow-wrap: anywhere;
|
|
4626
4713
|
display: -webkit-box;
|
|
4627
4714
|
-webkit-box-orient: vertical;
|
|
@@ -4631,7 +4718,7 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
4631
4718
|
padding-block: 0.2em 0.15em; /* room for a Thai mark inside the clip, given back outside (as the title's, above) */
|
|
4632
4719
|
margin-block: -0.2em -0.15em;
|
|
4633
4720
|
}
|
|
4634
|
-
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(n + 3):not(.words__meta) { grid-row: 1
|
|
4721
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(n + 3):not(.words__meta) { grid-row: 1; margin-inline-start: var(--head-col-gap, var(--sp-3)); }
|
|
4635
4722
|
|
|
4636
4723
|
/* in a card with paper bands: the head and the foot are paper bands edge to edge, one look */
|
|
4637
4724
|
:is(.card--bands, .card--bands > .card__face) > :is(.head, .foot) {
|
|
@@ -4724,7 +4811,8 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
4724
4811
|
|
|
4725
4812
|
/* in a feed card */
|
|
4726
4813
|
.feed-card > .head { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; min-height: var(--feed-card-head-h, var(--tap)); }
|
|
4727
|
-
.feed-card > .head:has(> :is(.lead, .feed-card__lead)) { grid-template-columns: auto minmax(0, 1fr); } /* a Lead's own row of the head: parts.css */
|
|
4814
|
+
.feed-card > .head:has(> :is(.lead, .feed-card__lead)) { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(min-content, 0); align-items: start; align-content: start; } /* a Lead's own row of the head: parts.css. Led, it stands at the TOP, as a led Head does (above), and with no caption in the MIDDLE of the lead (below); the first row as the led Head's, so a tall lead's extra room goes under the caption, not between the lines */
|
|
4815
|
+
.feed-card > .head:has(> :is(.lead, .feed-card__lead)):not(:has(> .t-caption)) { align-items: center; }
|
|
4728
4816
|
|
|
4729
4817
|
/* ---- body: the content row, under the head and over the foot. What the member reads or fills in; in a sheet, a stack sheet
|
|
4730
4818
|
and a modal the one part that scrolls. A grid column from the top, the card's rhythm inside.
|
|
@@ -5412,7 +5500,7 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
5412
5500
|
border-block-end: var(--rule-w) dotted currentColor;
|
|
5413
5501
|
font: inherit;
|
|
5414
5502
|
}
|
|
5415
|
-
.sticky-heading__title { min-width: 0; max-width: 100%; font: var(--sticky-heading-title-font, var(--type-label)); line-height: var(--lh-caption); /* Thai marks stack taller than the label's 1.2, and overflow clips them */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
5503
|
+
.sticky-heading__title { min-width: 0; max-width: 100%; font: var(--sticky-heading-title-font, var(--type-label)); line-height: round(down, calc(var(--lh-caption) * 1em), 1px); /* Thai marks stack taller than the label's 1.2, and overflow clips them */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
5416
5504
|
.sticky-heading__caption { font: var(--sticky-heading-caption-font, var(--type-caption)); color: var(--sticky-heading-caption-ink, var(--card-muted)); white-space: nowrap; } /* the muted words of what it stands on: a note, or the screen */
|
|
5417
5505
|
/* on a note: across the top of its paper, and the note's words start under it */
|
|
5418
5506
|
.sticky__stuck > .sticky-heading { position: absolute; inset: var(--sp-2) var(--sp-4) auto; }
|
|
@@ -5520,8 +5608,8 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
5520
5608
|
/* the words on the picture's foot: a small line, then the big name — one line each (clipped sideways only: Thai tone marks stand above the line box) */
|
|
5521
5609
|
.stamp__cap { position: absolute; inset-inline: 5cqw; bottom: 3.5cqw; display: grid; gap: 0.4cqw; }
|
|
5522
5610
|
.stamp__words, .stamp__name { display: block; min-width: 0; white-space: nowrap; overflow-x: clip; text-overflow: ellipsis; }
|
|
5523
|
-
.stamp__words { --_words: 4.8cqw; font: var(--fw-medium) var(--_words) / var(--lh-title) var(--font-ui); font-size: var(--stamp-words-font-size, var(--_words)); }
|
|
5524
|
-
.stamp__name { --_name: 9.5cqw; font: var(--fw-black) var(--_name) / var(--lh-display) var(--font-display); font-size: var(--stamp-name-font-size, var(--_name)); }
|
|
5611
|
+
.stamp__words { --_words: 4.8cqw; font: var(--fw-medium) var(--_words) / round(down, calc(var(--lh-title) * 1em), 1px) var(--font-ui); font-size: var(--stamp-words-font-size, var(--_words)); }
|
|
5612
|
+
.stamp__name { --_name: 9.5cqw; font: var(--fw-black) var(--_name) / round(down, calc(var(--lh-display) * 1em), 1px) var(--font-display); font-size: var(--stamp-name-font-size, var(--_name)); }
|
|
5525
5613
|
/* at the stamp's own size and under (and stuck on a note): the small line goes, the name grows */
|
|
5526
5614
|
/* --bare: the pictures alone, no words — a stamp stuck on something (a note, a postcard). The words belong to the album.
|
|
5527
5615
|
The pictures take the foot's room: each sits a little lower, so the group stands in the middle of the frame. */
|
|
@@ -5923,7 +6011,7 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
5923
6011
|
gap: var(--sp-3);
|
|
5924
6012
|
font: var(--post-letter-hand-font, var(--type-h2));
|
|
5925
6013
|
font-size: var(--post-letter-hand-font-size, var(--fs-lg));
|
|
5926
|
-
line-height: var(--post-letter-hand-leading, var(--lh-hand));
|
|
6014
|
+
line-height: round(down, calc(var(--post-letter-hand-leading, var(--lh-hand)) * 1em), 1px);
|
|
5927
6015
|
}
|
|
5928
6016
|
.post-letter__message > p { margin: 0; }
|
|
5929
6017
|
.post-letter__sign { align-self: flex-end; }
|
|
@@ -5996,8 +6084,8 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
5996
6084
|
background: transparent;
|
|
5997
6085
|
color: inherit;
|
|
5998
6086
|
font: var(--post-desk-hand-font, var(--type-h2));
|
|
5999
|
-
line-height:
|
|
6000
|
-
--_line: calc(var(--fs-body) * var(--post-desk-leading, var(--lh-ruled)));
|
|
6087
|
+
line-height: var(--_line);
|
|
6088
|
+
--_line: round(down, calc(var(--fs-body) * var(--post-desk-leading, var(--lh-ruled))), 1px);
|
|
6001
6089
|
/* the ruled lines: one under every line of writing */
|
|
6002
6090
|
background-image: linear-gradient(to bottom, transparent calc(100% - var(--border-w)), var(--_rule) 0);
|
|
6003
6091
|
background-size: 100% var(--_line);
|
|
@@ -6132,7 +6220,7 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
6132
6220
|
.quote { margin: 0; display: grid; gap: var(--quote-gap, var(--sp-3)); }
|
|
6133
6221
|
.quote::before {
|
|
6134
6222
|
content: "\201C";
|
|
6135
|
-
font: var(--fw-black) calc(var(--fs-h1) * 3) / var(--lh-mark) var(--font-display);
|
|
6223
|
+
font: var(--fw-black) calc(var(--fs-h1) * 3) / round(down, calc(var(--lh-mark) * 1em), 1px) var(--font-display);
|
|
6136
6224
|
height: var(--sp-10);
|
|
6137
6225
|
opacity: var(--fade-most);
|
|
6138
6226
|
}
|
|
@@ -6714,7 +6802,7 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
6714
6802
|
.count-in__cancel:focus-visible { outline: var(--focus); outline-offset: calc(-1 * var(--sp-2)); }
|
|
6715
6803
|
.count-in__number {
|
|
6716
6804
|
position: relative; pointer-events: none;
|
|
6717
|
-
font: var(--fw-heavy) var(--count-in-size, var(--fs-giant)) / var(--lh-solid) var(--font-display);
|
|
6805
|
+
font: var(--fw-heavy) var(--count-in-size, var(--fs-giant)) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-display);
|
|
6718
6806
|
font-variant-numeric: tabular-nums;
|
|
6719
6807
|
}
|
|
6720
6808
|
.count-in__digit { display: block; }
|