@usableapp/cardds 0.7.123 → 0.7.125

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 CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  > For: a project that consumes `@usableapp/cardds` and its AI — what changed between versions, written as before → after, so a screen can be brought up to date without reading the source. Newest first. A consumer never edits cardds; if something here leaves you without a way to do what you did before, report the gap. Each release section after 0.7.97 carries one `Components:` line, written by `node scripts/components-changed.mjs <previous tag>`: the components the release changed, or `all` when a file changed that any component can read (a token, the build), or `none`; check only the screens that import those.
4
4
 
5
+ ## 0.7.125 — 2026-10-25
6
+
7
+ A caption over an h1 that wraps starts where a one-line one does, and every stamp in a card head is glued down.
8
+
9
+ Components: Text, Words, Stamp
10
+
11
+ ### Changed
12
+ - **A caption over an h1 that wraps to 2 lines starts where a 1-line caption does** (it started about 9px higher since 0.7.119); its next line goes down, and the h1 with it. Gallery `Text · HeadingWraps`.
13
+ - **Every stamp in a card head is glued down** (a hair of shadow under paper, `--shadow-glued`): plain, `under` and `sm`, not only `under`. `bare` and `xs` stay flat. Knob `--stamp-under-drop`.
14
+
15
+ ## 0.7.124 — 2026-10-25
16
+
17
+ A stamp in a card's head band keeps the head's padding under it.
18
+
19
+ Components: Card, Stamp
20
+
21
+ ### Fixed
22
+ - **A card head that holds a stamp is never shorter than the stamp plus the head's padding above and below.** In a banded card the stamp sat on the narrow seam (`--card-band-seam`) at the band's lower edge; it now keeps `--card-pad` under it, plain or `under`. Words taller than the stamp grow the head as before. Story `Card/StampShortTitle` (new).
23
+
5
24
  ## 0.7.123 — 2026-10-25
6
25
 
7
26
  A stamp the app is not ready to show keeps its room (`Stamp held`).
package/css/base.css CHANGED
@@ -145,8 +145,9 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
145
145
  .t-label { font: var(--type-label); }
146
146
  .t-caption { font: var(--type-caption); color: var(--t-caption-ink, inherit); }
147
147
  .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) */
148
- .t-caption:has(+ .t-h1) { display: inline-block; } /* 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);
149
- an inline-block keeps its own leading inside and still stands on that line, so its last line keeps its distance to the h1 (Lh 2026-10-25) */
148
+ .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).
149
+ 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
150
+ that wraps starts where a one-line one does and its next line goes down, the h1 with it (Lh 2026-10-25) */
150
151
  .t-stat { font: var(--type-stat); letter-spacing: var(--track-display); margin: 0; font-variant-numeric: tabular-nums; }
151
152
  .t-stat--mono { font-family: var(--font-mono); letter-spacing: 0; } /* clocks, ETAs, codes */
152
153
  .t-stat--xl { font-size: var(--fs-hero); } /* the one number on a sheet */
package/css/parts.css CHANGED
@@ -166,6 +166,10 @@
166
166
  /* the seam: the heading and the words under it read as ONE paragraph that changes colour at the band's edge (Lh 2026-10-21), so the room on
167
167
  each side of the head band's lower edge is --card-band-seam, not the card's padding and gap */
168
168
  :is(.card--bands, .card--bands > .card__face) > .head + * { margin-block-start: calc(var(--card-band-seam, var(--sp-2)) - var(--card-gap)); }
169
+ /* a STAMP in the head band (Lh 2026-10-25, the request card): the head is never shorter than the stamp plus the head's padding above AND below it — the
170
+ seam is the words' room, not the stamp's, so the stamp keeps --card-pad under it too. On the stamp, not a head min-height: it follows the stamp's
171
+ own size (standard, xs, held, under — every one holds the head up in its grid), and words taller than it grow the head as before */
172
+ :is(.card--bands, .card--bands > .card__face) > .head > .stamp { margin-block-end: max(0rem, calc(var(--card-pad) - var(--card-band-seam, var(--sp-2)))); }
169
173
  /* an under stamp (`StampOn under`) lies at --z-under, below the words but above the card's paper; the head's paper background would paint over it, so the band moves
170
174
  onto a pseudo-element one step lower (--z-under-2): the stamp shows on the band and the head's words stay over the stamp */
171
175
  :is(.card--bands, .card--bands > .card__face):has(> .stamp-on--under, > .card__middle > .stamp-on--under) > .head { position: relative; background: none; }
package/css/stamp.css CHANGED
@@ -291,13 +291,13 @@
291
291
  }
292
292
 
293
293
  /* ---- where it sits in what card.css draws (docs/reference.md rule 15) ---- */
294
- /* a stamp ON a card lies flat: no shadow, at every size (Lh 2026-10-24) — the head's (`end`), a feed card's lead, a foot row's, xs.
294
+ /* a stamp ON a card lies flat: no shadow, at every size (Lh 2026-10-24) — a feed card's lead, a foot row's, xs.
295
295
  A sheet is a `.card` too, but what it holds stands off its paper: the album, the tray, a start screen's stamp keep their shadow, and so
296
296
  does a stamp in an album's cell wherever the album lies */
297
297
  .card:not(.sheet) .stamp:not(.stamp-cell > .stamp) { filter: none; }
