This repository has been archived by the owner on Dec 19, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 188
Support nested media queries #30
Comments
Closed
You can also nest |
yes, i think it's really cool feature |
Closed
Silly example (https://jsbin.com/sakuxiz/edit?css,output): @media screen {
html {
background: yellow;
}
@media (max-width: 1100px) {
html, body {
background: green
}
}
body {
background: red;
}
} We can't move media without ruining styles. |
What about transforming this to that
|
That markup will work fine in postcss-nesting. |
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Nested media queries are working on latest Firefox, Chrome & Safari 8, but not on IE.
We should make this work by moving rules into new media queries using
and
.http://jsbin.com/kafoxi/1/edit
The text was updated successfully, but these errors were encountered: