Fluid Page Layout
P2 priority Donep2-us-fluid-page-layoutProse at 65ch, cards across a fluid panel
- Stage
- 03-done
- Author
- Ivan Hawkes
- Created
- Completed
- References
The page follows the width of the screen: prose at 65ch, cards across the panel.
Fluid Page Layout
The page is one fluid, centred column, and the top and bottom bars keep the presentation they have.
mainis the panel: it fills the viewport, keeps the bar’s--page-gutterinside itself, and caps at the bar’s column, the--page-columnoftokens.cssthat.header-innerand.footer-inneralready cap at, so its left edge is the brand’s and the copyright’s at every width.- The prose is capped at
--prose-measure, the65chtoken carries, narrows with any screen narrower than that, and is centred in the panel. - The furniture read with the prose shares that column and centres with it: the
.measureclass on the breadcrumb trail, thebyline,next-prev,next-prev-smallandrelated, the hero ofimages.css, and thecopyrightchip of the foot. - The line of text that stands on its own in that column is centred in it: the
page title
h1ofpage/content.html, the 404 page, which now takes the same column, the byline, and the footer line, which the foot centres in its column. Paragraphs, lists, code and the text of a card keep the ragged right edge they are read with. - The Kanban board is set in the panel:
.paneltakes the whole widthmainoffers and none of the measure, and.kanban-boardlays the lanes out asrepeat(auto-fit, minmax(min(15rem, 100%), 1fr)), so every lane that fits is a lane, each lane is stretched to fill the row, and a board of three lanes reads across the middle of the panel instead of hanging to the left of it. - The pagination set and the two columns of a recipe are centred, and the recipe’s columns wrap when the panel is too narrow to hold them side by side.
Acceptance Criteria
-
main,.header-innerand.footer-innershare one left edge, and one cap, at 375px, 700px and 1440px. -
.prose,.measureand.footer-copynever exceed 65ch, and fill the panel below that. - The prose column, the hero, the byline, both next/previous bars, the related block and the breadcrumb trail are centred in the panel, and share its middle at every width.
- The page title, the byline and the footer line are centred within the column they sit in, not merely beside it, and the body text is not.
- The board at
/kanban/and/kanban/grid/spans the panel and its lanes are spread across it: no lane’s width of empty panel at the right hand. The lane’s own frame isp2-ft-kanban-lane-padding-and-tint. - The bars are unchanged: the same surface, hairline, height and column.
-
pnpm run testpasses.
Not in scope
- The card listings in section pages, which keep the
.containerframe. - The drawer and the dropdown menus of the top bar:
p0-us-update-site-menu.