tracker
All repositories: gitoria
1.3 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 {'content-first' { display = 'block' paddingInline = 'max(var(--layout-gutter), calc((100% - var(--layout-column)) / 2))' paddingTop = '1rem' paddingBottom = '3rem' }'content-first > main' { display = 'block' minWidth = '0' }'@media (min-width: 60rem)' {'content-first' { display = 'grid' gridTemplateColumns = 'var(--layout-sidebar) minmax(0, 1fr)' gap = '3rem' alignItems = 'start' paddingTop = '1.5rem' }'content-first:not(:has(> app-sidebar:not(.mobile-only)))' { gridTemplateColumns = 'minmax(0, 1fr)' }'content-first > app-sidebar' { position = 'sticky' top = 'calc(var(--layout-header) + 1.5rem)' maxHeight = 'calc(100dvh - var(--layout-header) - 3rem)' overflowY = 'auto' marginLeft = '-.75rem' }}}View {contentFirst { slot }}
Branches
Latest commits
- 9888d076Merge hm51-classes: tracker#51 views use Style referencesmre
- 4399bc2fReference remaining component-owned root Style rulesmre
- 9edcc2dflog: #58 live, HM57 startedmre
- 73fa20ddMerge hm49b-styles: tracker#49 rest of the component stylesmre
- aed12917Reference owned Style rules in genres and searchmre
- 14195720log: HM49B done, HM51 startedmre
- 78ee6b56Move remaining component styles into Style blocksmre
- 7f04de33log: HM49Bmre
- 00616cf3log: #49 batch merged, DP67 startedmre
- d7232e86Merge hm49-styles: tracker#49 first batch of component stylesmre
- 079f376dMove seven components' styles into Style blocksmre
- 17d66feelog: #58 mergedmre
- 69a6640bMerge hm58-map: tracker#58 project.hl only the mapmre
- a85f7900Move route logic out of the project mapmre
- 13dea5belog: #56 live, HM49 and HM58 startedmre
- a31c8f2fdocs: tracker#36 remaining listmre
- 975d06d1log: #36 live, DP66 startedmre
- d6d03fa3mission: T36Bmre
- e7512d00status: #36 rolled back, retry askedmre
- c98e2043log: T36A rollbackmre