]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
adding makeRow and makeColumn mixins for generating more semantic layouts
authorMark Otto <markotto@twitter.com>
Mon, 13 Feb 2012 04:46:39 +0000 (20:46 -0800)
committerMark Otto <markotto@twitter.com>
Mon, 13 Feb 2012 04:46:39 +0000 (20:46 -0800)
docs/assets/bootstrap.zip
less/mixins.less

index 62f900de975ea347a8e606c6218070185575c961..0bc794af34dc0d289ac866c5b1b200aacf2a25bd 100644 (file)
Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ
index c2fc2c745873fd75ace8bb7d586669ec3150f18c..93bb229b512f7b3ab14df02ee05af6f804bc935b 100644 (file)
   }
 }
 
+// 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)