tickets
All repositories: gitoria
3.4 KB
// app-sidebar.hl — THE SIDEBAR: on the phone an overlay that slides in from the left (the header's toggle opens it), from// 60rem a column of the shell (content-first, three-pane) (docs/layouts/app-sidebar.md). ONE per page: it is `#sidebar`.//// ContentFirst {// Sidebar { MainMenu { items = menu current = "/series" } nav { a { href = "/series/new" "New series" } } }// main { … }// }//// `desktop = "false"`: a sidebar for the phone only (it holds just the main menu, which the header shows on desktop).// The overlay is the browser's popover: Esc, a tap outside, the × and a tap on one of its links close it.String desktop = 'true'String closeLabel = 'Close'String cls = desktop == 'false' ? 'mobile-only' : ''slot = nullStyle {'app-sidebar:popover-open' {position = 'fixed'inset = '0 auto 0 0'display = 'block'width = 'min(20rem, 86vw)'height = '100dvh'maxHeight = 'none'margin = '0'padding = '.5rem 1rem 2rem'overflowY = 'auto'color = 'var(--color-text)'background = 'var(--color-background-sunken)'border = '0'}// Keep the whole selector for pseudo-element.'app-sidebar::backdrop' {background = 'var(--color-background-sunken)'opacity = '.7'}appSidebar {'> button.sidebar-close' {display = 'flex'width = 'var(--layout-tap)'height = 'var(--layout-tap)'minHeight = '0'marginLeft = 'auto'padding = '0'fontSize = '1.6rem'fontWeight = '400'lineHeight = '1'color = 'var(--color-text-muted)'@media {minWidth = '60rem'display = 'none'}}}// slot content from the caller: nesting refused (hybriel#270)'app-sidebar h2' {margin = '1rem 0 .35rem'padding = '0 .75rem'fontSize = '.8rem'fontWeight = '700'letterSpacing = '.04em'textTransform = 'uppercase'color = 'var(--color-text-muted)'}// slot content from the caller: nesting refused (hybriel#270)'app-sidebar nav a' {display = 'flex'alignItems = 'center'minHeight = 'var(--layout-tap)'padding = '.45rem .75rem'color = 'var(--color-text)'borderRadius = 'var(--radius-small)'hover {textDecoration = 'none'color = 'var(--color-text-strong)'background = 'var(--color-surface)'}}// Keep the whole selector for selector list.'app-sidebar nav a.current,app-sidebar nav a[aria-current="page"]' {color = 'var(--color-accent)'background = 'var(--color-surface)'}// Keep the whole selector for selector list.'app-sidebar,app-sidebar:popover-open' {@media {minWidth = '60rem'position = 'static'inset = 'auto'display = 'block'width = 'auto'height = 'auto'margin = '0'padding = '0'overflow = 'visible'color = 'inherit'background = 'transparent'border = '0'}}// Keep the whole selector for selector list.'app-sidebar.mobile-only,app-sidebar.mobile-only:popover-open' {@media {minWidth = '60rem'display = 'none'}}}View {appSidebar { id = "sidebar" class = cls popover = "auto" on click(e) { emit sidebarClick(e) }button { type = "button" class = "sidebar-close" popovertarget = "sidebar" popovertargetaction = "hide" title = closeLabel 'aria-label' = closeLabel "×" }slot}}// a tap on a link inside the open overlay closes it (a page change in place would leave it open)on sidebarClick(e) {if (e.target.closest('a') != null && e.currentTarget.matches(':popover-open')) { e.currentTarget.hidePopover() }}
Branches
Latest commits
- 239436d8Merge remote-tracking branch 'origin/main' into l33-finalmre
- 5822cb3aMerge branch 'o34-clean' into mainTickets
- 0870653c|||PR offline note from __hlOnline, no polling (tickets#41)mre
- 14cf96b4Merge branch 'records-t36' into mainTickets
- 07749fa1|||PR records: day72 + #40 mergedmre
- ecd7e226|||PR Consolidate login and move handler logic into topic libraries (partial)mre
- 6dea1c60Merge branch 'r35-day72' into mainTickets
- 7bcfdc22|||PR drop worker edits to conductor recordsmre
- 2617b6ee|||PR dialogs: host flag cleared on close, dialog gate (tickets#40)mre
- 6e701371|||PR record partial day72 dialog validationmre
- b9fb9a91|||PR bind ticket dialog visibility to member flagsmre
- 0788e65f|||PR re-vendor Hybriel day72mre
- e2a6bdcfMerge branch 'records-t35' into mainTickets
- d8d54df1|||PR records: R35 day72 + #40mre
- 8a7f475aMerge branch 'records-t33' into mainTickets
- e685d0c2|||PR records: PROCEDURES merge callmre
- b42aff2b|||PR records: GO 2026-11-23, workers L33 O34, PROCEDURES.mdmre
- ed091d44Merge branch 'records' into mainTickets
- 180c0cdb|||PR records: ticket move live (M32), hybriel#439mre
- 497cae7bMerge branch 'm32-move' into mainTickets