-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.css
71 lines (61 loc) · 1.13 KB
/
app.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
*{
font-family: 'Kolker Brush', cursive;
box-sizing: border-box;
}
body.dark {
background-color: #3C4048;
transition: background 0.6s linear;
}
body.dark h1{
color: #EEEEEE;
}
.header{
font-size: 59px;
font-weight: 500;
text-align: center;
margin-top: 9rem;
}
.label{
height: 49px;
width: 109px;
background-color: #3F3B6C;
display: flex;
border-radius: 50px;
align-items: center;
justify-content: space-between;
padding: 5px;
position: relative;
}
.main-content {
display: flex;
justify-content: center;
align-items: center;
margin-top: 9rem;
}
.fa-moon {
color: #EEEEEE;
font-size: 23px;
margin-left: 0.5rem;
}
.fa-sun {
color: #FD841F;
font-size: 23px;
margin-right: 0.5rem;
}
.ball {
background-color: #FFDDD2;
position: absolute;
height: 39px;
width: 39px;
top: 4px;
left: 4px;
border-radius: 50%;
transition: transform 0.6s linear;
}
.checkbox{
opacity: 0;
position: absolute;
}
.checkbox:checked + .label .ball{
transform: translateX(59px);
}