I have a :not
css selector in SASS mixin but it doesn't do anything:
Code Snippet:
@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;
}
}
}
The .notip
class is being generated but no CSS is being generated for :not(.notip)
.