DEV Community

Discussion on: DRY Approach to CSS Sizing for Media Queries

Collapse
 
jackkeller profile image
Jack Keller

Their both in SCSS, the second example has variables in the mix for comparison. If it was pure CSS the nesting wouldn't work as desired for the mediaqueries. I can try your example above but the nature of preprocessed variables is that they cannot generally be overwritten in such a way.

Collapse
 
markewers profile image
Mark Ewers • Edited

You are right! Not only that but I completely missed that point about no overwriting. TIL. So I'm glad I posted. And thanks for the follow up.