-
Notifications
You must be signed in to change notification settings - Fork 1
/
FancyCheckBox.less
48 lines (35 loc) · 891 Bytes
/
FancyCheckBox.less
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
/*========================================
GEORGE'S CODE SNIPPETS
========================================*/
/*NICE CHECKBOX STYLING*/
.checkbox {
cursor: pointer;
input[type=checkbox] {
display: none;
+ i.fa {
float: left;
padding: 4px 5px 0 0;
-webkit-transition: color 1s ease-out;
-moz-transition: color 1s ease-out;
-ms-transition: color 1s ease-out;
-o-transition: color 1s ease-out;
transition: color 1s ease-out;
&:hover {
color: @peterriver;
-webkit-transition: color .3s ease-in;
-moz-transition: color .3s ease-in;
-ms-transition: color .3s ease-in;
-o-transition: color .3s ease-in;
transition: color .3s ease-in;
}
}
}
}
.checkbox input[type=checkbox]:checked {
+ i.fa {
color: @peterriver;
}
}
/*jQuery for above to work:
$j('label.checkbox').append('<i class="fa fa-check-circle-o fa-fw"></i>');
*/