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
- aa4e192cTickets conductor: brief 027 push protocol changemre
- c5d28fb5Tickets conductor: S51 startedmre
- fd6ca1e6Tickets conductor: brief 027 waker design, push-test projectmre
- e448e656Tickets conductor: STATUS #51mre
- 1c10857bTickets conductor: P51 eval, brief 027mre
- e725969dTickets conductor: #51 directionmre
- 1b5c63ddTickets conductor: P51 startedmre
- 9f13fbdaTickets conductor: brief 026 prioritymre
- acc477d9Tickets conductor: brief 026 + Vinzenz recommendationsmre
- 9233a734Tickets conductor: brief 026 completemre
- 5da589fdTickets conductor: brief 026 + Gitoria's answermre
- a3cd5329Tickets conductor: tickets#51 opened, brief 026 draftmre
- 6f6e5797Tickets conductor: STATUS wordingmre
- 957de51fTickets conductor: T36 live, #36 review, #50 donemre
- bc2fde32Merge branch 'main' into t36-stylemre
- b7ca093atests: wait for the new row and normalize editor marker spacesmre
- 41da3525Tickets conductor: flake cause, T36 deploy stepmre
- 64c477e6Tickets conductor: deploy waits for Arachnemre
- 467d7286Tickets conductor: T36 done, deploy questionmre
- fed5ca81ticket_list: remove repeated selected-state coloursmre