You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
YOLO/navbar.css

92 lines
1.5 KiB

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 20px;
border-bottom: 2px solid #eee;
background-color: #7986b2;
}
.logo {
display: flex;
align-items: center;
gap: 1rem;
font-size: 1.5rem;
font-weight: bolder;
color: #72c8fd;
}
.logo img {
height: 100px;
width: auto;
}
.nav-links {
display: flex;
gap: 2rem;
}
.nav-links a {
text-decoration: none;
color: #f2efef;
font-size: 1.25rem;
padding: 0.5rem 1rem;
}
.nav-links a:hover {
color: #5aabdd;
}
/* Dropdown container */
.dropdown {
position: relative;
display: inline-block;
}
/* Dropdown menu (hidden by default) */
.dropdown-menu {
display: none;
position: absolute;
top: 100%; /* Position below the dropdown */
left: 0;
background-color: #fff;
min-width: 100px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
z-index: 10;
padding: 0;
border-radius: 5px;
}
/* Menu items */
.dropdown-menu .dropdown-item {
padding: 10px 10px;
text-decoration: none;
color: #333;
display: block;
}
.dropdown-menu .dropdown-item:hover {
background-color: #f0f0f0;
color: #00416a;
}
/* Show the menu on hover */
.dropdown:hover .dropdown-menu {
display: block;
}
/* User icon and name */
.user-icon {
display: flex;
align-items: center;
cursor: pointer;
}
.user-icon i {
margin-right: 5px;
}