aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2013-12-09 15:59:50 -0800
committerChris Rebert <[email protected]>2013-12-09 16:02:24 -0800
commit9664f8da58abe718463ee31398e5d15de37f7289 (patch)
tree1c128ae6c739d7111f632c138f829e246f969c25
parent88d8cd90e2cef123b9389187e0d5acd1c9f1026d (diff)
downloadbootstrap-9664f8da58abe718463ee31398e5d15de37f7289.tar.xz
bootstrap-9664f8da58abe718463ee31398e5d15de37f7289.zip
add parens around arithmetic in recursive mixin calls to comply with LESS strictMath
<3 @seven-phases-max for helping to confirm & debug this X-Ref: https://github.com/less/less.js/issues/1725
-rw-r--r--less/mixins.less10
1 files changed, 5 insertions, 5 deletions
diff --git a/less/mixins.less b/less/mixins.less
index c107b566e..b5beaddf2 100644
--- a/less/mixins.less
+++ b/less/mixins.less
@@ -729,11 +729,11 @@
// Common styles for all sizes of grid columns, widths 1-12
.col(@index) when (@index = 1) { // initial
@item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
- .col(@index + 1, @item);
+ .col((@index + 1), @item);
}
.col(@index, @list) when (@index =< @grid-columns) { // general; "=<" isn't a typo
@item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
- .col(@index + 1, ~"@{list}, @{item}");
+ .col((@index + 1), ~"@{list}, @{item}");
}
.col(@index, @list) when (@index > @grid-columns) { // terminal
@{list} {
@@ -751,11 +751,11 @@
.make-grid-columns-float(@class) {
.col(@index) when (@index = 1) { // initial
@item: ~".col-@{class}-@{index}";
- .col(@index + 1, @item);
+ .col((@index + 1), @item);
}
.col(@index, @list) when (@index =< @grid-columns) { // general
@item: ~".col-@{class}-@{index}";
- .col(@index + 1, ~"@{list}, @{item}");
+ .col((@index + 1), ~"@{list}, @{item}");
}
.col(@index, @list) when (@index > @grid-columns) { // terminal
@{list} {
@@ -790,7 +790,7 @@
.make-grid(@index, @class, @type) when (@index >= 0) {
.calc-grid(@index, @class, @type);
// next iteration
- .make-grid(@index - 1, @class, @type);
+ .make-grid((@index - 1), @class, @type);
}