UI Docs Deploy now

Layout helpers

Small rules for what the other layouts do not cover.

Styles: layout.css.

This line stops at 20rem, as wide as it reads well.

Counts as part of the row
in the row
Scrolls both ways. Second line. Third line. Fourth line. Fifth line. Sixth line. Seventh line.
Code
<div class="moin-stack" data-gap="4">
  <p class="moin-narrow moin-text" style="--width:20rem">This line stops at 20rem, as wide as it reads well.</p>
  <div class="moin-hide-empty"></div>
  <div class="moin-row" data-gap="2">
    <div id="demo-places" class="moin-contents">
      <span class="moin-badge">Counts as</span>
      <span class="moin-badge">part of the row</span>
    </div>
    <span class="moin-badge">in the row</span>
  </div>
  <div class="moin-scroll" data-both style="--scroll-max:6rem">
    <div class="moin-text moin-stack" data-gap="1">
      <span>Scrolls both ways.</span>
      <span>Second line.</span>
      <span>Third line.</span>
      <span>Fourth line.</span>
      <span>Fifth line.</span>
      <span>Sixth line.</span>
      <span>Seventh line.</span>
    </div>
  </div>
</div>

Jumping to a place

A link to #something stops under a floating bar, for anything with an id. Nothing to add. --jump on the target changes the distance, 6rem by default.

This page as Markdown