gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitb243fffab243fffalayouts#9: tap density stays at 60rem; palette rule names HyperConductorAtlasb243fffa/theme/shell/three-pane.hl

3.9 KB

  1. // three-pane.hl — SHELL 3, e.g. an email client: folders, the list of the open folder, the opened item with its own actions
  2. // (docs/layouts/three-pane.md).
  3. // Phone: the list first (folders = the sidebar overlay from the header's toggle); a tap on an item shows it and the list
  4. // goes (`a.back` returns). 768px+: all three side by side over the full width, each scrolling on its own.
  5. //
  6. // ThreePane { view = view // 'list' on the folder's route, 'detail' on an item's route
  7. // Sidebar { nav { a { href = "/inbox" 'aria-current' = "page" "Inbox" } } }
  8. // aside { ul { li { a { href = "/inbox/m1" "Subject" } } } }
  9. // main { a { class = "back" href = "/inbox" "Inbox" } menu { li { button { "Reply" } } } article { … } }
  10. // }
  11. String view = 'list'
  12. slot = null
  13. Style {
  14. threePane {
  15. display = 'block'
  16. @media {
  17. minWidth = '768px'
  18. display = 'grid'
  19. gridTemplateColumns = 'clamp(11rem, 22vw, var(--layout-sidebar)) clamp(14rem, 30vw, var(--layout-list)) minmax(0, 1fr)'
  20. height = 'calc(100dvh - var(--layout-header))'
  21. }
  22. }
  23. // Keep the whole selector for selector list.
  24. 'three-pane > aside li a,
  25. three-pane > aside li > a:first-child' {
  26. display = 'flex'
  27. flexDirection = 'column'
  28. alignItems = 'stretch'
  29. justifyContent = 'center'
  30. gap = '.1rem'
  31. minHeight = 'var(--layout-tap)'
  32. padding = '.6rem .75rem'
  33. color = 'var(--color-text)'
  34. borderRadius = 'var(--radius-small)'
  35. }
  36. // Keep the whole selector for selector list.
  37. 'three-pane > aside li a.selected,
  38. three-pane > aside li a[aria-current="page"]' {
  39. color = 'var(--color-text-strong)'
  40. background = 'var(--color-surface)'
  41. }
  42. // Keep the whole selector for selector list.
  43. 'three-pane > aside input,
  44. three-pane > aside select' { width = '100%' }
  45. // Keep the whole selector for pseudo-element.
  46. 'three-pane a.back::before' {
  47. content = '"‹ "'
  48. }
  49. @media {
  50. minWidth = '768px'
  51. 'three-pane > aside,
  52. three-pane.detail > aside' {
  53. display = 'block'
  54. minHeight = '0'
  55. overflowY = 'auto'
  56. padding = '1rem .75rem 2rem'
  57. background = 'var(--color-background-sunken)'
  58. }
  59. 'three-pane > main,
  60. three-pane.list > main' {
  61. display = 'block'
  62. minHeight = '0'
  63. overflowY = 'auto'
  64. padding = '1.25rem clamp(1rem, 3vw, 4rem) 3rem'
  65. }
  66. }
  67. // Caller slot content is unknown here, so its selectors must be whole.
  68. 'three-pane > aside' {
  69. display = 'block'
  70. padding = '.5rem calc(var(--layout-gutter) - .75rem) 2rem'
  71. }
  72. 'three-pane > aside ul' {
  73. margin = '0'
  74. padding = '0'
  75. listStyle = 'none'
  76. }
  77. 'three-pane > aside li' {
  78. margin = '0'
  79. }
  80. 'three-pane > aside li a:hover' {
  81. textDecoration = 'none'
  82. background = 'var(--color-surface)'
  83. }
  84. 'three-pane > main' {
  85. display = 'block'
  86. minWidth = '0'
  87. padding = '.5rem var(--layout-gutter) .75rem'
  88. }
  89. 'three-pane > main > menu' {
  90. position = 'sticky'
  91. top = 'var(--layout-header)'
  92. zIndex = '2'
  93. display = 'flex'
  94. flexWrap = 'wrap'
  95. gap = '.25rem'
  96. margin = '0 0 1.25rem'
  97. padding = '.3rem'
  98. listStyle = 'none'
  99. background = 'var(--color-background-sunken)'
  100. borderRadius = 'var(--radius-large)'
  101. @media {
  102. minWidth = '768px'
  103. top = '0'
  104. }
  105. }
  106. 'three-pane > main > menu li' {
  107. margin = '0'
  108. }
  109. 'three-pane > main > menu button' {
  110. padding = '.4rem .7rem'
  111. color = 'var(--color-text)'
  112. background = 'transparent'
  113. }
  114. 'three-pane > main > menu button.danger' {
  115. color = 'var(--color-danger)'
  116. background = 'transparent'
  117. }
  118. 'three-pane > main > menu button:hover' {
  119. background = 'var(--color-background)'
  120. }
  121. 'three-pane a.back' {
  122. display = 'inline-flex'
  123. alignItems = 'center'
  124. minHeight = 'var(--layout-tap)'
  125. marginBottom = '1rem'
  126. fontWeight = '600'
  127. @media {
  128. minWidth = '768px'
  129. display = 'none'
  130. }
  131. }
  132. @media {
  133. minWidth = '768px'
  134. 'three-pane > app-sidebar' {
  135. width = 'auto'
  136. minHeight = '0'
  137. overflowY = 'auto'
  138. }
  139. }
  140. 'three-pane.list > main' {
  141. display = 'none'
  142. }
  143. 'three-pane.detail > aside' {
  144. display = 'none'
  145. }
  146. }
  147. View {
  148. threePane { class = view slot }
  149. }

Branches

Latest commits

  • b243fffalayouts#9: tap density stays at 60rem; palette rule names HyperConductorAtlas
  • 2027f696layouts#9: field focus glow back to HyperConductor's .45Atlas
  • 88e1d14d|||PR layouts#9: address Kunibert findings (3-pane 768px, :where invalid focus, placeholder & glow contrast)Atlas
  • 8c875a78|||PR layouts#9: match HyperConductor look (lines 1-21)Atlas
  • 4099e64aMerge branch 'font-segoe-ui' into mainAtlas
  • e14fb795|||PR Theme font: Segoe UI first (his choice 2026-11-19)Atlas
  • 44071d2cMerge branch 'hl-standard-5' into mainAtlas
  • 5ea64202|||PR Gate: count the new-tab check's console errors tooAtlas
  • 2752ceddMerge branch 'hl-standard-4' into mainAtlas
  • ac552b81|||PR Gate: keyboard (Tab/Enter/Space) and Back/Forward/reload/new-tab checks (HL-STANDARD F5, F21)Atlas
  • 8cddcaa9Merge branch 'hl-standard-2' into mainAtlas
  • 2b480a64|||PR Type the route parameter of main-menu build (HL-STANDARD L10)Atlas
  • ab54a39dMerge branch 'hl-standard' into mainAtlas
  • 04d36fcf|||PR Type function parameters and drop unneeded let (HL-STANDARD L2, L10)Atlas
  • 220c8fa4Merge branch 'readme-audit' into mainAtlas
  • b78fb85a|||PR README matches the codemre
  • 9f351699Preserve comments and nest supported selectors without changing rendered outputmre
  • 97110ad9WIP: nest accepted layout selectors; stopped at startup parse failuremre
  • ce4a0baeKeep caller slot styles whole so minimal shell apps startmre
  • 12cd3992Re-vendor complete Hybriel plugins and runtime to day44mre