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
Hi, I found out the similar issue below. #8
But it appears that @if and @else works fine, not @elseif. Is there anyone to checkout this issue.
$theme-type: test1; @if $theme-type == test1 { background: #000000; } @else if $theme-type == test2 { background: #DDDDDD; } @else { background: #FAFAFA; }
By the way, this plugin is so great. Thanks for providing the great plugin!
The text was updated successfully, but these errors were encountered:
There's no mention of @elseif in the docs or tests, so no, it's not supported. You can of course use nested @if conditionals:
@elseif
@if
@if $theme-type == test1 { background: #000000; } @else { @if $theme-type == test2 { background: #DDDDDD; } @else { background: #FAFAFA; } }
Sorry, something went wrong.
A nested clause deteriorates legibility of source code. I wrote down the souce below which is a bit weird but easy to understand.
@if $theme-type == test1 { background: #000000; } @if $theme-type == test2 { background: #DDDDDD; } @if $theme-type == test3 { background: #FAFAFA; }
I would be nice if there is @elseif keyword.
No branches or pull requests
Hi, I found out the similar issue below.
#8
But it appears that @if and @else works fine, not @elseif.
Is there anyone to checkout this issue.
By the way, this plugin is so great.
Thanks for providing the great plugin!
The text was updated successfully, but these errors were encountered: