layouts
All repositories: gitoria
3.1 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''> aside' {display = 'block'padding = '.5rem calc(var(--layout-gutter) - .75rem) 2rem'}'> main' {display = 'block'minWidth = '0'padding = '1rem var(--layout-gutter) 3rem'}'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-list) minmax(0, 1fr)'height = 'calc(100dvh - var(--layout-header))'}}'list-first.list' {'> main' { display = 'none' }}'list-first.detail' {'> aside' { display = 'none' }}// slot content from the caller: nesting refused (hybriel#270)'list-first > aside ul' {margin = '0'padding = '0'listStyle = 'none'}// slot content from the caller: nesting refused (hybriel#270)'list-first > aside li' { margin = '0' }// 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)'}// slot content from the caller: nesting refused (hybriel#270)'list-first > aside li a' {hover {textDecoration = 'none'background = 'var(--color-surface)'}}// 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'// Keep the whole selector for selector list.'list-first > aside,list-first.detail > aside' {display = 'block'minHeight = '0'overflowY = 'auto'padding = '1rem .75rem 2rem'background = 'var(--color-background-sunken)'}// Keep the whole selector for selector list.'list-first > main,list-first.list > main' {display = 'block'minHeight = '0'overflowY = 'auto'padding = '1.5rem clamp(1.5rem, 5vw, 5rem) 3rem'}}}View {listFirst { class = view slot }}
Branches
Latest commits
- 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
- fe2d8de9home: nest child and compound selectors in Stylemre
- e631791buser-menu: nest child and compound selectors in Stylemre
- 69604944three-pane: nest child and compound selectors in Stylemre
- 3e389b83main-menu: nest child and compound selectors in Stylemre
- 05413975list-first: nest child and compound selectors in Stylemre
- c545b642content-first: nest child and compound selectors in Stylemre
- 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