Veylo Docs

HomeDocsContainers

Containers

Window

My Window

Body content.
<div class="veylo-win">
  <h1 class="veylo-title"><span>My Window</span></h1>
  <div class="veylo-body">Body content.</div>
</div>

.veylo-win is a framed window with a bevel. h1.veylo-title is the title bar (accent colour); .veylo-body is the face-coloured content. Add off to the window for an inactive, greyed title bar. A .veylo-title can hold buttons after the title text.

Card

Disk

412 MB free

Sunken2

Field-coloured body.

Neutral

$9 / month
<div class="veylo-card sunk">
  <h4><span>Title</span><span class="veylo-count">2</span></h4>
  <div>Body</div>
  <footer><button class="sm">Cancel</button><button class="sm primary">Save</button></footer>
</div>
PartPurpose
.veylo-cardTitle strip (h4), body, optional footer for buttons
sunkField-coloured inset body
plainNeutral title strip instead of the accent
.veylo-priceLarge price with a small unit

Well, group and panel

  • .veylo-well: a sunken area for demos, code and grouped content. m0 removes its margin.
  • fieldset.veylo-group: etched group box with a legend (see Forms).
  • .veylo-sheet and .veylo-panel: a scrolling page and its sections (see Navigation).

Accordion

One
Opening another closes this one.
Two
Second.
Three
Third.
<div class="veylo-accs" data-veylo-one>
  <details class="veylo-acc" open><summary>One</summary><div>Text</div></details>
  <details class="veylo-acc"><summary>Two</summary><div>Text</div></details>
</div>

Built on native details, so it works without script. data-veylo-one on the wrapper keeps one panel open. Ctrl+click on a summary toggles all panels, and Up and Down move between summaries.

Lists

  • Changelog
  • Downloads
  • Source
  • Ctrl-click
  • to select
  • several
<ul class="veylo-list"><li>One</li><li class="sel">Two</li></ul>
<ul class="veylo-list multi"><li>One</li><li>Two</li></ul>

A selectable list. Click selects, arrows move, Home and End jump. With multi, Ctrl+click, Shift+click, drag and Ctrl+A select several. Selected items get .sel and the list fires change with detail.items.

Tree

  • project
    • src
      • main.js
      • lib.js
    • package.json
<ul class="veylo-tree">
  <li><details open><summary>src</summary>
    <ul><li class="leaf">main.js</li></ul>
  </details></li>
  <li class="leaf">package.json</li>
</ul>

Folders are details; files are li.leaf. Right and Left expand and collapse a folder, Up and Down move.

Media object, divider, split

AB
Ada B.Posted a comment 5 minutes ago.
or
<div class="veylo-media"><span class="veylo-avatar">AB</span><div><b>Ada</b>Posted a comment.</div></div>
<div class="veylo-divider">or</div>

.veylo-media puts a figure beside text. .veylo-divider is a horizontal rule with an optional centred label. For splits, see .veylo-split in Layout.