Skip to content

Record Card

A bordered card of label and value rows for one record's details.

Decision

When Use
The details of one item, such as a last result and an id Record Card.
Rows that need no card surface, or are built from data Definition List.
The status card of counts Count Cards. Never confuse it with the Record Card.

Usage

<div class="stolon-record-card">
    <div class="stolon-record-row"><span class="stolon-record-label">Last result</span><span>OK</span></div>
    <div class="stolon-record-row"><span class="stolon-record-label">ID</span><span class="stolon-mono">2f40d5d8</span></div>
</div>

Classes: stolon-record-card, stolon-record-row, stolon-record-label.

States and Modifiers

  • The value is the last child that is not a label. It breaks anywhere and aligns right, so a long id wraps inside the card.
  • The last block inside takes no bottom margin.

Gotchas

  • There is no JavaScript.

Reference

Generated from the code by scripts/build-docs.mjs. Edit the code, not this section.

Class What it looks like
stolon-record-card Detail card showing label and value rows for a single item, on the panel's surface and padding from panel.css
stolon-record-row Label and value pair on one line
stolon-record-label Dimmed label that keeps its natural width

Example

Example Code

<!-- title: Record Card -->
<div class="stolon-record-card">
    <div class="stolon-record-row"><span class="stolon-record-label">Last result</span><span>OK</span></div>
    <div class="stolon-record-row"><span class="stolon-record-label">Address</span><span class="stolon-mono">203.0.113.7</span></div>
    <div class="stolon-record-row"><span class="stolon-record-label">ID</span><span class="stolon-mono">2f40d5d8-9a1c-4c1e-8f43-a6b3e7c0d211</span></div>
</div>