0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

adding makeRow and makeColumn mixins for generating more semantic layouts

This commit is contained in:
Mark Otto 2012-02-12 20:46:39 -08:00
parent 3e00c1261f
commit 944c7298d3
2 changed files with 13 additions and 0 deletions

Binary file not shown.

View File

@ -270,6 +270,19 @@
}
}
// Make a Grid
// -------------------------
// Use .makeRow and .makeColumn to assign semantic layouts grid system behavior
.makeRow() {
margin-left: @gridGutterWidth * -1;
.clearfix();
}
.makeColumn(@columns: 1) {
float: left;
margin-left: @gridGutterWidth;
width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1));
}
// Form field states (used in forms.less)