Aller au contenu

« MediaWiki:Common.css » : différence entre les versions

De WikiName
Aucun résumé des modifications
Balise : Révoqué
Aucun résumé des modifications
 
(2 versions intermédiaires par le même utilisateur non affichées)
Ligne 404 : Ligne 404 :
     width: 100%;
     width: 100%;
}
}
/* ============================= */
/* ============================= */
/* tool tip sur catégorie */
/* VALEURS NUMÉRIQUES DES TABLEAUX */
/* ============================= */
/* ============================= */


.category-tooltip {
.mw-parser-output table.fandom-table td.pne-number,
     position: absolute;
.mw-parser-output table.wikitable td.pne-number {
    display: none;
     text-align: center !important;
    background: white;
     font-weight: bold !important;
    border: 1px solid #aaa;
    padding: 5px;
     z-index: 9999;
}
}


.category-tooltip img {
/* Masquer le menu latéral par défaut */
     max-width: 200px;
#mw-panel {
     display: none !important;
}
}

Dernière version du 10 août 2026 à 15:54

/* Remplace le nom du wiki par un logo */

.mw-logo-wordmark {
    font-size: 0;
}

.mw-logo-wordmark::after {
    content: "";
    display: inline-block;
    width: 220px;
    height: 60px;
    background-image: url("/wiki/images/c/c1/LOGO_PROJECT_NEW_EARTH_NO_SPIKES_TEXTURED.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

/* ============================= */
/* IMAGE DE FOND GLOBALE */
/* ============================= */

body {
    background-image: url("/wiki/index.php/Special:FilePath/Site-background-light.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}


/* ============================= */
/* STRUCTURE VECTOR TRANSPARENTE */
/* ============================= */

#mw-page-base,
#mw-head-base,
.mw-page-container,
.vector-page-toolbar,
.vector-page-toolbar-container {
    background: transparent !important;
}


/* ============================= */
/* MENU LATERAL */
/* ============================= */

#mw-panel {
    background: transparent !important;
}

#mw-panel a,
.vector-menu-heading,
.vector-menu-content a {
    color: white !important;
}


/* ============================= */
/* HEADER */
/* ============================= */

.vector-page-toolbar a {
    color: white !important;
}


/* ============================= */
/* ONGLETS PAGE */
/* ============================= */

.vector-menu-tabs {
    background: white !important;
}

.vector-menu-tabs a {
    color: black !important;
}

.vector-menu-tabs .selected a {
    color: black !important;
}


/* ============================= */
/* CONTENU */
/* ============================= */

.mw-body,
#content,
.mw-parser-output {
    background: white !important;
}


/* ============================= */
/* RECHERCHE */
/* ============================= */

.vector-search-box,
.vector-search-box-input {
    background: white !important;
    color: black !important;
}


/* ============================= */
/* CATEGORIES */
/* ============================= */

.catlinks {
    background: #f2f2f2 !important;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
}

.catlinks a {
    color: #0645ad !important;
}


/* ============================= */
/* FOOTER */
/* ============================= */

/* supprime la barre bizarre */
.mw-footer-container {
    background: transparent !important;
    border: none !important;
}

/* texte du footer lisible */
#footer,
#footer-info,
#footer-places,
#footer-icons {
    color: white !important;
}

#footer a {
    color: white !important;
}
/* ============================= */
/* SUPPRIME LA BARRE AU DESSUS DU FOOTER */
/* ============================= */

.mw-footer hr,
#footer hr {
    display: none !important;
}


/* ============================= */
/* TEXTE FOOTER EN BLANC */
/* ============================= */

#footer-info,
#footer-info-lastmod,
#footer-info-lastmod a {
    color: white !important;
}

/* ============================= */
/* SUPPRIME LE DEGRADE DU CONTENEUR STICKY */
/* ============================= */

.vector-sticky-pinned-container {
    background: transparent !important;
    box-shadow: none !important;
}
.vector-sticky-pinned-container:before,
.vector-sticky-pinned-container:after {
    display: none !important;
}


/* Centrage visuel définitif des images MediaWiki */

