Layout: add body > main container rule — was missing from landmarks

Hugo pack and most SSGs wrap content in <main>. ASW had container
rules for body > nav, footer, header, article, section — but not main.
Main was unconstrained, spanning full viewport.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Vigilio Desto 2026-04-12 18:20:37 +02:00
parent d1e225e7a6
commit c6247aea5a
Signed by: Vigo
GPG key ID: 159D6AD58C8E55E9
2 changed files with 10 additions and 1 deletions

2
dist/asw.css vendored

File diff suppressed because one or more lines are too long

View file

@ -17,6 +17,15 @@
body > nav { width: 100%; } body > nav { width: 100%; }
body > footer { width: 100%; } body > footer { width: 100%; }
/* Main: content container. Same pattern as article/section.
Hugo pack and most SSGs wrap content in <main>. */
body > main {
width: 100%;
max-width: var(--width-lg);
margin-inline: auto;
padding-inline: var(--container-padding);
}
/* Header: wider than article — room for hero titles, eyebrows, meta. */ /* Header: wider than article — room for hero titles, eyebrows, meta. */
body > header { body > header {
width: 100%; width: 100%;