+ 2

Sass if( "has class" ) statment

Hi. I want to check if has class in a div, it is possible with SASS ?

5th Jul 2018, 7:00 PM
Andrei Avornic
Andrei Avornic - avatar
4 Respostas
+ 5
classy and sassy, oh my!
5th Jul 2018, 10:00 PM
Ahri Fox
Ahri Fox - avatar
+ 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; } }
6th Jul 2018, 3:17 AM
Andrei Avornic
Andrei Avornic - avatar