gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmain10f8a8c8Merge branch 'code-order' into mainJukeboxmain/theme/shell/list-first.hl

3.1 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. '> aside' {
  15. display = 'block'
  16. padding = '.5rem calc(var(--layout-gutter) - .75rem) 2rem'
  17. }
  18. '> main' {
  19. display = 'block'
  20. minWidth = '0'
  21. padding = '1rem var(--layout-gutter) 3rem'
  22. }
  23. 'a.back' {
  24. display = 'inline-flex'
  25. alignItems = 'center'
  26. minHeight = 'var(--layout-tap)'
  27. marginBottom = '1rem'
  28. fontWeight = '600'
  29. @media {
  30. minWidth = '60rem'
  31. display = 'none'
  32. }
  33. }
  34. @media {
  35. minWidth = '60rem'
  36. display = 'grid'
  37. gridTemplateColumns = 'var(--layout-list) minmax(0, 1fr)'
  38. height = 'calc(100dvh - var(--layout-header))'
  39. }
  40. }
  41. 'list-first.list' {
  42. '> main' { display = 'none' }
  43. }
  44. 'list-first.detail' {
  45. '> aside' { display = 'none' }
  46. }
  47. // slot content from the caller: nesting refused (hybriel#270)
  48. 'list-first > aside ul' {
  49. margin = '0'
  50. padding = '0'
  51. listStyle = 'none'
  52. }
  53. // slot content from the caller: nesting refused (hybriel#270)
  54. 'list-first > aside li' { margin = '0' }
  55. // Keep the whole selector for selector list.
  56. 'list-first > aside li a,
  57. list-first > aside li > a:first-child' {
  58. display = 'flex'
  59. flexDirection = 'column'
  60. alignItems = 'stretch'
  61. justifyContent = 'center'
  62. gap = '.1rem'
  63. minHeight = 'var(--layout-tap)'
  64. padding = '.6rem .75rem'
  65. color = 'var(--color-text)'
  66. borderRadius = 'var(--radius-small)'
  67. }
  68. // slot content from the caller: nesting refused (hybriel#270)
  69. 'list-first > aside li a' {
  70. hover {
  71. textDecoration = 'none'
  72. background = 'var(--color-surface)'
  73. }
  74. }
  75. // Keep the whole selector for selector list.
  76. 'list-first > aside li a.selected,
  77. list-first > aside li a[aria-current="page"]' {
  78. color = 'var(--color-text-strong)'
  79. background = 'var(--color-surface)'
  80. }
  81. // Keep the whole selector for selector list.
  82. 'list-first > aside input,
  83. list-first > aside select' {
  84. width = '100%'
  85. background = 'var(--color-background)'
  86. }
  87. // Keep the whole selector for pseudo-element.
  88. 'list-first a.back::before' { content = '"‹ "' }
  89. @media {
  90. minWidth = '60rem'
  91. // Keep the whole selector for selector list.
  92. 'list-first > aside,
  93. list-first.detail > aside' {
  94. display = 'block'
  95. minHeight = '0'
  96. overflowY = 'auto'
  97. padding = '1rem .75rem 2rem'
  98. background = 'var(--color-background-sunken)'
  99. }
  100. // Keep the whole selector for selector list.
  101. 'list-first > main,
  102. list-first.list > main' {
  103. display = 'block'
  104. minHeight = '0'
  105. overflowY = 'auto'
  106. padding = '1.5rem clamp(1.5rem, 5vw, 5rem) 3rem'
  107. }
  108. }
  109. }
  110. View {
  111. listFirst { class = view slot }
  112. }

Branches

Latest commits

  • 10f8a8c8Merge branch 'code-order' into mainJukebox
  • 204fc828Merge branch 'day72' into mainJukebox
  • 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
  • 6422a020Sync media-player at 51c3818mre
  • b582ba1cVendor complete Hybriel day72 plugin setmre
  • 02dccbc9Merge branch 'records-1119' into mainJukebox
  • a39e1c23|||PR Records: missions 013-015, reconnect fix livemre
  • fc7db075Merge branch 'reconnect-retry' into mainJukebox
  • ac6f4c6fL2: plain declaration for a in pickedNextmre
  • 2f335086Review round 2: only an explicit queue pick drops pend (not the automatic advance); jb23 records every source changemre
  • 3eb6695fReview fixes: action generation, queue pick clears pend, Previous/Next retry the decided request, typed handlersmre
  • 7a53c0c2|||PR A tap lost to a dead socket plays after reconnect (mission 015)mre
  • 1f0cd77bMerge branch 'records-day41' into mainJukebox
  • 67be229f|||PR Records: day41 live (PR #4), mission 012, statusmre
  • 0bb027daconductor: caramboleyo is the user, not owner/creatorApollo
  • 04f5d9d5Merge branch 'day41' into mainJukebox
  • 8ed6da45|||PR README: media-player pin df9e7dfmre
  • d5d45fc3|||PR media-player df9e7df (repeat-one fix), sync pin and SOURCEmre