gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit03a8009703a80097Log: Anton GC A/Bmre03a80097/theme/shell/list-first.hl

2.5 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. 'list-first' { display = 'block' }
  13. 'list-first > aside' { display = 'block' padding = '.5rem calc(var(--layout-gutter) - .75rem) 2rem' }
  14. 'list-first > main' { display = 'block' minWidth = '0' padding = '1rem var(--layout-gutter) 3rem' }
  15. 'list-first.list > main' { display = 'none' }
  16. 'list-first.detail > aside' { display = 'none' }
  17. 'list-first > aside ul' { margin = '0' padding = '0' listStyle = 'none' }
  18. 'list-first > aside li' { margin = '0' }
  19. 'list-first > aside li a,
  20. list-first > aside li > a:first-child' { display = 'flex' flexDirection = 'column' alignItems = 'stretch' justifyContent = 'center' gap = '.1rem' minHeight = 'var(--layout-tap)' padding = '.6rem .75rem' color = 'var(--color-text)' borderRadius = 'var(--radius-small)' }
  21. 'list-first > aside li a:hover' { textDecoration = 'none' background = 'var(--color-surface)' }
  22. 'list-first > aside li a.selected,
  23. list-first > aside li a[aria-current="page"]' { color = 'var(--color-text-strong)' background = 'var(--color-surface)' }
  24. 'list-first > aside input,
  25. list-first > aside select' { width = '100%' background = 'var(--color-background)' }
  26. 'list-first a.back' { display = 'inline-flex' alignItems = 'center' minHeight = 'var(--layout-tap)' marginBottom = '1rem' fontWeight = '600' }
  27. 'list-first a.back::before' { content = '"‹ "' }
  28. '@media (min-width: 60rem)' {
  29. 'list-first' { display = 'grid' gridTemplateColumns = 'var(--layout-list) minmax(0, 1fr)' height = 'calc(100dvh - var(--layout-header))' }
  30. 'list-first > aside,
  31. list-first.detail > aside' { display = 'block' minHeight = '0' overflowY = 'auto' padding = '1rem .75rem 2rem' background = 'var(--color-background-sunken)' }
  32. 'list-first > main,
  33. list-first.list > main' { display = 'block' minHeight = '0' overflowY = 'auto' padding = '1.5rem clamp(1.5rem, 5vw, 5rem) 3rem' }
  34. 'list-first a.back' { display = 'none' }
  35. }
  36. }
  37. View {
  38. listFirst { class = view slot }
  39. }

Branches

Latest commits

  • 03a80097Log: Anton GC A/Bmre
  • c7cdef62Log: Apollo STOP, workers pausedmre
  • d0c083fbLog: usage stopmre
  • c6d464e5Log: Apollo GO backlog, AP56 and BS1 startedmre
  • 1eb6f1a1Missions AP56, BS1mre
  • 4871f8adLog: AP52 live on day52, browser gate greenmre
  • d9bf2988Merge ap52: day52, tracker#58 server argument, #51 modal close rule, #56 keyed season rowsmre
  • c4a60ef2Log: RT52 retest passed, AP52 startedmre
  • 83760a55Browser gate: search results belong to the address form of the typed text (tracker#52 navigate replace)mre
  • 6e951d91AP52: show-page rows are keyed records; closing a season is one upsert and removes (tracker#56, hybriel#331)mre
  • 3bb4ccddAP52: modal close button refers to its nested rule with Style.buttonModalX (tracker#51, hybriel#333)mre
  • ba16933fAP52: login callback and title route are static handlers taking the server as third argument (tracker#58, hybriel#332)mre
  • 85153900AP52: re-vendor Hybriel set day52 (source 77cfca31, bin 0a8ed496)mre
  • 7c051eddLog: hybriel#338 answermre
  • d049b8b8Log: HM50 live, #52 donemre
  • 6d05fa37Log: HM50 Part A mergedmre
  • 1c7dab74HM50: the shell reads the framework's online state, netProbe removed (tracker#55)mre
  • e8b91697HM50: search address follows the text via navigate(path, replace = true) (tracker#52)mre
  • 6fe1896cHM50: re-vendor Hybriel set day50 (source 0ae38232, bin d3ef9d16)mre
  • 2f391aa9Log: HM50 startedmre