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
if()
Sass have if() function that can be converted to a ternary operator in Stylus. So, we should convert this Sass:
.bar margin: if(true, 10px, 20px) padding: if(false, 10px, 20px)
to this Stylus:
.bar margin: (true ? 10px : 20px) padding: (false ? 10px : 20px)
Note: it is better to keep the parens above the ternary operator, as there could be conflicts otherwise in more complex cases.
The text was updated successfully, but these errors were encountered:
👍
Sorry, something went wrong.
No branches or pull requests
Sass have
if()
function that can be converted to a ternary operator in Stylus. So, we should convert this Sass:to this Stylus:
Note: it is better to keep the parens above the ternary operator, as there could be conflicts otherwise in more complex cases.
The text was updated successfully, but these errors were encountered: