diff options
| author | Mark Otto <[email protected]> | 2012-02-12 20:46:39 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-02-12 20:46:39 -0800 |
| commit | 944c7298d345dd46142a8338c59777827bdbde0c (patch) | |
| tree | 0729c9b2d5efe3b38a1a9f2bccfefa9b29c6667c | |
| parent | 3e00c1261fa3d48b184874c9f5b94ce370bd6449 (diff) | |
| download | bootstrap-944c7298d345dd46142a8338c59777827bdbde0c.tar.xz bootstrap-944c7298d345dd46142a8338c59777827bdbde0c.zip | |
adding makeRow and makeColumn mixins for generating more semantic layouts
| -rw-r--r-- | docs/assets/bootstrap.zip | bin | 53129 -> 53129 bytes | |||
| -rw-r--r-- | less/mixins.less | 13 |
2 files changed, 13 insertions, 0 deletions
diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip Binary files differindex 62f900de9..0bc794af3 100644 --- a/docs/assets/bootstrap.zip +++ b/docs/assets/bootstrap.zip diff --git a/less/mixins.less b/less/mixins.less index c2fc2c745..93bb229b5 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -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) |
