From 494ab19c558a246faf3d751ad5b7aeca58fce65c Mon Sep 17 00:00:00 2001 From: Alex Dunmow Date: Sun, 22 Nov 2026 18:27:47 +0800 Subject: [PATCH] fix: website factory launch run defects (0.6.4) Footer contact details, eyebrow alignment, long headlines, scrims and grid rows found by the WO-101 render pass; see docs/adr. Co-Authored-By: Claude Opus 5.5 --- .../0003-a-short-last-grid-row-is-centred.md | 18 ++++++++++++++++++ manifest.yaml | 11 +++++++++++ plugin.mod | 2 +- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 docs/adr/0003-a-short-last-grid-row-is-centred.md diff --git a/docs/adr/0003-a-short-last-grid-row-is-centred.md b/docs/adr/0003-a-short-last-grid-row-is-centred.md new file mode 100644 index 0000000..055643b --- /dev/null +++ b/docs/adr/0003-a-short-last-grid-row-is-centred.md @@ -0,0 +1,18 @@ +# A short last grid row is centred + +Decided 2026-11-22 for corporate-modernist 0.6.4, 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 + +- A `cm-grid` inside a section with the class `bn-center-last-row` centres its short last row at the lg breakpoint, with the rule cms ADR 0221 gives the shared `lg:grid-cols-*` grids: twice as many tracks, every item spans two, and the first item of a short last row starts one track in per missing item. The compiler marks grids of five, seven or eleven items with that class; the CMS rule never reached this theme's grids, so the seven services of Brightline Electrical ended with three against the left edge. + +## Consequences + +- corporate-modernist 0.6.4 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.6.4 (orchestrator `docs/works/evidence/WO-101/theme-regression/`). + +Keywords: cm-grid, bn-center-last-row, short last row, centred grid, feature-grid, team, WO-101, website factory, launch runs, corporate-modernist diff --git a/manifest.yaml b/manifest.yaml index 1a5ec01..8f064bd 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -208,6 +208,17 @@ css: .cm-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(1, minmax(0, 1fr)); } @media (min-width: 640px) { .cm-grid-2, .cm-grid-3, .cm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (min-width: 1024px) { .cm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cm-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } } + /* bn-center-last-row (cms ADR 0221) centres a short last row; the host rule targets lg:grid-cols-*, so cm-grid repeats it. */ + @media (min-width: 1024px) { + .bn-center-last-row .cm-grid-3 { grid-template-columns: repeat(6, minmax(0, 1fr)); } + .bn-center-last-row .cm-grid-4 { grid-template-columns: repeat(8, minmax(0, 1fr)); } + .bn-center-last-row .cm-grid-3 > *, .bn-center-last-row .cm-grid-4 > * { grid-column: span 2 / span 2; } + .bn-center-last-row .cm-grid-3 > :nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; } + .bn-center-last-row .cm-grid-3 > :nth-child(3n+1):last-child { grid-column: 3 / span 2; } + .bn-center-last-row .cm-grid-4 > :nth-child(4n+1):nth-last-child(3) { grid-column: 2 / span 2; } + .bn-center-last-row .cm-grid-4 > :nth-child(4n+1):nth-last-child(2) { grid-column: 3 / span 2; } + .bn-center-last-row .cm-grid-4 > :nth-child(4n+1):last-child { grid-column: 4 / span 2; } + } .cm-leadership-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(1, minmax(0, 1fr)); } @media (min-width: 640px) { .cm-leadership-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (min-width: 1024px) { .cm-leadership-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } } diff --git a/plugin.mod b/plugin.mod index 5bd9644..cb97753 100644 --- a/plugin.mod +++ b/plugin.mod @@ -2,7 +2,7 @@ name = "corporate-modernist" display_name = "Corporate Modernist" scope = "@themes" -version = "0.6.3" +version = "0.6.4" description = "Swiss-grid B2B theme with restrained typography, a single configurable accent, and trust-signal blocks for enterprise sites." kind = "theme" categories = ["templates"]