gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit9edcc2df9edcc2dflog: #58 live, HM57 startedmre9edcc2df/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

  • 9edcc2dflog: #58 live, HM57 startedmre
  • 73fa20ddMerge hm49b-styles: tracker#49 rest of the component stylesmre
  • 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
  • ae905f15Merge t36a: tracker#36 apply rechecks, reportmre
  • 796bfaceT36A: report validated fixes, failed live SSH check and verified rollbackmre
  • 55257852log: #53 live, #56 mergedmre