gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit0a2ae3da0a2ae3daMerge remote-tracking branch 'origin/records-1123' into records-1124mre0a2ae3da/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

  • 0a2ae3daMerge remote-tracking branch 'origin/records-1123' into records-1124mre
  • 9a48cfcaMerge branch 'vendor-theme' into mainJukebox
  • 170d3735Merge branch 'code-order-2' into mainJukebox
  • 3f1918a7|||PR Re-sync layouts theme 4099e64 with Segoe UI firstmre
  • 2e7f6a43Vendor virtual-list 489afcf from components.hybrielmre
  • 0ba85799Merge branch 'reset-classes' into mainJukebox
  • 502eeed5jukebox#20: vendor virtual-list initial resetKey baseline fixmre
  • 6d5ce287|||PR jukebox#9 Centralize songs table reads and writes in db.hlmre
  • dcca21abjukebox#8 Move copies and queue logic into their topicsmre
  • 3b76651cjukebox#20: update virtual-list README pin and resetKey optionsmre
  • bc09e1e8|||PR jukebox#20: reset virtual lists through resetKey (partial validation)mre
  • a3796dc5Records: live step waits for idlemre
  • 3b158e16Records: merges of #9 and #11mre
  • 27204167Merge main into records-1123mre
  • 10f8a8c8Merge branch 'code-order' into mainJukebox
  • 204fc828Merge branch 'day72' into mainJukebox
  • 8e8d0e2b|||PR Records: PROCEDURES.md, missions 016-019, GO 2026-11-23mre
  • 95f5faae|||PR jukebox#7 Drop needless let declarationsmre
  • 33072bb5|||PR Record day72 gates and Chrome proofmre
  • 95f2cd73|||PR Use typed parent methods for screen playback and local server facesmre