gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Branchw62-pr-close6e03be0apull state: keep the resync marker until the sync ran (#56)mrew62-pr-close/theme/shell/list-first.hl

2.9 KB

  1. // list-first.hl — SHELL 2, e.g. Notes: the list and the opened item (docs/layouts/list-first.md).
  2. // Phone: the list first; a tap on an item opens its page, where only the item shows (with a `a.back` link to the list).
  3. // 60rem+: list and item side by side over the full width, each scrolling on its own; `/` shows a welcome text.
  4. //
  5. // ListFirst { view = view // 'list' on the list's own route, 'detail' on an item's route
  6. // aside { ul { li { a { href = "/notes/n1" class = "selected" "Reading list" } } } }
  7. // main { a { class = "back" href = "/notes" "All notes" } h1 { "Reading list" } … }
  8. // }
  9. String view = 'list'
  10. slot = null
  11. Style {
  12. listFirst {
  13. display = 'block'
  14. @media {
  15. minWidth = '60rem'
  16. display = 'grid'
  17. gridTemplateColumns = 'var(--layout-list) minmax(0, 1fr)'
  18. height = 'calc(100dvh - var(--layout-header))'
  19. }
  20. }
  21. // Keep the whole selector for selector list.
  22. 'list-first > aside li a,
  23. list-first > aside li > a:first-child' {
  24. display = 'flex'
  25. flexDirection = 'column'
  26. alignItems = 'stretch'
  27. justifyContent = 'center'
  28. gap = '.1rem'
  29. minHeight = 'var(--layout-tap)'
  30. padding = '.6rem .75rem'
  31. color = 'var(--color-text)'
  32. borderRadius = 'var(--radius-small)'
  33. }
  34. // Keep the whole selector for selector list.
  35. 'list-first > aside li a.selected,
  36. list-first > aside li a[aria-current="page"]' {
  37. color = 'var(--color-text-strong)'
  38. background = 'var(--color-surface)'
  39. }
  40. // Keep the whole selector for selector list.
  41. 'list-first > aside input,
  42. list-first > aside select' {
  43. width = '100%'
  44. background = 'var(--color-background)'
  45. }
  46. // Keep the whole selector for pseudo-element.
  47. 'list-first a.back::before' {
  48. content = '"‹ "'
  49. }
  50. @media {
  51. minWidth = '60rem'
  52. 'list-first > aside,
  53. list-first.detail > aside' {
  54. display = 'block'
  55. minHeight = '0'
  56. overflowY = 'auto'
  57. padding = '1rem .75rem 2rem'
  58. background = 'var(--color-background-sunken)'
  59. }
  60. 'list-first > main,
  61. list-first.list > main' {
  62. display = 'block'
  63. minHeight = '0'
  64. overflowY = 'auto'
  65. padding = '1.5rem clamp(1.5rem, 5vw, 5rem) 3rem'
  66. }
  67. }
  68. // Caller slot content is unknown here, so its selectors must be whole.
  69. 'list-first > aside' {
  70. display = 'block'
  71. padding = '.5rem calc(var(--layout-gutter) - .75rem) 2rem'
  72. }
  73. 'list-first > aside ul' {
  74. margin = '0'
  75. padding = '0'
  76. listStyle = 'none'
  77. }
  78. 'list-first > aside li' {
  79. margin = '0'
  80. }
  81. 'list-first > aside li a:hover' {
  82. textDecoration = 'none'
  83. background = 'var(--color-surface)'
  84. }
  85. 'list-first > main' {
  86. display = 'block'
  87. minWidth = '0'
  88. padding = '1rem var(--layout-gutter) 3rem'
  89. }
  90. 'list-first a.back' {
  91. display = 'inline-flex'
  92. alignItems = 'center'
  93. minHeight = 'var(--layout-tap)'
  94. marginBottom = '1rem'
  95. fontWeight = '600'
  96. @media {
  97. minWidth = '60rem'
  98. display = 'none'
  99. }
  100. }
  101. 'list-first.list > main' {
  102. display = 'none'
  103. }
  104. 'list-first.detail > aside' {
  105. display = 'none'
  106. }
  107. }
  108. View {
  109. listFirst { class = view slot }
  110. }

Branches

Latest commits

  • 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
  • ce08920dMerge branch 'w52c-header-phone' into mainGitoria
  • 0bab9e46|||PR header: ident status wraps on phones instead of clippingmre
  • e7af3eceMerge branch 'w52b-approval-followup' into mainGitoria
  • c01e66c6|||PR approvals follow-up: live Merge after status writes, helpers (#52)mre
  • 841da497Merge branch 'w53-pulls-speed-pr' into mainGitoria