Nested media queries feels a bit disorganized. Should media queries be centralized per breakpoint?
Example
12 Replies
does it also seem too unorginazed to outside view? what would be proper way of handling?
I love nested cause it keeps the concerns in the same spot
i agree
I don't wanna go looking for the same class in another file/section just for mobile
is there a best practice in this or mainstream usage? or preferential
best practices are a lie
You will either come to a choice with a team or do what the team decided when it comes to that.
Also I use
postcss-combine-media-query
that way output can be minimal stilloh wow that seems sick library!
postCSS ftw sooooo many good plugins depending on your needs. I use that and
autoprefixer
on most all things.is this an NPM library or just a postCSS plugin , couldnt be sure?
its both? xD
ahh okay 😄
its a postCSS plugin though yes