gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitc4f6d9e3c4f6d9e3reports: G25c growth huntmrec4f6d9e3/theme/shell/content-first.hl

1.5 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. contentFirst {
  14. display = 'block'
  15. paddingInline = 'max(var(--layout-gutter), calc((100% - var(--layout-column)) / 2))'
  16. paddingTop = '1rem'
  17. paddingBottom = '3rem'
  18. @media {
  19. minWidth = '60rem'
  20. display = 'grid'
  21. gridTemplateColumns = 'var(--layout-sidebar) minmax(0, 1fr)'
  22. gap = '3rem'
  23. alignItems = 'start'
  24. paddingTop = '1.5rem'
  25. }
  26. }
  27. // Keep the whole selector for :has condition.
  28. 'content-first:not(:has(> app-sidebar:not(.mobile-only)))' {
  29. @media {
  30. minWidth = '60rem'
  31. gridTemplateColumns = 'minmax(0, 1fr)'
  32. }
  33. }
  34. // Caller slot content is unknown here, so its selectors must be whole.
  35. 'content-first > main' {
  36. display = 'block'
  37. minWidth = '0'
  38. }
  39. @media {
  40. minWidth = '60rem'
  41. 'content-first > app-sidebar' {
  42. position = 'sticky'
  43. top = 'calc(var(--layout-header) + 1.5rem)'
  44. maxHeight = 'calc(100dvh - var(--layout-header) - 3rem)'
  45. overflowY = 'auto'
  46. marginLeft = '-.75rem'
  47. }
  48. }
  49. }
  50. View {
  51. contentFirst { slot }
  52. }

Branches

Latest commits

  • c4f6d9e3reports: G25c growth huntmre
  • b88e39f1log: privacy cleanup donemre
  • bfd7826ddocs: neutral example organisation namemre
  • 01b71c2edocs: neutral wording in missions, reports and logmre
  • 3eeea733log: 2026-11-09 PR flow plan and membersmre
  • e7c2ff1fdocs: neutral name for the apps-api reviewmre
  • 120b7abdlog: step 3 queuedmre
  • 358474bflog: P50 livemre
  • 477d7bdcMerge branch 'p50'mre
  • 00efc06fP50 reportmre
  • e3f85afblog: commit mention slipmre
  • 4d1a4cf4log: #25 numbersmre
  • 1af0a60ddocs: H25 run() correctionmre
  • eefa2dbcRepo setting: refuse direct pushes to the main branch (pre-receive over HTTPS and ssh)mre
  • 8c8ba2f1log: PR flow announcedmre
  • fa00cd35log: Kunibert pings provenmre
  • 3a68cfaclog: components decisionmre
  • 87de8e31log: Kunibert connected to 9 app reposmre
  • c22aff69log: PR-only rollout startedmre
  • 25309981log: STOP and paused workers 2026-11-08mre