Skip to content

Commit

Permalink
fixes twbs#9436 more: put padding on containers, not the body because…
Browse files Browse the repository at this point in the history
… full width elements
  • Loading branch information
mdo committed Aug 17, 2013
1 parent e4bb388 commit cd0df1d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions dist/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,6 @@ html {
}

body {
padding-right: 15px;
padding-left: 15px;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.428571429;
Expand Down Expand Up @@ -735,6 +733,8 @@ pre code {
}

.container {
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
Expand Down Expand Up @@ -902,7 +902,7 @@ pre code {

@media (min-width: 768px) {
.container {
max-width: 720px;
max-width: 750px;
}
.col-sm-1,
.col-sm-2,
Expand Down Expand Up @@ -1056,7 +1056,7 @@ pre code {

@media (min-width: 992px) {
.container {
max-width: 940px;
max-width: 970px;
}
.col-md-1,
.col-md-2,
Expand Down Expand Up @@ -1219,7 +1219,7 @@ pre code {

@media (min-width: 1200px) {
.container {
max-width: 1140px;
max-width: 1170px;
}
.col-lg-1,
.col-lg-2,
Expand Down
2 changes: 1 addition & 1 deletion dist/css/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions less/mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,8 @@
.container-fixed() {
margin-right: auto;
margin-left: auto;
padding-left: (@grid-gutter-width / 2);
padding-right: (@grid-gutter-width / 2);
.clearfix();
}

Expand Down
2 changes: 0 additions & 2 deletions less/scaffolding.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ 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;
Expand Down
6 changes: 3 additions & 3 deletions less/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -600,10 +600,10 @@
// --------------------------------------------------

// Small screen / tablet
@container-tablet: 720px;
@container-tablet: 750px; // 720px + 30px left/right padding

// Medium screen / desktop
@container-desktop: 940px;
@container-desktop: 970px; // 940px + 30px left/right padding

// Large screen / wide desktop
@container-large-desktop: 1140px;
@container-large-desktop: 1170px; // 1140px + 30px left/right padding

0 comments on commit cd0df1d

Please sign in to comment.