2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-30 15:24:08 +03:00

Make negative margins on rows the default, not just in containers, and add padding to body to compensate

This commit is contained in:
Mark Otto
2013-08-16 15:16:03 -07:00
parent f459d76e38
commit e4bb388bc9
4 changed files with 49 additions and 71 deletions
+2 -14
View File
@@ -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
+2
View File
@@ -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;