Ich habe einen :not
CSS-Selektor in SASS mixin aber es tut nichts:SASS: nicht Wähler
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;
}
}
}
Die .notip
Klasse wird erstellt, aber keine CSS generiert für :not(.notip)
.
Stellen Sie sicher, dass Sie genug Code zur Verfügung stellen, die dies tatsächlich kompilieren wird (fehlende Variablen, Mixins, etc.). Außerdem ist das Problem nicht reproduzierbar. – cimmanon