-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
98 lines (82 loc) · 1.21 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
92
93
94
95
96
97
98
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: Arial, sans-serif;
font-size: 16px;
line-height: 1.5;
background-color: white;
color: black;
}
body.dark-mode {
background-color: black;
color: white;
}
header,
nav ul,
nav li,
nav a,
main,
section,
section h2,
footer {
background-color: white;
color: black;
}
header.dark-mode,
nav ul.dark-mode,
nav li.dark-mode,
nav a.dark-mode,
main.dark-mode,
section.dark-mode,
section h2.dark-mode,
footer.dark-mode {
background-color: black;
color: white;
}
header {
padding: 20px;
}
header h1 {
font-size: 36px;
margin: 0;
}
nav ul {
list-style: none;
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 10px;
}
nav li {
margin: 0 10px;
}
nav a {
text-decoration: none;
color: #333;
padding: 10px;
}
nav a:hover {
background-color: #333;
color: white;
}
main {
padding: 20px;
}
section {
margin-bottom: 20px;
}
section h2 {
font-size: 24px;
margin-bottom: 10px;
}
footer {
padding: 20px;
text-align: center;
}
.dark-mode nav a:hover {
background-color: white;
color: black;
}