MediaWiki:Navbar.css: Difference between revisions
From The Seven Sages of Rome
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
/* Animated underline for nav links */ | /* Animated underline for nav links */ | ||
.navbar .nav-link { | .p-navbar .nav-link { | ||
color: black !important; | color: black !important; | ||
position: relative; | position: relative; | ||
Line 16: | Line 16: | ||
} | } | ||
.navbar .nav-link::after { | .p-navbar .nav-link::after { | ||
content: ''; | content: ''; | ||
position: absolute; | position: absolute; | ||
Line 27: | Line 27: | ||
} | } | ||
.navbar .nav-link:hover::after { | .p-navbar .nav-link:hover::after { | ||
width: 100%; | width: 100%; | ||
} | } |
Revision as of 12:12, 12 March 2025
#mw-navigation {
z-index: 999;
border-bottom: 1px solid rgba(255, 255, 255, 0.5);
background-color: rgba(255, 255, 255, 0.2) !important;
backdrop-filter: blur(20px) saturate(160%) contrast(45%) brightness(140%) !important;
-webkit-backdrop-filter: blur(20px) saturate(160%) contrast(45%) brightness(140%);
}
/* Animated underline for nav links */
.p-navbar .nav-link {
color: black !important;
position: relative;
text-decoration: none;
padding-bottom: 2px; /* Space for the underline */
}
.p-navbar .nav-link::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: 0;
left: 0;
background-color: black !important;
transition: width 0.3s ease-in-out;
}
.p-navbar .nav-link:hover::after {
width: 100%;
}
/* Custom navbar breakpoint */
@media (min-width: 1350px){
.navbar-expand-custom {
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
}
.navbar-expand-custom .navbar-nav {
flex-direction: row;
}
.navbar-expand-custom .dropdown-menu {
position: absolute;
}
.navbar-expand-custom .nav-link {
padding-right: .5rem;
padding-left: .5rem;
}
.navbar-expand-custom > .container {
flex-wrap: nowrap;
}
.navbar-expand-custom .navbar-collapse {
display: flex!important;
flex-basis: auto;
}
.navbar-expand-custom .navbar-toggler {
display: none;
}
}