-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdark_styles.css
More file actions
53 lines (47 loc) · 980 Bytes
/
Copy pathdark_styles.css
File metadata and controls
53 lines (47 loc) · 980 Bytes
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
body.dark { background: #333; }
body.dark section { background: #333; }
body.dark textarea { background: #333;
color: white;}
::placeholder{ color:rgb(146, 183, 239);}
body.dark h2,body.dark h6 { color:#fff}
.darkModeSwitch{
background: #113528;
display:flex;
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
outline: none;
border: none;
border-radius: 1rem;
align-items: center;
justify-content: space-between;
}
.darkModeSwitch span{
width:30px;
height:30px;
line-height:30px;
display:block;
color:#fff;
background: none;
}
.darkModeSwitch::after{
display:block;
background: #042d26de;
width: 1.9rem;
height: 1.9rem;
position: absolute;
top:0;
left:0;
right:unset;
border-radius: 3rem;
transition: all .5s ease;
content: "";
}
.darkModeSwitch.active{
background: #030e2a;
}
.darkModeSwitch.active::after{
left:unset;
right:0;
}