Skip to content

176 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step.

docs: describe the short-window stage rules as a range in the Micro sheet

matin10f72f4d865e
diff --git a/docs/superpowers/plans/2026-09-29-micro-content-part1.md b/docs/superpowers/plans/2026-09-29-micro-content-part1.md
index c38dc17f..3da231fb 100644
--- a/docs/superpowers/plans/2026-09-29-micro-content-part1.md
+++ b/docs/superpowers/plans/2026-09-29-micro-content-part1.md
@@ -79,7 +79,7 @@ Each section says what "stops" also undoes.
- The stage keeps only the demo: counters, readouts, captions, notes, teaching overlays and on-stage buttons that only drive the demo go (each section lists them).
- The page owns the stage's size, border and corners. The old `--stage-h`, the stage's `height`, `flex`, `min-width`, `border` and `border-radius`, and the phone rules that made the stage `height:auto` go. The demo's own `.stage` rule keeps its background, its flex centring, `position:relative` and `overflow:hidden` where it has them, and the padding and gap its section gives.
- Heights were measured with the site font on the phone stage (343×300, and 288×300 at 320px wide) and the laptop stage (960×327, which is what a 1366×657 screen gets). Every stage in this half fits the default height, so no page sets `--hb-stage-h`, and none takes typed text that grows, so none uses `hb-grow`. The measured height of each stage's content is in its section.
- - **The 260px short stage.** A window at least 601px wide and at most 620px tall (1280×590, 1366×560, 667×375, 812×375) gives the stage 260px, and five stages in this half need more. Each has a `@media(min-width:601px) and (max-height:620px)` rule that gives up spacing only: the controls keep their 44px and the buttons their size. Hover State `.stage{padding:10px}` (the six cards need 236px); Focus Ring `.stage{padding:5px 8px 11px}.form{gap:8px}` (the form needs 242px, and the bottom keeps 11px for the widest ring); Button Press Scale `.stage{gap:20px}`; Toggle / Switch Slide `.stage{gap:20px;padding:20px}`; Form Field Morph `.stage{padding:8px}.form{gap:12px}`. Phones and stages of 300px and more are not affected.
+ - **The short stage.** In a window at least 601px wide the stage is 260px when the window is 590px tall or less (1280×590, 1366×560, 667×375, 812×375) and grows with the window to 290px at 620px tall. Five stages in this half need 270 to 288px, so each has a `@media(min-width:601px) and (max-height:620px)` rule that gives up spacing only: the controls keep their 44px and the buttons their size. Hover State `.stage{padding:10px}` (the six cards need 236px); Focus Ring `.stage{padding:5px 8px 11px}.form{gap:8px}` (the form needs 242px, and the bottom keeps 11px for the widest ring); Button Press Scale `.stage{gap:20px}`; Toggle / Switch Slide `.stage{gap:20px;padding:20px}`; Form Field Morph `.stage{padding:8px}.form{gap:12px}`. Phones and stages of 300px and more are not affected.
- **Site font on controls:** stage buttons, inputs, selects and textareas get `font-family:inherit`, because form controls do not take the page font by themselves.
- **Focus looks on the stage:** the shared stylesheet draws the site's focus ring on every focused element (`body.hb :focus-visible`, specificity 0,2,1). A stage control with its own focus look beats the site ring with a stronger selector: Focus Ring's rings, Form Field Morph's fields and Toggle / Switch Slide's track. A control without one keeps the site ring.
- **Grey stage text:** `:root`'s `--ui-muted` becomes `#8a8a92`, as in Part 2 (the site's own muted grey), so every stage rule that uses it changes at once. It is 5.7:1 on the stage's `#0b0b0d` and 5.5:1 on the cards' `#111114`; the old `#77777e` is 4.4:1 and 4.2:1. Stage text below 11px goes up to 11px.
@@ -108,7 +108,7 @@ Each section says what "stops" also undoes.
- **Slow motion:** css. `later()` triples each card's movement (Speed), not its 270ms and 50ms holds.
- **Reduced motion:** the demo's rule stays: the cards change look at once, without the transition. Show me still switches each card's look on and off in turn.
- **Stage font:** site font. `.hcard-name` and `.card-link` get `font-size:15px` and `font-weight:700`.
-- **Stage:** the six cards stay, two to a row on every screen (the phone rule that made one column goes). The small "Technique 1" to "Technique 6" labels go, and the names become plain: "Color change", "Grow", "Lift", "Underline" (the link text of the underline card), "Arrow nudge" (with its →) and "Sweep". `.hgrid` gets `gap:10px`; `.hcard` gets `min-height:72px` and `padding:14px 12px`; the stage gets `padding:16px`. The wrapper `div` around the grid keeps `width:100%`. `hb-dots`: yes. Measured: 270px on a phone, at 320px wide and on a laptop (six cards of 72px make a 236px grid, with 32px of padding and 2px of border). On the 260px short stage, `@media(min-width:601px) and (max-height:620px){.stage{padding:10px}}` lets the padding give way, so the cards keep their size and nothing overflows.
+- **Stage:** the six cards stay, two to a row on every screen (the phone rule that made one column goes). The small "Technique 1" to "Technique 6" labels go, and the names become plain: "Color change", "Grow", "Lift", "Underline" (the link text of the underline card), "Arrow nudge" (with its →) and "Sweep". `.hgrid` gets `gap:10px`; `.hcard` gets `min-height:72px` and `padding:14px 12px`; the stage gets `padding:16px`. The wrapper `div` around the grid keeps `width:100%`. `hb-dots`: yes. Measured: 270px on a phone, at 320px wide and on a laptop (six cards of 72px make a 236px grid, with 32px of padding and 2px of border). On the short stage (see the preamble), `@media(min-width:601px) and (max-height:620px){.stage{padding:10px}}` lets the padding give way, so the cards keep their size and nothing overflows.
- Two changes move to transform and opacity (see the preamble). Today the underline grows by `width` and the lift adds a `box-shadow`.
- The underline: `.h-underline .card-link::after` gets `width:100%`, `transform:scaleX(0)` and `transform-origin:left`, and a `transform` transition. It grows with `transform:scaleX(1)` on hover, `:active` and `.is-demo`.
- The lift: `.h-lift` gets `overflow:visible` and keeps only its `translateY(-4px)`, with a `transform` transition. Its shadow moves to `.h-lift::after` (`content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:0 8px 24px rgba(0,0,0,.6);opacity:0;pointer-events:none;transition:opacity var(--dur) var(--ease)`), which fades in (`opacity:1`) on hover, `:active` and `.is-demo`.
@@ -246,7 +246,7 @@ None: leave out the `details.hb-options` block.
- **Stage font:** site font. `.focusable`, `.form-btn` and `.form-link` get `font-family:inherit` in place of `monospace`.
- **Stage:** the form stays: Full name, Country, Submit Form and Forgot password?. The step strip above it (`.tab-indicator`, "1 · Text" to "4 · Link") goes, because it is a readout of where the focus is. The field labels become 11px; their grey is `--ui-muted`. `.form` gets `gap:12px` and the stage `padding:16px`. `hb-dots`: yes. Measured: 288px on phones and laptops (a 254px form, 32px of padding and 2px of border).
- **The ring-style rules need the `.stage` prefix.** Written `.stage .ring-solid .focusable:focus-visible` (and the same for `.is-demo` and the other three styles), they are 0,4,0. Without the prefix they are 0,3,0 and tie with the site's inward stage rule (`.hb-page .stage :focus-visible`), which comes later in the shared stylesheet and wins, so a real Tab press would draw the ring at `outline-offset:-3px` whatever Ring gap says.
- - **The 260px short stage.** The form needs 242px. `@media(min-width:601px) and (max-height:620px){.stage{padding:5px 8px 11px}.form{gap:8px}}` gives up spacing only; the items keep their 44px. The bottom keeps 11px because the widest ring (Thick ring, Large gap, Wide style: a 4px outline 6px out, and a shadow reaching 11px) would otherwise be cut by the stage's edge under the last item; the top has 14px to spare.
+ - **The short stage** (see the preamble). The form needs 288px with the normal padding, and a short stage is 260 to 290px. `@media(min-width:601px) and (max-height:620px){.stage{padding:5px 8px 11px}.form{gap:8px}}` gives up spacing only, so the items keep their 44px; on a 260px stage the form (242px) then fills the space inside the padding exactly. The bottom keeps 11px because the widest ring (Thick ring, Large gap, Wide style: a 4px outline 6px out, and a shadow reaching 11px) would otherwise be cut by the stage's edge under the last item; the top has 14px to spare.
- **iOS zoom.** The fields are 12px, and iOS zooms the whole page when a text field or menu under 16px gets focus. `@media(pointer:coarse){input.focusable,select.focusable{font-size:16px}}` makes them 16px on touch screens; their 44px height stays.
**Main settings**