-
Notifications
You must be signed in to change notification settings - Fork 219
/
NAVBAR updation
108 lines (93 loc) · 2.05 KB
/
NAVBAR updation
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
99
100
101
102
103
104
105
106
107
108
/* General Navbar Styles */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px; /* Reduced padding for compactness */
background-color: #333; /* Adjust color if necessary */
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
}
/* Logo Section */
.logo-container {
display: flex;
align-items: center;
}
.logo-image {
width: 40px; /* Reduced size for logo */
height: 40px;
margin-right: 10px; /* Space between logo and text */
}
.logo {
color: white;
font-size: 1.5rem; /* Adjusted font size */
}
/* Nav Links */
.nav-links {
display: flex;
list-style-type: none;
margin: 0;
}
.nav-links li {
margin-left: 20px; /* Add spacing between links */
}
.nav-links a {
color: white;
text-decoration: none;
font-size: 1rem; /* Adjusted font size */
display: flex;
align-items: center;
}
.nav-links a i {
margin-right: 5px; /* Space between icon and text */
}
/* Dark Mode Toggle Button */
#darkModeToggle {
background-color: transparent;
border: none;
color: white;
cursor: pointer;
font-size: 1.5rem; /* Slightly larger for clarity */
}
/* Menu Toggle for Mobile */
.menu-toggle {
display: none; /* Hidden on larger screens */
flex-direction: column;
cursor: pointer;
}
.menu-toggle .bar {
width: 25px;
height: 3px;
background-color: white;
margin: 3px 0;
}
/* Responsive Navbar */
@media (max-width: 768px) {
.nav-container {
display: none; /* Hide menu by default on mobile */
}
.menu-toggle {
display: flex; /* Show menu toggle on mobile */
}
.navbar.active .nav-container {
display: flex;
flex-direction: column;
position: absolute;
top: 60px;
right: 0;
width: 100%;
background-color: #333;
padding: 10px;
}
.nav-links {
flex-direction: column;
width: 100%;
}
.nav-links li {
margin-left: 0;
padding: 10px 0;
text-align: center;
}
}