diff options
| author | Mark Otto <[email protected]> | 2013-08-06 21:11:16 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-08-06 21:11:16 -0700 |
| commit | d1e712d84882953b7d2a43a8e70aa3b976da5fcd (patch) | |
| tree | cdf785ae289fa71fe3508447ffef4476a176cf7f /less | |
| parent | 18a4082553e0ec86022ba76fddf413fbc5a8085d (diff) | |
| download | bootstrap-d1e712d84882953b7d2a43a8e70aa3b976da5fcd.tar.xz bootstrap-d1e712d84882953b7d2a43a8e70aa3b976da5fcd.zip | |
fixes #8959: only negative indent rows within .container (prevents horizontal scroll on full-width pages)
Diffstat (limited to 'less')
| -rw-r--r-- | less/mixins.less | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/less/mixins.less b/less/mixins.less index e678563ad..2cf683c3a 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -445,9 +445,11 @@ // Then clear the floated columns .clearfix(); - @media (min-width: @screen-small) { - margin-left: (@gutter / -2); - margin-right: (@gutter / -2); + .container & { + @media (min-width: @screen-small) { + margin-left: (@gutter / -2); + margin-right: (@gutter / -2); + } } // Negative margin nested rows out to align the content of columns |
