Repository navigation
Tags
Tags
Default sun/moon glyph on bare .theme-toggle (v1.7.5) A bare <button class="theme-toggle"></button> now draws its own icon, so consumers stop hand-rolling one. The glyph shows the current theme (sun in light, moon in dark) and is resolved the same two ways default.css resolves dark -- the [data-theme="dark"] attribute and the prefers-color-scheme media query gated on :not([data-theme="light"]) -- so it agrees with the painted page even before theme.js runs or with JS off. Glyphs are monochrome dingbats (U+2600/U+263E) inheriting currentColor, exposed as --theme-toggle-icon-light / --theme-toggle-icon-dark for sites to override. Scoped to :empty, so a button with its own content is left untouched and the change is purely additive -- existing consumers that supply their own glyph (anderix's inline character, excelano's nested span) are unaffected until they migrate. kitchen-sink and the document viewer switched to bare buttons to demonstrate the default. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Click to advance slides; retire -dev version convention (v1.7.4) Slide presenter: clicking a slide now advances the deck (PowerPoint/Keynote default). The handler lives on .stage so the control bar is unaffected, and it skips clicks on in-deck links and on click-drags that selected text, so following a link or copying a quote no longer jumps a slide. Back-navigation stays on the keys and the prev button, leaving right-click to the browser. Versioning: the working copy is now stamped with a plain release version, no -dev suffix. The four consumer sites ride the axe -> ~/axe symlink and deploy the working copy live, so there is no vendor lag for a suffix to track; recent ships had already gone plain. Reworded the README Versioning section and stripped -dev from set-version.sh's usage and examples to match. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Fix two-click theme toggle in viewer; de-dup theme.js (v1.7.3) The viewer hand-copied theme.js's detect-and-toggle logic inline but dropped the prefers-color-scheme fallback from init. With the OS in dark mode and no saved choice, the page rendered dark via the media query with data-theme unset, so the first click only re-asserted dark (a no-op) before the second flipped it. The viewer now loads theme.js in <head> like it already loads calendar.js, deleting both inline copies for one source of truth. cleave gains a SRC_THEME entry to inline theme.js into baked files, parallel to SRC_CALJS; its template-drift guard fails the bake loudly if that tag ever goes missing. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Widen CSV viewer scrollbars to ~1.75x (v1.7.2) Firefox's scrollbar-width takes no pixel value, so move from thin to auto; Chromium/Safari get an explicit 21px ::-webkit-scrollbar with a matching thumb radius. Co-Authored-By: Claude Opus 4.8 <[email protected]>
PreviousNext