0
有没有办法有这样的事情:SASS只适用于一种风格
.class1, .class2 {
background: green;
:not(.class1) {
//Only apply to .class2
background: red;
}
}
编译到
.class1, .class2 { background: green; }
.class2 { background: red; }
我试着不要有.class2有自己独立的风格别的地方。