-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.css
72 lines (70 loc) · 1.31 KB
/
theme.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
.light-dark-theme{
display: grid;
grid-template-columns: auto;
justify-content: end;
margin: 20px;
}
label{
background-color: #111;
height:26px;
width: 50px;
display: flex;
border-radius: 50px;
align-items: center;
justify-content: space-between;
padding: 5px;
position: relative;
transform: scale(1.5);
}
.fa-moon{
color:#f1c40f
}
.fa-sun{
color:#f39c12
}
.ball{
width: 22px;
height: 22px;
background-color: #fff;
position: absolute;
top: 2px;
left: 2px;
border-radius: 50%;
transition: transform 0.2s linear;
}
.checkbox{
opacity: 0;
position: absolute;
}
.checkbox:checked + .label .ball{
transform: translateX(24px);}
body.dark{
background-color: #2e354d;
transition: background 0.2s linear;
}
body.dark h4{
color:rgb(231, 240, 239);
}
body.dark footer{
color:rgb(231, 240, 239);
}
body.dark .intro h1{
color:rgb(231, 240, 239);
}
body.dark .main-content-container{
background-color: #2e354d;
color: rgb(231, 240, 239);
}
body.dark .main-content-container p{
color:rgb(231, 240, 239); ;
}
body.dark .third-side-bar{
background-color:#2e354d;
}
body.dark .third-side-bar p{
color:rgb(231, 240, 239);
}
body.dark .icons{
color: #fff;
}
/* End of code for changing website theme */