diff --git a/docs/adr/0007-a-long-business-name-fits-the-navbar.md b/docs/adr/0007-a-long-business-name-fits-the-navbar.md new file mode 100644 index 0000000..abba3cf --- /dev/null +++ b/docs/adr/0007-a-long-business-name-fits-the-navbar.md @@ -0,0 +1,18 @@ +# A long business name fits the navbar + +Decided 2026-11-22 for art-deco 0.5.10, from the website factory's render pass over all thirty-six blueprint and theme pairs (orchestrator WO-101, ADR 0092). + +## Context + +The website factory compiles a customer's site onto this theme, and the render pass checks that no page is wider than 390 pixels. The professional-services sample business, "Okafor and Lind Accountants", set in the navbar at `text-xl` with the theme's 0.18em capital tracking, ran to 466 pixels and widened every page on a phone; the navbar link could not shrink (`flex-shrink-0`). + +## Decision + +- A text logo longer than 16 characters lets its link shrink (`min-w-0`) and carries `deco-name-long`, which on a phone sets the name at 1rem with 0.08em tracking and lets it wrap. Shorter names and wider screens are unchanged. + +## Consequences + +- art-deco 0.5.10 is published to the dev registry; the orchestrator's `internal/factory/themes.yaml` pins it. +- No schema field changes. The regression check for sites the factory did not build compared the production release with 0.5.10 (orchestrator `docs/works/evidence/WO-101/theme-regression/`). + +Keywords: navbar, logoText, business name, deco-name-long, min-w-0, flex-shrink-0, 390, page width, overflow, WO-101, website factory, render pass, art-deco diff --git a/manifest.yaml b/manifest.yaml index 58797da..131e337 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -135,6 +135,10 @@ css: h1.deco-word-9 { font-size: clamp(1.75rem, 8vw, 3rem); overflow-wrap: anywhere; } h1.deco-word-12 { font-size: clamp(1.5rem, 6.5vw, 2.5rem); overflow-wrap: anywhere; } + /* A long business name in the navbar wraps at a smaller size on a phone; at text-xl with wide tracking it pushed + the page past 390 pixels. */ + @media (max-width: 640px) { .deco-name-long { font-size: 1rem; letter-spacing: 0.08em; line-height: 1.3; } } + /* Icon sprites draw in the link's colour; with no fill they stay black on the dark footer. */ [data-block-override="art-deco:footer"] a svg { fill: currentColor; } diff --git a/plugin.mod b/plugin.mod index 6c44c77..08682c0 100644 --- a/plugin.mod +++ b/plugin.mod @@ -2,7 +2,7 @@ name = "art-deco" display_name = "Art Deco" scope = "@themes" -version = "0.5.9" +version = "0.5.10" description = "Luxury Art Deco theme with champagne gold gradients, jet black, ivory and geometric fan motifs for hotels, fine dining, weddings and jewellers." kind = "theme" categories = ["templates"] diff --git a/templates/overrides/art-deco/navbar.ninjatpl b/templates/overrides/art-deco/navbar.ninjatpl index dfb8d02..3f54f06 100644 --- a/templates/overrides/art-deco/navbar.ninjatpl +++ b/templates/overrides/art-deco/navbar.ninjatpl @@ -14,7 +14,7 @@ {% if use_mega %}