diff options
Diffstat (limited to 'AGENTS.md')
| -rw-r--r-- | AGENTS.md | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -378,9 +378,14 @@ internal/web/ server.go (host router, middleware, render helpers) colours so they fit any theme, except `gizmo`: a box framed in the theme's link colour (`.notice-gizmo { border-color }` comes from the theme CSS). On wide screens `.notices` is a flex row (the second flexbox in blog.css, - stacking on old browsers like `.cols`): headed gizmo boxes (`.headed`) - start at 30% and grow, so up to three share a row; every other box takes - the whole row. + stacking on old browsers like `.cols`). `placeNotices` returns `Notice` + (the section + `Width`): in the main column, consecutive headed gizmo + boxes (`.headed`) are paired two to a row by `pairNotices`, and + `shareRow` gives the pair the `rowShares` split (25/75, 33/67, 50/50, + 67/33, 75/25) nearest the ratio of their text lengths (`noticeLen`: title + + body with tags stripped) as `.w-<percent>` classes whose flex-bases sum + to 90% (the leftover grows into both, so a third never fits). Every other + box, and every box in a side column, takes the whole row. - **Dashboard nav**: `dashnav.html` marks the current tab with `hasPrefix .Path`; a new management section needs a tab there. - **Languages** (`internal/i18n`, `settings.language`): every blog has a |
