gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitab54a39dab54a39dMerge branch 'hl-standard' into mainAtlasab54a39d/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

  • 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
  • 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