mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-05 11:28:46 +01:00
The launcher sits on every client's site, in the corner of every page,
forever. At full weight it competed with the page it is there to improve — on
Diplodoctor it read as the most saturated thing on screen.
At rest it is now small, translucent and shadowless: opacity .38, scale .85,
no box-shadow, label hidden. Present enough to find, faint enough to forget.
Hover or keyboard focus brings it to full weight with its label and shadow.
prefers-reduced-motion drops the scale and keeps only the opacity fade.
Two things deliberately NOT done:
- No "open" state rule. The launcher is display:none while the panel is up
(the rect guard in the placement code), so a selector for it would never
match — a rule that cannot fire is a rule that lies about coverage.
- The label is hidden, not removed, so the accessible name is unchanged at
rest and keyboard users get the same reveal as mouse users via
:focus-visible.
Measured before shipping, on the live Diplodoctor page with prod's widget.js
swapped for this build at the network layer:
rest opacity 0.38 scale .85 shadow none label hidden 30x34px
hover opacity 1 scale 1 shadow on label shown 104x40px
Claude-Session: https://claude.ai/code/session_01G2LBioUzJP4oBL9LeH9qAe
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>