mirror of
https://github.com/less/less.js.git
synced 2026-02-06 04:55:03 -05:00
change negation operators to be more cssy
This commit is contained in:
@@ -53,4 +53,6 @@
|
||||
content: false, true and true;
|
||||
content: false, false, true;
|
||||
content: false, true and true and true, false;
|
||||
content: not false;
|
||||
content: not false and false, not false;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
.ops (@a) when (@a =< 0) {
|
||||
height: lt-or-eq;
|
||||
}
|
||||
.ops (@a) when (@a != 0) {
|
||||
.ops (@a) when (@a ^= 0) {
|
||||
height: not-eq;
|
||||
}
|
||||
.ops1 { .ops(0) }
|
||||
@@ -63,7 +63,7 @@
|
||||
.test (@a) when (@a) {
|
||||
content: "true.";
|
||||
}
|
||||
.test (@a) when (!@a) {
|
||||
.test (@a) when not (@a) {
|
||||
content: "false.";
|
||||
}
|
||||
|
||||
@@ -86,5 +86,9 @@
|
||||
.bool () when (false), (false), (true) { content: false, false, true } // TRUE
|
||||
.bool () when (false), (false) and (true), (false) { content: false, false and true, false } // FALSE
|
||||
.bool () when (false), (true) and (true) and (true), (false) { content: false, true and true and true, false } // TRUE
|
||||
.bool () when not (false) { content: not false }
|
||||
.bool () when not (true) and not (false) { content: not true and not false }
|
||||
.bool () when not (true) and not (true) { content: not true and not true }
|
||||
.bool () when not (false) and (false), not (false) { content: not false and false, not false }
|
||||
|
||||
.bool1 { .bool }
|
||||
|
||||
Reference in New Issue
Block a user