-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkcToggle.css
83 lines (83 loc) · 2.44 KB
/
kcToggle.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.kcToggle {
position: relative;
margin: 4px 0 0 2px;
width: 60px;
height: 21px;
-webkit-border-radius: 3px;
border-radius: 3px;
cursor: pointer;
overflow: hidden;
display: inline-block;
background: #e9e9e9;
border: 1px solid #cbcbcb;
vertical-align: bottom;
}
.kcToggle input {
display: none;
position: absolute;
z-index: -1;
opacity: 0;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
.kcToggleInner {
position: absolute;
top: 0;
left: -28px;
width: 115px;
height: 100%;
-webkit-transition: left 150ms ease;
-moz-transition: left 150ms ease;
-o-transition: left 150ms ease;
transition: left 150ms ease;
}
.kcToggle.on .kcToggleInner {
left: 0;
background: #e2e2e2;
background: -moz-linear-gradient(top, #e2e2e2 0%, #ffffff 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #e2e2e2), color-stop(100%, #ffffff));
background: -webkit-linear-gradient(top, #e2e2e2 0%, #ffffff 100%);
background: -o-linear-gradient(top, #e2e2e2 0%, #ffffff 100%);
background: -ms-linear-gradient(top, #e2e2e2 0%, #ffffff 100%);
background: linear-gradient(to bottom, #e2e2e2 0%, #ffffff 100%);
filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#e2e2e2', endColorstr='#ffffff', GradientType=0);
}
.kcToggleOn {
color: #12a912;
}
.kcToggleOff {
color: #666;
}
.kcToggleOn, .kcToggleOff, .kcToggleHandle {
width: 28px;
height: 100%;
font-family: Arial, Tahoma, sans-serif;
font-size: 12px;
text-align: center;
line-height: 22px;
font-weight: bold;
float: left;
}
.kcToggleOn, .kcToggleOff {
position: relative;
}
.kcToggleHandle {
position: relative;
height: 17px;
background: #ffffff;
background: -moz-linear-gradient(top, #ffffff 0%, #cecece 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(100%, #cecece));
background: -webkit-linear-gradient(top, #ffffff 0%, #cecece 100%);
background: -o-linear-gradient(top, #ffffff 0%, #cecece 100%);
background: -ms-linear-gradient(top, #ffffff 0%, #cecece 100%);
background: linear-gradient(to bottom, #ffffff 0%, #cecece 100%);
filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#cecece', GradientType=0);
border: 1px solid #999;
font-weight: 100;
color: #4b4b4b;
text-shadow: none;
border-radius: 3px;
margin: 1px;
}