DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Discussion on: 8 SCSS Best Practices to Keep in Mind

Collapse
 
patricknelson profile image
Patrick Nelson

This baffled me too. I’ve done both and ended up learning the β€œdeeply nested” method ended up being far easier to comprehend in the long run, given the context was focused on the element being styled, not the media query. Particularly when reading the code of other developers’ code. For example, you may never realize (or may forget to check) for a particular element that there maybe yet another style being applied, maybe with a slightly different selector lower down in another media query.

I’m not sure if there are other technical considerations rather than just for code clarity and organization.