diff --git a/less/forms.less b/less/forms.less index 6dc1641b688dfcdd44c9dcf4f345995567e4cb64..d1efabdab93517e04b80010f1e0c53f0b16da74b 100644 --- a/less/forms.less +++ b/less/forms.less @@ -576,7 +576,7 @@ input[type="checkbox"] { // Reposition the icon because it's now within a grid column and columns have // `position: relative;` on them. Also accounts for the grid gutter padding. .has-feedback .form-control-feedback { - right: (@grid-gutter-width / 2); + right: floor((@grid-gutter-width / 2)); } // Form group sizes diff --git a/less/mixins/grid-framework.less b/less/mixins/grid-framework.less index f3b3929d6d0e55b9fffe1c2dbde5747b21eb0014..8c23eed24e60e5fca7d991d2de47019892530323 100644 --- a/less/mixins/grid-framework.less +++ b/less/mixins/grid-framework.less @@ -19,8 +19,8 @@ // Prevent columns from collapsing when empty min-height: 1px; // Inner gutter via padding - padding-left: (@grid-gutter-width / 2); - padding-right: (@grid-gutter-width / 2); + padding-left: ceil((@grid-gutter-width / 2)); + padding-right: floor((@grid-gutter-width / 2)); } } .col(1); // kickstart it diff --git a/less/mixins/grid.less b/less/mixins/grid.less index cae5eaff924fed1e4d5978952d9c8490faf8500c..f144c15f4660b8eb315260caeb57a31a4bd6cb7e 100644 --- a/less/mixins/grid.less +++ b/less/mixins/grid.less @@ -13,8 +13,8 @@ // Creates a wrapper for a series of columns .make-row(@gutter: @grid-gutter-width) { - margin-left: (@gutter / -2); - margin-right: (@gutter / -2); + margin-left: ceil((@gutter / -2)); + margin-right: floor((@gutter / -2)); &:extend(.clearfix all); }