forked from Sylvat160/Moonlight
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
60 lines (54 loc) · 1.47 KB
/
style.css
File metadata and controls
60 lines (54 loc) · 1.47 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background-color: #111;
/* transition: 0.5s; */
}
#toggle {
display: relative;
display: block;
width: 360px;
height: 160px;
border-radius: 160px;
background-color: #222;
transition: 0.5s;
box-shadow: inset 0px 8px 60px rgba(0, 0, 0, 0.1),
inset 0px -8px 8px rgba(0, 0, 0, 0.1),
inset 0px -4px 4px rgba(0, 0, 0, 0.1);
}
body.active {
background-color: #fff;
}
#toggle.active {
background-color: #fff;
box-shadow: inset 0px 2px 60px rgba(0, 0, 0, 0.1),
inset 0px 2px 8px rgba(0, 0, 0, 0.1),
inset 0px -4px 8px rgba(0, 0, 0, 0.1);
}
#toggle .indicator {
position: absolute;
width: 160px;
height: 160px;
background: linear-gradient(to bottom, #444, #222);
border-radius:50%;
transform: scale(0.9);
cursor: pointer;
box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5),
inset 0 4px 4px rgba(255, 255, 255, 0.52),
inset 0 -4px 4px rgba(255, 255, 255, 0.1);
transition: 0.5s;
}
#toggle.active .indicator {
background: linear-gradient(to bottom, #eaeaea, #f9f9f9);
right: 500px;
box-shadow: inset 0px 8px 40px rgba(0, 0, 0, 1),
inset 0px -8px 8px rgba(255, 255, 255, 1),
inset 0px -4px 4px rgba(255, 255, 255, 1);
}