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 trial

CSS

Beta Ngadiman
seal-mask
.a{fill-rule:evenodd;}techdegree
Beta Ngadiman
Full Stack JavaScript Techdegree Student 21,596 Points

Sass 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

Sass 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
seal-mask
.a{fill-rule:evenodd;}techdegree
Beta Ngadiman
Full Stack JavaScript Techdegree Student 21,596 Points

Thanks 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

Haha 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.