layouts
All repositories: gitoria
2.9 KB
// list-first.hl — SHELL 2, e.g. Notes: the list and the opened item (docs/layouts/list-first.md).// Phone: the list first; a tap on an item opens its page, where only the item shows (with a `a.back` link to the list).// 60rem+: list and item side by side over the full width, each scrolling on its own; `/` shows a welcome text.//// ListFirst { view = view // 'list' on the list's own route, 'detail' on an item's route// aside { ul { li { a { href = "/notes/n1" class = "selected" "Reading list" } } } }// main { a { class = "back" href = "/notes" "All notes" } h1 { "Reading list" } … }// }String view = 'list'slot = nullStyle {listFirst {display = 'block'@media {minWidth = '60rem'display = 'grid'gridTemplateColumns = 'var(--layout-list) minmax(0, 1fr)'height = 'calc(100dvh - var(--layout-header))'}}// Keep the whole selector for selector list.'list-first > aside li a,list-first > 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.'list-first > aside li a.selected,list-first > aside li a[aria-current="page"]' {color = 'var(--color-text-strong)'background = 'var(--color-surface)'}// Keep the whole selector for selector list.'list-first > aside input,list-first > aside select' {width = '100%'background = 'var(--color-background)'}// Keep the whole selector for pseudo-element.'list-first a.back::before' {content = '"‹ "'}@media {minWidth = '60rem''list-first > aside,list-first.detail > aside' {display = 'block'minHeight = '0'overflowY = 'auto'padding = '1rem .75rem 2rem'background = 'var(--color-background-sunken)'}'list-first > main,list-first.list > main' {display = 'block'minHeight = '0'overflowY = 'auto'padding = '1.5rem clamp(1.5rem, 5vw, 5rem) 3rem'}}// Caller slot content is unknown here, so its selectors must be whole.'list-first > aside' {display = 'block'padding = '.5rem calc(var(--layout-gutter) - .75rem) 2rem'}'list-first > aside ul' {margin = '0'padding = '0'listStyle = 'none'}'list-first > aside li' {margin = '0'}'list-first > aside li a:hover' {textDecoration = 'none'background = 'var(--color-surface)'}'list-first > main' {display = 'block'minWidth = '0'padding = '1rem var(--layout-gutter) 3rem'}'list-first a.back' {display = 'inline-flex'alignItems = 'center'minHeight = 'var(--layout-tap)'marginBottom = '1rem'fontWeight = '600'@media {minWidth = '60rem'display = 'none'}}'list-first.list > main' {display = 'none'}'list-first.detail > aside' {display = 'none'}}View {listFirst { class = view slot }}
Branches
Latest commits
- b78fb85a|||PR README matches the codemre
- 9f351699Preserve comments and nest supported selectors without changing rendered outputmre
- 97110ad9WIP: nest accepted layout selectors; stopped at startup parse failuremre
- ce4a0baeKeep caller slot styles whole so minimal shell apps startmre
- 12cd3992Re-vendor complete Hybriel plugins and runtime to day44mre
- b05c20feBackup tar: --hard-dereference, so mpackdb sidecars are never stored as hard links (Tracker's finding)mre
- 8d9ed0b8Re-vendor complete Hybriel plugins and runtime to day39mre
- ebd00b6cNest caller slot styles in three-panemre
- 009991efNest caller slot styles in list-firstmre
- 494d75d4Nest caller slot styles in app-sidebarmre
- e5571680Align all plugin sources with Hybriel day38bmre
- 5d204c46Re-vendor layouts to Hybriel set day38bmre
- 17e0f03eNest html-prefixed theme component overridesmre
- e54e735eFormat plain theme elements with nested rules and bare mediamre
- 547f834eRecord LY7 deployment and live verificationmre
- fa4600b1Link caller-slot style exceptions to hybriel#270mre
- 413b11e1Record corrected LY7 nesting, exact CSS and Chrome proofmre
- b810453etracker-demo: nest child and compound selectors in Stylemre
- 0b5b1d61notes-demo: nest child and compound selectors in Stylemre
- ab22bdc2mail-demo: nest child and compound selectors in Stylemre