read.markets/app/static/css
Giorgio Gilestro f57c863145 ui: header toggles expand downward, not sideways
Hovering a toggle (tone, theme, language) previously revealed the
non-active option inline next to the active one, which widened the
toggle and pushed its neighbours sideways. Now the non-active option
appears as a popup ABSOLUTELY POSITIONED below the active one — the
toggle's in-flow footprint stays exactly one button wide and tall, so
the other two toggles next to it never move when the user mouses over
one of them.

Mechanism: inside @media (hover: hover) the container becomes
position:relative and every button defaults to display:none. The
:hover/:focus-within rule renders all options as position:absolute
under the container. Specificity (.X[data=Y] btn[data=Y]) on the
active-button rule then pins the active option back into the static
flow at the top, so only the non-active end(s) up absolute — popup
grows downward only. margin-top:-1px makes the popup's top border
overlap the container's bottom border for a single shared edge.
z-index:60 sits above the markets bar (z-50). Touch devices keep
both options side-by-side (the @media gate); the mobile drawer keeps
both visible too.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-29 11:11:46 +02:00
..
auth.css mobile: per-view ≤480px rules across the CSS bundle 2026-05-28 18:43:36 +02:00
dashboard.css mobile: wrap tabs, trim portfolio + markets bar columns 2026-05-28 19:10:58 +02:00
layout.css ui: header toggles expand downward, not sideways 2026-05-29 11:11:46 +02:00
log-chat.css mobile: per-view ≤480px rules across the CSS bundle 2026-05-28 18:43:36 +02:00
news.css mobile: per-view ≤480px rules across the CSS bundle 2026-05-28 18:43:36 +02:00
panels.css mobile: clamp grid items + table cells to viewport width 2026-05-28 19:02:30 +02:00
portfolio.css mobile: per-view ≤480px rules across the CSS bundle 2026-05-28 18:43:36 +02:00
public.css mobile: per-view ≤480px rules across the CSS bundle 2026-05-28 18:43:36 +02:00
settings.css mobile: per-view ≤480px rules across the CSS bundle 2026-05-28 18:43:36 +02:00
tokens.css css: split cassandra.css into per-section files 2026-05-28 12:31:29 +02:00