switchbutton.css
1.61 KB
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
.switchbutton {
text-decoration: none;
display: inline-block;
overflow: hidden;
vertical-align: middle;
margin: 0;
padding: 0;
cursor: pointer;
background: #d9d9d9;
border: 1px solid #d9d9d9;
-moz-border-radius: 4px 4px 4px 4px;
-webkit-border-radius: 4px 4px 4px 4px;
border-radius: 4px 4px 4px 4px;
}
.switchbutton-inner {
display: inline-block;
overflow: hidden;
position: relative;
top: -1px;
left: -1px;
}
.switchbutton-on,
.switchbutton-off,
.switchbutton-handle {
display: inline-block;
text-align: center;
height: 100%;
float: left;
font-size: 12px;
-moz-border-radius: 4px 4px 4px 4px;
-webkit-border-radius: 4px 4px 4px 4px;
border-radius: 4px 4px 4px 4px;
}
.switchbutton-on {
background: #00bbee;
color: #fff;
}
.switchbutton-off {
background-color: #ffffff;
color: #404040;
}
.switchbutton-on,
.switchbutton-reversed .switchbutton-off {
-moz-border-radius: 4px 0 0 4px;
-webkit-border-radius: 4px 0 0 4px;
border-radius: 4px 0 0 4px;
}
.switchbutton-off,
.switchbutton-reversed .switchbutton-on {
-moz-border-radius: 0 4px 4px 0;
-webkit-border-radius: 0 4px 4px 0;
border-radius: 0 4px 4px 0;
}
.switchbutton-handle {
position: absolute;
top: 0;
left: 50%;
background-color: #ffffff;
color: #404040;
border: 1px solid #d9d9d9;
-moz-box-shadow: 0 0 3px 0 #d9d9d9;
-webkit-box-shadow: 0 0 3px 0 #d9d9d9;
box-shadow: 0 0 3px 0 #d9d9d9;
}
.switchbutton-value {
position: absolute;
top: 0;
left: -5000px;
}
.switchbutton-disabled {
opacity: 0.5;
filter: alpha(opacity=50);
}
.switchbutton-disabled,
.switchbutton-readonly {
cursor: default;
}