gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit4639caf74639caf7Report W61 theme startup blocker and day39 Style probemre4639caf7/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. '> aside' {
  15. display = 'block'
  16. padding = '.5rem calc(var(--layout-gutter) - .75rem) 2rem'
  17. ul {
  18. margin = '0'
  19. padding = '0'
  20. listStyle = 'none'
  21. }
  22. li {
  23. margin = '0'
  24. a {
  25. hover {
  26. textDecoration = 'none'
  27. background = 'var(--color-surface)'
  28. }
  29. }
  30. }
  31. }
  32. '> main' {
  33. display = 'block'
  34. minWidth = '0'
  35. padding = '1rem var(--layout-gutter) 3rem'
  36. }
  37. 'a.back' {
  38. display = 'inline-flex'
  39. alignItems = 'center'
  40. minHeight = 'var(--layout-tap)'
  41. marginBottom = '1rem'
  42. fontWeight = '600'
  43. @media {
  44. minWidth = '60rem'
  45. display = 'none'
  46. }
  47. }
  48. @media {
  49. minWidth = '60rem'
  50. display = 'grid'
  51. gridTemplateColumns = 'var(--layout-list) minmax(0, 1fr)'
  52. height = 'calc(100dvh - var(--layout-header))'
  53. }
  54. }
  55. 'list-first.list' {
  56. '> main' { display = 'none' }
  57. }
  58. 'list-first.detail' {
  59. '> aside' { display = 'none' }
  60. }
  61. // Keep the whole selector for selector list.
  62. 'list-first > aside li a,
  63. list-first > aside li > a:first-child' {
  64. display = 'flex'
  65. flexDirection = 'column'
  66. alignItems = 'stretch'
  67. justifyContent = 'center'
  68. gap = '.1rem'
  69. minHeight = 'var(--layout-tap)'
  70. padding = '.6rem .75rem'
  71. color = 'var(--color-text)'
  72. borderRadius = 'var(--radius-small)'
  73. }
  74. // Keep the whole selector for selector list.
  75. 'list-first > aside li a.selected,
  76. list-first > aside li a[aria-current="page"]' {
  77. color = 'var(--color-text-strong)'
  78. background = 'var(--color-surface)'
  79. }
  80. // Keep the whole selector for selector list.
  81. 'list-first > aside input,
  82. list-first > aside select' {
  83. width = '100%'
  84. background = 'var(--color-background)'
  85. }
  86. // Keep the whole selector for pseudo-element.
  87. 'list-first a.back::before' { content = '"‹ "' }
  88. @media {
  89. minWidth = '60rem'
  90. // Keep the whole selector for selector list.
  91. 'list-first > aside,
  92. list-first.detail > aside' {
  93. display = 'block'
  94. minHeight = '0'
  95. overflowY = 'auto'
  96. padding = '1rem .75rem 2rem'
  97. background = 'var(--color-background-sunken)'
  98. }
  99. // Keep the whole selector for selector list.
  100. 'list-first > main,
  101. list-first.list > main' {
  102. display = 'block'
  103. minHeight = '0'
  104. overflowY = 'auto'
  105. padding = '1.5rem clamp(1.5rem, 5vw, 5rem) 3rem'
  106. }
  107. }
  108. }
  109. View {
  110. listFirst { class = view slot }
  111. }

Branches

Latest commits

  • 4639caf7Report W61 theme startup blocker and day39 Style probemre
  • 4a3f557eImport layouts theme ebd00b6 for W61 (startup blocked)mre
  • 53ca42b2log: W60 merged, W61 W62 startedmre
  • 80870a33mission W61: style passmre
  • 560fd208Merge W60: helpers, bound forms, login in topics, two form fixes (gitoria#28 #32 #33)mre
  • ac5ba6a4log: W60, #25 measuredmre
  • 220f6342W60: record corrected form proof, full AE and remaining gapsmre
  • 7e31cac5gitoria#28: restrict reply form layout to reply formsmre
  • ae373cfdgitoria#28: keep each reply draft in its thread componentmre
  • eeeebd5agitoria: insert a newly created organization oncemre
  • 34d2d5cagitoria: clear the bound public-key textarea after creationmre
  • 119e54c0W60: restore conductor-owned tracking filesmre
  • 24b479e7W60: record final gates, Chrome failures and AE evidencemre
  • 5e11184cW60: record partial validation, framework gaps and cleanupmre
  • 20fe13fagitoria#33: centralize login and tickets connection statemre
  • 859754c0gitoria#29: retain the offline note and record the framework gapmre
  • d140bc04gitoria#30: reproduce the upsert ordering constraintmre
  • 6960e8f8gitoria#28: keep form values in bound component membersmre
  • 0db27200gitoria#32: share character checks and environment lookupmre
  • 452f6a1amission W60: logic clean-upsmre