Repository navigation
Expand file tree
/
Copy pathemoryswitches.css
More file actions
95 lines (94 loc) · 1.78 KB
/
Copy pathemoryswitches.css
File metadata and controls
95 lines (94 loc) · 1.78 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
.outter {
position: relative;
left: 150px;
display: inline-block;
width: 60px;
height: 24px;
}
.outter input {
display: none;
}
.inner {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .2s;
transition: .2s;
border-radius: 22px;
}
.inner:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background-color: white;
-webkit-transition: .2s;
transition: .2s;
border-radius: 50%;
}
/*.plus{
display: inline-block;
font-weight: bold;
}*/
input:checked + .inner .plus{
display: none;
}
/*.minus{
display: none;
font-weight: bold;
}
input:checked + .inner .minus{
display: inline-block;
}*/
input:checked + .inner {
background-color: #f2a900;
}
/*input:focus + .inner {
box-shadow: 0 0 1px #f2a900;
}*/
input:checked + .inner:before {
-webkit-transform: translateX(36px);
-ms-transform: translateX(36px);
transform: translateX(36px);
}
.on{
display: none;
padding-left: 6px;
bottom: 13px;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
}
.on,
.off {
color: white;
position: absolute;
transform: translate(-50%, -50%);
top: 25%;
left: 25%;
font-size: 16px;
}
.off {
left: auto;
right: -9px;
top: 13px;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
}
input:checked + .inner .on {
display: block;
}
input:checked + .inner .off {
display: none;
}