Style Queries as Conditional Modifiers
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.
原文:https://www.a8q9.cn/en/article/style-queries-as-conditional-modifiers-f1e4f5.html