diff options
| author | Mark Otto <[email protected]> | 2013-08-16 15:16:03 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-08-16 15:16:03 -0700 |
| commit | e4bb388bc91790d2b0a0ff0be1f329945adcc3ff (patch) | |
| tree | c62ecaeb408d219d42927cd064b98e17fdb4787f /less | |
| parent | f459d76e388b1d73b8b0065f8fbaf573f7eaed32 (diff) | |
| download | bootstrap-e4bb388bc91790d2b0a0ff0be1f329945adcc3ff.tar.xz bootstrap-e4bb388bc91790d2b0a0ff0be1f329945adcc3ff.zip | |
Make negative margins on rows the default, not just in containers, and add padding to body to compensate
Diffstat (limited to 'less')
| -rw-r--r-- | less/mixins.less | 16 | ||||
| -rw-r--r-- | less/scaffolding.less | 2 |
2 files changed, 4 insertions, 14 deletions
diff --git a/less/mixins.less b/less/mixins.less index f726b9402..0a754f5a8 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -529,21 +529,9 @@ // Creates a wrapper for a series of columns .make-row(@gutter: @grid-gutter-width) { - // Then clear the floated columns + margin-left: (@gutter / -2); + margin-right: (@gutter / -2); .clearfix(); - - .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 - .row { - margin-left: (@gutter / -2); - margin-right: (@gutter / -2); - } } // Generate the extra small columns diff --git a/less/scaffolding.less b/less/scaffolding.less index 3a6ed3d99..eb6f1364d 100644 --- a/less/scaffolding.less +++ b/less/scaffolding.less @@ -22,6 +22,8 @@ html { } body { + padding-left: (@grid-gutter-width / 2); + padding-right: (@grid-gutter-width / 2); font-family: @font-family-base; font-size: @font-size-base; line-height: @line-height-base; |
