-
Notifications
You must be signed in to change notification settings - Fork 93
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
Incorrect CSS emitted for inner media queries #171
Comments
I took a quick peek into it and it seems like it should be possible but I'd need to spend a little time investigating it. |
Nice! |
@vemv I haven't had a chance to really get into this yet. Apologies. |
No issue 🙌 |
Instead of modifying the CSS generator, I suggest to solve the problem via a function |
@green-coder can you submit a patch? |
The Sass compiler supports "inner media queries" (for lack of a better name, that I know of):
I'm failing to replicate that feature with Garden.
This is my attempt:
But the output is incorrect:
...In the emitted CSS, the media query lacks the
img
qualifier.The following works:
...but that breaks DRY: the
img
selector is repeated. In real-world usage the selector may be more complex, with a higher cost for repetition.Also for bigger stylesheets I find this construction a bit confusing. At least coming from Sass, I see the Sass-style nesting more intuitive.
WDYT?
Thanks - Victor
The text was updated successfully, but these errors were encountered: