MediaWiki:Navbar.css: Difference between revisions
From The Seven Sages of Rome
No edit summary Tag: Manual revert |
No edit summary |
||
| (13 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
#mw-navigation { | #mw-navigation { | ||
z-index: 999; | z-index: 999; | ||
background-color: | background-color: #FCFCFA !important; | ||
padding: 0.5rem 2rem !important; | padding: 0.5rem 2rem !important; | ||
} | } | ||
| Line 9: | Line 9: | ||
#mw-navigation { | #mw-navigation { | ||
z-index: 999; | z-index: 999; | ||
background-color: | background-color: #FCFCFA !important; | ||
padding: 0.5rem 0.5rem !important; | padding: 0.5rem 0.5rem !important; | ||
} | } | ||
| Line 16: | Line 16: | ||
/* Top tier navbar styling */ | /* Top tier navbar styling */ | ||
.navbar-top { | .navbar-top { | ||
background-color: | background-color: #FCFCFA !important; | ||
border-bottom: 1px solid #e5e7eb; | border-bottom: 1px solid #e5e7eb; | ||
padding: 0.5rem 2rem; | padding: 0.5rem 2rem; | ||
z-index: 1000; | z-index: 1000; | ||
} | |||
.navbar-top .navbar-collapse { | |||
align-items: end !important; | |||
} | |||
#mv-navigation > .navbar-collapse > .navbar-nav > div:nth-child(2) > a { | |||
font-weight: 800 !important; | |||
} | } | ||
| Line 54: | Line 62: | ||
/* Second tier navbar (main MediaWiki navbar) - white background with borders */ | /* Second tier navbar (main MediaWiki navbar) - white background with borders */ | ||
.sticky-top:not(.navbar-top) { | .sticky-top:not(.navbar-top) { | ||
background-color: | background-color: #FCFCFA !important; | ||
border-bottom: 1px solid #e5e7eb; | border-bottom: 1px solid #e5e7eb; | ||
top: 0; | top: 0; | ||
| Line 62: | Line 69: | ||
.p-navbar { | .p-navbar { | ||
background-color: | background-color: #FCFCFA !important; | ||
} | } | ||
| Line 132: | Line 139: | ||
padding-right: 0.5rem; | padding-right: 0.5rem; | ||
} | } | ||
} | |||
#mw-navigation .navbar-nav.right .nav-item:nth-of-type(2) > .nav-link { | |||
font-weight: 600; | |||
} | } | ||
Latest revision as of 13:27, 13 January 2026
/* Base navbar styling */
#mw-navigation {
z-index: 999;
background-color: #FCFCFA !important;
padding: 0.5rem 2rem !important;
}
@media (max-width: 799px){
#mw-navigation {
z-index: 999;
background-color: #FCFCFA !important;
padding: 0.5rem 0.5rem !important;
}
}
/* Top tier navbar styling */
.navbar-top {
background-color: #FCFCFA !important;
border-bottom: 1px solid #e5e7eb;
padding: 0.5rem 2rem;
z-index: 1000;
}
.navbar-top .navbar-collapse {
align-items: end !important;
}
#mv-navigation > .navbar-collapse > .navbar-nav > div:nth-child(2) > a {
font-weight: 800 !important;
}
@media (max-width: 799px){
.navbar-top {
padding: 0.5rem 0.5rem;
}
}
.navbar-top .navbar-brand {
font-family: 'Playfair Display', Georgia, serif;
font-size: 1.25rem;
font-weight: 400;
color: #000000;
}
.navbar-top .nav-link {
color: black !important;
padding: 0.5rem 1rem;
text-decoration: none;
}
.navbar-top .nav-link:hover {
color: black !important;
font-weight: 600 !important;
}
.navbar-top .nav-link:active {
color: black !important;
background: transparent !important;
font-weight: 600 !important;
}
/* Second tier navbar (main MediaWiki navbar) - white background with borders */
.sticky-top:not(.navbar-top) {
background-color: #FCFCFA !important;
border-bottom: 1px solid #e5e7eb;
top: 0;
z-index: 998;
}
.p-navbar {
background-color: #FCFCFA !important;
}
.p-navbar.scrolled {
border-bottom: 1px solid #e5e7eb;
}
.p-navbar .nav-link {
color: black !important;
}
.p-navbar .nav-link:hover {
color: black !important;
font-weight: 600 !important;
}
.p-navbar .nav-link:active {
color: black !important;
background: transparent !important;
font-weight: 600 !important;
}
.p-navbar .navbar-toggler,
.navbar-top .navbar-toggler {
color: rgb(0, 0, 0) !important;
border-color: rgba(0, 0, 0, 0.5) !important;
}
/* Custom navbar breakpoint - ONLY for second tier navbar */
@media (min-width: 1350px){
.sticky-top:not(.navbar-top).navbar-expand-custom {
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
}
.sticky-top:not(.navbar-top).navbar-expand-custom .navbar-nav {
flex-direction: row;
}
.sticky-top:not(.navbar-top).navbar-expand-custom .dropdown-menu {
position: absolute;
}
.sticky-top:not(.navbar-top).navbar-expand-custom .nav-link {
padding-right: .5rem;
padding-left: .5rem;
}
.sticky-top:not(.navbar-top).navbar-expand-custom > .container {
flex-wrap: nowrap;
}
.sticky-top:not(.navbar-top).navbar-expand-custom .navbar-collapse {
display: flex !important;
flex-basis: auto;
}
.sticky-top:not(.navbar-top).navbar-expand-custom .navbar-toggler {
display: none;
}
}
/* Apply consistent padding to both navbars */
.navbar-top .container,
.navbar-horizontal .container {
padding-left: 2rem;
padding-right: 2rem;
}
@media (max-width: 799px){
.navbar-top .container,
.navbar-horizontal .container {
padding-left: 0.5rem;
padding-right: 0.5rem;
}
}
#mw-navigation .navbar-nav.right .nav-item:nth-of-type(2) > .nav-link {
font-weight: 600;
}