forked from cgarvis/angular-toggle-switch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathangular-toggle-switch.css
73 lines (62 loc) · 1.2 KB
/
angular-toggle-switch.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
.switch {
border: 1px solid;
cursor: pointer;
display: inline-block;
text-align: left;
overflow: hidden;
line-height: 8px;
min-width: 100px;
}
.switch.disabled > div > span.knob {
background: #AAA;
}
.switch span {
cursor: pointer;
display: inline-block;
float: left;
height: 100%;
line-height: 20px;
padding: 4px;
text-align: center;
width: 33%;
white-space: nowrap;
box-sizing: border-box;
-o-box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
.switch > div {
position: relative;
width: 150%;
}
.switch .knob {
background: red;
border-left: 1px solid #ccc;
border-right: 1px solid #ccc;
background-color: #f5f5f5;
width: 34%;
z-index: 100;
}
.switch .switch-on {
left: 0%;
}
.switch .switch-off {
left: -50%
}
.switch .switch-left, .switch .switch-right {
z-index: 1;
}
.switch .switch-left {
color: #fff;
background: #005fcc;
}
.switch .switch-right {
color: #333;
background: #f0f0f0;
}
.switch-animate {
transition: left 0.5s;
-o-transition: left 0.5s;
-moz-transition: left 0.5s;
-webkit-transition: left 0.5s;
}