From 88a06640ddc6bba4f05b41666f53c5daeb00fac8 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 6 Nov 2013 13:03:08 -0800 Subject: Fixes #11295: Restore offset, push, and pull zero classes (e.g., .col-md-offset-0) --- less/mixins.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'less') diff --git a/less/mixins.less b/less/mixins.less index 4718cb2c0..3d24e668a 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -750,7 +750,7 @@ .col(1); // kickstart it } -.calc-grid(@index, @class, @type) when (@type = width) { +.calc-grid(@index, @class, @type) when (@type = width) and (@index > 0) { .col-@{class}-@{index} { width: percentage((@index / @grid-columns)); } @@ -772,7 +772,7 @@ } // Basic looping in LESS -.make-grid(@index, @class, @type) when (@index > 0) { +.make-grid(@index, @class, @type) when (@index >= 0) { .calc-grid(@index, @class, @type); // next iteration .make-grid(@index - 1, @class, @type); -- cgit v1.2.3