我在SASS mixin中有一个:not
CSS选择器,但它似乎没有起作用:
代码片段:
@mixin dropdown-pos($pos:right) {
&:not(.notip) {
@if $comp-tip == true{
@if $pos == right {
top:$dropdown-width * -0.6;
@include tip($pos:$pos);
}
}
}
&.notip {
@if $pos == right {
top: 0;
left:$dropdown-width * 0.8;
}
}
}
.notip
类正在生成,但是:not(.notip)
没有生成任何CSS。