]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update grid-framework.less 14921/head
authorBass Jobsen <bass@w3masters.nl>
Thu, 30 Oct 2014 00:20:35 +0000 (01:20 +0100)
committerBass Jobsen <bass@w3masters.nl>
Thu, 30 Oct 2014 00:20:35 +0000 (01:20 +0100)
The `when (@index = 1)` guards are not needed cause the mixins already only match on arity.

less/mixins/grid-framework.less

index 631785465f5507186b3af9bf0019b571d0a4ef90..f3b3929d6d0e55b9fffe1c2dbde5747b21eb0014 100644 (file)
@@ -5,7 +5,7 @@
 
 .make-grid-columns() {
   // Common styles for all sizes of grid columns, widths 1-12
-  .col(@index) when (@index = 1) { // initial
+  .col(@index) { // initial
     @item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
     .col((@index + 1), @item);
   }
@@ -27,7 +27,7 @@
 }
 
 .float-grid-columns(@class) {
-  .col(@index) when (@index = 1) { // initial
+  .col(@index) { // initial
     @item: ~".col-@{class}-@{index}";
     .col((@index + 1), @item);
   }