gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit2156cc7f2156cc7flog: HM54 reviewmre2156cc7f/theme/shell/content-first.hl

1.3 KB

  1. // content-first.hl — SHELL 1, the regular app: a sidebar and the main content (docs/layouts/content-first.md).
  2. // Phone: the main content; the sidebar is the overlay the header's toggle opens. 60rem+: sidebar and main side by side,
  3. // both inside the centred content column (--layout-column) the header's contents are flush with.
  4. //
  5. // ContentFirst {
  6. // Sidebar { nav { a { href = "/" "Home" } } }
  7. // main { h1 { "Title" } p { "…" } }
  8. // }
  9. //
  10. // Without a Sidebar, or with `Sidebar { desktop = "false" }`, main takes the whole column on desktop.
  11. slot = null
  12. Style {
  13. 'content-first' { display = 'block' paddingInline = 'max(var(--layout-gutter), calc((100% - var(--layout-column)) / 2))' paddingTop = '1rem' paddingBottom = '3rem' }
  14. 'content-first > main' { display = 'block' minWidth = '0' }
  15. '@media (min-width: 60rem)' {
  16. 'content-first' { display = 'grid' gridTemplateColumns = 'var(--layout-sidebar) minmax(0, 1fr)' gap = '3rem' alignItems = 'start' paddingTop = '1.5rem' }
  17. 'content-first:not(:has(> app-sidebar:not(.mobile-only)))' { gridTemplateColumns = 'minmax(0, 1fr)' }
  18. 'content-first > app-sidebar' { position = 'sticky' top = 'calc(var(--layout-header) + 1.5rem)' maxHeight = 'calc(100dvh - var(--layout-header) - 3rem)' overflowY = 'auto' marginLeft = '-.75rem' }
  19. }
  20. }
  21. View {
  22. contentFirst { slot }
  23. }

Branches

Latest commits

  • 2156cc7flog: HM54 reviewmre
  • 9fb82efclog: HM54 gap, fill continuesmre
  • b632eb8dlog: HM53 done, HM54 startedmre
  • 3356fcfclog: #52 blocked, HM53 startedmre
  • 833dcfc9Merge hm52-search: report only, tracker#52 blocked by framework gapmre
  • 73010cc0HM52: report replace-navigation search draft regressionmre
  • 1742e92bstatus: DP64 and HM52 runningmre
  • 29ad5b58log: #64 merged, DP64 and HM52 startedmre
  • fafddbf9Merge hm64-catalog: tracker#64 catalog from packed entriesmre
  • b2e2206dlog: #63 livemre
  • 5831e0e0log: HM64 donemre
  • 4042b923Flatten catalog membership rows into paired slotsmre
  • ea8a759elog: #61 #62 live, DP63 and HM64 startedmre
  • 40439456Merge hm63-searchtext: tracker#63 packed search textmre
  • b7e6b48ePack normalized search text behind numeric offsetsmre
  • b35f53e1log: DP62 stale runtime decisionmre
  • f9593602log: Apollo deploy rule correctionmre
  • 3c95f7f3log: DP62 and HM63 startedmre
  • 9c4397c9mission HM63mre
  • 8dfe42c8mission DP62mre