gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit88e1d14d88e1d14d|||PR layouts#9: address Kunibert findings (3-pane 768px, :where invalid focus, placeholder & glow contrast)Atlas88e1d14d/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. // 768px+: 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 = '768px'
  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' { width = '100%' }
  43. // Keep the whole selector for pseudo-element.
  44. 'list-first a.back::before' {
  45. content = '"‹ "'
  46. }
  47. @media {
  48. minWidth = '768px'
  49. 'list-first > aside,
  50. list-first.detail > aside' {
  51. display = 'block'
  52. minHeight = '0'
  53. overflowY = 'auto'
  54. padding = '1rem .75rem 2rem'
  55. background = 'var(--color-background-sunken)'
  56. }
  57. 'list-first > main,
  58. list-first.list > main' {
  59. display = 'block'
  60. minHeight = '0'
  61. overflowY = 'auto'
  62. padding = '1.5rem clamp(1.5rem, 5vw, 5rem) 3rem'
  63. }
  64. }
  65. // Caller slot content is unknown here, so its selectors must be whole.
  66. 'list-first > aside' {
  67. display = 'block'
  68. padding = '.5rem calc(var(--layout-gutter) - .75rem) 2rem'
  69. }
  70. 'list-first > aside ul' {
  71. margin = '0'
  72. padding = '0'
  73. listStyle = 'none'
  74. }
  75. 'list-first > aside li' {
  76. margin = '0'
  77. }
  78. 'list-first > aside li a:hover' {
  79. textDecoration = 'none'
  80. background = 'var(--color-surface)'
  81. }
  82. 'list-first > main' {
  83. display = 'block'
  84. minWidth = '0'
  85. padding = '.5rem var(--layout-gutter) .75rem'
  86. }
  87. 'list-first a.back' {
  88. display = 'inline-flex'
  89. alignItems = 'center'
  90. minHeight = 'var(--layout-tap)'
  91. marginBottom = '1rem'
  92. fontWeight = '600'
  93. @media {
  94. minWidth = '768px'
  95. display = 'none'
  96. }
  97. }
  98. 'list-first.list > main' {
  99. display = 'none'
  100. }
  101. 'list-first.detail > aside' {
  102. display = 'none'
  103. }
  104. }
  105. View {
  106. listFirst { class = view slot }
  107. }

Branches

Latest commits

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