From d1e712d84882953b7d2a43a8e70aa3b976da5fcd Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 6 Aug 2013 21:11:16 -0700 Subject: fixes #8959: only negative indent rows within .container (prevents horizontal scroll on full-width pages) --- less/mixins.less | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'less') 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 -- cgit v1.2.3