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

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -