From 69912c4ac04ada3286c09400ce523d5d3ab4cfb4 Mon Sep 17 00:00:00 2001 From: grm Date: Thu, 17 Sep 2026 20:15:14 +0300 Subject: Add a header rule beside the title or logo, and plain menu links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gizmolab's header is a logo with a striped rule filling the rest of the row, and a menu of plain underlined links under it; nothing in the Design tab could draw either. The rule (line, dots or stripes) is a theme option drawn in the header text colour beside the title and logo modules — on both sides when the header is centred — as table cells, so it is as tall as the brand and old browsers lay it out the same; it is hidden on phones so a long title can wrap. The menu's link style gains "plain, underlined" next to bold and uppercase. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A --- AGENTS.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index b7bd557..84b6a7b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -176,6 +176,15 @@ internal/web/ server.go (host router, middleware, render helpers) Summaries) and `PostImage` (where the post page shows the featured image: `top` | `bottom` | `list` = listings only). `TitleSize` is emitted inside the wide-screen media query so blog.css's phone rule keeps winning. + `HeaderRule` (`none` | `line` | `dots` | `stripes`) is a decoration beside + the title and logo modules in the header, filling the rest of the row (both + sides when `HeaderAlign` is `center`): `Theme.RuleClass` turns it into the + `ruled rule-` classes on the block, the `rule` template adds the + `.header-rule` cells and blog.css draws them — table cells (so the rule is + as tall as the brand and old browsers agree) in `currentColor`, i.e. the + header text colour; hidden on phones so a long title can wrap. `NavStyle` + `plain` is regular weight + underline for the menu links (blog.css makes + them bold). Optional colours (`LinkHover`, `NavHover`) are `""` = inherit and come from a colour input paired with a `_custom` checkbox, shown/hidden with CSS only (`.hoverpick > input:not(:checked) ~ …`). Image fields use the -- cgit v1.2.3