gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit7755199d7755199dlist-first: format Style with nested rules and bare mediamre7755199d/theme/shell/three-pane.hl

3.4 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. 'three-pane' { display = 'block' }
  15. 'three-pane > aside' { display = 'block' padding = '.5rem calc(var(--layout-gutter) - .75rem) 2rem' }
  16. 'three-pane > main' { display = 'block' minWidth = '0' padding = '1rem var(--layout-gutter) 3rem' }
  17. 'three-pane.list > main' { display = 'none' }
  18. 'three-pane.detail > aside' { display = 'none' }
  19. 'three-pane > aside ul' { margin = '0' padding = '0' listStyle = 'none' }
  20. 'three-pane > aside li' { margin = '0' }
  21. 'three-pane > aside li a,
  22. three-pane > 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)' }
  23. 'three-pane > aside li a:hover' { textDecoration = 'none' background = 'var(--color-surface)' }
  24. 'three-pane > aside li a.selected,
  25. three-pane > aside li a[aria-current="page"]' { color = 'var(--color-text-strong)' background = 'var(--color-surface)' }
  26. 'three-pane > aside input,
  27. three-pane > aside select' { width = '100%' background = 'var(--color-background)' }
  28. 'three-pane a.back' { display = 'inline-flex' alignItems = 'center' minHeight = 'var(--layout-tap)' marginBottom = '1rem' fontWeight = '600' }
  29. 'three-pane a.back::before' { content = '"‹ "' }
  30. // the opened item's own actions: a row of buttons on a surface strip, staying in reach while the item scrolls
  31. 'three-pane > main > menu' { position = 'sticky' top = 'var(--layout-header)' zIndex = '2' display = 'flex' flexWrap = 'wrap' gap = '.25rem' margin = '0 0 1.25rem' padding = '.3rem' listStyle = 'none' background = 'var(--color-background-sunken)' borderRadius = 'var(--radius-large)' }
  32. 'three-pane > main > menu li' { margin = '0' }
  33. 'three-pane > main > menu button' { padding = '.4rem .7rem' }
  34. 'three-pane > main > menu button:hover' { background = 'var(--color-background)' }
  35. '@media (min-width: 60rem)' {
  36. 'three-pane' { display = 'grid' gridTemplateColumns = 'var(--layout-sidebar) var(--layout-list) minmax(0, 1fr)' height = 'calc(100dvh - var(--layout-header))' }
  37. 'three-pane > app-sidebar' { minHeight = '0' overflowY = 'auto' padding = '1rem .75rem 2rem' }
  38. 'three-pane > aside,
  39. three-pane.detail > aside' { display = 'block' minHeight = '0' overflowY = 'auto' padding = '1rem .75rem 2rem' background = 'var(--color-background-sunken)' }
  40. 'three-pane > main,
  41. three-pane.list > main' { display = 'block' minHeight = '0' overflowY = 'auto' padding = '1.5rem clamp(1.5rem, 4vw, 4rem) 3rem' }
  42. 'three-pane > main > menu' { top = '0' }
  43. 'three-pane a.back' { display = 'none' }
  44. }
  45. }
  46. View {
  47. threePane { class = view slot }
  48. }

Branches

Latest commits

  • 7755199dlist-first: format Style with nested rules and bare mediamre
  • 35199303content-first: format Style with nested rules and bare mediamre
  • 00f6e698app-sidebar: format Style with nested rules and bare mediamre
  • bb2f29c9app-header: format Style with nested rules and bare mediamre
  • 3aca2d7fSync components from 8176eb1 with reviewed nested stylesmre
  • 87e4003dRe-vendor layouts to Hybriel set day35mre
  • d8628cfflayouts: a startup error prints its message before exit 1 (hybriel#247)mre
  • 180fd76elayouts: MdEditor from components 59704ce (text on the clipboard always pastes, a file manager copy still attaches; pipe rows; empty Table-button table; tickets#49, notes#5)mre
  • a3eda8afRe-vendor Hybriel master 7a684920 (binary 74ab3715): plugins whole, startup fault exits 1; files-upload gate 340/0mre
  • 025d5880WIP re-vendor Hybriel set-day27b (a9712e61, master f5ff97bf): plugins whole, startup fault exits 1; NOT deployable: files-upload emit refused (see .scratch/rv27-upload)mre
  • 42183a71Merge sb3-standby: layouts deploys through its standbymre
  • 408de1f2layouts: no jobs switch needed in the standbymre
  • 0b85f57elayouts: a standby container (port 45019, profile standby); deploy hands over through standby-swap.sh without a gapmre
  • 31e40b8bMerge dm3-media: range handling in the layouts media routemre
  • 856dcacbLayouts media route: read suffix ranges and ignore range lists and garbage, like the components route (the layouts copy still answered 416 for the last bytes)mre
  • ad5056eaMerge dm3-sync: components re-sync to c2834ddmre
  • 740e2abeRe-sync the components copy to c2834dd: media player fixes (state after a queue pick, cover-less audio, accessibility labels)mre
  • 7fe103bbMerge mp-player: the media player showcase pagemre
  • 7db43c4eMedia route: serve the showcase's media from committed files (storage/ is not in git)mre
  • f77b7d12Media player: re-sync components from 1c41293 (replay / forward 10 icons, play button surface on audio and video)mre