gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitbd94cc7ebd94cc7elog: #25 cause found (run() leak)mrebd94cc7e/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

  • bd94cc7elog: #25 cause found (run() leak)mre
  • 565cb508log: H25 round 1mre
  • 90a0af84log: H25 startedmre
  • 87bd53b8mission H25mre
  • 71a746cflog: day48 livemre
  • bf568e14log: V48 mergedmre
  • 09955dedMerge v48: Hybriel set-day48, theme layouts ce4a0bamre
  • f2a2b0cevendor: Hybriel set-day48, theme layouts ce4a0bamre
  • 5d0834e7log: Apollo model rulemre
  • fe8e5bd5log: #25 sample, V48 missionmre
  • 8580c5d9log: theme fix from Atlasmre
  • 46823d93log: Apollo budget correctionmre
  • f6d32341log: Apollo on budget and #25 nextmre
  • d7184f53log: batch live, #25 evidencemre
  • 5e25e816log: W61 mergedmre
  • aafe330dTidy: drop evidence JSON (kept in scratch), collapse blank linesmre
  • aca1fda1Merge W61: theme from layouts 17e0f03, Views refer to Style rules (gitoria#37 #27)mre
  • 03cb650blog: W61 theme decisionmre
  • 248bce85Report final style gates, CSS mappings and 136 whole-image comparisonsmre
  • 153c344bRestore organization metadata exposed by the whole-image comparisonmre