when > 0 rather than when not 0

This commit is contained in:
Jacob Thornton 2012-03-04 14:11:51 -08:00
parent 1aeca545c8
commit 2f598e35a0
2 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -485,17 +485,17 @@
// Recursive mixins! <3
// Requires not yet released LESS ;)
.spanX (@index) when not (@index = 0) {
.spanX (@index) when (@index > 0) {
~".span@{index}" { .span(@index); }
#grid .spanX(@index - 1);
}
.spanX (@index, @child) when not (@index = 0) and (@child) {
.spanX (@index, @child) when (@index > 0) and (@child) {
~"> .span@{index}" { .span(@index); }
#grid .spanX(@index - 1);
}
.spanX (0) {}
.offsetX (@index) when not (@index = 0) {
.offsetX (@index) when (@index > 0) {
~".offset@{index}" { .offset(@index); }
#grid .offsetX(@index - 1);
}