-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle123.css
86 lines (81 loc) · 1.77 KB
/
style123.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
transition: 0.5s;
}
input {
display: none;
}
.display {
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: white;
}
label {
width: 400px;
height: 200px;
border-radius: 999px;
background: #F3F3F3;
box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.05) inset;
cursor: pointer;
position: relative;
}
.circle {
width: 160px;
height: 160px;
border-radius: 99px;
background: white;
box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.05),
-10px -10px 30px rgba(0, 0, 0, 0.05) inset;
position: absolute;
top: 50%;
left: 0%;
transform: translate(10%, -50%);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
svg {
width: 80px;
position: absolute;
}
.bolt {
color: #FFD600;
margin-top: 0%;
opacity: 1;
}
.leaf {
margin-top: -150%;
color: white;
opacity: 0;
}
input[type=checkbox]:checked + .display {
background: #1e301e;
}
input[type=checkbox]:checked + .display label {
background: #3a643a;
box-shadow: 2.5px 2.5px 7.5px rgba(145, 251, 100, 0.5) inset;
}
input[type=checkbox]:checked + .display label .circle {
left: 100%;
transform: translate(-110%, -50%);
background: #1e301e;
box-shadow: 2.5px 2.5px 5px rgba(145, 251, 100, 0.5),
-1px -1px 1px rgba(145, 251, 100, 0.5) inset;
}
input[type=checkbox]:checked + .display label .circle .bolt {
margin-top: 150%;
opacity: 0;
}
input[type=checkbox]:checked + .display label .circle .leaf {
margin-top: 0%;
opacity: 1;
}
label:active .circle {
width: 200px;
}