-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
83 lines (73 loc) · 1.57 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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root{
--primary-text-color: #222;
--secondary-text-color: #444;
--card-background-color: #fff;
--background-color: #ddd;
--btn-background: #333;
--btn-color: #f2f2f2;
--default-margin: 20px;
--toggle-left: 0;
}
.dark{
--primary-text-color: #fff;
--secondary-text-color: #ddd;
--card-background-color: #333;
--background-color: #111;
--btn-background: #ddd;
--btn-color: #333;
}
.container{
min-height: 100vh;
padding: 40px;
background-color: var(--background-color);
}
.box{
padding: var(--default-margin);
background-color: var(--card-background-color);
margin-block: var(--default-margin);;
border-radius: var(--default-margin);;
}
.container h1{
text-align: center;
color: var(--primary-text-color);
}
.box h2{
margin-bottom: var(--default-margin);
color: var(--primary-text-color);
}
.box p{
color: var(--secondary-text-color);
}
.toggle{
display: flex;
width: 50px;
background-color: white;
border-radius: 50px;
height: 20px;
position: relative;
transition: 0.4s ease-in-out;
cursor: pointer;
}
.toggle::before{
content: "";
width: 100%;
background-color: var(--btn-background);
border-radius: 50px;
height: 20px;
transition: 0.4s ease-in-out;
}
.toggle::after{
content: "";
width: 20px;
background-color: var(--btn-color);
border-radius: 50px;
height: 20px;
position: absolute;
left: var(--toggle-left);
transition: 0.4s ease-in-out;
}