MediaWiki:Chameleon.css
De Wiki Campus Cyber
Note : après avoir publié vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.
- Firefox / Safari : maintenez la touche Maj (Shift) en cliquant sur le bouton Actualiser ou appuyez sur Ctrl + F5 ou Ctrl + R (⌘ + R sur un Mac).
- Google Chrome : appuyez sur Ctrl + Maj + R (⌘ + Shift + R sur un Mac).
- Internet Explorer / Edge : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl + F5.
- Opera : appuyez sur Ctrl + F5.
/**********************************/ /* ***** GADGET (Exemple ?) ***** */ /**********************************/ /* Sticky menu */ /* .navbarRow.row { position: sticky; top: 0; z-index: 1000; } nav#mw-navigation.p-navbar { background-color: white !important; margin-top: 0 !important; padding-top: 0.5rem; } */ /**************************/ /* **** PAGE HEADER ***** */ /**************************/ .pageHeader { display: grid; grid-template-columns: 50% 50%; justify-items: center; } @media (max-width: 992px) { .pageHeader { display: block; } } .infobox { order: 2; } .infobox tbody { height: fit-content; } /**************************/ /* ** TABLE OF CONTENT ** */ /**************************/ .toc { display: block; padding: 7px; margin: 1rem; width: fit-content; max-width: 500px; max-height: 500px !important; overflow-y: auto; } @media (max-width: 992px) { .toc { margin: 1rem auto } } /* Texte du toc */ .tocnumber, .toctext { display: inline; } /**************************/ /* ***** INFOBOXES ****** */ /**************************/ .infobox { color: black; background: none; border: none; padding: 0; display: flex; justify-content: flex-end; } @media (max-width: 992px) { .infobox { justify-content: center; } } @media (max-width: 355px) { .infobox tbody { word-break: break-all; } } /* Tableau */ .infobox tbody { box-shadow: rgb(0 0 0 / 10%) 0px 8px 10px, rgb(0 0 0 / 5%) 0px 6px 6px; padding: 3px 6px; border-radius: 8px; background: hsl(0deg 0% 98%); } /* Titre de l'infobox */ .infobox .title { color: #2e3094; font-size: 1.3rem; } /* Image de l'infobox */ td.image { padding: 0.5rem 0; } /* Modifier l'infobox */ td.modifier { padding-top: 0.5rem; } .infobox tbody .modifier a:before { content: "✒️ "; } /* Description courte */ .shortDescription{ padding: 0.2rem 0 0.4rem; } /* Espace entre les cases */ th:not([colspan="2"]) { padding-right: 8px; } /**************************/ /* ***** 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: var(--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: var(--blueHover); } .p-navbar .navbar-nav .dropdown-menu > div > a:not(.toolboxnoflatten a):last-child:first-child:hover{ background: var(--blue); } /* 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, a.navbar-usernotloggedin:before{ margin-right: 0; color: var(--white); } .navbar-tools.navbar-nav { background-color: var(--red); } .navbar-tools.navbar-nav:hover { background-color: var(--redHover); } div#pt-anonuserpage { color: var(--white); text-align: center; font-weight: bold; font-size: 1rem; } /* Dropdown menu */ .dropdown:hover .dropdown-menu { display: block; } .dropdown-menu:not(.toolboxnoflatten .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(-74%) !important; border-radius: 0; background: var(--red) !important; } .p-navbar .navbar-nav .dropdown-menu > div > a:first-child:last-child { color: var(--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:not(.dropdown-menu), .p-navbar.collapsible .navbar-nav > div:last-child > div a { min-width: 30px; width: 100%; text-align: center; } .p-navbar .navbar-nav .dropdown-menu > div > a:not(.toolboxnoflatten a):last-child:first-child:hover { background: var(--redHover); color: var(--white); } /* ** RESPONSIVE ** */ /* Tablette */ @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; } } /* Mobile */ @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%; } #mw-navigation.p-navbar a.nav-link:not(.mw-list-item a) { font-size: 1rem; font-weight: bold; } /* User Dropdown */ .p-personal-tools.dropdown-menu { transform: translateX(-45%) !important; } } /* ***** TOP SEARCHBAR ***** */ .searchbarRow.row { padding: 0 15px; } /* Search field */ input#searchInput { border-radius: 0; } /* Search button */ button#searchGoButton { background: var(--blue); color: var(--white); border-radius: 0; } /*************************************/ /* ***** BOTTOM FOOTER TOOLBOX ***** */ /*************************************/ .toolboxnoflatten .nav-link { color: initial !important; } @media (max-width:767px) { #t-upload, #t-specialpages, #t-print, #t-permalink, #t-info, #t-cite, #t-recentchangeslinked, #t-smwbrowselink, #t-contributions, #t-log, #t-blockip, #t-userrights, #t-upload, #t-specialpages, #t-print, #t-permalink, #t-info, #t-smwbrowselink, .dropdown-menu #t-whatlinkshere { display: none; } .toolboxnoflatten #t-upload, .toolboxnoflatten #t-specialpages, .toolboxnoflatten #t-print, .toolboxnoflatten #t-permalink, .toolboxnoflatten #t-info, .toolboxnoflatten #t-cite, .toolboxnoflatten #t-recentchangeslinked, .toolboxnoflatten #t-smwbrowselink { display: block; } }