forked from tdreyno/iphone-style-checkboxes
-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
58 lines (58 loc) · 1.22 KB
/
style.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
.container {
position: relative;
width: 85px;
height: 27px;
cursor: pointer;
overflow: hidden; }
.container input {
position: absolute;
top: 5px;
left: 30px; }
.handle {
display: block;
height: 27px;
width: 39px;
cursor: pointer;
position: absolute;
top: 0;
left: 0; }
.handle .bg {
position: absolute;
width: 5px;
height: 100%;
top: 0;
left: 0;
z-index: 1; }
.handle .slider {
position: absolute;
top: 0;
left: 0;
height: 27px;
width: 39px;
background: url(images/slider.png) no-repeat;
z-index: 2; }
label.on, label.off {
font-size: 17px;
line-height: 17px;
font-weight: bold;
font-family: Helvetica Neue, Arial, Helvetica, sans-serif;
text-transform: uppercase;
cursor: pointer;
display: block;
height: 22px;
position: absolute;
width: 52px;
top: 0; }
label.on {
color: #fff;
background: url(images/on.png) no-repeat;
text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.6);
left: 0;
padding: 5px 0 0 8px; }
label.off {
color: #8B8B8B;
background: url(images/off.png) no-repeat right 0;
text-shadow: 0px 0px 2px rgba(255, 255, 255, 0.6);
text-align: right;
right: 0;
padding: 5px 8px 0 0; }