diff --git a/docs/adr/0006-the-alphabet-row-fits-a-phone.md b/docs/adr/0006-the-alphabet-row-fits-a-phone.md new file mode 100644 index 0000000..27224db --- /dev/null +++ b/docs/adr/0006-the-alphabet-row-fits-a-phone.md @@ -0,0 +1,18 @@ +# The alphabet row fits a phone + +Decided 2026-11-22 for kindergarten 0.4.8, from the website factory's launch runs (orchestrator WO-101, ADR 0092). + +## Context + +The website factory compiles a customer's site onto this theme. Twelve launch sites built on dev on 2026-11-22 showed defects on their home pages, recorded in the orchestrator's `docs/works/evidence/WO-090/runs/RESULTS.md`; the render pass now also renders a 60 to 80 character headline with long words on every theme. + +## Decision + +- Below 640 pixels the alphabet letters shrink to share the row (`flex: 1 1 0`, square, at least 2.25rem, at most 56px), so the eight letters of the strip fit at 390 pixels. ADR 0003 kept the strip inside the viewport by scrolling it, which showed A to E and half an F with no sign that more followed. A longer row still scrolls. The selectors carry two classes because the legacy `assets/style.css`, loaded after the site stylesheet, still sets the letter size. + +## Consequences + +- kindergarten 0.4.8 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it. +- No schema field changes. Production sites on this theme pick the change up with the automatic theme update; the regression check for sites the factory did not build compared the production release with 0.4.8 (orchestrator `docs/works/evidence/WO-101/theme-regression/`). + +Keywords: alphabet strip, kg-alphabet-strip, kg-alphabet-letter, 390, phone, overflow, WO-101, website factory, launch runs, kindergarten diff --git a/manifest.yaml b/manifest.yaml index 8da2ae9..bcbf0fe 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -420,6 +420,11 @@ css: .kg-alphabet-letter:nth-child(4n+3) { background-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); } .kg-alphabet-letter:nth-child(4n+4) { background-color: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); } .kg-alphabet-mono .kg-alphabet-letter { background-color: hsl(var(--muted)); color: hsl(var(--muted-foreground)); } + /* On a phone the letters shrink so a row of eight fits whole; scrolling stays for longer rows. */ + @media (max-width: 640px) { + .kg-alphabet-strip.kg-alphabet-strip { gap: 0.4rem; padding-inline: 1rem; } + .kg-alphabet-strip .kg-alphabet-letter { flex: 1 1 0; min-width: 2.25rem; max-width: 56px; width: auto; height: auto; aspect-ratio: 1; font-size: 1.15rem; border-radius: 0.9rem; } + } .kg-alphabet-primary .kg-alphabet-letter { background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); } /* Day schedule (persona block). */ diff --git a/plugin.mod b/plugin.mod index a7f74f4..efbaa0e 100644 --- a/plugin.mod +++ b/plugin.mod @@ -2,7 +2,7 @@ name = "kindergarten" display_name = "Kindergarten" scope = "@themes" -version = "0.4.7" +version = "0.4.8" description = "Primary-colored, hand-lettered theme for preschools and daycares — crayon borders, sticker badges, confetti, and a bouncing mascot showpiece." kind = "theme" categories = ["templates"]