我想知道是否有某种方法可以使用影响 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;
}
}