@usableapp/cardds 0.7.130 → 0.7.132

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,30 @@
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.132 — 2026-10-25
6
+
7
+ On iOS run from the home screen, a fill `Screen` covers the whole viewport, fixed and opaque. This is a third try at turning off iOS 26's glass blur at the top.
8
+
9
+ Components: Screen
10
+
11
+ ### Changed
12
+ - **A fill `Screen` on iOS standalone** (`@supports (-webkit-touch-callout: none)` + `@media screen and (display-mode: standalone)`):
13
+ - It is now `position: fixed; inset: 0` in an opaque ground (knob `--screen-fill-bg`, default `--surface`), and `<html>` takes the same ground.
14
+ - WebKit uses that colour at the top instead of the Liquid Glass blur, where a fixed opaque box covers the viewport.
15
+ - Nothing else moves. The screen already clipped and never scrolled the document, and print keeps it in flow.
16
+ - Other platforms and the gallery are unchanged. Nothing to add in the app.
17
+ - Story `Screen · Standalone`.
18
+ - Not yet confirmed on a device.
19
+
20
+ ## 0.7.131 — 2026-10-25
21
+
22
+ The safe-top strip is gone (0.7.129 and 0.7.130 are reverted). On a real iPhone it did not turn off iOS 26's glass blur on every screen.
23
+
24
+ Components: Screen
25
+
26
+ ### Removed
27
+ - **The safe-top strip** (`.safe-top`, the portal from a fill `Screen` into `<body>`, knob `--safe-top-bg`, token `--z-ceiling`). Everything is as it was in 0.7.128. A theme that set `--safe-top-bg` can delete it; nothing reads it now. Story `Screen · SafeTop` removed.
28
+
5
29
  ## 0.7.130 — 2026-10-25
6
30
 
7
31
  The safe-top strip is now a real element in `<body>`, on top of every layer. 0.7.129's `::before` did not turn off iOS 26's glass blur on a device.
package/css/base.css CHANGED
@@ -130,33 +130,18 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
130
130
  position: relative; /* the box a .card--centre or a .screen__centre floats in (card.css) */
131
131
  container-type: size; /* a share of the SCREEN's height (a no-bar step's lead, step.css) reads it as cqh — a real phone's height, or the gallery's frame */
132
132
  }
133
- /* the safe-top strip (.safe-top): a real element a fill Screen renders itself, portalled to <body> — never a ::before, never
134
- inside .screen. iOS 26 lays a Liquid Glass blur over the top of a home-screen web app, and that blur hid a sheet's grab handle;
135
- WebKit leaves it off where an opaque position:fixed box at least 90% of the viewport wide and over 10px tall is the topmost
136
- thing 4px under the top centre. 0.7.129's .screen--fill::before failed on a device: WebKit's hit-test answers a pseudo-element
137
- with its host (the non-fixed .screen), and .screen's container-type: size (layout containment) made the screen the strip's
138
- containing block AND stacking context, so the AppBar, sheets and layovers could stand over it. In <body> it is fixed to the
139
- viewport, and --z-ceiling puts it over every cardds layer (a native top-layer dialog/popover still paints over anything).
140
- SHOWN OR HIDDEN: both. The box is max(--safe-top, 0.75rem) tall, so always over 10px, but its background is clipped to text
141
- (it has none): nothing paints, and WebKit still reads the opaque background-color. What shows is an inset shadow exactly
142
- --safe-top tall, in the screen's ground (--safe-top-bg): under the status bar a fill that matches the ground; where --safe-top
143
- is 0 nothing at all, so the 12px band never covers content. Only iOS (-webkit-touch-callout) run from the home screen
144
- (display-mode: standalone); everywhere else display: none. Touches pass through. */
145
- .safe-top {
146
- display: none;
147
- position: fixed;
148
- inset: 0 0 auto;
149
- block-size: max(var(--safe-top), 0.75rem);
150
- background-color: var(--safe-top-bg, var(--surface));
151
- -webkit-background-clip: text;
152
- background-clip: text;
153
- color: transparent;
154
- box-shadow: inset 0 var(--safe-top) 0 0 var(--safe-top-bg, var(--surface));
155
- z-index: var(--z-ceiling);
156
- pointer-events: none;
157
- }
133
+ /* the whole-screen cover (third try, after the 0.7.129/0.7.130 strips failed on a device): iOS 26 lays a Liquid Glass blur over
134
+ the top of a home-screen web app; WebKit leaves it off, and uses the colour instead, where a position:fixed box covers the
135
+ viewport (≥ 90% wide, ≤ ~105% tall) with an opaque background. So there the fill screen IS that box: fixed to the viewport,
136
+ inset 0 (its height then the viewport's, not 100dvh), in an opaque ground (--screen-fill-bg, default --surface), and <html>
137
+ in the same ground. Nothing else changes: it already clipped and never scrolled the document (its step, sheet and pages
138
+ scroll inside); it stays the box its absolute layers, its fixed children (container-type) and cqh read. Only iOS
139
+ (-webkit-touch-callout) from the home screen (display-mode: standalone), on screen — print keeps the box in flow. */
158
140
  @supports (-webkit-touch-callout: none) {
159
- @media (display-mode: standalone) { .safe-top { display: block; } }
141
+ @media screen and (display-mode: standalone) {
142
+ .screen--fill { position: fixed; inset: 0; height: auto; background: var(--screen-fill-bg, var(--surface)); }
143
+ html:has(.screen--fill) { background: var(--screen-fill-bg, var(--surface)); }
144
+ }
160
145
  }
