gitoria

calendar

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmainf9b8f918Merge branch 'calendar-vendor-day61' into mainAtlasmain/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

  • f9b8f918Merge branch 'calendar-vendor-day61' into mainAtlas
  • 66341793|||PR Vendor Hybriel day61Atlas
  • 36fc596bMerge branch 'vendor-day59' into mainAtlas
  • b37cc1da|||PR Vendor Hybriel day59Atlas
  • 05665102Merge branch 'vendor-day56' into mainAtlas
  • 687296fb|||PR Vendor Hybriel day56Atlas
  • a6166d4eMerge branch 'hl-standard-3' into mainAtlas
  • 6d0eb3b0|||PR Calendar day add buttons only when signed in (Kunibert minor)Atlas
  • add4b499|||PR Make calendar day actions keyboard accessibleAtlas
  • 79e49b4dMerge branch 'hl-standard' into mainAtlas
  • e9fec7bb|||PR HL-STANDARD clean-up: typed parameters, plain locals, by-reference cacheAtlas
  • eff166a4Re-vendor complete Hybriel plugins and runtime to day44mre
  • cef81394Wait for the DST fixture page instead of an unused socketmre
  • 42434f47Check lazy-session cookies after login with a stored anonymous fixturemre
  • 728e84e3Re-vendor complete Hybriel day41 plugin directoriesmre
  • cbd7ff43Backup tar: --hard-dereference, so mpackdb sidecars are never stored as hard links (Tracker's finding)mre
  • 59d1da0acalendar: plain declarations instead of needless let in 9 files (calendar#17): 49 declarations that are never reassigned; reassigned ones and the timer closure's p stay letmre
  • f5415cf9calendar: the Style blocks in the language's nested form (calendar#16): rules named after the View's own elements with their children nested, pseudo-classes and @media nested, merged duplicate select rule; same CSS, shots identical in Chrome at 4 sizesmre
  • edb7c947calendar: the sign-in callback keeps the session it finds and signs it in (same cookie, nothing signed out; ident#28); security gate 56+4 failing → 60 passedmre
  • bf8cc0fcStyles move into their components: the shell's styles into main.hl, the events and the editors into the month view's Style block; styles.hl keeps only the theme inherit, the accent and the message line; .gitignore ignores a bin symlink too; tests/styles-shots.mjs for the before/after pixel comparemre