Source

elbee-elgee / layouts / less / master.less

Doug Stewart d391e42 
Doug Stewart 950fd9a 





Doug Stewart d391e42 
Doug Stewart 60c591e 












Doug Stewart d391e42 















Doug Stewart 60c591e 






Doug Stewart d391e42 
Doug Stewart 950fd9a 





Doug Stewart d391e42 
/* Set width, fall back to a default if none specified */
.setwidth(@width, @defaultw) when (isnumber(@width)){
	width: @width;
}
.setwidth(@width, @defaultw) when not(isnumber(@width)){
	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;
}
.marginl(@margin, @default) when not (isnumber(@margin)){
	margin-left: @default;
}

/* Specify right margin, fall back to a default. */
.marginr(@margin, @default) when (isnumber(@margin)){
	margin-right: @margin;
}
.marginr(@margin, @default) when not (isnumber(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;
}
.layout(@layout) when not (isstring(@layout)){
	@import "2-columns-fixed-sb-right.less";
}
.layout(@layout);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.