diff options
| author | Thomas P. Horton <[email protected]> | 2015-04-23 20:06:54 -0700 |
|---|---|---|
| committer | Thomas P. Horton <[email protected]> | 2015-04-23 20:06:54 -0700 |
| commit | c319d610e2043478fdcdba0f1f03daef784a410e (patch) | |
| tree | 2b72abf65f4bf9ce17518e6fc3ada2c913c34d1e /less | |
| parent | 6ba595f3fffee275922c377a7cc1bc46fc5e58c1 (diff) | |
| download | bootstrap-c319d610e2043478fdcdba0f1f03daef784a410e.tar.xz bootstrap-c319d610e2043478fdcdba0f1f03daef784a410e.zip | |
Round results from gutter division to prevent decimal margins and padding
Diffstat (limited to 'less')
| -rw-r--r-- | less/forms.less | 2 | ||||
| -rw-r--r-- | less/mixins/grid-framework.less | 4 | ||||
| -rw-r--r-- | less/mixins/grid.less | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/less/forms.less b/less/forms.less index 6dc1641b6..d1efabdab 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 f3b3929d6..8c23eed24 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 cae5eaff9..f144c15f4 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); } |