298
- /* ONE exception (Lh 2026-10-25): the head's `under` stamp is glued down — a hair of shadow at its teeth, flat paper, never a lifted sticker.
299
- A bare or xs stamp stays flat. Knob: --stamp-under-drop */
300
- .card:not(.sheet) .head > .stamp--under:not(.stamp--bare, .stamp--xs) { filter: drop-shadow(var(--stamp-under-drop, var(--shadow-glued))); }
298
+ /* ONE exception (Lh 2026-10-25): a stamp in the head is glued down — plain, `under` or `sm`, a hair of shadow at its teeth, flat paper, never a lifted sticker.
299
+ A bare or xs stamp stays flat. Knob: --stamp-under-drop (the name it was born with: `under` had it first) */
300
+ .card:not(.sheet) .head > .stamp:not(.stamp--bare, .stamp--xs) { filter: drop-shadow(var(--stamp-under-drop, var(--shadow-glued))); }
301
301
  .head > .stamp { grid-column: 2; grid-row: 1 / span 2; margin-inline: 0; }
302
302
  .head > .stamp--under { grid-column: 1; justify-self: end; } /* `under`: in the words' own column, at its end, the words over it (parts.css) */
303
303
  /* ---- where it sits in what people.css draws (docs/reference.md rule 15) ---- */
package/dist/cardds.css CHANGED
@@ -716,8 +716,9 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
716
716
  .t-label { font: var(--type-label); }
717
717
  .t-caption { font: var(--type-caption); color: var(--t-caption-ink, inherit); }
718
718
  .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) */
719
- .t-caption:has(+ .t-h1) { display: inline-block; } /* 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);
720
- an inline-block keeps its own leading inside and still stands on that line, so its last line keeps its distance to the h1 (Lh 2026-10-25) */
719
+ .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).
720
+ 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
721
+ that wraps starts where a one-line one does and its next line goes down, the h1 with it (Lh 2026-10-25) */
721
722
  .t-stat { font: var(--type-stat); letter-spacing: var(--track-display); margin: 0; font-variant-numeric: tabular-nums; }
722
723
  .t-stat--mono { font-family: var(--font-mono); letter-spacing: 0; } /* clocks, ETAs, codes */
723
724
  .t-stat--xl { font-size: var(--fs-hero); } /* the one number on a sheet */
@@ -4357,6 +4358,10 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
4357
4358
  /* the seam: the heading and the words under it read as ONE paragraph that changes colour at the band's edge (Lh 2026-10-21), so the room on
4358
4359
  each side of the head band's lower edge is --card-band-seam, not the card's padding and gap */
4359
4360
  :is(.card--bands, .card--bands > .card__face) > .head + * { margin-block-start: calc(var(--card-band-seam, var(--sp-2)) - var(--card-gap)); }
4361
+ /* a STAMP in the head band (Lh 2026-10-25, the request card): the head is never shorter than the stamp plus the head's padding above AND below it — the
4362
+ seam is the words' room, not the stamp's, so the stamp keeps --card-pad under it too. On the stamp, not a head min-height: it follows the stamp's
4363
+ own size (standard, xs, held, under — every one holds the head up in its grid), and words taller than it grow the head as before */
4364
+ :is(.card--bands, .card--bands > .card__face) > .head > .stamp { margin-block-end: max(0rem, calc(var(--card-pad) - var(--card-band-seam, var(--sp-2)))); }
4360
4365
  /* an under stamp (`StampOn under`) lies at --z-under, below the words but above the card's paper; the head's paper background would paint over it, so the band moves
4361
4366
  onto a pseudo-element one step lower (--z-under-2): the stamp shows on the band and the head's words stay over the stamp */
4362
4367
  :is(.card--bands, .card--bands > .card__face):has(> .stamp-on--under, > .card__middle > .stamp-on--under) > .head { position: relative; background: none; }
@@ -5338,13 +5343,13 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
5338
5343
  }
5339
5344
 
5340
5345
  /* ---- where it sits in what card.css draws (docs/reference.md rule 15) ---- */
5341
- /* a stamp ON a card lies flat: no shadow, at every size (Lh 2026-10-24) — the head's (`end`), a feed card's lead, a foot row's, xs.
5346
+ /* a stamp ON a card lies flat: no shadow, at every size (Lh 2026-10-24) — a feed card's lead, a foot row's, xs.
5342
5347
  A sheet is a `.card` too, but what it holds stands off its paper: the album, the tray, a start screen's stamp keep their shadow, and so
5343
5348
  does a stamp in an album's cell wherever the album lies */
5344
5349
  .card:not(.sheet) .stamp:not(.stamp-cell > .stamp) { filter: none; }
5345
- /* ONE exception (Lh 2026-10-25): the head's `under` stamp is glued down — a hair of shadow at its teeth, flat paper, never a lifted sticker.
5346
- A bare or xs stamp stays flat. Knob: --stamp-under-drop */
5347
- .card:not(.sheet) .head > .stamp--under:not(.stamp--bare, .stamp--xs) { filter: drop-shadow(var(--stamp-under-drop, var(--shadow-glued))); }
5350
+ /* ONE exception (Lh 2026-10-25): a stamp in the head is glued down — plain, `under` or `sm`, a hair of shadow at its teeth, flat paper, never a lifted sticker.
5351
+ A bare or xs stamp stays flat. Knob: --stamp-under-drop (the name it was born with: `under` had it first) */
5352
+ .card:not(.sheet) .head > .stamp:not(.stamp--bare, .stamp--xs) { filter: drop-shadow(var(--stamp-under-drop, var(--shadow-glued))); }
5348
5353
  .head > .stamp { grid-column: 2; grid-row: 1 / span 2; margin-inline: 0; }
5349
5354
  .head > .stamp--under { grid-column: 1; justify-self: end; } /* `under`: in the words' own column, at its end, the words over it (parts.css) */
5350
5355
  /* ---- where it sits in what people.css draws (docs/reference.md rule 15) ---- */