Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialqfmftjlpgl
11,971 PointsSass is making media queries more complicated?
The question is related to: https://teamtreehouse.com/library/css-to-sass/refactoring-with-sass/defining-media-queries
I just feel like, when we use media queries in css, we have everything together very neat. With the sass, I just feel that we have so many files, like the rule for arrow, we have to add media queries there, then another rule in another file, is like we are doing work for work? I generally understand the concept of sass, small maintainable pieces, but this is just like too much. Am I the only one, who thinks that?
3 Answers
Jonathan Grieve
Treehouse Moderator 91,253 PointsI admit I haven't joined the Sass word yet but that just comes from a lifetime of design work without it. But it's only with real time spent in Sass that you'll understand it's benefits.
I know what you mean as it's easy to think of Sass as another, perhaps unnecessary, layer to your workflow. The only thing I can say is the more practice you put in the less it'll seem like extra work.
Owa Aquino
19,277 PointsWell, if you read the compiled CSS on media queries by SASS it's kinda complicated. haha
But it's really much better and for me, it's much easier because you don't have to list back all your ids, classes and elements. You'll just have to put the media-query you want your element to have below it.
But again as @Guil said it's really on your personal preferences.
Hope this help convincing you shifting to the SASS side.. haha
Cheers!
Guil Hernandez
Treehouse TeacherHi brinka,
One of the best parts about Sass is that regular CSS is also 100% valid Sass (SCSS). So you can keep writing your media queries the way you normally do with CSS, if that's how you like to work. :)