@usableapp/cardds 0.7.168 → 0.7.170
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 +22 -0
- package/css/card.css +5 -1
- package/css/finish.css +2 -2
- package/css/sheet.css +4 -0
- package/dist/cardds.css +11 -3
- package/dist/catalog.json +1 -1
- package/docs/reference.md +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
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.170 — 2026-10-29
|
|
6
|
+
|
|
7
|
+
A dim sheet's scrim fades with the sheet, and `Card backFull` centres by eye.
|
|
8
|
+
|
|
9
|
+
Components: Sheet, Card
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- **Dim sheet stage scrim** (Lh, 2026-10-29): before, `.sheet-stage--dim::after` stayed full black for the whole slide down and vanished at once. After, it fades with the sheet over `--motion-sheet`, in and out, ending with the slide; it is `opacity: 0` and `pointer-events: none` when every sheet in the stage is away and no Modal stands there.
|
|
13
|
+
- **`Card backFull` centre** (Lh, 2026-10-29): before, the content's centre stood at 50% from the top edge. After, at 40% (the eye reads true centre as low). Retune with the knob `--card-back-optical` (a share, default `0.4`; `0.5` is the old place).
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
- **`--card-back-optical`**: the share of the card's height above the content of a `backFull` card.
|
|
17
|
+
|
|
18
|
+
## 0.7.169 — 2026-10-29
|
|
19
|
+
|
|
20
|
+
Buttons in the `lit` finish are flat.
|
|
21
|
+
|
|
22
|
+
Components: Btn
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
- **`lit` button sheen** (Lh, 2026-10-29): before, `--finish-sheen` laid a 16% white band on the top of the button that faded out by 60% of its height, so the button looked domed. After, a 5% white that fades evenly over the whole button: flat, with no band. Every button tone the `lit` finish draws gets the same change. The top edge line (`--finish-edge`) is unchanged, and other finishes are not touched.
|
|
26
|
+
|
|
5
27
|
## 0.7.168 — 2026-10-29
|
|
6
28
|
|
|
7
29
|
One font family with real weights: Noto Sans, Thai and Latin. Nothing is faux bold any more.
|
package/css/card.css
CHANGED
|
@@ -92,7 +92,11 @@
|
|
|
92
92
|
.card__face > * { min-width: 0; }
|
|
93
93
|
:is(.card, .card__face):has(> .stamp-on--under, > .card__middle > .stamp-on--under) { isolation: isolate; } /* the card is the stacking context the stamp's -1 lies in: below the card's words, above its paper */
|
|
94
94
|
.card__middle { flex: 1 0 auto; display: flex; flex-direction: column; gap: var(--card-gap); height: var(--card-middle-h, auto); overflow: hidden; } /* a flex column, not a grid: the middle's height is the flexed one, so one thing on a face (a QR, a code) may take the whole middle with height: 100% (a grid's auto row never stretched to it, and the thing stood at the top of an empty band) */
|
|
95
|
-
|
|
95
|
+
/* Card backFull: the back is the whole card, no head and no foot — one code, one sentence and its button, a thank-you, in the middle both ways */
|
|
96
|
+
.card__middle--full { --_above: var(--card-back-optical, 0.4); justify-content: center; align-items: center; text-align: center; } /* the content's centre stands --card-back-optical (a share, default 0.4) down from the top edge, not 0.5: the eye reads true centre as low. Spacer rows below (::before) and above (::after) split the free room 0.4 : 0.6 */
|
|
97
|
+
.card__middle--full::before, .card__middle--full::after { content: ""; display: block; flex: 0 0 auto; } /* the spacers cancel the gap they would add: each pulls back over the gap on its inner side */
|
|
98
|
+
.card__middle--full::before { flex-grow: var(--_above); margin-bottom: calc(-1 * var(--card-gap)); }
|
|
99
|
+
.card__middle--full::after { flex-grow: calc(1 - var(--_above)); margin-top: calc(-1 * var(--card-gap)); }
|
|
96
100
|
.card__middle--full > :is(.pin, .field, .composer, .form-note) { align-self: stretch; } /* a thing to type in keeps the card's width (centred, a Pin's cells would shrink to nothing) */
|
|
97
101
|
.card__middle--full > .bullets { align-self: stretch; text-align: start; } /* a list of steps keeps the card's width and reads from the start edge (centred, each line's pic would float with its words) */
|
|
98
102
|
.card__turn { position: absolute; inset: 0; width: var(--px); height: var(--px); padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
|
package/css/finish.css
CHANGED
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
0 -0.0625rem 0.0625rem color-mix(in srgb, var(--_shade) 4%, transparent),
|
|
49
49
|
0 -0.5rem 2rem -0.25rem color-mix(in srgb, var(--_shade) 6%, transparent);
|
|
50
50
|
|
|
51
|
-
/* a control: its lit edge and ring, no shadow behind it (Lh 2026-10-25), and
|
|
51
|
+
/* a control: its lit edge and ring, no shadow behind it (Lh 2026-10-25), and a faint tonal shift down its face */
|
|
52
52
|
--finish-control: var(--finish-edge), var(--finish-ring);
|
|
53
53
|
--finish-control-down: var(--finish-ring), inset 0 0.0625rem 0.125rem color-mix(in srgb, var(--_shade) 18%, transparent);
|
|
54
|
-
--finish-sheen: linear-gradient(to bottom, rgb(255 255 255 / 0.
|
|
54
|
+
--finish-sheen: linear-gradient(to bottom, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0)); /* flat: a faint even shift top to bottom, no band, no bulge (Lh 2026-10-29) */
|
|
55
55
|
--finish-sunk: inset 0 0.0625rem 0.125rem color-mix(in srgb, var(--_shade) 14%, transparent), 0 0.0625rem 0 rgb(255 255 255 / 0.5);
|
|
56
56
|
|
|
57
57
|
--outline: color-mix(in srgb, currentColor 14%, transparent);
|
package/css/sheet.css
CHANGED
|
@@ -479,7 +479,11 @@
|
|
|
479
479
|
inset: 0;
|
|
480
480
|
background: var(--scrim);
|
|
481
481
|
z-index: var(--z-over);
|
|
482
|
+
pointer-events: none;
|
|
483
|
+
transition: opacity var(--motion-sheet) var(--ease); /* the scrim is its own layer: it fades with the sheet's slide, in and out, ending together */
|
|
482
484
|
}
|
|
485
|
+
/* no sheet up (every sheet in the stage is `away`, and no Modal stands there): the scrim is gone — the Sheet sets `sheet--away` the moment it is told to leave, so this fades as it slides down */
|
|
486
|
+
.sheet-stage--dim:has(> .sheet--away):not(:has(> .sheet:not(.sheet--away), > .modal))::after { opacity: 0; }
|
|
483
487
|
.sheet-stage--dim .sheet { z-index: var(--z-over-2); }
|
|
484
488
|
.sheet-stage--dim > .sheet-stage__hero { z-index: var(--z-over-2); }
|
|
485
489
|
|
package/dist/cardds.css
CHANGED
|
@@ -1145,7 +1145,11 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1145
1145
|
.card__face > * { min-width: 0; }
|
|
1146
1146
|
:is(.card, .card__face):has(> .stamp-on--under, > .card__middle > .stamp-on--under) { isolation: isolate; } /* the card is the stacking context the stamp's -1 lies in: below the card's words, above its paper */
|
|
1147
1147
|
.card__middle { flex: 1 0 auto; display: flex; flex-direction: column; gap: var(--card-gap); height: var(--card-middle-h, auto); overflow: hidden; } /* a flex column, not a grid: the middle's height is the flexed one, so one thing on a face (a QR, a code) may take the whole middle with height: 100% (a grid's auto row never stretched to it, and the thing stood at the top of an empty band) */
|
|
1148
|
-
|
|
1148
|
+
/* Card backFull: the back is the whole card, no head and no foot — one code, one sentence and its button, a thank-you, in the middle both ways */
|
|
1149
|
+
.card__middle--full { --_above: var(--card-back-optical, 0.4); justify-content: center; align-items: center; text-align: center; } /* the content's centre stands --card-back-optical (a share, default 0.4) down from the top edge, not 0.5: the eye reads true centre as low. Spacer rows below (::before) and above (::after) split the free room 0.4 : 0.6 */
|
|
1150
|
+
.card__middle--full::before, .card__middle--full::after { content: ""; display: block; flex: 0 0 auto; } /* the spacers cancel the gap they would add: each pulls back over the gap on its inner side */
|
|
1151
|
+
.card__middle--full::before { flex-grow: var(--_above); margin-bottom: calc(-1 * var(--card-gap)); }
|
|
1152
|
+
.card__middle--full::after { flex-grow: calc(1 - var(--_above)); margin-top: calc(-1 * var(--card-gap)); }
|
|
1149
1153
|
.card__middle--full > :is(.pin, .field, .composer, .form-note) { align-self: stretch; } /* a thing to type in keeps the card's width (centred, a Pin's cells would shrink to nothing) */
|
|
1150
1154
|
.card__middle--full > .bullets { align-self: stretch; text-align: start; } /* a list of steps keeps the card's width and reads from the start edge (centred, each line's pic would float with its words) */
|
|
1151
1155
|
.card__turn { position: absolute; inset: 0; width: var(--px); height: var(--px); padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
|
|
@@ -2499,7 +2503,11 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2499
2503
|
inset: 0;
|
|
2500
2504
|
background: var(--scrim);
|
|
2501
2505
|
z-index: var(--z-over);
|
|
2506
|
+
pointer-events: none;
|
|
2507
|
+
transition: opacity var(--motion-sheet) var(--ease); /* the scrim is its own layer: it fades with the sheet's slide, in and out, ending together */
|
|
2502
2508
|
}
|
|
2509
|
+
/* no sheet up (every sheet in the stage is `away`, and no Modal stands there): the scrim is gone — the Sheet sets `sheet--away` the moment it is told to leave, so this fades as it slides down */
|
|
2510
|
+
.sheet-stage--dim:has(> .sheet--away):not(:has(> .sheet:not(.sheet--away), > .modal))::after { opacity: 0; }
|
|
2503
2511
|
.sheet-stage--dim .sheet { z-index: var(--z-over-2); }
|
|
2504
2512
|
.sheet-stage--dim > .sheet-stage__hero { z-index: var(--z-over-2); }
|
|
2505
2513
|
|
|
@@ -6970,10 +6978,10 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
6970
6978
|
0 -0.0625rem 0.0625rem color-mix(in srgb, var(--_shade) 4%, transparent),
|
|
6971
6979
|
0 -0.5rem 2rem -0.25rem color-mix(in srgb, var(--_shade) 6%, transparent);
|
|
6972
6980
|
|
|
6973
|
-
/* a control: its lit edge and ring, no shadow behind it (Lh 2026-10-25), and
|
|
6981
|
+
/* a control: its lit edge and ring, no shadow behind it (Lh 2026-10-25), and a faint tonal shift down its face */
|
|
6974
6982
|
--finish-control: var(--finish-edge), var(--finish-ring);
|
|
6975
6983
|
--finish-control-down: var(--finish-ring), inset 0 0.0625rem 0.125rem color-mix(in srgb, var(--_shade) 18%, transparent);
|
|
6976
|
-
--finish-sheen: linear-gradient(to bottom, rgb(255 255 255 / 0.
|
|
6984
|
+
--finish-sheen: linear-gradient(to bottom, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0)); /* flat: a faint even shift top to bottom, no band, no bulge (Lh 2026-10-29) */
|
|
6977
6985
|
--finish-sunk: inset 0 0.0625rem 0.125rem color-mix(in srgb, var(--_shade) 14%, transparent), 0 0.0625rem 0 rgb(255 255 255 / 0.5);
|
|
6978
6986
|
|
|
6979
6987
|
--outline: color-mix(in srgb, currentColor 14%, transparent);
|