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
- f7368ea3Records: mission 011 day39, waits for lisbethmre
- 9515d2cdRecords: jb20 livemre
- 019f6601ui gate: comment names the open bug components#27 (workaround, not fixed)mre
- 277a2722README: provenance linemre
- 4169ca6aREADME: sync pinmre
- a01f3aa8ui gate: back to the top before the sort checks (the screen reopens where it was left)mre
- f7936c20Lists keep their scroll position across a reload (jukebox#20): per-list offsets in storage/ui.json, gate jb20mre
- d67906devirtual-list and icons from components.hybriel e5b98ec (centerId, scrollTop, onScroll)mre
- df7920ceRecords: R3 startedmre
- 0549f038Mission 010: jb20 livemre
- 273494e2STATUS rewrittenmre
- 227c9b96Records: jb19 livemre
- 9f365376README: the bar's controls (jb19)mre
- d18851fdjb19: pressed switches look different (whole selector), queue column cannot widen past the panel, gates follow the new bar (jb3, jb11, jb15)mre
- 82b54c0ejb19: bar Shuffle · Previous · Play · Next · Repeat, no 10 s buttons; Shuffle switch (shuffle from the playing song, back to the list), Repeat off/all/one, both remembered in ui.json; Shuffle my favourites an ordinary button; gate tests/jb19.mjsmre
- ba354710jb19: icons pinned to components.hybriel 46fefaa (shuffle, repeat, repeatOne, prevTrack, nextTrack)mre
- d8e8d059jb19 step 2: media-player from components.hybriel c96709c (skip, repeat options; the end of a song only calls onPlay), sync-components.sh and SOURCE point to it, jb11 counts media loads and metadata writes (from jb21 d3a026e)mre
- 7b048c1bRecords: jb19 done, L2 live stepmre
- 665185aeMission 009: jb19 livemre
- 47b2d3beRecords: P1 resumedmre