MediaWiki:Navbar.css

From The Seven Sages of Rome
Revision as of 19:51, 23 March 2025 by Noeth (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
#mw-navigation {
	z-index: 999;
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
	background-color: rgba(255, 255, 255, 0.2) !important;
	padding: 0.5rem 2rem !important;
}

.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 {
	color: rgb(0, 0, 0) !important;
	border-color: rgba(0, 0, 0, 0.5) !important;
}

/* 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;
    }
}