Layout
Page
The centred column every view sits in, at one of three measures. The default suits a browsing view; the two modifiers exist because prose and dense catalogs genuinely disagree about width.
Beyond --narrow a line of body text gets hard to track back to the
start of the next one, and --wide is for grids where width spent on
margins is a column not shown. Hard-coding either default made one of the two
wrong, which is why there are three.
The gutter is a knob because measures nest: a --narrow prose column inside
a page that has already paid the gutter would otherwise pay it twice, with no
way to say so but an inline padding-inline: 0. Set
--axi-page-pad: 0 on the inner one.
A narrow column nested in a page
The inner measure sets --axi-page-pad: 0 so the gutter is paid onceNarrow measure
Reading width, inside a page that has already paid its gutter.
<div class="axi-page">
<div class="axi-page axi-page--narrow" style="--axi-page-pad: 0">
<div class="axi-panel">
<p class="axi-eyebrow">Narrow measure</p>
<p style="margin: 0; font: var(--axi-t-small); color: var(--axi-text-dim)">Reading width, inside a page that has already paid its gutter.</p>
</div>
</div>
</div>
Knobs
| Property | Sets | Fallback |
|---|---|---|
--axi-page-pad | .axi-page's horizontal gutter | var(--axi-gutter) |