« MediaWiki:Chameleon.css » : différence entre les versions
De Wiki Campus Cyber
(.p-navbar.collapsible .navbar-nav > div:last-child) |
(user) |
||
Ligne 2 : | Ligne 2 : | ||
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap'); | @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap'); | ||
*:not(.editor *) { font-family: 'Roboto', sans-serif; } | *:not(.editor *) { font-family: 'Roboto', sans-serif; } | ||
/* ***** TOP NAVBAR ***** */ | /* ***** TOP NAVBAR ***** */ | ||
/* navbar */ | /* navbar */ | ||
nav#mw-navigation.p-navbar { | nav#mw-navigation.p-navbar { | ||
Ligne 11 : | Ligne 13 : | ||
width: 100%; | width: 100%; | ||
} | } | ||
/* logo */ | /* logo */ | ||
.p-navbar .navbar-brand.p-logo { | .p-navbar .navbar-brand.p-logo { | ||
Ligne 16 : | Ligne 19 : | ||
padding-top: 0.3125rem; | padding-top: 0.3125rem; | ||
} | } | ||
/* navbar div */ | /* navbar div */ | ||
.p-navbar.collapsible .navbar-nav > div:not(:last-child) { | .p-navbar.collapsible .navbar-nav > div:not(:last-child) { | ||
Ligne 21 : | Ligne 25 : | ||
text-align: center; | text-align: center; | ||
} | } | ||
/* links -> buttons */ | /* links -> buttons */ | ||
#mw-navigation.p-navbar a.nav-link { | #mw-navigation.p-navbar a.nav-link { | ||
Ligne 42 : | Ligne 33 : | ||
font-size: 1rem; | font-size: 1rem; | ||
} | } | ||
/* buttons :hover */ | /* buttons :hover */ | ||
#mw-navigation.p-navbar .mw-list-item a.nav-link:hover, | #mw-navigation.p-navbar .mw-list-item a.nav-link:hover, | ||
Ligne 50 : | Ligne 42 : | ||
background: #4042cc; | background: #4042cc; | ||
} | } | ||
/* Link groupe de travail */ | /* Link groupe de travail */ | ||
a.nav-link.n-Groupes-de-travail { | a.nav-link.n-Groupes-de-travail { | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
/* EchoIcons */ | /* EchoIcons */ | ||
ul.navbar-tools.echo-icons { | ul.navbar-tools.echo-icons { | ||
display: none; | display: none; | ||
} | } | ||
/* PersonalToolsIcon */ | /* PersonalToolsIcon */ | ||
a.navbar-userloggedin:before { | a.navbar-userloggedin:before { | ||
Ligne 66 : | Ligne 61 : | ||
background-color: #c2272f; | background-color: #c2272f; | ||
} | } | ||
/* Dropdown menu */ | /* Dropdown menu */ | ||
.dropdown:hover .dropdown-menu { | .dropdown:hover .dropdown-menu { | ||
Ligne 81 : | Ligne 77 : | ||
border:none; | border:none; | ||
} | } | ||
/* Dropdown user */ | /* Dropdown user */ | ||
.p-personal-tools.dropdown-menu { | .p-personal-tools.dropdown-menu { | ||
Ligne 88 : | Ligne 85 : | ||
.p-navbar .navbar-nav .dropdown-menu > div > a:first-child:last-child { | .p-navbar .navbar-nav .dropdown-menu > div > a:first-child:last-child { | ||
color: white; | color: white; | ||
} | |||
.p-navbar.collapsible .navbar-nav > div:last-child { | |||
width: 20%; | |||
margin: 0; | |||
padding: 0; | |||
height: 40px; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
} | |||
.p-navbar.collapsible .navbar-nav > div:last-child > div, | |||
.p-navbar.collapsible .navbar-nav > div:last-child > div a { | |||
width: 100%; | |||
text-align: center; | |||
} | |||
.p-navbar .navbar-nav .dropdown-menu > div > a:last-child:first-child:hover { | |||
background: #e32e38; | |||
} | } | ||
/* ** RESPONSIVE ** */ | /* ** RESPONSIVE ** */ | ||
Ligne 104 : | Ligne 119 : | ||
} | } | ||
} | } | ||
@media (max-width: 992px) { | @media (max-width: 992px) { | ||
/* buttons :hover */ | /* buttons :hover */ |
Version du 9 mai 2022 à 15:30
/* ***** 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; } /* 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: #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 */ .dropdown:hover .dropdown-menu { display: block; } .dropdown-menu { background: none; border: none; margin-top: 0; padding: 0; box-shadow: 2px 5px 8px #6f6f6fba; transition: .25s; } .dropdown-toggle::after { border:none; } /* Dropdown user */ .p-personal-tools.dropdown-menu { transform: translateX(-85%) !important; background: #c2272f; } .p-navbar .navbar-nav .dropdown-menu > div > a:first-child:last-child { color: white; } .p-navbar.collapsible .navbar-nav > div:last-child { width: 20%; margin: 0; padding: 0; height: 40px; display: flex; align-items: center; justify-content: center; } .p-navbar.collapsible .navbar-nav > div:last-child > div, .p-navbar.collapsible .navbar-nav > div:last-child > div a { width: 100%; text-align: center; } .p-navbar .navbar-nav .dropdown-menu > div > a:last-child:first-child:hover { background: #e32e38; } /* ** 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; } }