sass - SCSS if directive: how to pass multiple variables? -
how write code check both truthiness of $text-shadows $shadows?
.btn { @if $text-shadows { @include text-shadow-black; } @if $shadows { @include shadow-white; } } to clear, want achieve without nesting:
.btn { @if $text-shadows { @if $shadows { @include text-shadow-black; } } }
you're looking and keyword:
.btn { @if $text-shadows , $shadows { @include text-shadow-black; } }
Comments
Post a Comment