-
Notifications
You must be signed in to change notification settings - Fork 2
/
buttonStyle.css
105 lines (88 loc) · 1.92 KB
/
buttonStyle.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
.toggle-label {
position: relative;
display: block;
width: 300px;
height: 100px;
margin-top: 8px;
border: 1px solid #808080;
margin: 50px auto auto 400px;
}
.toggle-label input[type=checkbox] {
opacity: 0;
position: absolute;
width: 100%;
height: 100%;
}
.toggle-label input[type=checkbox]+.back {
position: absolute;
width: 100%;
height: 100%;
background: #ed1c24;
transition: background 150ms linear;
}
.toggle-label input[type=checkbox]:checked+.back {
background: #00a651; /*green*/
}
.toggle-label input[type=checkbox]+.back .toggle {
display: block;
position: absolute;
content: ' ';
background: #fff;
width: 50%;
height: 100%;
transition: margin 150ms linear;
border: 1px solid #808080;
border-radius: 0;
}
.toggle-label input[type=checkbox]:checked+.back .toggle {
margin-left: 150px;
}
.toggle-label .label {
display: block;
position: absolute;
width: 50%;
color: #ddd;
line-height: 80px;
text-align: center;
font-size: 2em;
}
.toggle-label .label.on { left: 0px; }
.toggle-label .label.off { right: 0px; }
.toggle-label input[type=checkbox]:checked+.back .label.on {
color: #fff;
}
.toggle-label input[type=checkbox]+.back .label.off {
color: #fff;
}
.toggle-label input[type=checkbox]:checked+.back .label.off {
color: #ddd;
}
.lightLabel {
position: absolute;
margin: 50px auto auto 750px;
color: #fff;
font-size: 2em;
text-align: right;
}
@media only screen and (max-width: 1024px) {
.lightLabel {
margin: 0px 300px 0px 500px;
font-size: 2em;
}
.toggle-label {
margin: 100px;
}
.robot {
margin-top: 130px;
margin-left: 80px;
}
}
@media only screen and (max-width: 800px) {
.lightLabel {
margin: -100px 300px 0px 100px;
font-size: 2em;
}
.toggle-label {
margin: 200px 200px 200px 30px;
}
}