Answer the question
In order to leave comments, you need to log in
How to check negation in SASS (SCSS)?
Greetings!
I created a test mixin for demonstration and set a condition for the presence of $arg to it:
@mixin test($arg) {
@if($arg) {
@error $arg;
}
}
@mixin test($arg) {
@if(!$arg) {
@error $arg;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question