We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I using stylus in my project, so that media-query can be nested, the scenario is:
stylus
bg2x(src) { @media screen and (min-resolution: 2dppx) { background-image: url(src); } } .foo { ... bg2x("img/foo@2x.png"); } @media screen and (max-width: 768px) { .foo { bg2x("img/foo_small@2x.png"); } }
finally compiled:
@media screen and (max-width: 768px) and (min-resolution: 2dppx) { foo { bg2x("img/foo_small@2x.png"); } } @media screen and (min-resolution: 2dppx) { ... .foo { ... bg2x("img/foo@2x.png"); } }
the result is .foo doesn't use foo_small@2x.png but img/foo@2x.png
.foo
foo_small@2x.png
img/foo@2x.png
The text was updated successfully, but these errors were encountered:
@joenil Hi! Can you create a test repository with a this problem?
Sorry, something went wrong.
No branches or pull requests
I using
stylus
in my project, so that media-query can be nested, the scenario is:finally compiled:
the result is
.foo
doesn't usefoo_small@2x.png
butimg/foo@2x.png
The text was updated successfully, but these errors were encountered: