gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit97110ad997110ad9WIP: nest accepted layout selectors; stopped at startup parse failuremre97110ad9/theme/shell/three-pane.hl

5.1 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). 60rem+: 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 = '60rem'
  18. display = 'grid'
  19. gridTemplateColumns = 'var(--layout-sidebar) var(--layout-list) minmax(0, 1fr)'
  20. height = 'calc(100dvh - var(--layout-header))'
  21. }
  22. }
  23. // Keep the whole selector for selector list.
  24. // Caller slot content must keep whole selectors (layouts#8; probe v23).
  25. 'three-pane > aside li a,
  26. three-pane > aside li > a:first-child' {
  27. display = 'flex'
  28. flexDirection = 'column'
  29. alignItems = 'stretch'
  30. justifyContent = 'center'
  31. gap = '.1rem'
  32. minHeight = 'var(--layout-tap)'
  33. padding = '.6rem .75rem'
  34. color = 'var(--color-text)'
  35. borderRadius = 'var(--radius-small)'
  36. }
  37. // Keep the whole selector for selector list.
  38. // No nested attribute-selector form on day44 (probes v05/v06).
  39. 'three-pane > aside li a.selected,
  40. three-pane > aside li a[aria-current="page"]' {
  41. color = 'var(--color-text-strong)'
  42. background = 'var(--color-surface)'
  43. }
  44. // Keep the whole selector for selector list.
  45. // Caller slot content must keep whole selectors (layouts#8; probe v23).
  46. 'three-pane > aside input,
  47. three-pane > aside select' {
  48. width = '100%'
  49. background = 'var(--color-background)'
  50. }
  51. // Keep the whole selector for pseudo-element.
  52. // No nested pseudo-element form on day44 (probes v09/v10; hybriel#344/#345/#260).
  53. 'three-pane a.back::before' {
  54. content = '"‹ "'
  55. }
  56. @media {
  57. minWidth = '60rem'
  58. // Caller slot content must keep whole selectors (layouts#8; probe v23).
  59. 'three-pane > aside,
  60. three-pane.detail > aside' {
  61. display = 'block'
  62. minHeight = '0'
  63. overflowY = 'auto'
  64. padding = '1rem .75rem 2rem'
  65. background = 'var(--color-background-sunken)'
  66. }
  67. // Caller slot content must keep whole selectors (layouts#8; probe v23).
  68. 'three-pane > main,
  69. three-pane.list > main' {
  70. display = 'block'
  71. minHeight = '0'
  72. overflowY = 'auto'
  73. padding = '1.5rem clamp(1.5rem, 4vw, 4rem) 3rem'
  74. }
  75. }
  76. // Caller slot content is unknown here, so its selectors must be whole.
  77. // Caller slot content must keep whole selectors (layouts#8; probe v23).
  78. 'three-pane > aside' {
  79. display = 'block'
  80. padding = '.5rem calc(var(--layout-gutter) - .75rem) 2rem'
  81. }
  82. // Caller slot content must keep whole selectors (layouts#8; probe v23).
  83. 'three-pane > aside ul' {
  84. margin = '0'
  85. padding = '0'
  86. listStyle = 'none'
  87. }
  88. // Caller slot content must keep whole selectors (layouts#8; probe v23).
  89. 'three-pane > aside li' {
  90. margin = '0'
  91. }
  92. // Caller slot content must keep whole selectors (layouts#8; probe v23).
  93. 'three-pane > aside li a:hover' {
  94. textDecoration = 'none'
  95. background = 'var(--color-surface)'
  96. }
  97. // Caller slot content must keep whole selectors (layouts#8; probe v23).
  98. 'three-pane > main' {
  99. display = 'block'
  100. minWidth = '0'
  101. padding = '1rem var(--layout-gutter) 3rem'
  102. }
  103. // Caller slot content must keep whole selectors (layouts#8; probe v23).
  104. 'three-pane > main > menu' {
  105. position = 'sticky'
  106. top = 'var(--layout-header)'
  107. zIndex = '2'
  108. display = 'flex'
  109. flexWrap = 'wrap'
  110. gap = '.25rem'
  111. margin = '0 0 1.25rem'
  112. padding = '.3rem'
  113. listStyle = 'none'
  114. background = 'var(--color-background-sunken)'
  115. borderRadius = 'var(--radius-large)'
  116. @media {
  117. minWidth = '60rem'
  118. top = '0'
  119. }
  120. }
  121. // Caller slot content must keep whole selectors (layouts#8; probe v23).
  122. 'three-pane > main > menu li' {
  123. margin = '0'
  124. }
  125. // Caller slot content must keep whole selectors (layouts#8; probe v23).
  126. 'three-pane > main > menu button' {
  127. padding = '.4rem .7rem'
  128. }
  129. // Caller slot content must keep whole selectors (layouts#8; probe v23).
  130. 'three-pane > main > menu button:hover' {
  131. background = 'var(--color-background)'
  132. }
  133. // Caller slot content must keep whole selectors (layouts#8; probe v23).
  134. 'three-pane a.back' {
  135. display = 'inline-flex'
  136. alignItems = 'center'
  137. minHeight = 'var(--layout-tap)'
  138. marginBottom = '1rem'
  139. fontWeight = '600'
  140. @media {
  141. minWidth = '60rem'
  142. display = 'none'
  143. }
  144. }
  145. @media {
  146. minWidth = '60rem'
  147. // Caller slot content must keep whole selectors (layouts#8; probe v23).
  148. 'three-pane > app-sidebar' {
  149. minHeight = '0'
  150. overflowY = 'auto'
  151. padding = '1rem .75rem 2rem'
  152. }
  153. }
  154. // Caller slot content must keep whole selectors (layouts#8; probe v23).
  155. 'three-pane.list > main' {
  156. display = 'none'
  157. }
  158. // Caller slot content must keep whole selectors (layouts#8; probe v23).
  159. 'three-pane.detail > aside' {
  160. display = 'none'
  161. }
  162. }
  163. View {
  164. threePane { class = view slot }
  165. }

Branches

Latest commits

  • 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
  • b05c20feBackup tar: --hard-dereference, so mpackdb sidecars are never stored as hard links (Tracker's finding)mre
  • 8d9ed0b8Re-vendor complete Hybriel plugins and runtime to day39mre
  • ebd00b6cNest caller slot styles in three-panemre
  • 009991efNest caller slot styles in list-firstmre
  • 494d75d4Nest caller slot styles in app-sidebarmre
  • e5571680Align all plugin sources with Hybriel day38bmre
  • 5d204c46Re-vendor layouts to Hybriel set day38bmre
  • 17e0f03eNest html-prefixed theme component overridesmre
  • e54e735eFormat plain theme elements with nested rules and bare mediamre
  • 547f834eRecord LY7 deployment and live verificationmre
  • fa4600b1Link caller-slot style exceptions to hybriel#270mre
  • 413b11e1Record corrected LY7 nesting, exact CSS and Chrome proofmre
  • b810453etracker-demo: nest child and compound selectors in Stylemre
  • 0b5b1d61notes-demo: nest child and compound selectors in Stylemre
  • ab22bdc2mail-demo: nest child and compound selectors in Stylemre
  • fe2d8de9home: nest child and compound selectors in Stylemre
  • e631791buser-menu: nest child and compound selectors in Stylemre