gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit877b63ac877b63acdesign rules: two radii only (5px small, 10px large)mre877b63ac/docs/layouts/content-first.md

1003 B

  1. # ContentFirst (`theme/shell/content-first.hl`) — `<content-first>` — shell 1
  2. **Purpose**: the regular app: sidebar + main content (docs/shells.md #1). Tracker, tickets, gitoria, this showcase.
  3. **Parent**: the page (or `components/main.hl`), after `AppHeader`.
  4. **Children (slot)**: `Sidebar { … }` (optional) then `main { … }`.
  5. **Phone**: `main` only; the sidebar is the overlay from the header's toggle. **Desktop** (60rem+): sidebar
  6. (`--layout-sidebar`, sticky) and main side by side inside the centred column (`--layout-column`); the header's contents
  7. are flush with that column. No sidebar, or `Sidebar { desktop = "false" }`: main takes the whole column.
  8. **Classes / states**: none of its own.
  9. **Semantics**: `main` is the page's one main landmark; the sidebar holds `nav` elements.
  10. **Example**: `ContentFirst { Sidebar { nav { a { href = "/" "Home" } } } main { h1 { "Title" } p { "…" } } }`.
  11. **Do not use for**: apps whose phone view starts with a list (use ListFirst / ThreePane).

Branches

Latest commits

  • 877b63acdesign rules: two radii only (5px small, 10px large)mre
  • 635234dfcomponents re-synced to components.hybriel 5a98d77 (#15 black/white base look); gate 73/0, check-theme 0, screenshots unchangedmre
  • 876b2064docs: workaround note for hybriel#130 (slot marker mid-line)mre
  • 85b56541layouts mission 002 3/3: same-output tests, letcount, shots ports, docs, reportmre
  • 0f325d3blayouts mission 002 2/3: code rules — styles.hl -> components/styles.hl, the one never-reassigned let dropped; gate 73/0, same outputmre
  • a3e74c8alayouts mission 002 1/3: components re-copied byte-verbatim from components.hybriel 3f93d71 by tools/sync-components.sh (+ --check, components/SOURCE); gate 73/0, check-theme 0mre
  • 80ce6ba9report 001 (mission 075)mre
  • 5c6e338flayouts.worldapi.org in Hybriel: WorldAPI theme (tokens, borderless elements, themed components.hybriel components), shells (header, main/user menu, sidebar overlay, content-first, list-first, three-pane), showcase, check-theme helper; gate 73/0 (mission 075)mre