gitoria
All repositories: gitoria
3.7 KB
// three-pane.hl — SHELL 3, e.g. an email client: folders, the list of the open folder, the opened item with its own actions// (docs/layouts/three-pane.md).// Phone: the list first (folders = the sidebar overlay from the header's toggle); a tap on an item shows it and the list// goes (`a.back` returns). 60rem+: all three side by side over the full width, each scrolling on its own.//// ThreePane { view = view // 'list' on the folder's route, 'detail' on an item's route// Sidebar { nav { a { href = "/inbox" 'aria-current' = "page" "Inbox" } } }// aside { ul { li { a { href = "/inbox/m1" "Subject" } } } }// main { a { class = "back" href = "/inbox" "Inbox" } menu { li { button { "Reply" } } } article { … } }// }String view = 'list'slot = nullStyle {threePane {display = 'block'@media {minWidth = '60rem'display = 'grid'gridTemplateColumns = 'var(--layout-sidebar) var(--layout-list) minmax(0, 1fr)'height = 'calc(100dvh - var(--layout-header))'}}// Keep the whole selector for selector list.'three-pane > aside li a,three-pane > aside li > a:first-child' {display = 'flex'flexDirection = 'column'alignItems = 'stretch'justifyContent = 'center'gap = '.1rem'minHeight = 'var(--layout-tap)'padding = '.6rem .75rem'color = 'var(--color-text)'borderRadius = 'var(--radius-small)'}// Keep the whole selector for selector list.'three-pane > aside li a.selected,three-pane > aside li a[aria-current="page"]' {color = 'var(--color-text-strong)'background = 'var(--color-surface)'}// Keep the whole selector for selector list.'three-pane > aside input,three-pane > aside select' {width = '100%'background = 'var(--color-background)'}// Keep the whole selector for pseudo-element.'three-pane a.back::before' {content = '"‹ "'}@media {minWidth = '60rem''three-pane > aside,three-pane.detail > aside' {display = 'block'minHeight = '0'overflowY = 'auto'padding = '1rem .75rem 2rem'background = 'var(--color-background-sunken)'}'three-pane > main,three-pane.list > main' {display = 'block'minHeight = '0'overflowY = 'auto'padding = '1.5rem clamp(1.5rem, 4vw, 4rem) 3rem'}}// Caller slot content is unknown here, so its selectors must be whole.'three-pane > aside' {display = 'block'padding = '.5rem calc(var(--layout-gutter) - .75rem) 2rem'}'three-pane > aside ul' {margin = '0'padding = '0'listStyle = 'none'}'three-pane > aside li' {margin = '0'}'three-pane > aside li a:hover' {textDecoration = 'none'background = 'var(--color-surface)'}'three-pane > main' {display = 'block'minWidth = '0'padding = '1rem var(--layout-gutter) 3rem'}'three-pane > main > menu' {position = 'sticky'top = 'var(--layout-header)'zIndex = '2'display = 'flex'flexWrap = 'wrap'gap = '.25rem'margin = '0 0 1.25rem'padding = '.3rem'listStyle = 'none'background = 'var(--color-background-sunken)'borderRadius = 'var(--radius-large)'@media {minWidth = '60rem'top = '0'}}'three-pane > main > menu li' {margin = '0'}'three-pane > main > menu button' {padding = '.4rem .7rem'}'three-pane > main > menu button:hover' {background = 'var(--color-background)'}'three-pane a.back' {display = 'inline-flex'alignItems = 'center'minHeight = 'var(--layout-tap)'marginBottom = '1rem'fontWeight = '600'@media {minWidth = '60rem'display = 'none'}}@media {minWidth = '60rem''three-pane > app-sidebar' {minHeight = '0'overflowY = 'auto'padding = '1rem .75rem 2rem'}}'three-pane.list > main' {display = 'none'}'three-pane.detail > aside' {display = 'none'}}View {threePane { class = view slot }}
Branches
- f1-broken-json
- f2-api-bugs
- gp-gate-ports
- heap-revert
- hl25-records
- ident-chooser-selector
- mainmain branch
- p51-public-pr-reads
- records-1112
- s25-no-session-on-login-error
- v59
- w52-person-approval
- w52b-approval-followup
- w52c-header-phone
- w53-pulls-speed-pr
- w54-repo-rename-pr
- w55-rename-org
- w56-owner-members
- w62-pr-close
- w63-force-push
- w64-org-slash
Latest commits
- 57af42bbREADME: point to deploy.sh for the port listmre
- d63375d2README: gate commands with explicit portsmre
- feeaa701|||PR gates: explicit ports only, deploy.sh passes themmre
- 6cc1f943Merge branch 'records-1112' into mainGitoria
- 9448c438|||PR records: LOG, missions and reports since 11-09mre
- 6dc08a8eMerge branch 'p51-public-pr-reads' into mainGitoria
- 7b88cfe0Type publicReaderOfRequest parameters (L10)Gitoria
- 2a4b3dc1|||PR Anonymous reads of public repos' pulls and statusesmre
- 21b2c141Merge branch 's25-no-session-on-login-error' into mainGitoria
- 698458e2|||PR No session for cookieless login errors: READMEmre
- cce7b785|||PR No session for cookieless login errorsmre
- 678d6303Merge branch 'v59' into mainGitoria
- 5803cf4f|||PR vendor: Hybriel set-day59 and GC budget 32 MiBmre
- 9eff6627Merge branch 'f2-api-bugs' into mainGitoria
- 26117255|||PR apps API: review comments on files with spaces in their namemre
- b8796cecMerge branch 'f1-broken-json' into mainGitoria
- 2f2959c5|||PR apps API: broken JSON body gives 400 invalid_json, not 500mre
- f7c6ca07Merge branch 'ident-chooser-selector' into mainGitoria
- 691abb8e|||PR tests: find ident identity choice without the removed .choose classmre
- 16a3530fMerge branch 'heap-revert' into mainGitoria