From 944c7298d345dd46142a8338c59777827bdbde0c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 12 Feb 2012 20:46:39 -0800 Subject: [PATCH] adding makeRow and makeColumn mixins for generating more semantic layouts --- docs/assets/bootstrap.zip | Bin 53129 -> 53129 bytes less/mixins.less | 13 +++++++++++++ 2 files changed, 13 insertions(+) diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index 62f900de975ea347a8e606c6218070185575c961..0bc794af34dc0d289ac866c5b1b200aacf2a25bd 100644 GIT binary patch delta 449 zcmeC2&)hkmnJ2)TnT3l11kNm-$fL-%V5)`x;;EA#o)zYTNt|6eF+i1V5nN(o9|sdq zY=$jZY~j?6w=aMMCa>jm1dA-1y7>!d1UpE`Ptb^MAyDIjshisbuNZ=aVw}yuLJOyE zp5gpcj|pgPfXw9eMVv@hgKRjnbn@*YXRshpw@PuP07z(lvn@>MQFFBb$iVn1Dj1HN zyljdA%q@4OuqZN}TRQpCRui_xK(_#$C$sIE2*|WAr}UW?fIKVC0SN=3aaLz#CMTR0 zXIcajmjzicD delta 449 zcmeC2&)hkmnJ2)TnT3l11WFfA+6?WZIWg`b>5p&x&(E!T_ku>a5J;ryIcEej9?08& T&JKwucixE!5;v1e&x-&6hT5&q diff --git a/less/mixins.less b/less/mixins.less index c2fc2c7458..93bb229b51 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)