forked from starikovs/alt-checkbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjquery.alt-checkbox.css
60 lines (60 loc) · 1.66 KB
/
jquery.alt-checkbox.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
58
59
60
/*
* alt-checkbox LESS file
* Version 1.0
* http://alt-checkbox.starikovs.com
*
* alt-checkbox LESS file which helps to style checkbox with custom css using LESS syntax.
*
* Copyright (c) 2013 alt-checkbox.starikovs.com
* Licensed under the MIT and GPL licenses.
*/
.alt-checkbox {
display: inline-block;
background: #fbfbfb;
background-image: -ms-linear-gradient(top, #fbfbfb 0%, #ededed 100%);
background-image: -moz-linear-gradient(top, #fbfbfb 0%, #ededed 100%);
background-image: -o-linear-gradient(top, #fbfbfb 0%, #ededed 100%);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fbfbfb), color-stop(1, #ededed));
background-image: -webkit-linear-gradient(top, #fbfbfb 0%, #ededed 100%);
background-image: linear-gradient(to bottom, #fbfbfb 0%, #ededed 100%);
border-radius: .2em;
box-shadow: 0 0 0 1px #ccc;
font-size: .8em;
line-height: 100%;
outline: none;
position: relative;
text-decoration: none;
}
.alt-checkbox:hover, .alt-checkbox:focus {
box-shadow: 0 0 3px 1px #ffce73;
}
.alt-checkbox:before {
display: block;
min-height: 1em;
min-width: 1em;
padding: .05em;
position: relative;
text-align: center;
text-shadow: 0 1px 0 #dddddd, 0 2px 0 #ffffff, 0 -1px 0 #dddddd;
visibility: hidden;
}
.alt-checkbox.outline-unchecked:before {
color: #eee;
visibility: visible;
}
.alt-checkbox.checked:before {
color: #999;
visibility: visible;
}
.alt-checkbox:focus {
outline: none;
}
.alt-checkbox.small, .alt-checkbox-label.small {
font-size: .8em;
}
.alt-checkbox.medium, .alt-checkbox-label.medium {
font-size: 1.6em;
}
.alt-checkbox.big, .alt-checkbox-label.big {
font-size: 2.4em;
}