.mw-parser-output figure,
.mw-parser-output figure img,
.mw-parser-output .mw-file-element {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

.mw-parser-output figure figcaption {
    text-align: center;
}

/* Infobox Project : New Earth */

.infobox-pne {
  float: right;
  width: 280px;
  margin: 0 0 1em 1em;
  background: #f8f9fa;
  border: 1px solid #aaa;
  font-size: 0.9em;
}

.infobox-title {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  font-weight: bold;
  padding: 6px;
}

.infobox-image {
  text-align: center;
  padding: 6px;
}

.infobox-image img {
  max-width: 100%;
  height: auto;
}

.infobox-caption {
  font-size: 0.8em;
  color: #555;
}

.infobox-table {
  width: 100%;
  border-collapse: collapse;
}

.infobox-table th {
  background: #ddd;
  text-align: center;
  padding: 4px;
}

.infobox-table td {
  padding: 4px;
  border-top: 1px solid #ccc;
}

/* Icônes inline dans infobox */
.infobox-inline-image img {
  vertical-align: middle;
}

/* Correctif images dans infobox */
.infobox-pne figure,
.infobox-pne .mw-file-element {
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: block;
}

.infobox {
  float: right;
  clear: right;
  width: 260px;
  margin: 0 0 1em 1em;
  background-color: #f8f9fa;
  border: 1px solid #a2a9b1;
  border-spacing: 0;
  font-size: 90%;
}

/* Titre des infobox (Crewmate) */
.infobox > tbody > tr:first-child > th {
  font-size: 1.3em;      /* augmente la taille */
  font-weight: bold;     /* met en gras */
  text-align: center;    /* centré comme Fandom */
  background-color: #eaecf0;
  padding: 8px;
}

/* Barre de titre des infobox (Crewmate) */
.infobox > tbody > tr:first-child > th {
  font-size: 1.4em;
  font-weight: bold;
  text-align: center;
  padding: 10px 6px;

  /* Barre sombre */
  background-color: #2c2f36;
  color: #ffffff;

  /* petit effet propre */
  border-bottom: 2px solid #1f2228;
  letter-spacing: 0.05em;
}

/* empêche la recherche de chevaucher le logo */
.vector-typeahead-search-container {
    max-width: 260px !important;
    margin-left: 80px !important;
}

/* supprime le fond blanc du bloc recherche */
.vector-search-box,
.vector-search-box-vue,
.cdx-typeahead-search {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* ============================= */
/* LIENS HEADER : Parcourir / Catégories */
/* ============================= */

.vector-header-end::before {
    content: "";
    display: inline-block;
    width: 180px;
    height: 20px;
    margin-right: 20px;
    vertical-align: middle;
}

/* style des liens */
.pne-header-links {
    display: inline-flex;
    gap: 18px;
    margin-right: 15px;
    font-weight: 500;
}

.pne-header-links a {
    color: white;
    text-decoration: none;
}

.pne-header-links a:hover {
    text-decoration: underline;
}

/* ============================= */
/* Liens header personnalisés */
/* ============================= */

.pne-header-links a {
    color: black !important;
    font-weight: 500;
}

.pne-header-links a:hover {
    text-decoration: underline;
}


/* ============================= */
/* Nom d'utilisateur et menu utilisateur */
/* ============================= */

.vector-user-links a,
.vector-user-menu a,
.vector-user-menu .mw-userlink,
.vector-user-menu .mw-anonuserlink {
    color: black !important;
}



table.wikitable,
table.fandom-table {
    border-collapse: collapse;
    width: 100%;
}

table.wikitable th,
table.wikitable td,
table.fandom-table th,
table.fandom-table td {
    border: 1px solid #999;
    padding: 6px;
}

table.wikitable th,
table.fandom-table th {
    background-color: #f2f2f2;
    text-align: left;
}

table.wikitable,
table.fandom-table {
    border: 1px solid #aaa;
    background-color: #fff;
}


.mw-parser-output table.fandom-table {
    margin-bottom: 12px;
    border: 1px solid #aaa;
    background-color: #f9f9f9;
}

.mw-parser-output table.fandom-table td:first-child {
    width: 120px;
    background-color: #f2f2f2;
    font-weight: bold;
}

.mw-parser-output > figure:last-of-type img {
    max-width: 600px !important;
    width: 100%;
}
/* ============================= */
/* VALEURS NUMÉRIQUES DES TABLEAUX */
/* ============================= */

.mw-parser-output table.fandom-table td.pne-number,
.mw-parser-output table.wikitable td.pne-number {
    text-align: center !important;
    font-weight: bold !important;
}

/* Masquer le menu latéral par défaut */
#mw-panel {
    display: none !important;
}