gitoria

jukebox

All repositories: gitoria

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

  • 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