jukebox
All repositories: gitoria
1.4 KB
// content-first.hl — SHELL 1, the regular app: a sidebar and the main content (docs/layouts/content-first.md).// Phone: the main content; the sidebar is the overlay the header's toggle opens. 60rem+: sidebar and main side by side,// both inside the centred content column (--layout-column) the header's contents are flush with.//// ContentFirst {// Sidebar { nav { a { href = "/" "Home" } } }// main { h1 { "Title" } p { "…" } }// }//// Without a Sidebar, or with `Sidebar { desktop = "false" }`, main takes the whole column on desktop.slot = nullStyle {contentFirst {display = 'block'paddingInline = 'max(var(--layout-gutter), calc((100% - var(--layout-column)) / 2))'paddingTop = '1rem'paddingBottom = '3rem''> main' {display = 'block'minWidth = '0'}@media {minWidth = '60rem'display = 'grid'gridTemplateColumns = 'var(--layout-sidebar) minmax(0, 1fr)'gap = '3rem'alignItems = 'start'paddingTop = '1.5rem''> app-sidebar' {position = 'sticky'top = 'calc(var(--layout-header) + 1.5rem)'maxHeight = 'calc(100dvh - var(--layout-header) - 3rem)'overflowY = 'auto'marginLeft = '-.75rem'}}}// Keep the whole selector for :has condition.'content-first:not(:has(> app-sidebar:not(.mobile-only)))' {@media {minWidth = '60rem'gridTemplateColumns = 'minmax(0, 1fr)'}}}View {contentFirst { slot }}
Branches
Latest commits
- b011f98eRecords: style form live on day35mre
- 60d90cb2Records: L1 woken for the restartmre
- 75ae544fRecords: restart waits for the connection to closemre
- e0b75951Records: L1 merged and pushed, restart waits for an open connectionmre
- f2b5db98styles: format styles with nested rules and bare queriesmre
- f036bab4search: format styles with nested rules and bare queriesmre
- ef9a9d4asongs: format styles with nested rules and bare queriesmre
- f22f9aacmain: format styles with nested rules and bare queriesmre
- f56cd7c7Sync icons from 8176eb1 and verify mixed component sourcesmre
- d56e5054Sync theme and shared tokens from layouts 17e0f03mre
- b1362547Re-vendor to Hybriel set day35mre
- 89e10f08Records: mission 002 rollback wordingmre
- 9485dee7Records: mission 002 brief (live step)mre
- 9ba68fe7Records: S1b reviewedmre
- 193dfff1Records: S1 result, S1b startedmre
- 028ed776Records: mission 001 continuation S1bmre
- 1838d7e8Records: S1 startedmre
- a43fca3fRecords: mission 001 decided pointsmre
- 41773828Records: statusmre
- a82c0805Records: mission 001 brief (Style form)mre