forked from arthurgouveia/prettyCheckable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prettyCheckable.css
57 lines (44 loc) · 1.28 KB
/
prettyCheckable.css
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
57
.clearfix:before, .clearfix:after {
content: "";
display: table;
}
.clearfix:after {clear: both;}
.clearfix {*zoom: 1;}
.prettycheckbox,
.prettyradio {
display: inline-block;
padding:0;
margin:0;
}
.prettycheckbox a,
.prettyradio a{
width: 30px;
height: 30px;
background: url(prettyCheckable-blue.png) top left no-repeat;
display: block;
float: left;
cursor: pointer;
margin:0;
}
.prettycheckbox.green a,
.prettyradio.green a{ background-image: url(prettyCheckable-green.png);}
.prettycheckbox.red a,
.prettyradio.red a{ background-image: url(prettyCheckable-red.png);}
.prettycheckbox.yellow a,
.prettyradio.yellow a{ background-image: url(prettyCheckable-yellow.png);}
.prettyradio a {background-position: 0 -120px;}
.prettycheckbox a:focus,
.prettyradio a:focus {outline: 0 none;}
.prettycheckbox a:focus{background-position: 0 -30px;}
.prettyradio a:focus{background-position: 0 -150px;}
.prettycheckbox a.checked{ background-position: 0 -60px; }
.prettyradio a.checked { background-position: 0 -180px; }
.prettycheckbox a.checked:focus{ background-position: 0 -90px; }
.prettyradio a.checked:focus { background-position: 0 -210px; }
.prettycheckbox label,
.prettyradio label {
display: block;
float: left;
margin: 6px 5px;
cursor: pointer;
}