Closed rstacruz closed 9 years ago
Hm, this actually seems to be okay: http://stackoverflow.com/questions/11746581/nesting-media-rules-in-css haven't tested it extensively though.
...just tested it and this simple test fails in chrome:
@media screen {
@media (min-width: 200px) {
.section { border: solid 10px #f00; }
}
}
...so yeah, nested media queries have to be flattened.
:+1: Totally agree. I have many mixins like retina-background-phone
and others.
This is because Stylus doesn't support nested media queries yet, but trying to use
image()
inside a media query yields you unexpected results.Practical use case: you want to use a smaller logo in smaller screens, and want them to be retina-compliant.
Input
Expected output
Actual output