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
Consider the following input:
html::after { content: 'full'; display: none; @media (max-width: 1200px) { content: 'wide'; } @media (max-width: 800px) { content: 'medium'; } @media (max-width: 400px) { content: 'narrow'; } }
Most pre-processors would process this as:
html::after { content: 'full'; display: none; } @media (max-width: 1200px) { html::after { content: 'wide'; } } @media (max-width: 800px) { html::after { content: 'medium'; } } @media (max-width: 400px) { html::after { content: 'narrow'; } }
Unfortunately this is the result from Crush:
html:after { content: 'full'; display: none; @media (max-width: 1200px){content: 'wide'; }@media (max-width: 800px){content: 'medium'; }@media (max-width: 400px){content: 'narrow'; }
This is invalid in a couple of ways:
The text was updated successfully, but these errors were encountered:
The preprocessor doesn't get this right as the closing brace is lost.
Though new native nesting does support this syntax if you try this is the latest firefox, for example:
html { letter-spacing: 1px; @media (min-width: 400px) {letter-spacing: 2px;} @media (min-width: 800px) {letter-spacing: 3px;} @media (min-width: 1200px) {letter-spacing: 4px;} }
Sorry, something went wrong.
No branches or pull requests
Consider the following input:
Most pre-processors would process this as:
Unfortunately this is the result from Crush:
This is invalid in a couple of ways:
The text was updated successfully, but these errors were encountered: