/* ClearFix */
@mixin cf() {
	&:before, &:after { content: " "; display: table; }
	&:after { clear: both; }
	& { *zoom: 1; }
}

/* Bordi arrotondati */
@mixin roundCorners($radius: 4px) {
	-moz-border-radius: $radius; -webkit-border-radius: $radius; border-radius: $radius;
}

/* box-sizing impostato a border-box */
@mixin borderBox() {
	-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}

/* Dimensioni per i campi */
@mixin controlsSizes($offset: 0){
	$sizes: smallest 50px,
	smaller 120px,
	small 150px,
	medium 250px,
	normal 300px,
	large 400px,
	larger 600px,
	largest 800px;
	@each $size in $sizes {
		$class: nth($size, 1);
		$width: nth($size, 2);

		&.#{$class} {
			width: $width + $offset;
		}
	}
}

/* Aspetto dei campi */
@mixin controls() {
	border: 1px solid #ccc;
	display: inline-block;
	padding: 3px;
	height: 26px;
	width: 300px;
}
