]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
true > child + varargs
authorJacob Thornton <jacobthornton@gmail.com>
Sun, 4 Mar 2012 22:27:13 +0000 (14:27 -0800)
committerJacob Thornton <jacobthornton@gmail.com>
Sun, 4 Mar 2012 22:27:13 +0000 (14:27 -0800)
docs/assets/bootstrap.zip
less/mixins.less

index ec1369220c27beea0d17c1b2629d494a8b801721..84e1f81f1c0852a75651707b4eb311f947d46382 100644 (file)
Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ
index 3129d515e5fb8fb01a2571000c73cf3f59260518..c9ed1331751a1818fa3f6dd059a0281830ff0a69 100644 (file)
     ~".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) {
       }
 
       // generate .spanX
-      #grid .spanX (@gridColumns, true);
+      #grid .spanX (@gridColumns, child);
     }
 
   }
       margin-left: 0; // override margin-left from core grid system
 
       // generate .spanX
-      #grid .spanX (@gridColumns, true);
+      #grid .spanX (@gridColumns, child);
     }
 
   }