aboutsummaryrefslogtreecommitdiffstats
path: root/assets/less/lib/mixins.less
blob: c6412a55ab78ef2a860fdaa9903f910850c5ada1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// ==========================================================================
// Mixins
// ==========================================================================

// Contain floats: nicolasgallagher.com/micro-clearfix-hack/
.clearfix() {
	zoom: 1;
	&:before, 
	&:after { content: ""; display: table; }
	&:after { clear: both; }
}

// Webkit-style focus
.tab-focus() {
	// Default
	outline: thin dotted @gray-dark;
	// Webkit
	//outline: 5px auto -webkit-focus-ring-color;
	outline-offset: 1px;
}

// Use rems for font sizing
.font-size(@font-size: 16){
	@rem: (@font-size / 10);
	font-size: @font-size * 1px;
	font-size: ~"@{rem}rem";
}