-
Notifications
You must be signed in to change notification settings - Fork 30
/
_helper.scss
56 lines (50 loc) · 1.36 KB
/
_helper.scss
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Helper Mixins
// Helper mixins with custom function
// Author : Satrya - @msattt
// URL : http://tokokoo.com
// =================================================================================
// Mixin for simpler inline-block
// ------------------
@mixin inline-block-ie7 {
display: inline-block;
*display: inline;
*zoom: 1;
}
// Mixin for selection markup
// ------------------
@mixin selection($background, $color, $element:false) {
@if($element) {
&::-moz-selection{ background:$background; color:$color; text-shadow:none; }
&::selection { background:$background; color:$color; text-shadow:none; }
} @else {
::-moz-selection{ background:$background; color:$color; text-shadow:none; }
::selection { background:$background; color:$color; text-shadow:none; }
}
}
// Mixin for reset list
// ------------------
@mixin reset-list {
list-style: none;
margin: 0;
padding: 0;
}
// Mixin for placeholder styling
// ------------------
@mixin placeHolder($color) {
&::-webkit-input-placeholder { color:$color; }
&:-moz-placeholder { color:$color; }
}
// Webkit-style focus
// ------------------
@mixin tab-focus {
outline: thin dotted #333;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
// Center-align a block level element
// ----------------------------------
@mixin center-block {
display: block;
margin-left: auto;
margin-right: auto;
}