jukebox
All repositories: gitoria
4.0 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''> aside' {display = 'block'padding = '.5rem calc(var(--layout-gutter) - .75rem) 2rem'}'> main' {display = 'block'minWidth = '0'padding = '1rem var(--layout-gutter) 3rem''> 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'}}}'a.back' {display = 'inline-flex'alignItems = 'center'minHeight = 'var(--layout-tap)'marginBottom = '1rem'fontWeight = '600'@media {minWidth = '60rem'display = 'none'}}@media {minWidth = '60rem'display = 'grid'gridTemplateColumns = 'var(--layout-sidebar) var(--layout-list) minmax(0, 1fr)'height = 'calc(100dvh - var(--layout-header))''> app-sidebar' {minHeight = '0'overflowY = 'auto'padding = '1rem .75rem 2rem'}}}'three-pane.list' {'> main' { display = 'none' }}'three-pane.detail' {'> aside' { display = 'none' }}// slot content from the caller: nesting refused (hybriel#270)'three-pane > aside ul' {margin = '0'padding = '0'listStyle = 'none'}// slot content from the caller: nesting refused (hybriel#270)'three-pane > aside li' { margin = '0' }// 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)'}// slot content from the caller: nesting refused (hybriel#270)'three-pane > aside li a' {hover {textDecoration = 'none'background = 'var(--color-surface)'}}// 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 = '"‹ "' }// slot content from the caller: nesting refused (hybriel#270)'three-pane > main > menu li' { margin = '0' }// slot content from the caller: nesting refused (hybriel#270)'three-pane > main > menu button' {padding = '.4rem .7rem'hover { background = 'var(--color-background)' }}@media {minWidth = '60rem'// Keep the whole selector for selector list.'three-pane > aside,three-pane.detail > aside' {display = 'block'minHeight = '0'overflowY = 'auto'padding = '1rem .75rem 2rem'background = 'var(--color-background-sunken)'}// Keep the whole selector for selector list.'three-pane > main,three-pane.list > main' {display = 'block'minHeight = '0'overflowY = 'auto'padding = '1.5rem clamp(1.5rem, 4vw, 4rem) 3rem'}}}View {threePane { class = view slot }}
Branches
Latest commits
- 7a53c0c2|||PR A tap lost to a dead socket plays after reconnect (mission 015)mre
- 04f5d9d5Merge branch 'day41' into mainJukebox
- 8ed6da45|||PR README: media-player pin df9e7dfmre
- d5d45fc3|||PR media-player df9e7df (repeat-one fix), sync pin and SOURCEmre
- 89cdabb1Vendor Hybriel day41 (57054d9e): plugin dirs, set .somre
- 1fecd6a7Merge branch 'records-day39' into mainJukebox
- d6b3e068|||PR Records: day39 live (PR #2), mission 011 PR step, statusmre
- 5fa19e89Merge branch 'day39' into mainJukebox
- cfe95440|||PR day39 re-vendor: Hybriel 51e921d7 (bin 6b481aa7), ids kebab-case since hybriel#256: quoted state rule and tests use jb-shuffle / jb-repeatmre
- f3614c9bRe-vendor to Hybriel day39 (51e921d7, bin 6b481aa7)mre
- 9f5c6532Merge branch 'status-22-pr' into mainJukebox
- 5838d6c7|||PR STATUS: #22 pending decision, PR-only rulemre
- 29d2029cRecords: PR-only rule (Kunibert)mre
- adacb0abRecords: neutral ticket rule, #22 decision recordedmre
- b2d6f121Records: #308 hold liftedmre
- 7ab67533Records: day39 on hold (hybriel#308)mre
- 22f21739Records: note rebase before mergemre
- f7368ea3Records: mission 011 day39, waits for lisbethmre
- 9515d2cdRecords: jb20 livemre
- 019f6601ui gate: comment names the open bug components#27 (workaround, not fixed)mre