-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyles.css
97 lines (85 loc) · 1.62 KB
/
styles.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
* {
margin: 0px;
padding: 0px;
transition: all 0.8s ease;
}
body {
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(108deg, #313880 0%, #080b23 100%);
position: relative;
}
h4 {
color: #17193f;
margin-bottom: 20px;
text-align: center;
font-weight: 600;
}
input[type="checkbox"] {
display: none;
}
.switch-btn {
width: 180px;
height: 60px;
background: #212659;
border: 4px solid #ffffff17;
border-radius: 50px;
padding: 6px;
z-index: 999;
}
.icons {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
user-select: none;
color: #17193f;
transform: translate(0px, 41px);
}
.icons img {
width: 62px;
height: 62px;
object-fit: cover;
}
label {
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
background: #17193f;
border-radius: 30px;
cursor: pointer;
overflow: hidden;
}
input[type="checkbox"]:checked ~ .switch-btn {
background: #ffffff;
border: 4px solid #c3dfffba;
}
input[type="checkbox"]:checked ~ .bg-fill {
background-color: #ddecfe;
border-radius: 50%;
transform: scale(200);
color: #fff;
}
input[type="checkbox"]:checked ~ .switch-btn label {
background: #ffffff;
transform: translateX(calc(180px - 60px));
box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.2);
}
input[type="checkbox"]:checked ~ .switch-btn label .icons {
transform: translate(0px, -41px);
}
.bg-fill {
width: 20px;
height: 20px;
background: transparent;
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
z-index: -1;
}