Merge media queries using SASS and Breakpoint (Respond-To)

Using SASS and Respond-To (Breakpoint) creates a .css file with multiple media queries rather than merging.

It doesn't matter, but in IE8, using css3-mediaqueries.js cause IE8 to crash. css3-mediaqueries.js add a style tag for each media request, and IE8 cannot get up to 32 ...

How can I combine all media queries automatically?

thanks

0
source share
2 answers

As a rule, multiprocessor requests are not very important due to the use of GZIP to compress CSS when transferring from server to client.

To enable multimedia query support in IE7 and 8, I have successfully used Respond.js .

See this little guide on how to combine Respond.js with Selectivizr: fooobar.com/questions/351368 / ...

-1
source

Sass does not have this feature. Either plan your media queries better so that you have only a few options, or find a third-party application that combines them for you.

0
source

Source: https://habr.com/ru/post/985496/


All Articles