layouts
All repositories: gitoria
1.4 KB
# ThreePane (`theme/shell/three-pane.hl`) — `<three-pane class="list|detail">` — shell 3**Purpose**: folders + list + opened item with its own actions (docs/shells.md #3), e.g. a mail client.**Parent**: the page, after `AppHeader`.**Children (slot)**: `Sidebar { … }` (the folders) then `aside` (the open folder's list) then `main` (the item).**Members**: `view` = `'list'` on the folder's route, `'detail'` on an item's route.**Classes / states**: `.list` / `.detail`; `a.selected` / `a[aria-current="page"]` in the list; `main a.back` (phone only);`main > menu` = the item's actions panel (a row of buttons on a surface strip, sticky while the item scrolls).**Phone**: starts with the list; the folders are the sidebar overlay (header toggle); an item shows alone with itsactions and a back link. **Desktop**: all three side by side over the full width (`--layout-sidebar`, `--layout-list`,rest), each scrolling on its own.**Semantics**: `menu[aria-label]` with `li > button` for the actions (HTML `menu` = a toolbar); `aside[aria-label]`.**Example**:```hybrielThreePane { view = viewSidebar { nav { 'aria-label' = "Folders" a { href = "/inbox" 'aria-current' = "page" "Inbox" } } }aside { 'aria-label' = "Inbox" ul { li { a { href = "/inbox/m1" "Subject" } } } }main { a { class = "back" href = "/inbox" "Inbox" } menu { li { button { "Reply" } } } h1 { "Subject" } }}```**Do not use for**: two-level apps (ListFirst).
Branches
Latest commits
- eae2be7aapp-sidebar: nest child selectors and document caller-slot gapmre
- 69c9f784Record LY7 slot nesting blocker and minimal repromre
- b1d4f379app-header: nest child and compound selectors in Stylemre
- 6385ff8eRecord LY7 style formatting proof and review statusmre
- 0100f51etracker-demo: format Style with nested rules and bare mediamre
- 5f82554enotes-demo: format Style with nested rules and bare mediamre
- 3dc27d78mail-demo: format Style with nested rules and bare mediamre
- cf9648afhome: format Style with nested rules and bare mediamre
- 846a6242user-menu: format Style with nested rules and bare mediamre
- 4d58708cthree-pane: format Style with nested rules and bare mediamre
- 0bbfc553main-menu: format Style with nested rules and bare mediamre
- 7755199dlist-first: format Style with nested rules and bare mediamre
- 35199303content-first: format Style with nested rules and bare mediamre
- 00f6e698app-sidebar: format Style with nested rules and bare mediamre
- bb2f29c9app-header: format Style with nested rules and bare mediamre
- 3aca2d7fSync components from 8176eb1 with reviewed nested stylesmre
- 87e4003dRe-vendor layouts to Hybriel set day35mre
- d8628cfflayouts: a startup error prints its message before exit 1 (hybriel#247)mre
- 180fd76elayouts: MdEditor from components 59704ce (text on the clipboard always pastes, a file manager copy still attaches; pipe rows; empty Table-button table; tickets#49, notes#5)mre
- a3eda8afRe-vendor Hybriel master 7a684920 (binary 74ab3715): plugins whole, startup fault exits 1; files-upload gate 340/0mre