Discover · css-tricks.com

Style Queries as Conditional Modifiers

CSS-Tricks css-tricks.com

Where style queries shine is when the condition and the styles need to live in different places, or when one condition needs to affect several things at once: components that keep working, and adapt sensibly, no matter where they end up.

Style Queries as Conditional Modifiers originally handwritten and published with love on CSS-Tricks. You should really get the newsletter as well.

More ways to use this

Open on another device

Scan this QR code to open the same public page

Scan to open this page. Your saved notes and account access are not included.

Download QR code

Open the page link

Keep going

Each of these is read from what this estate already kept: the feed a piece came through, the publisher behind it, the credits and topics the publisher printed. None of it is a recommendation, an identity or a record kept anywhere else.

More like this

Also from CSS-Tricks

  1. Using light-dark() without getting caught outGeoff Graham css-tricks.com
  2. RSS Club: Preview Art-Directed Scrollytelling ArticleGeoff Graham css-tricks.com
  3. Using Fallbacks for a Robust Front-EndSteve Frenzel css-tricks.com
  4. Dev Material ArchiveGeoff Graham css-tricks.com
  5. Andy Clarke answers six questions about Standout Designs for the WebGeoff Graham css-tricks.com
  6. scroll-state()John Rhea css-tricks.com