Shells
Drawer
The detail surface: one thing, in depth, without losing the list behind it. Anchored to the right edge of the viewport and opened over a scrim.
Rule 3's panel weight is what draws the edge - a single
border-left, not a box outline, and no block. A drawer is flush against
three sides of the viewport, so an outline on those sides would fall off the
screen and a block would fall behind it; the left border is the only edge
there is anything to separate.
Its head holds the title and never scrolls; __body is the scrolling
region. __close is a control, so it lifts like one - the only thing in the
drawer that does. Visibility is the hidden attribute rather than a
modifier class, so nothing can show the drawer while leaving it out of the
accessibility tree.
Its fill is --axi-surface-float on two counts: the page is live beside it,
and __body scrolls inside it.
A detail drawer
Shown in flow here; in a real page it is fixed to the right edge and starts hidden<aside class="axi-drawer" role="dialog" aria-modal="true" aria-labelledby="drawer-demo-title" style="position: static; width: auto; height: 300px; --axi-drawer-width: 620px">
<div class="axi-drawer__head">
<button class="axi-drawer__close" type="button" aria-label="Close">×</button>
<h2 id="drawer-demo-title">AxiBridge</h2>
<p style="margin: 10px 0 0; font: var(--axi-t-small); color: var(--axi-text-dim)">One thing, in depth, without losing the list behind it.</p>
<div class="axi-row" style="--axi-row-gap: 7px; margin-top: 13px">
<span class="axi-chip axi-chip--warn">Beta</span>
<span class="axi-chip">Node</span>
<span class="axi-chip axi-chip--meta">arcdps</span>
</div>
</div>
<div class="axi-drawer__body">
<p class="axi-eyebrow">What it does</p>
<div class="axi-prose">
<p>Watches the arcdps log directory, uploads each new encounter, and posts a summary to a Discord webhook.</p>
<ul><li>Automatic upload on file close</li><li>Per-squad routing</li><li>Retry with backoff</li></ul>
</div>
</div>
</aside>
Knobs
| Property | Sets | Fallback |
|---|---|---|
--axi-drawer-width | width of .axi-drawer (capped at 100vw) | 560px |