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:
parent
d1e225e7a6
commit
c6247aea5a
2 changed files with 10 additions and 1 deletions
2
dist/asw.css
vendored
2
dist/asw.css
vendored
File diff suppressed because one or more lines are too long
|
|
@ -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%;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue