-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNavbar.css
More file actions
49 lines (40 loc) · 775 Bytes
/
Copy pathNavbar.css
File metadata and controls
49 lines (40 loc) · 775 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
/* Navbar.css */
nav {
background-color: rgba(0, 0, 0, 0.5);
padding: 1rem;
display: flex;
justify-content: center;
}
nav ul {
display: flex;
list-style: none;
margin: 0;
padding: 0;
}
nav li {
margin: 0 0.5rem;
}
nav a {
display: inline-block;
text-decoration: none;
color: white;
padding: 0.5rem 1rem;
transition: background-color 0.3s, color 0.3s;
}
nav a:hover,
nav a.active {
background-color: rgba(255, 255, 255, 0.1);
color: #84e4ec;
}
/* Add the following media query for mobile devices */
@media (max-width: 768px) {
nav ul {
flex-direction: column;
}
nav li {
margin: 0.5rem 0;
}
nav a {
padding: 0.5rem;
}
}