-
Notifications
You must be signed in to change notification settings - Fork 0
/
Navbar.css
67 lines (58 loc) · 1.09 KB
/
Navbar.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
.navbar {
background-color: #646cff;
color: #fff;
padding: 10px 20px;
display: flex;
justify-content: space-between; /* Changed from 'start' to 'space-between' */
align-items: center; /* Align items to center */
height: 64px; /* Changed height to 64px for better visibility */
}
.menu {
display: none;
position: absolute;
top: 64px; /* Changed from 40px to 64px to match navbar height */
left: 0;
background-color: #646cff;
width: 100%;
z-index: 1000;
padding: 10px 0;
}
.menu.show {
display: block;
}
.hamburger-menu {
display: flex;
flex-direction: column; /* Changed from 'row' to 'column' */
cursor: pointer;
}
.menu h2 {
margin: 0;
}
.menu ul {
list-style: none;
padding: 0;
margin: 0;
}
.menu li {
margin-bottom: 10px;
}
.menu a,
.menu button {
color: #fff;
text-decoration: none;
background: none;
border: none;
cursor: pointer;
padding: 4px 8px;
border-radius: 5px;
}
.menu a:hover,
.menu button:hover {
background-color: #646cff;
}
.hamburger-menu .line {
width: 24px;
height: 4px;
background-color: #fff;
margin: 2px 0;
}