Overhaul the grid system and its docs

* Add new grid mixins adapted from Preboot (http://github.com/mdo/preboot)
* Drop the @grid-row-width and @grid-column-width variables
* Add the @grid-float-breakpoint variable, as used in Preboot
* Add support for .push* and .pull* classes for column ordering manipulation
* Document all the things
This commit is contained in:
Mark Otto
2013-03-15 23:21:10 -07:00
parent 145eb054d9
commit bb38fa5286
5 changed files with 252 additions and 81 deletions

View File

@@ -10,11 +10,10 @@
// Mobile-first defaults
.row {
margin-left: (@grid-gutter-width / -2);
margin-right: (@grid-gutter-width / -2);
.clear_float();
.make-row();
}
[class^="span"] {
position: relative;
min-height: 1px;
padding-left: (@grid-gutter-width / 2);
padding-right: (@grid-gutter-width / 2);
@@ -26,10 +25,8 @@
max-width: 728px;
}
// Generate the grid columns and offsets
[class^="span"] {
float: left;
}
#grid > .core(@grid-column-width, @grid-gutter-width);
[class^="span"] { float: left; }
.generate-grid-columns(@grid-columns);
}
// Responsive: Desktops and up
@@ -44,14 +41,6 @@
.container {
max-width: 1170px;
}
.row {
margin-left: -15px;
margin-right: -15px;
}
[class^="span"] {
padding-left: 15px;
padding-right: 15px;
}
}
// Reset utility classes due to specificity