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!
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 trial

Beta Ngadiman
Full Stack JavaScript Techdegree Student 21,596 PointsSass Media Query DRY
Hi all,
Anyone knows how to use Sass media query without repetition in the css output? should I build a function or placeholder?
Thanks :)
2 Answers

Adam Sackfield
Courses Plus Student 19,663 PointsSass simply blew my mind. Have a read of this for media query stuff. http://css-tricks.com/media-queries-sass-3-2-and-codekit/

Beta Ngadiman
Full Stack JavaScript Techdegree Student 21,596 PointsThanks for the article Adam, that's just what I have been looking for :)
And yea, Sass is awesome! I literally giggling like little kid every time I use Sass :P

Adam Sackfield
Pro Student 19,663 PointsHaha me too. If your interested in taking a look see here just a little repo i made that has m folder structure and sass mixins with nicer colours, bootstrap (grid only) and normalize. So each new project i just clone the repo and good to go with index page already linked up to styles and jquery.