-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
56 lines (48 loc) · 1.03 KB
/
style.css
File metadata and controls
56 lines (48 loc) · 1.03 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
:root{
--body-bg: #F2AA4C;
--white-col: #fff;
--dark-bg: #18181A;
}
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: var(--body-bg);
transition: all 0.3s ease-in-out;
}
body.dark{
background: var(--dark-bg);
}
.Toggle{
height: 12px;
width: 175px;
position: relative;
cursor: pointer;
border-radius: 25px;
background: var(--white-col);
box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}
.Toggle::before{
content: "";
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
height: 60px;
width: 60px;
background: var(--body-bg);
border: 10px solid var(--white-col);
border-radius: 50%;
transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55 );
}
.Toggle.active::before{
left: calc(100% - 70px);
background: var(--body-bg);
border-color: var(--body-bg);
}