« MediaWiki:Chameleon.css » : différence entre les versions
De Wiki Campus Cyber
(.p-navbar .navbar-nav .dropdown-menu > div > a:last-child:first-child:hover) |
(hover) |
||
Ligne 36 : | Ligne 36 : | ||
} | } | ||
/* buttons :hover */ | /* buttons :hover */ | ||
#mw-navigation.p-navbar .mw-list-item | #mw-navigation.p-navbar .mw-list-item a.nav-link:hover, | ||
#mw-navigation.p-navbar .nav-item | #mw-navigation.p-navbar .nav-item a.nav-link:hover { | ||
background-color: #4042cc; | background-color: #4042cc; | ||
} | } |
Version du 9 mai 2022 à 15:02
/* ***** GENERAL ***** */ @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap'); *:not(.editor *) { font-family: 'Roboto', sans-serif; } /* ***** TOP NAVBAR ***** */ /* navbar */ nav#mw-navigation.p-navbar { background-color: transparent; } .p-navbar.collapsible .navbar-nav { width: 100%; } /* logo */ .p-navbar .navbar-brand.p-logo { height: 100%; padding-top: 0.3125rem; } /* navbar div */ .p-navbar.collapsible .navbar-nav > div:not(:last-child) { width: 100%; text-align: center; } .p-navbar.collapsible .navbar-nav > div:last-child { width: 10%; height: 40px; display: flex; align-items: center; justify-content: center; } /* links -> buttons */ #mw-navigation.p-navbar a.nav-link { background-color: #2e3094; color: white !important; transition: .25s; font-size: 1rem; } /* buttons :hover */ #mw-navigation.p-navbar .mw-list-item a.nav-link:hover, #mw-navigation.p-navbar .nav-item a.nav-link:hover { background-color: #4042cc; } .p-navbar .navbar-nav .dropdown-menu > div > a:last-child:first-child:hover{ background-color: #4042cc; } /* Link groupe de travail */ a.nav-link.n-Groupes-de-travail { white-space: nowrap; } /* EchoIcons */ ul.navbar-tools.echo-icons { display: none; } /* PersonalToolsIcon */ a.navbar-userloggedin:before { margin-right: 0; color: white; } .navbar-tools.navbar-nav { background-color: #c2272f; } /* Dropdown menu */ div.dropdown-menu { background: none; border: none; box-shadow: none; } /* ** RESPONSIVE ** */ @media (max-width: 768px) { /* navbar */ nav#mw-navigation.p-navbar { margin-top: 0 !important; } /* Navbar Dropdown */ .navbar-tool.dropdown { margin: 0 !important; } .p-navbar.collapsible .navbar-nav > div:last-child { margin-left: 90%; } } @media (max-width: 992px) { /* buttons :hover */ #mw-navigation.p-navbar a.nav-link { font-size: .8rem; } .p-navbar.collapsible .navbar-nav > div:last-child { width: 10%; height: fit-content; } }