MediaWiki:Common.css

De Documentation

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.
/* Le CSS placé ici sera appliqué à tous les habillages. */

/* --- Navbar --- */

#mw-header-container {
  height: 50px;
  position: static;
  background-color: #864da9;
}

#mw-related-navigation {
  flex: 0 0 14em;
  width: 14em;
}

#p-banner {
  font-family: 'Times',serif !important;
  font-variant: inherit !important;
  font-size: 27.5px !important;
  letter-spacing: 0.4px;
}

#mw-header-nav-hack {
  background-color: #f2f2f2;
}
#mw-header-hack {
  box-shadow: none;
}
#site-navigation > h2 > span,
#site-tools > h2 > span,
#page-tools > h2 > span {
  color: #404040;
  font-weight: bold;
  font-size: 14px;
  position: relative;
  top: -4px;
}
#site-navigation > h2::after,
#site-tools > h2::after,
#page-tools > h2::after {
  position: relative;
  top: -2px;
}

@media screen and (min-width: 1340px) {
  #mw-site-navigation { width:15.5em; flex:0 0 15.5em; }
  .showNavigationTop { top:0; position:sticky; height:500px; }
  #user-tools { min-width: 215px; }
}

@media screen and (min-width: 851px) and (max-width: 1099px) {
  #mw-content { margin-top: 30px; }
  #mw-header-nav-hack { border-bottom: 2px solid #555; box-shadow: none; }
  #mw-header-hack { margin-top: 0; }
}

@media screen and (min-width: 850px) and (max-width: 851px) {
  #p-search, #p-logo, #personal { display: none !important; }
}

@media screen and (max-width: 850px) {
    #site-navigation > h2 {
      background-color: #a97bc6;
      border-radius: 6px;
      padding: 2px 5px 7px;
      transform: scale(0.9);
      top: 13px;
      left: 20px;
    }
    #site-navigation > h2:hover {
      filter: invert(10%);
    }
    #site-navigation > h2::after {
      display: none;
    }
    #simpleSearch { 
      max-width: inherit !important; 
    }
    #personal > h2 {
      margin-top: -4px;
      margin-right: 5px;
    }
    #personal > h2 > span {
      background-image: url(/documentation/skins/Timeless/resources/images/user-grey.svg);
      width: 30px;
      height: 38px;
      background-position: center center;
      position: absolute;
      filter: invert(100%);
    }
    #site-tools > h2 {
      filter: invert(100%);
    }
    body {
      font-size: 1.1em;
    }
    #content {
      padding-left: 4px;
      padding-right: 2px;
    }
    #personal > h2 > span  {
      transform: scale(1.2);
    }
    #p-banner {
      margin-top: 3px;
      margin-left: -10px;
    }
    h1 .numToc { 
      font-size: 30px !important; 
    }
    #toc {
      padding: 12px 5px;
    }
}

#p-logo {
  pointer-events: none;
}

#tinyNavbar {
  display: none;
  height: 40px;
  background-color: #864da9;
  top: 0;
  position: sticky;
  z-index: 94;
  text-align: center;
}
#tinyNavbar i {
  color: white;
  font-size: 18px;
  top: 5px;
  position: relative;
  cursor: pointer;
  border: 2px solid white;
  padding: 4px 9px;
  border-radius: 4px;
}
@media screen and (min-width: 1100px) {
  #tinyNavbar { display: none !important; }
}

#btnIndex {
  display: none;
  height: 33px;
  background-color: #eaecf0;
  top: 12px;
  left: 19px;
  position: fixed;
  z-index: 94;
}
#btnIndex i {
  color: #444;
  font-size: 17px;
  border: 1px solid #666;
  cursor: pointer;
  padding: 7px 9px 5px;
  border-radius: 4px;
  text-align: center;
  width: 48px;
  height: 20px;
}
@media screen and (max-width: 1100px) {
  #btnIndex { display: none !important; }
}

@media print {
  #btnIndex, #tinyNavbar { display: none !important }
  img { max-width: 670px !important; height: auto !important; }
}

#mw-toc-heading { 
  font-size: 17px;
  color: #444;
  line-height: 24px;
  position: relative;
  padding-left: 9px;
  top: -7px;
}
#toc .toctogglelabel {
  display: none;
}
#mw-toc-heading::before {
  color: #555;
  font-size: 16px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f0ca";
  position: relative;
  left: -6px;
}

.color-bar .color-left, 
.color-bar .color-middle, 
.color-bar .color-right {
  display: none;
}

#personal > h2 {
  margin-top: -2px;
}
#personal > h2 > span {
  color: white;
}
#personal h2::after {
  filter: invert(100%);
}
#personal h2 {
  background-image: none;
}
#personal-inner {
  z-index: 950 !important;
}

/* --- Search input --- */

#simpleSearch {
  max-width: 300px;
  margin-left: auto;
  margin-right: 0;
  border-radius: 4px;
}
#searchInput {
  height: 30px;
  padding-top: 3px;
}
#searchInput::placeholder  {
  opacity: 0;
}
#searchInput.showText::placeholder  {
  opacity: 0.5;
}
#searchButton:hover {
  filter: invert(30%);
}
#searchButton {
  top: -1px;
}

#p-banner {
  color: white !important;
}

#p-banner:hover {
  text-decoration: none;
}

#search .mw-search-visualclear,
#search .mw-search-profile-tabs {
  display: none;
}


