Round paddings of .container & .container-fluid to match .row's margins #16785
+2
−2
less/mixins/grid.less
| @@ -6,8 +6,8 @@ | ||
| .container-fixed(@gutter: @grid-gutter-width) { | ||
| margin-right: auto; | ||
| margin-left: auto; | ||
| - padding-left: (@gutter / 2); | ||
| - padding-right: (@gutter / 2); | ||
| + padding-left: floor((@gutter / 2)); |
|
Why does left use Because
Sorry for my bad english. :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
|
1 check passed
Details
continuous-integration/travis-ci/pr
The Travis CI build passed
eddiegroves
commented
Sep 18, 2015
I'm confused by the rounding - we use a 15px gutter width and now I'm seeing 7px on the left and 8px on the right. Content is now off center - which is just noticeable on small screens.
The 7.5px was working fine previously before we pulled in v8.3.5
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When i use @grid-gutter-width: 15px; .container-fixed will generate:
but .row has bad negative margin: