mirror of
https://github.com/jasny/bootstrap.git
synced 2026-04-24 03:00:49 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user