gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Branchw64-org-slash9c72d0bf|||PR org repo addresses work with a trailing slashmrew64-org-slash/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

  • 9c72d0bf|||PR org repo addresses work with a trailing slashmre
  • a4a33081Merge branch 'w63-force-push' into mainGitoria
  • 52576cb0force push: defer on a failed scan, one-to-one pairs, docs (#56)mre
  • 5a7b3e68|||PR a force push keeps the same pull request (#56)mre
  • cc1be2d6Merge branch 'w62-pr-close' into mainGitoria
  • 6e03be0apull state: keep the resync marker until the sync ran (#56)mre
  • 93bdd26cpull state: wait for a claimed row, resync when it stays busy (#56)mre
  • e53d284bpull state: stop on a failed branch scan, claim the row on writes (#56)mre
  • d8608224close and reopen: keep a manual close against sync (#56)mre
  • ffb60746|||PR close and reopen pull requests (#56)mre
  • fe209ffeMerge branch 'w56-owner-members' into mainGitoria
  • fa0754c8|||PR repository owner transfer and members API (#55)mre
  • 8862e537Merge branch 'w55-rename-org' into mainGitoria
  • 014d2b7fOne immutable readers snapshot per move for the left-organization event (#53)mre
  • 1859d506Decide who hears a repo left its organization by its readers before the move (#53)mre
  • 499f25f2Review fixes for the Settings organization move (#53)mre
  • ed3b922b|||PR move a repository into an organization in Settings (#53)mre
  • 74ec2af8Merge branch 'w54-repo-rename-pr' into mainGitoria
  • 9f7ce8d8Preserve rename compatibility and live page titlesmre
  • c3d95b6e|||PR separate names and addresses, rename repositories in Settings (#53)mre