-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
91 lines (76 loc) · 1.85 KB
/
style.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
body {
background-color: rgb(41, 41, 41);
display: flex;
justify-content: center;
}
button {
background-color: black;
color: azure;
}
.container {
margin-top: 100px;
display: inline;
justify-content: center;
}
.toggle-switch {
position: relative;
justify-content: center;
width: 40px;
height: 24px;
margin: auto;
}
.toggle-switch .toggle-input {
display: none;
}
.toggle-switch .toggle-label {
position: absolute;
top: 0;
left: 0;
width: 40px;
height: 24px;
background-color: #dbdbdb;
border-radius: 34px;
cursor: pointer;
transition: background-color 0.3s;
}
.toggle-switch .toggle-label::before {
content: "";
position: absolute;
width: 20px;
height: 20px;
border-radius: 50%;
top: 2px;
left: 2px;
background-color: #fff;
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
transition: transform 0.3s;
}
.toggle-switch .toggle-input:checked + .toggle-label {
background-color: #505050;
}
.toggle-switch .toggle-input:checked + .toggle-label::before {
transform: translateX(16px);
}
.toggle-switch.light .toggle-label {
background-color: #BEBEBE;
}
.toggle-switch.light .toggle-input:checked + .toggle-label {
background-color: #9B9B9B;
}
.toggle-switch.light .toggle-input:checked + .toggle-label::before {
transform: translateX(6px);
}
.toggle-switch.dark .toggle-label {
background-color: #4B4B4B;
}
.toggle-switch.dark .toggle-input:checked + .toggle-label {
background-color: #717171;
}
.toggle-switch.dark .toggle-input:checked + .toggle-label::before {
transform: translateX(16px);
}
.bulb {
width: 300px;
height:300px;
color: #fff;
}