Source

elbee-elgee / layouts / less / master.less

Diff from to

layouts/less/master.less

 	width: @defaultw;
 }
 
+.setmargins(@margins, @default) when (isnumber(@margins)){
+	margin: @margins;
+}
+.setmargins(@margins, @default) when not (isnumber(@margins)){
+	margin: @default;
+}
+.setmargins(@marginp, @margins, @default) when (isnumber(@marginp)) and (isnumber(@margins)){
+	margin: 0 @marginp 0 @margins;
+}
+.setmargins(@marginp, @margins, @default) when not (isnumber(@marginp)) and not (isnumber(@margins)){
+	margin: @default;
+}
+
 /* Specify left margin, fall back to a default. */
 .marginl(@margin, @default) when (isnumber(@margin)){
 	margin-left: @margin;
 	margin-right: @default;
 }
 
+.lbmargin(@margin, @default) when (isnumber(@margin)){
+	margin: 0 @margin;
+}
+.lbmargin(@margin, @default) when not (isnumber(@margin)){
+	margin: 0 @default;
+}
+
 /* Select a layout, fall back to a default if none specified */
 .layout(@layout) when (isstring(@layout)){
 	@import @layout;