+ 2
Sass if( "has class" ) statment
Hi. I want to check if has class in a div, it is possible with SASS ?
4 Respostas
+ 6
I'm not sure what you want to do, but this can help:
- http://www.thesassway.com/intermediate/if-for-each-while
- https://css-tricks.com/forums/topic/scss-change-variable-depending-on-parent-class/
+ 5
classy and sassy, oh my!
+ 2
thank you, I found exactly what I was looking for
$base-color: red; .el{ background-color: $base-color; } .ex{ @if $base-color == red { $base-color: green; background-color: $base-color; } }