diff --git a/CHANGELOG.md b/CHANGELOG.md index 74656c9..55618bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,22 @@ All notable changes to TagBrush.css are listed here. This project follows [Seman ## Unreleased ### Added +- Sidebar menu on phones: a `body > aside` holding a `button[popovertarget]` and its `[popover]` shows the popover's nav in the sidebar on wide screens (the popover is `display: contents`, the button hidden) and only the button on phones, so the sidebar doesn't push the page down; the nav opens as a menu under the button. Checked first: at 360px a plain sidebar stacks its whole list above `
`. +- On a phone (under 30rem) a modal `` is a bottom sheet: full width, docked to the bottom edge with its top corners rounded, sliding up instead of growing. Wider screens and non-modal dialogs are unchanged. +- A search field in a `` (or `form[role="search"]`) shows a magnifier, drawn with gradients in `--color-text-muted` so it follows the theme. Search fields elsewhere are unchanged. +- Tooltips: a `[popover="hint"]` (opened on hover and focus by an `interestfor` trigger) is small and inverted, placed above its trigger with anchor positioning where supported. CSS only, with no JavaScript fallback: browsers without `interestfor` don't open it (modern-web-guidance `interest-triggered-tooltips`). A link with `interestfor` gets a dotted underline. +- Printing: navigation, search bars, buttons (not a table's sort buttons), and tab rows are left out of a printout; cards, stat tiles, steps, details, and banners aren't split across pages; and closed `
` print their content where `::details-content` is supported. TagAction opens them before printing in every browser. +- Selectable rows: a table row whose first cell holds a checked checkbox is tinted. Toggle switches and checkboxes in later cells don't select a row. TagAction adds select-all, indeterminate, and Shift-click ranges. +- Menus stay on screen: a popover holding a nav or a list (a user menu) opens next to the button that opened it, below it and flipping up or to the other side near an edge, with CSS anchor positioning (`position-area`, `position-try-fallbacks`), gated on `@supports (position-area: block-end)` so other browsers keep it centered (modern-web-guidance `viewport-aware-dropdowns`). Other popovers and the phone menu are unchanged. +- New-tab links: a link in running text with `target="_blank"` ends in " ↗", read as "(opens in a new tab)". Buttons, nav links, heading links, image links, and document links are left alone. +- Sticky top bar, opt-in: `
` stays at the top on the page background, the root gets `scroll-padding-top: 5rem` so a heading you jump to or a focused field doesn't land under it, and once it's stuck a soft shadow appears where `container-type: scroll-state` is supported (Chromium; elsewhere the hairline alone), following the modern-web-guidance `state-aware-sticky-headers` guide. +- Modal dialogs lock the page: while a `dialog:modal` is open the page behind doesn't scroll (`overflow: hidden` on the root via `:has()`), and the root keeps the scrollbar's space (`scrollbar-gutter: stable`), so nothing shifts sideways. Non-modal dialogs leave the page alone. Not in the scoped and Shadow DOM builds. +- Disclosure: a `
` marker is a chevron instead of the browser's triangle, at the start of the summary and turning down when open, or at the end in an accordion (neighboring `
`, or a `name`) and turning up. Opening eases the height where `interpolate-size` and `::details-content` are supported (Chromium); elsewhere, and with reduced motion, it opens at once. The header-nav dropdown keeps its own chevron. +- Status banners: a `

`, `

`, `
` or `