-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnavbar.css
More file actions
80 lines (71 loc) · 1.41 KB
/
navbar.css
File metadata and controls
80 lines (71 loc) · 1.41 KB
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
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
background: rgba(18, 18, 18, 0.95);
backdrop-filter: blur(10px);
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 1000;
}
.nav-brand {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--primary-color);
font-size: 1.5rem;
font-weight: bold;
}
.nav-menu {
display: flex;
gap: 2rem;
list-style: none;
}
.nav-menu a {
color: var(--text-color);
text-decoration: none;
transition: color 0.3s ease;
}
.nav-menu a:hover {
color: var(--primary-color);
}
.nav-toggle {
display: none;
flex-direction: column;
gap: 6px;
background: none;
border: none;
cursor: pointer;
padding: 5px;
}
.nav-toggle span {
display: block;
width: 25px;
height: 2px;
background-color: var(--primary-color);
transition: all 0.3s ease;
}
@media (max-width: 768px) {
.nav-toggle {
display: flex;
}
.nav-menu {
position: fixed;
top: 70px;
left: 0;
right: 0;
background: rgba(18, 18, 18, 0.95);
backdrop-filter: blur(10px);
flex-direction: column;
padding: 2rem;
gap: 1.5rem;
transform: translateY(-150%);
transition: transform 0.3s ease;
}
.nav-menu.active {
transform: translateY(0);
}
}