@usableapp/cardds 0.7.32 → 0.7.33
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 +8 -0
- package/README.md +1 -1
- package/css/stack.css +8 -5
- package/css/tokens.css +3 -1
- package/dist/cardds.css +11 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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.
|
|
4
4
|
|
|
5
|
+
## 0.7.33 — 2026-10-01
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
- **A StackSheet tab's count grows with the text** (Lh 2026-10-01): the red circle was a fixed 20px while its number followed `--fs-base` — at a large text size the number ran over it. The circle is now cut from its own number's size (20px at the default, 32px at 160%); a long count ("10", "99+") makes it a capsule. The number sits on the circle's middle (it sat low), and the circle stands 8px out of the tab's corner instead of 4 — beside the icon, not on the disc's edge. Nothing to change in a screen.
|
|
9
|
+
- **A screen fills the phone, edge to edge** (Lh 2026-10-01): the column's cap `--screen-w` is `30rem` (480px), was `25rem` (400) — a phone 412–448px wide showed a strip of bare ground each side of the screen, its bars and its sheets. No phone reaches the cap now; it only keeps a tablet / desktop window to a phone-sized column. Nothing to change in a screen; a project that set `--screen-w` itself keeps its value.
|
|
10
|
+
### Added
|
|
11
|
+
- Knobs `--stack-sheet-count-pad-x` (the room beside the number), `--stack-sheet-count-lift` (the room under it — retune for another font), `--stack-sheet-count-out` (how far it stands out of the corner). `--stack-sheet-count-h` as before; its default is `1.175em`, was `1.25rem`.
|
|
12
|
+
|
|
5
13
|
## 0.7.32 — 2026-09-29
|
|
6
14
|
|
|
7
15
|
### Changed
|
package/README.md
CHANGED
|
@@ -650,7 +650,7 @@ Every length token resolves to rem — a multiplier × one of four rem bases
|
|
|
650
650
|
(`--sp-4` = `--sp-base` × 4 = 1rem, `--tap` = `--tap-base` = 3rem, `--r-card` =
|
|
651
651
|
`--r-base` × 2, `--fs-h1` = `--fs-base` × 1.2; see "A project's theme") — so the
|
|
652
652
|
whole system scales with the root font size. `base.css` keeps it at `100%` (the browser's setting, 16px by
|
|
653
|
-
default) and steps narrow phones (≤360px) to `93.75%`, which keeps the
|
|
653
|
+
default) and steps narrow phones (≤360px) to `93.75%`, which keeps the
|
|
654
654
|
column, its 48px taps and its type in proportion on 320–360 screens. Only
|
|
655
655
|
`--border-w`, `--rule-w` and the focus ring stay in px, so edges stay crisp.
|
|
656
656
|
An app with its own text-size setting calls `setTextScale(percent)`, which writes
|
package/css/stack.css
CHANGED
|
@@ -292,11 +292,14 @@
|
|
|
292
292
|
.stack-sheet__tab { position: relative; }
|
|
293
293
|
.stack-sheet__tab > .stack-sheet__count { /* outranks .badge (numbers.css loads after this file) */
|
|
294
294
|
position: absolute;
|
|
295
|
-
top: calc(-1 * var(--sp-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
295
|
+
top: calc(-1 * var(--stack-sheet-count-out, var(--sp-2))); /* how far it stands OUT of the tab's corner, up and to the right: at sp-1 it
|
|
296
|
+
sat exactly on the chosen tab's disc edge — it reads as a mark beside the icon, not part of the disc (Lh 2026-10-01) */
|
|
297
|
+
right: calc(-1 * var(--stack-sheet-count-out, var(--sp-2)));
|
|
298
|
+
min-width: var(--stack-sheet-count-h, 1.175em); /* em, not rem (Lh 2026-10-01): the circle is cut from ITS OWN number's size — at a
|
|
299
|
+
large text size the number grew and a 20px circle did not; 1.175em of a 17px caption = the 20px it always was */
|
|
300
|
+
height: var(--stack-sheet-count-h, 1.175em);
|
|
301
|
+
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;
|
|
302
|
+
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) */
|
|
300
303
|
font: var(--type-caption);
|
|
301
304
|
line-height: 1;
|
|
302
305
|
pointer-events: none;
|
package/css/tokens.css
CHANGED
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
|
|
13
13
|
:root {
|
|
14
14
|
/* ---- layout ---- */
|
|
15
|
-
--screen-w:
|
|
15
|
+
--screen-w: 30rem; /* 480: the column's CAP — .screen, .action-bar, .sheet-stage. A phone never reaches it (the widest are ~450 CSS px):
|
|
16
|
+
on a phone the screen is the device, edge to edge; the cap only keeps a tablet / desktop window to a phone-sized
|
|
17
|
+
column. Was 25rem: a 412px phone showed a strip each side (Lh 2026-10-01) */
|
|
16
18
|
--screen-centre: 40%; /* the human centre of a screen: the middle of its top four fifths — the bottom fifth is the thumb's (Lh, 2026-09-10). .card--centre sits here */
|
|
17
19
|
|
|
18
20
|
/* ---- the four bases: what a project retunes (Lh, 2026-09-20) ----
|
package/dist/cardds.css
CHANGED
|
@@ -53,7 +53,9 @@
|
|
|
53
53
|
|
|
54
54
|
:root {
|
|
55
55
|
/* ---- layout ---- */
|
|
56
|
-
--screen-w:
|
|
56
|
+
--screen-w: 30rem; /* 480: the column's CAP — .screen, .action-bar, .sheet-stage. A phone never reaches it (the widest are ~450 CSS px):
|
|
57
|
+
on a phone the screen is the device, edge to edge; the cap only keeps a tablet / desktop window to a phone-sized
|
|
58
|
+
column. Was 25rem: a 412px phone showed a strip each side (Lh 2026-10-01) */
|
|
57
59
|
--screen-centre: 40%; /* the human centre of a screen: the middle of its top four fifths — the bottom fifth is the thumb's (Lh, 2026-09-10). .card--centre sits here */
|
|
58
60
|
|
|
59
61
|
/* ---- the four bases: what a project retunes (Lh, 2026-09-20) ----
|
|
@@ -1249,11 +1251,14 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1249
1251
|
.stack-sheet__tab { position: relative; }
|
|
1250
1252
|
.stack-sheet__tab > .stack-sheet__count { /* outranks .badge (numbers.css loads after this file) */
|
|
1251
1253
|
position: absolute;
|
|
1252
|
-
top: calc(-1 * var(--sp-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1254
|
+
top: calc(-1 * var(--stack-sheet-count-out, var(--sp-2))); /* how far it stands OUT of the tab's corner, up and to the right: at sp-1 it
|
|
1255
|
+
sat exactly on the chosen tab's disc edge — it reads as a mark beside the icon, not part of the disc (Lh 2026-10-01) */
|
|
1256
|
+
right: calc(-1 * var(--stack-sheet-count-out, var(--sp-2)));
|
|
1257
|
+
min-width: var(--stack-sheet-count-h, 1.175em); /* em, not rem (Lh 2026-10-01): the circle is cut from ITS OWN number's size — at a
|
|
1258
|
+
large text size the number grew and a 20px circle did not; 1.175em of a 17px caption = the 20px it always was */
|
|
1259
|
+
height: var(--stack-sheet-count-h, 1.175em);
|
|
1260
|
+
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;
|
|
1261
|
+
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) */
|
|
1257
1262
|
font: var(--type-caption);
|
|
1258
1263
|
line-height: 1;
|
|
1259
1264
|
pointer-events: none;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usableapp/cardds",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.33",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "card-first mobile design system, React-first: the components in src/ are thin wrappers over the CSS contract (css/*.css stays the only truth); gallery/ shows every story live (npm run dev), tests/ measures the geometry.",
|