Wildest #CSS media query I've written in a while
`@container (inline-size >= calc(100cqi - 120px))`
yep, `calc()` in a MQ!
WHY?
to re-anchor buttons to be "inside" when space is tight
Video:
purple outline's are containers, buttons adapt to containers or the page
nerdy.dev/carousel-adaptive-an…
A powerful container query · December 19, 2024
How to automatically adapt scroll buttons to the inside or outside based on available space.nerdy.dev