0
我想知道是否有某种方法可以使用影响SCSS样式的变量。SCSS:如何使用变量来编写样式类?
我在寻找类似:
var x = 1
.class1 {
if (x==1) {
background-color: red;
} else {
background-color: blue;
}
}
.class2 {
if (x==1) {
background-color: blue;
} else {
background-color: red;
}
}