0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-29 21:52:22 +01:00

Added offset parameter to .makeColumn.

This commit is contained in:
Mark Figueredo 2012-03-19 14:58:55 -03:00
parent 59503e71ff
commit d115d169b7

View File

@ -507,9 +507,9 @@
margin-left: @gridGutterWidth * -1;
.clearfix();
}
.makeColumn(@columns: 1) {
.makeColumn(@columns: 1, @offset: 0) {
float: left;
margin-left: @gridGutterWidth;
margin-left: (@gridColumnWidth * @offset) + (@gridGutterWidth * (@offset - 1)) + (@gridGutterWidth * 2);
width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1));
}