From 29c63fdb6ae4877160dbad05cdcf34f8cf1f66ad Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sun, 4 Mar 2012 14:27:13 -0800 Subject: true > child + varargs --- docs/assets/bootstrap.zip | Bin 54469 -> 9620 bytes less/mixins.less | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index ec1369220..84e1f81f1 100644 Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ diff --git a/less/mixins.less b/less/mixins.less index 3129d515e..c9ed13317 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -489,10 +489,10 @@ ~".span@{index}" { .span(@index); } #grid .spanX(@index - 1); } - .spanX (@index, @child) when not (@index = 0) and (@child) { - ~"> .span@{index}" { .span(@index); } - #grid .spanX(@index - 1, @child); - } + .spanX (@index, child) when (@index > 0) { +    ~"> .span@{index}" { .span(@index); } +    #grid .spanX(@index - 1, child); +  } .spanX (0, ...) {} .offsetX (@index) when (@index > 0) { @@ -550,7 +550,7 @@ } // generate .spanX - #grid .spanX (@gridColumns, true); + #grid .spanX (@gridColumns, child); } } @@ -567,7 +567,7 @@ margin-left: 0; // override margin-left from core grid system // generate .spanX - #grid .spanX (@gridColumns, true); + #grid .spanX (@gridColumns, child); } } -- cgit v1.2.3