Write your media queries inside rules, don't write a single media query for everything. This way you won't end up maintaining 2 code structures and you'll also be able to quickly understand how an element will change upon resolution changes.
I think that's a great piece of advice! I started out doing it the other "logical" way, ouch. Your way makes each CSS rule like a mini responsive "component" so to speak.
With our Vue app, we're doing the same: putting component-specific CSS in with its .vue file.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Daniel,
I think that's a great piece of advice! I started out doing it the other "logical" way, ouch. Your way makes each CSS rule like a mini responsive "component" so to speak.
With our Vue app, we're doing the same: putting component-specific CSS in with its
.vue
file.