/* --- Footer --- */

#mw-content-container {
  border-bottom: solid 2px #979797;
  min-height: calc(100vh - 180px);
  margin-top: 0px;
  padding-bottom: 20px;
  background-image: none !important;
}

#footer-info {
  color: #ccc;
}
#footer-places {
  visibility: hidden;
}

#footer-poweredbyico {
  display: none;
}

/* --- User anonyme --- */

html:not(.login-ok) #page-tools,
html:not(.login-ok) #catlinks-sidebar,
html:not(.login-ok) #mw-page-header-links,
html:not(.login-ok) #p-namespaces,
html:not(.login-ok) #n-Aide-MediaWiki,
html:not(.login-ok) #n-recentchanges,
html:not(.login-ok) #site-tools,
html:not(.login-ok) #p-views,
html:not(.login-ok) #personal > h2 > span {
  display: none
}

html:not(.login-ok) .mw-file-element,
html:not(.login-ok) .mw-file-description {
  pointer-events: none;
}

html:not(.login-ok) #personal {
  padding-left: 2px;
}
html:not(.login-ok) #firstHeading {
  margin-bottom: 25px;
}


/* --- Modal--- */

.lgModal {
  display: none;
  position: fixed;
  z-index: 95;
  padding-top: 95px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
  background-color: rgba(0, 0, 0, 0.4);
}
.lgModal .modal-content {
  background-color: white;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  max-width: 560px;
  height: 595px;
}
.lgModal .btnClose {
  color: #777;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.lgModal .btnClose:hover, .lgModal .btnClose:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.lgModal h3 {
  color: black;
  margin: 7px 0 14px;
}
.lgModal table th {
  background-color: #92B207;
  font: bold 12px/18px Arial,sans-serif;
  padding: 4px;
  text-shadow: 0 1px 0 rgba(204, 204, 204, 0.7);
  border-color: #cdcdcd;
  border-style: solid;
  border-width: 0 1px 1px 0;
  text-align: left;
  width: 350px;
}
.lgModal table td {
  font: 12px/18px Arial,sans-serif;
  padding: 4px;
  border-color: #cdcdcd;
  border-style: solid;
  border-width: 0 1px 1px 0;
  text-align: center;
  width: 50px;
}
.lgModal iframe {
  display: block;
  border: none;
  width: 100%;
  height: 570px;
}

.btnLinkModal {
  cursor: pointer;
  color: #fff;
  background-color: #007bff;
  border-radius: .25rem;
  display: inline-block;
  padding: 6px 11px;
  margin: 5px 0px;
}
.btnLinkModal:hover {
  opacity: 0.8;
}

/* --- Block : note, warning, important --- */

.app-message {
  clear: both;
  padding: 12px;
  line-height: 24px;
  margin: 10px 0 24px;
}

.app-message > .app-title {
  font-weight: 700;
  display: block;
  color: #fff;
  padding: 5px 12px;
  margin: -12px -12px 12px;
}

.app-note > .app-title {
  background: #6ab0de;
}
.app-note {
  background: #e7f2fa;
}

.app-warning > .app-title {
  background: #f0b37e;
}
.app-warning {
  background: #ffedcc;
}

.app-important > .app-title {
  background: #1abc9c;
}
.app-important {
  background: #dbfaf4;
}

.app-message > .app-title::before {
  content:url(/documentation/resources/assets/exclamation-circle.svg);
  display: inline-block;
  width: 17px;
  margin-left: 4px;
  position: relative;
  top: 3px;
  left: -4px;
}

.app-message p:last-child {
   margin-bottom:0
}

.app-message p {
  line-height: 24px;
  font-size: 16px;
  margin: 0 0 24px;
}


/* --- Dropdown FR/EN --- */

.dropdownBtn {
  cursor: pointer;
  position: relative;
  top: 6px;
  left: 1px;
}
.dropdownBtn:hover {
  opacity: 0.8;
}
.dropdownBtn .fa-caret-down {
  font-size: 13px;
  margin-left: 4px;
  color: #555;
}
.imageFlag {
  width: 22px;
  opacity: 0.9;
  margin-top: -5px;
}

.dropdownMenu {
  position: absolute;
  z-index: 1000;
  display: none;
  font-size: 16px;
  white-space: nowrap;
  background-color: #fbf1e5;
  padding: 8px 13px 9px;
  margin-left: 4px;
  margin-top: 2px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  border: 1px solid #ccc;
  border-radius: 3px;
}

body > .skiptranslate {
  display: none 
}
body { 
  top: 0px !important;
}
.translate_top_bar {
  position: relative;
  padding: 7px;
  font-size: 19px;
  text-align: center;
  color: white;
  background-color: #84affb;
  border-bottom: 2px solid #828282;
  height: 25px;
}


/* --- Other --- */

.mw-body h1.firstHeading {
  border-bottom: solid 4px #cbcfd3;
}

p:not([class]) + ul {
  position: relative;
  top: -8px;
}
.app-message p:not([class]) + ul {
  top: -14px;
}

.numToc {
  color: #666; 
  font-size: smaller;
  position: relative;
  top: -1px; 
  margin-right: 7px;
}
h1 .numToc {
  font-size: 27px;
}
h2 .numToc {
  font-size: 25px;
}

.mw-userlogin-help {
  display: none;
}

#feed-atom,
#ca-talk {
  display: none;
}