0

I'm using a SASS mixin to wrap my SASS in media queries so I can easily adjust the breakpoints later on.

That works perfectly, however, since I'm calling the mixin several times it results in having a ton of media queries in my compiled CSS. I would like to combine all media queries to one single media query for each breakpoint.

I'm wondering if it is possible to append the output of a mixin to a variable? Or is there any other way to achieve the same result with SASS only?

Thanks in advance.

Edit: I've been pointed out that this question is a duplication of Merging media queries, using SASS and Breakpoint (Respond-To) it is, however that question (and answers) date back 2013, there might be new functionality added to SASS in the mean time which might make this possible.

Community
  • 1
  • 1
Tim K
  • 118
  • 2
  • 8
  • No, Sass has not changed since 2013 in that regard. – cimmanon Jul 23 '15 at 13:10
  • I found this interesting article about that topic: http://sasscast.tumblr.com/post/38673939456/sass-and-media-queries You should read, then maybe you leave it be. – Thomas Jul 23 '15 at 17:24

0 Answers0