MediaWiki:Navbar.css: Difference between revisions

From The Seven Sages of Rome
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
#mw-navigation {
#mw-navigation {
z-index: 999;
z-index: 999;
border-bottom: 1px solid rgba(255, 255, 255, 0.5);
background-color: rgba(255, 255, 255, 1) !important;
background-color: rgba(255, 255, 255, 1) !important;
padding: 0.5rem 2rem !important;
padding: 0.5rem 2rem !important;
}
@media (max-width: 799px){
#mw-navigation {
  z-index: 999;
  background-color: rgba(255, 255, 255, 1) !important;
  padding: 0.5rem 0.5rem !important;
}
}
}


.p-navbar.scrolled {
.p-navbar.scrolled {
   border-bottom: 1px solid black;
   border-bottom: 1px solid #e5e7eb;
}
}


Line 51: Line 58:
     }
     }
     .navbar-expand-custom .navbar-collapse {
     .navbar-expand-custom .navbar-collapse {
         display: flex!important;
         display: flex !important;
         flex-basis: auto;
         flex-basis: auto;
     }
     }

Latest revision as of 12:15, 28 March 2025

#mw-navigation {
	z-index: 999;
	background-color: rgba(255, 255, 255, 1) !important;
	padding: 0.5rem 2rem !important;
}

@media (max-width: 799px){
	#mw-navigation {
	  z-index: 999;
	  background-color: rgba(255, 255, 255, 1) !important;
	  padding: 0.5rem 0.5rem !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 {
	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;
    }
}