161
146
 
162
147
  /* ---- typography levels ---- */
package/css/tokens.css CHANGED
@@ -157,7 +157,6 @@
157
157
  --z-bar: 30; /* .action-bar, .float-bar — above .sheet-stack sheets (--level 1-5) */
158
158
  --z-fab: 31; /* .fab — above the bars it floats near */
159
159
  --z-top: 40; /* .appbar, a stage laid OVER its screen (.sheet-stage--over) — topmost, card animations never cover it */
160
- --z-ceiling: 50; /* .safe-top — over every layer, --z-top included: iOS turns its top glass blur off only for the topmost fixed box (base.css) */
161
160
 
162
161
  /* ---- shared private sizes (not a knob: two components share the exact same
163
162
  literal by design and must not drift apart) ---- */
package/dist/cardds.css CHANGED
@@ -198,7 +198,6 @@
198
198
  --z-bar: 30; /* .action-bar, .float-bar — above .sheet-stack sheets (--level 1-5) */
199
199
  --z-fab: 31; /* .fab — above the bars it floats near */
200
200
  --z-top: 40; /* .appbar, a stage laid OVER its screen (.sheet-stage--over) — topmost, card animations never cover it */
201
- --z-ceiling: 50; /* .safe-top — over every layer, --z-top included: iOS turns its top glass blur off only for the topmost fixed box (base.css) */
202
201
 
203
202
  /* ---- shared private sizes (not a knob: two components share the exact same
204
203
  literal by design and must not drift apart) ---- */
@@ -702,33 +701,18 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
702
701
  position: relative; /* the box a .card--centre or a .screen__centre floats in (card.css) */
703
702
  container-type: size; /* a share of the SCREEN's height (a no-bar step's lead, step.css) reads it as cqh — a real phone's height, or the gallery's frame */
704
703
  }
705
- /* the safe-top strip (.safe-top): a real element a fill Screen renders itself, portalled to <body> — never a ::before, never
706
- inside .screen. iOS 26 lays a Liquid Glass blur over the top of a home-screen web app, and that blur hid a sheet's grab handle;
707
- WebKit leaves it off where an opaque position:fixed box at least 90% of the viewport wide and over 10px tall is the topmost
708
- thing 4px under the top centre. 0.7.129's .screen--fill::before failed on a device: WebKit's hit-test answers a pseudo-element
709
- with its host (the non-fixed .screen), and .screen's container-type: size (layout containment) made the screen the strip's
710
- containing block AND stacking context, so the AppBar, sheets and layovers could stand over it. In <body> it is fixed to the
711
- viewport, and --z-ceiling puts it over every cardds layer (a native top-layer dialog/popover still paints over anything).
712
- SHOWN OR HIDDEN: both. The box is max(--safe-top, 0.75rem) tall, so always over 10px, but its background is clipped to text
713
- (it has none): nothing paints, and WebKit still reads the opaque background-color. What shows is an inset shadow exactly
714
- --safe-top tall, in the screen's ground (--safe-top-bg): under the status bar a fill that matches the ground; where --safe-top
715
- is 0 nothing at all, so the 12px band never covers content. Only iOS (-webkit-touch-callout) run from the home screen
716
- (display-mode: standalone); everywhere else display: none. Touches pass through. */
717
- .safe-top {
718
- display: none;
719
- position: fixed;
720
- inset: 0 0 auto;
721
- block-size: max(var(--safe-top), 0.75rem);
722
- background-color: var(--safe-top-bg, var(--surface));
723
- -webkit-background-clip: text;
724
- background-clip: text;
725
- color: transparent;
726
- box-shadow: inset 0 var(--safe-top) 0 0 var(--safe-top-bg, var(--surface));
727
- z-index: var(--z-ceiling);
728
- pointer-events: none;
729
- }
704
+ /* the whole-screen cover (third try, after the 0.7.129/0.7.130 strips failed on a device): iOS 26 lays a Liquid Glass blur over
705
+ the top of a home-screen web app; WebKit leaves it off, and uses the colour instead, where a position:fixed box covers the
706
+ viewport (≥ 90% wide, ≤ ~105% tall) with an opaque background. So there the fill screen IS that box: fixed to the viewport,
707
+ inset 0 (its height then the viewport's, not 100dvh), in an opaque ground (--screen-fill-bg, default --surface), and <html>
708
+ in the same ground. Nothing else changes: it already clipped and never scrolled the document (its step, sheet and pages
709
+ scroll inside); it stays the box its absolute layers, its fixed children (container-type) and cqh read. Only iOS
710
+ (-webkit-touch-callout) from the home screen (display-mode: standalone), on screen — print keeps the box in flow. */
730
711
  @supports (-webkit-touch-callout: none) {
731
- @media (display-mode: standalone) { .safe-top { display: block; } }
712
+ @media screen and (display-mode: standalone) {
713
+ .screen--fill { position: fixed; inset: 0; height: auto; background: var(--screen-fill-bg, var(--surface)); }
714
+ html:has(.screen--fill) { background: var(--screen-fill-bg, var(--surface)); }
715
+ }
732
716
  }
733
717
 
734
718
  /* ---- typography levels ---- */