mirror of
https://github.com/kevinveenbirkenbach/homepage.veen.world.git
synced 2025-04-22 21:22:24 +02:00
31 lines
697 B
CSS
31 lines
697 B
CSS
/* Top-level dropdown menu */
|
|
.nav-item .dropdown-menu {
|
|
position: absolute; /* Important for positioning */
|
|
top: 100%; /* Default opening direction: downwards */
|
|
left: 0;
|
|
z-index: 1050; /* Ensures the menu appears above other elements */
|
|
}
|
|
|
|
/* Submenu position */
|
|
.dropdown-submenu > .dropdown-menu {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 100%; /* Opens to the right */
|
|
z-index: 1050;
|
|
}
|
|
|
|
/* Ensure a smooth transition */
|
|
.dropdown-menu {
|
|
transition: all 0.3s ease-in-out;
|
|
}
|
|
|
|
nav.navbar.menu-header {
|
|
border-bottom-left-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
}
|
|
|
|
nav.navbar.menu-footer {
|
|
border-top-left-radius: 0;
|
|
border-top-right-radius: 0;
|
|
}
|