Re:Mobile-First CSS: Is It Time for a Rethink?
by Vinnl on Monday June 20, 2022 @04:17AM
(#31807631)
You can still write mobile-first; I think the idea here is mostly to no longer assume that all rules you write mobile-first will also apply to desktop. In other words, if you find yourself overwriting styles in a min-width media query for desktop, consider instead moving the rule you're overwriting into a max-width query, and then add a separate rule in the min-width query that just applies to desktop, if needed.
[ Parent
| on HN ]
There are no comments on this comment yet.