@usableapp/cardds 0.7.159 → 0.7.160
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 +13 -0
- package/css/actions.css +26 -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 +51 -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/cardds.css +117 -60
- package/dist/catalog.json +1 -1
- 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,26 @@ 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)); }
|
|
3067
3090
|
/* a row of buttons sharing the width (twin CTAs inside a card) */
|
|
3068
3091
|
.btn-row { display: flex; gap: var(--btn-row-gap, var(--sp-2)); }
|
|
3069
3092
|
/* 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 +3139,9 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3116
3139
|
.dot--info { background: var(--signal-info); }
|
|
3117
3140
|
/* --sm: a small LABEL (a name on a note, a tag in a tight head) — low and tight; never a tap target */
|
|
3118
3141
|
/* 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)); }
|
|
3142
|
+
.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
3143
|
/* --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)); }
|
|
3144
|
+
.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
3145
|
.chip--xs > .icon { width: var(--chip-xs-icon-size, 1em); height: var(--chip-xs-icon-size, 1em); }
|
|
3123
3146
|
/* 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
3147
|
.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 +3438,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3415
3438
|
|
|
3416
3439
|
/* ---- where it sits in what card.css draws (docs/reference.md rule 15) ---- */
|
|
3417
3440
|
/* 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; }
|
|
3441
|
+
.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
3442
|
/* …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
3443
|
.head:has(> .tile-badge:first-child + .chip-row) > .chip-row { grid-column: 2; grid-row: 1; max-height: none; }
|
|
3421
3444
|
.head > .chip-row > .chip { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
@@ -3522,7 +3545,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3522
3545
|
.ring__value { font: var(--ring-value-font, var(--type-stat)); letter-spacing: var(--track-display); }
|
|
3523
3546
|
.ring__label { font: var(--ring-label-font, var(--type-caption)); color: var(--ring-label-ink, var(--card-muted)); }
|
|
3524
3547
|
.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); }
|
|
3548
|
+
.ring--sm .ring__value { font: var(--fw-heavy) var(--fs-2xl) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-display); }
|
|
3526
3549
|
.ring--xs { --_size: var(--tap-sm); --_w: var(--dot-xs); } /* inline counter (step 3 of 5) */
|
|
3527
3550
|
.ring--xs .ring__value { font: var(--type-caption); }
|
|
3528
3551
|
|
|
@@ -3570,7 +3593,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3570
3593
|
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
3594
|
color: var(--card-ink);
|
|
3572
3595
|
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;
|
|
3596
|
+
font: var(--track-dot-font, var(--type-caption)); line-height: round(down, calc(var(--lh-solid) * 1em), 1px); font-variant-numeric: tabular-nums;
|
|
3574
3597
|
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
3598
|
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
3599
|
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 +3603,10 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3580
3603
|
|
|
3581
3604
|
/* ---- band: data card — 2-line label · giant number · footnote ----
|
|
3582
3605
|
<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); }
|
|
3606
|
+
.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
3607
|
.band__num {
|
|
3585
3608
|
grid-area: num;
|
|
3586
|
-
font: var(--fw-heavy) var(--fs-giant) / var(--lh-band) var(--font-display);
|
|
3609
|
+
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
3610
|
letter-spacing: var(--track-display);
|
|
3588
3611
|
font-variant-numeric: tabular-nums;
|
|
3589
3612
|
}
|
|
@@ -3956,7 +3979,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3956
3979
|
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
3980
|
}
|
|
3958
3981
|
.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; }
|
|
3982
|
+
.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
3983
|
/* 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
3984
|
.day--today { background: var(--day-today-bg, var(--ink-tint)); color: var(--day-today-ink, var(--card-ink)); }
|
|
3962
3985
|
.day[aria-selected="true"] { background: var(--day-selected-bg, var(--accent)); color: var(--day-selected-ink, var(--on-accent)); }
|
|
@@ -3975,7 +3998,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3975
3998
|
display: grid;
|
|
3976
3999
|
place-items: center;
|
|
3977
4000
|
border-radius: 50%;
|
|
3978
|
-
font: var(--fw-medium) var(--fs-title) / var(--lh-solid) var(--font-ui);
|
|
4001
|
+
font: var(--fw-medium) var(--fs-title) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-ui);
|
|
3979
4002
|
font-variant-numeric: tabular-nums;
|
|
3980
4003
|
grid-column-start: var(--start, auto); /* --start on the 1st: weekday column 1–7 */
|
|
3981
4004
|
}
|
|
@@ -4134,7 +4157,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4134
4157
|
padding: 0;
|
|
4135
4158
|
background: transparent;
|
|
4136
4159
|
color: inherit;
|
|
4137
|
-
font: var(--composer-input-font, var(--fw-bold) var(--fs-2xl) / var(--lh-h2) var(--font-display));
|
|
4160
|
+
font: var(--composer-input-font, var(--fw-bold) var(--fs-2xl) / round(down, calc(var(--lh-h2) * 1em), 1px) var(--font-display));
|
|
4138
4161
|
letter-spacing: var(--track-h2);
|
|
4139
4162
|
outline: none;
|
|
4140
4163
|
}
|
|
@@ -4484,7 +4507,7 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
4484
4507
|
.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
4508
|
.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 */
|
|
4486
4509
|
.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); }
|
|
4510
|
+
.row--lg > .words > .words__title { font: var(--fw-bold) var(--fs-lg) / round(down, calc(var(--lh-h1) * 1em), 1px) var(--font-display); }
|
|
4488
4511
|
.row--done > .words > .words__title { color: var(--card-muted); }
|
|
4489
4512
|
|
|
4490
4513
|
/* ---- end: the value over its caption, right-aligned at the end of a line ---- */
|
|
@@ -4561,7 +4584,7 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
4561
4584
|
text-align: center;
|
|
4562
4585
|
}
|
|
4563
4586
|
.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 */
|
|
4587
|
+
.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
4588
|
.head--centre > :first-child:not(.words__title) { grid-area: 1 / 1 / -1 / 2; }
|
|
4566
4589
|
.head--centre > :last-child:not(.words__title, .words__meta) { grid-area: 1 / 3 / -1 / 4; }
|
|
4567
4590
|
|
|
@@ -4605,23 +4628,56 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
4605
4628
|
}
|
|
4606
4629
|
.head:has(> .tile-badge:first-child + .chip-row) > :nth-child(n + 3) { grid-column: 1 / -1; grid-row: auto; }
|
|
4607
4630
|
|
|
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
|
-
|
|
4631
|
+
/* 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
|
|
4632
|
+
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.
|
|
4633
|
+
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`)
|
|
4634
|
+
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
|
|
4635
|
+
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)
|
|
4636
|
+
stands in the MIDDLE of the lead. The title is cut at
|
|
4637
|
+
--head-title-lines (above), the meta at --head-meta-lines (none). A head with no lead before its title is untouched.
|
|
4638
|
+
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).
|
|
4639
|
+
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.
|
|
4640
|
+
<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
4641
|
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) {
|
|
4615
4642
|
display: grid;
|
|
4616
|
-
grid-template-columns: auto minmax(0, 1fr);
|
|
4617
|
-
grid-
|
|
4618
|
-
|
|
4643
|
+
grid-template-columns: auto minmax(0, 1fr) repeat(4, auto);
|
|
4644
|
+
grid-template-rows: minmax(min-content, 0);
|
|
4645
|
+
grid-auto-rows: auto;
|
|
4646
|
+
column-gap: 0;
|
|
4647
|
+
align-items: start;
|
|
4648
|
+
align-content: start;
|
|
4649
|
+
}
|
|
4650
|
+
.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)); }
|
|
4651
|
+
.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; }
|
|
4652
|
+
/* round buttons at the end (one or two IconBtn of one size, with a meta; Lh 2026-10-28): they stand fixed in the top-right corner OVER the title's
|
|
4653
|
+
column, and the title's lines wrap round them as round a float — a line past the buttons' height runs the full width under them; the meta runs
|
|
4654
|
+
under all. The room is an empty float at the start of the title, as wide as the buttons and their gaps, as tall as one. An End or a Btn (words
|
|
4655
|
+
of no known width), and a head with no meta (centred, below), keep the two-cell line. The DOM order is untouched: the title is read first. */
|
|
4656
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) {
|
|
4657
|
+
--_head-end: var(--icon-btn-size, var(--tap));
|
|
4658
|
+
--_head-ends: 1;
|
|
4659
|
+
}
|
|
4660
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn--sm):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) { --_head-end: var(--icon-btn-sm-size, var(--tap-sm)); }
|
|
4661
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn ~ .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) { --_head-ends: 2; }
|
|
4662
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) > .icon-btn { grid-column: 2; grid-row: 1; justify-self: end; margin-inline-start: 0; }
|
|
4663
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) > .icon-btn:has(~ .icon-btn) { margin-inline-end: calc(var(--_head-end) + var(--head-col-gap, var(--sp-3))); }
|
|
4664
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) > .words__title {
|
|
4665
|
+
/* 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
|
|
4666
|
+
--head-title-lines by its height (whole lines, no "…") */
|
|
4667
|
+
display: flow-root;
|
|
4668
|
+
max-height: calc(var(--head-title-lines, 3) * 1lh + var(--_mark-room) + var(--_mark-foot));
|
|
4669
|
+
}
|
|
4670
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + .words__title + .words__meta):has(> .icon-btn):not(:has(> :nth-child(n + 3):not(.words__meta, .icon-btn), > .icon-btn ~ .icon-btn ~ .icon-btn, > .icon-btn:is(.icon-btn--lg, .icon-btn--xl), > .icon-btn--sm ~ .icon-btn:not(.icon-btn--sm), > .icon-btn:not(.icon-btn--sm) ~ .icon-btn--sm)) > .words__title::before {
|
|
4671
|
+
content: "";
|
|
4672
|
+
float: right;
|
|
4673
|
+
width: calc(var(--_head-ends) * (var(--_head-end) + var(--head-col-gap, var(--sp-3))));
|
|
4674
|
+
height: var(--_head-end);
|
|
4619
4675
|
}
|
|
4620
|
-
|
|
4621
|
-
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title))
|
|
4622
|
-
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(2)
|
|
4676
|
+
/* 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) */
|
|
4677
|
+
.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; }
|
|
4678
|
+
.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
4679
|
.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;
|
|
4680
|
+
grid-column: 2 / -1; grid-row: 2;
|
|
4625
4681
|
overflow-wrap: anywhere;
|
|
4626
4682
|
display: -webkit-box;
|
|
4627
4683
|
-webkit-box-orient: vertical;
|
|
@@ -4631,7 +4687,7 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
4631
4687
|
padding-block: 0.2em 0.15em; /* room for a Thai mark inside the clip, given back outside (as the title's, above) */
|
|
4632
4688
|
margin-block: -0.2em -0.15em;
|
|
4633
4689
|
}
|
|
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
|
|
4690
|
+
.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
4691
|
|
|
4636
4692
|
/* in a card with paper bands: the head and the foot are paper bands edge to edge, one look */
|
|
4637
4693
|
:is(.card--bands, .card--bands > .card__face) > :is(.head, .foot) {
|
|
@@ -4724,7 +4780,8 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
4724
4780
|
|
|
4725
4781
|
/* in a feed card */
|
|
4726
4782
|
.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 */
|
|
4783
|
+
.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 */
|
|
4784
|
+
.feed-card > .head:has(> :is(.lead, .feed-card__lead)):not(:has(> .t-caption)) { align-items: center; }
|
|
4728
4785
|
|
|
4729
4786
|
/* ---- 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
4787
|
and a modal the one part that scrolls. A grid column from the top, the card's rhythm inside.
|
|
@@ -5412,7 +5469,7 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
5412
5469
|
border-block-end: var(--rule-w) dotted currentColor;
|
|
5413
5470
|
font: inherit;
|
|
5414
5471
|
}
|
|
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; }
|
|
5472
|
+
.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
5473
|
.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
5474
|
/* on a note: across the top of its paper, and the note's words start under it */
|
|
5418
5475
|
.sticky__stuck > .sticky-heading { position: absolute; inset: var(--sp-2) var(--sp-4) auto; }
|
|
@@ -5520,8 +5577,8 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
5520
5577
|
/* 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
5578
|
.stamp__cap { position: absolute; inset-inline: 5cqw; bottom: 3.5cqw; display: grid; gap: 0.4cqw; }
|
|
5522
5579
|
.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)); }
|
|
5580
|
+
.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)); }
|
|
5581
|
+
.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
5582
|
/* at the stamp's own size and under (and stuck on a note): the small line goes, the name grows */
|
|
5526
5583
|
/* --bare: the pictures alone, no words — a stamp stuck on something (a note, a postcard). The words belong to the album.
|
|
5527
5584
|
The pictures take the foot's room: each sits a little lower, so the group stands in the middle of the frame. */
|
|
@@ -5923,7 +5980,7 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
5923
5980
|
gap: var(--sp-3);
|
|
5924
5981
|
font: var(--post-letter-hand-font, var(--type-h2));
|
|
5925
5982
|
font-size: var(--post-letter-hand-font-size, var(--fs-lg));
|
|
5926
|
-
line-height: var(--post-letter-hand-leading, var(--lh-hand));
|
|
5983
|
+
line-height: round(down, calc(var(--post-letter-hand-leading, var(--lh-hand)) * 1em), 1px);
|
|
5927
5984
|
}
|
|
5928
5985
|
.post-letter__message > p { margin: 0; }
|
|
5929
5986
|
.post-letter__sign { align-self: flex-end; }
|
|
@@ -5996,8 +6053,8 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
5996
6053
|
background: transparent;
|
|
5997
6054
|
color: inherit;
|
|
5998
6055
|
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)));
|
|
6056
|
+
line-height: var(--_line);
|
|
6057
|
+
--_line: round(down, calc(var(--fs-body) * var(--post-desk-leading, var(--lh-ruled))), 1px);
|
|
6001
6058
|
/* the ruled lines: one under every line of writing */
|
|
6002
6059
|
background-image: linear-gradient(to bottom, transparent calc(100% - var(--border-w)), var(--_rule) 0);
|
|
6003
6060
|
background-size: 100% var(--_line);
|
|
@@ -6132,7 +6189,7 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
6132
6189
|
.quote { margin: 0; display: grid; gap: var(--quote-gap, var(--sp-3)); }
|
|
6133
6190
|
.quote::before {
|
|
6134
6191
|
content: "\201C";
|
|
6135
|
-
font: var(--fw-black) calc(var(--fs-h1) * 3) / var(--lh-mark) var(--font-display);
|
|
6192
|
+
font: var(--fw-black) calc(var(--fs-h1) * 3) / round(down, calc(var(--lh-mark) * 1em), 1px) var(--font-display);
|
|
6136
6193
|
height: var(--sp-10);
|
|
6137
6194
|
opacity: var(--fade-most);
|
|
6138
6195
|
}
|
|
@@ -6714,7 +6771,7 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
6714
6771
|
.count-in__cancel:focus-visible { outline: var(--focus); outline-offset: calc(-1 * var(--sp-2)); }
|
|
6715
6772
|
.count-in__number {
|
|
6716
6773
|
position: relative; pointer-events: none;
|
|
6717
|
-
font: var(--fw-heavy) var(--count-in-size, var(--fs-giant)) / var(--lh-solid) var(--font-display);
|
|
6774
|
+
font: var(--fw-heavy) var(--count-in-size, var(--fs-giant)) / round(down, calc(var(--lh-solid) * 1em), 1px) var(--font-display);
|
|
6718
6775
|
font-variant-numeric: tabular-nums;
|
|
6719
6776
|
}
|
|
6720
6777
|
.count-in__digit { display: block; }
|