-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
respond.js + nested media queries (IE8) #817
Comments
Relative Sass newbie here, but based on http://sass-lang.com/documentation/file.SASS_REFERENCE.html#media it sounds like Sass ought to already flatten such nested media queries... How are you compiling your Sass files? |
Interesting! I am currently using Visual Studio's Web Essentials. I don't think SASS out of the box can do it, however, after reading your post I've found gulp.js' task for it instead https://www.npmjs.com/package/gulp-combine-media-queries That should solve it for me, thanks! |
This is a feature of Sass, appeared at some point in |
Hi,
using 'img-retina' mixin, it will create a nested media query for retina devices only.
However, in IE8, respond.js would stop parsing the css file as soon as it meets that nested query, leading to some major issues such as potentially entire page not looking great on desktop (if say, you used retina mixin somewhere in the top of your code).
I had to manually move all my retina css to the bottom of my SCSS file so they will be parsed last and respond.js won't mess things up.
Any advice on how to tackle nested media queries?
The text was updated successfully, but these errors were encountered: