s72
  • Stack

    data-stack

    data-stack is a vertical list with the standard gap. Use it wherever two or three blocks should sit above each other with the same space as everything else on the page.

    Basic

  • html
    <div data-stack>
      <aside data-callout="earth"><strong>ledger ships at 16:30</strong><p>The build is green and the release note is written.</p></aside>
      <label data-field>
        <span>Quick note</span>
        <textarea rows="4" placeholder="Something to keep"></textarea>
        <small>Saved to this machine only.</small>
      </label>
      <menu><li><button data-toast="Note saved" data-toast-tone="go">Save note</button></li></menu>
    </div>

    The gap is --s72-gap, the same one the grid uses, so a stack beside a grid lines up.

    Notes