gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Branchlayouts9-hc-lookf13a655elayouts#9: editor toolbar and comment-history density back at their 60rem cutoffsAtlaslayouts9-hc-look/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. 768px+: 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 = '.5rem'
  17. paddingBottom = '.75rem'
  18. @media {
  19. minWidth = '768px'
  20. display = 'grid'
  21. gridTemplateColumns = 'var(--layout-sidebar) minmax(0, 1fr)'
  22. gap = '3rem'
  23. alignItems = 'start'
  24. paddingTop = '1.5rem'
  25. paddingBottom = '3rem'
  26. }
  27. }
  28. // Keep the whole selector for :has condition.
  29. 'content-first:not(:has(> app-sidebar:not(.mobile-only)))' {
  30. @media {
  31. minWidth = '768px'
  32. gridTemplateColumns = 'minmax(0, 1fr)'
  33. }
  34. }
  35. // Caller slot content is unknown here, so its selectors must be whole.
  36. 'content-first > main' {
  37. display = 'block'
  38. minWidth = '0'
  39. }
  40. @media {
  41. minWidth = '768px'
  42. 'content-first > app-sidebar' {
  43. position = 'sticky'
  44. top = 'calc(var(--layout-header) + 1.5rem)'
  45. maxHeight = 'calc(100dvh - var(--layout-header) - 3rem)'
  46. overflowY = 'auto'
  47. }
  48. }
  49. }
  50. View {
  51. contentFirst { slot }
  52. }

Branches

Latest commits

  • f13a655elayouts#9: editor toolbar and comment-history density back at their 60rem cutoffsAtlas
  • b243fffalayouts#9: tap density stays at 60rem; palette rule names HyperConductorAtlas
  • 2027f696layouts#9: field focus glow back to HyperConductor's .45Atlas
  • 88e1d14d|||PR layouts#9: address Kunibert findings (3-pane 768px, :where invalid focus, placeholder & glow contrast)Atlas
  • 8c875a78|||PR layouts#9: match HyperConductor look (lines 1-21)Atlas
  • 4099e64aMerge branch 'font-segoe-ui' into mainAtlas
  • e14fb795|||PR Theme font: Segoe UI first (his choice 2026-11-19)Atlas
  • 44071d2cMerge branch 'hl-standard-5' into mainAtlas
  • 5ea64202|||PR Gate: count the new-tab check's console errors tooAtlas
  • 2752ceddMerge branch 'hl-standard-4' into mainAtlas
  • ac552b81|||PR Gate: keyboard (Tab/Enter/Space) and Back/Forward/reload/new-tab checks (HL-STANDARD F5, F21)Atlas
  • 8cddcaa9Merge branch 'hl-standard-2' into mainAtlas
  • 2b480a64|||PR Type the route parameter of main-menu build (HL-STANDARD L10)Atlas
  • ab54a39dMerge branch 'hl-standard' into mainAtlas
  • 04d36fcf|||PR Type function parameters and drop unneeded let (HL-STANDARD L2, L10)Atlas
  • 220c8fa4Merge branch 'readme-audit' into mainAtlas
  • b78fb85a|||PR README matches the codemre
  • 9f351699Preserve comments and nest supported selectors without changing rendered outputmre
  • 97110ad9WIP: nest accepted layout selectors; stopped at startup parse failuremre
  • ce4a0baeKeep caller slot styles whole so minimal shell apps startmre