.fuelux-icon() {
	background-size: cover;
	display: inline-block;
	width: 16px;
	height: 16px;

	button:hover > .fuelux-icon {
	}

	&:before {
		content: "";
	}
}


// For clearing floats
.clearfix () {
	*zoom: 1;
	&:before,
	&:after {
		display: table;
		content: "";
		// Fixes Opera/contenteditable bug:
		// http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952
		line-height: 0;
	}
	&:after {
		clear: both;
	}
}

// Navbar gradient

.navbar-active-gradient() {
	background: @true-white;
	background: -moz-linear-gradient(top, @true-white 0%, #dce6ee 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, @true-white), color-stop(100%, #dce6ee));
	background: -webkit-linear-gradient(top, @true-white 0%, #dce6ee 100%);
	background: -o-linear-gradient(top, @true-white 0%, #dce6ee 100%);
	background: -ms-linear-gradient(top, @true-white 0%, #dce6ee 100%);
	background: linear-gradient(to bottom, @true-white 0%, #dce6ee 100%);
	border: 1px solid #b5c6d2;
	border-top: 0;
	border-radius: 0 0 5px 5px;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='@true-white', endColorstr='#dce6ee', GradientType=0);
}


// Button sizes
.button-size-all-paddings(@padding-top; @padding-right; @padding-bottom; @padding-left; @font-size; @border-radius) {
	padding: @padding-top @padding-right @padding-bottom @padding-left;
	font-size: @font-size;
	border-radius: @border-radius;
}



.transition(@duration:0.2s, @ease:ease-out) {
	-webkit-transition: all @duration @ease;
	-moz-transition: all @duration @ease;
	-o-transition: all @duration @ease;
	transition: all @duration @ease;
}

.transition-background-image(@duration:0.2s, @ease:ease-out) {
	-webkit-transition: background-image @duration @ease;
	-moz-transition: background-image @duration @ease;
	-o-transition: background-image @duration @ease;
	transition: background-image @duration @ease;

}
.footer-with-inputs {
	padding: @footer-padding;
	> span {
		line-height: @footer-span-line-height;
		// vertical center text
	}
}

// ----------------
// Effects (CSS3) Mixins
// ----------------

#fuelux-mctheme {
	.transform-translate(@translateX, @translateY) {
		-webkit-transform: translate(@translateX, @translateY); /* Ch <36, Saf 5.1+, iOS, An =<4.4.4 */
		-ms-transform: translate(@translateX, @translateY); /* IE 9 */
		transform: translate(@translateX, @translateY); /* IE 10, Fx 16+, Op 12.1+ */
	}
}

#fuelux-gradient {
	// hex, rgb, and rgba values accepted!
	.horizontal(...) {
		// -webkit-gradient has it's own "special" syntax...pfff...
		@props: ~`"@{arguments}".replace(/[\[\]]|\,\sX/g, '')`;
		@wkProps: ~`
			"@{props}"
				.replace(/^(\#[a-f0-9]{3,6}|rgba?\(( *\d{1,3},?){3}( *[0-9\.]+)?\))( +\d{1,3}\%)?/i, 'from($1)')
				.replace(/(\#[a-f0-9]{3,6}|rgba?\(( *\d{1,3},?){3}( *[0-9\.]+)?\))( +\d{1,3}\%)?$/i, 'to($1)')
				.replace(/(\#[a-f0-9]{3,6}|rgba?\(( *\d{1,3},?){3}( *[0-9\.]+)?\)) +(\d{1,3}\%)/gi, 'color-stop($4, $1)')
		`;

		// for getting the microsoft-supported color string for filter
		@cleanedArgs: `"@{arguments}".replace(/[\]\[\s]/g,'').split(/,(?=[#a-z])/).join("|")`;
		@first: `@{cleanedArgs}.split('|').shift()`;
		@last: `@{cleanedArgs}.split('|').pop()`;
		@firstMsColor: `(function(e){if(e=="transparent")return"@true-black00";if(e.indexOf("#")==0)return e;if(e.indexOf("rgb")>-1){var t=e.replace(/[rgba\(\) ]/g,"").split(","),n=function(e){return e.length==1?"0"+e:e},r=function(e,t,r){var i=function(e){var t=parseInt(e,10).toString(16);return n(t)};return""+i(e)+i(t)+i(r)},i=function(e){var t=Math.floor(255*parseFloat(e,10)).toString(16);return n(t)};t.length===3&&t.push("1");return"#"+i(t[3])+r(t[0],t[1],t[2])}})(@{first})`;
		@lastMsColor: `(function(e){if(e=="transparent")return"@true-black00";if(e.indexOf("#")==0)return e;if(e.indexOf("rgb")>-1){var t=e.replace(/[rgba\(\) ]/g,"").split(","),n=function(e){return e.length==1?"0"+e:e},r=function(e,t,r){var i=function(e){var t=parseInt(e,10).toString(16);return n(t)};return""+i(e)+i(t)+i(r)},i=function(e){var t=Math.floor(255*parseFloat(e,10)).toString(16);return n(t)};t.length===3&&t.push("1");return"#"+i(t[3])+r(t[0],t[1],t[2])}})(@{last})`;

		background-image: -moz-linear-gradient(left, @props); // FF 3.6+
		background-image: -webkit-gradient(linear, 0 0, 100% 0, @wkProps); // Safari 4+, Chrome 2+
		background-image: -webkit-linear-gradient(left, @props); // Safari 5.1+, Chrome 10+
		background-image: -o-linear-gradient(left, @props); // Opera 11.10
		background-image: linear-gradient(to right, @props); // Standard, IE10
		background-repeat: repeat-x;
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=@firstMsColor, endColorstr=@lastMsColor, GradientType=1);
	}
	// hex, rgb, and rgba values accepted!
	.vertical(...) {
		// -webkit-gradient has it's own "special" syntax...pfff...
		@props: ~`"@{arguments}".replace(/[\[\]]|\,\sX/g, '')`;
		@wkProps: ~`
			"@{props}"
				.replace(/^(\#[a-f0-9]{3,6}|rgba?\(( *\d{1,3},?){3}( *[0-9\.]+)?\))( +\d{1,3}\%)?/i, 'from($1)')
				.replace(/(\#[a-f0-9]{3,6}|rgba?\(( *\d{1,3},?){3}( *[0-9\.]+)?\))( +\d{1,3}\%)?$/i, 'to($1)')
				.replace(/(\#[a-f0-9]{3,6}|rgba?\(( *\d{1,3},?){3}( *[0-9\.]+)?\)) +(\d{1,3}\%)/gi, 'color-stop($4, $1)')
		`;

		// for getting the microsoft-supported color string for filter
		@cleanedArgs: `"@{arguments}".replace(/[\]\[\s]/g,'').split(/,(?=[#a-z])/).join("|")`;
		@first: `@{cleanedArgs}.split('|').shift()`;
		@last: `@{cleanedArgs}.split('|').pop()`;
		@firstMsColor: `(function(e){if(e=="transparent")return"@true-black00";if(e.indexOf("#")==0)return e;if(e.indexOf("rgb")>-1){var t=e.replace(/[rgba\(\) ]/g,"").split(","),n=function(e){return e.length==1?"0"+e:e},r=function(e,t,r){var i=function(e){var t=parseInt(e,10).toString(16);return n(t)};return""+i(e)+i(t)+i(r)},i=function(e){var t=Math.floor(255*parseFloat(e,10)).toString(16);return n(t)};t.length===3&&t.push("1");return"#"+i(t[3])+r(t[0],t[1],t[2])}})(@{first})`;
		@lastMsColor: `(function(e){if(e=="transparent")return"@true-black00";if(e.indexOf("#")==0)return e;if(e.indexOf("rgb")>-1){var t=e.replace(/[rgba\(\) ]/g,"").split(","),n=function(e){return e.length==1?"0"+e:e},r=function(e,t,r){var i=function(e){var t=parseInt(e,10).toString(16);return n(t)};return""+i(e)+i(t)+i(r)},i=function(e){var t=Math.floor(255*parseFloat(e,10)).toString(16);return n(t)};t.length===3&&t.push("1");return"#"+i(t[3])+r(t[0],t[1],t[2])}})(@{last})`;

		background-image: -moz-linear-gradient(top, @props); // FF 3.6+
		background-image: -webkit-gradient(linear, 0 0, 0 100%, @wkProps); // Safari 4+, Chrome 2+
		background-image: -webkit-linear-gradient(top, @props); // Safari 5.1+, Chrome 10+
		background-image: -o-linear-gradient(top, @props); // Opera 11.10
		background-image: linear-gradient(to bottom, @props); // Standard, IE10
		background-repeat: repeat-x;
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=@firstMsColor, endColorstr=@lastMsColor, GradientType=0);
	}

	// this is to explicitly disable ie gradients. it seems that the filter gradient overrides the background-image
	// even if the background-image overrides the native css gradients.
	.disableMsGradient {
		filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
	}
}

.btn-sm-fuelux-icon() {
	width: 10px;
	height: 10px;
	margin-top: -1px;
	margin-bottom: -1px;
}