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

De TC-Dossiers
Aucun résumé des modifications
Aucun résumé des modifications
Balise : Révocation manuelle
Ligne 115 : Ligne 115 :
     padding: 5px;
     padding: 5px;
     background-color: #f9f9f9;
     background-color: #f9f9f9;
}
.infobox > div:first-child {
    background-color: #F0F4FA !important;
    border: none !important;
    box-shadow: none !important;
}
}



Version du 4 mars 2025 à 21:15

/* ---- Couleurs et variables racines ---- */
:root {
  --background-color-base: #C7CDE8;
  --primary-color: #00587a;
  --text-color-light: #ffffff;
  --title-font: "Gill Sans", sans-serif;
  --body-font: "Arial", sans-serif;
  --container-shadow: 2px 5px 5px rgba(0, 0, 0, 0.3);
}

/* ---- Fond de la page ---- */
body {
  background-color: var(--background-color-base);
  font-family: var(--body-font);
}

#mw-teleport-target {
  background-color: #C7CDE8;
  box-shadow: none;
}

/* ---- Titres de page ---- */
.mw-page-title-main,
#firstHeading {
  color: var(--text-color-light);
  background-color: var(--primary-color);
  font-family: var(--title-font);
  padding: 6px 15px;
  border-radius: 4px;
  position: relative;
  margin-bottom: 15px;
}

/* Titres de sections */
.mw-body h1,
.mw-body h2,
.mw-body h3 {
  font-family: var(--title-font);
  color: var(--primary-color);
  padding: 4px 10px;
  border-left: 4px solid var(--primary-color);
  margin-top: 20px;
  background-color: #F0F4FA;
  border-radius: 4px;
}

/* ---- Conteneur principal de l'article ---- */
.vector-body {
  background-color: #ffffff;
  padding: 15px;
  box-shadow: var(--container-shadow);
  font-family: var(--body-font);
  color: #333;
  position: relative;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.vector-page-toolbar {
  background-color: #ffffff;
  padding: 15px;
  box-shadow: var(--container-shadow);
  font-family: var(--body-font);
  color: #333;
  position: relative;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

/* ---- Barre latérale gauche ---- */
.vector-pinned-container {
  background-color: var(--background-color-base);
  padding: 10px;
  border-radius: 6px;
  position: relative;
}

/* ---- Menu des outils et panneaux de navigation ---- */
#p-tb, /* Menu des outils */
#p-personal, /* Menu utilisateur personnel */
#p-cactions, /* Menu des actions */


/* ---- Liens et interactions ---- */
a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: #003B53;
  text-decoration: underline;
}

/* ---- Boutons et interactions ---- */
button, input[type="submit"], input[type="button"] {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-family: var(--body-font);
  font-weight: bold;
}

button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background-color: #003B53;
}

/* INFOBOX */

.infobox {
    width: 250px;
    border: 1px solid #aaa;
    padding: 5px;
    background-color: #f9f9f9;
}

@media screen {
	.infobox {
		background-color: #f8f9fa;
    }
}

@media (max-width: 640px) {
	.infobox {
		width: 100%;
	}
    
	.infobox .nowrap {
		white-space: normal;
	}
}

@media (min-width: 640px) {
	.infobox {
		/* @noflip */
		margin: 0.5em 0 0.5em 1em;
		/* @noflip */
		float: right;
		/* @noflip */
		clear: right;
		width: 22em;
	}
}

.infobox-header,
.infobox-label,
.infobox-above,
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
	vertical-align: top;
}

.infobox-label,
.infobox-data,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
	/* @noflip */
	text-align: left;
}

/* Remove .infobox when element selectors above are removed */
.infobox .infobox-above,
.infobox .infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
	font-size: 125%;
	font-weight: bold;
	text-align: center;
}

.infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
	padding: 0.2em;
}

/* Remove .infobox when element selectors above are removed */
.infobox .infobox-header,
.infobox .infobox-subheader,
.infobox .infobox-image,
.infobox .infobox-full-data,
.infobox .infobox-below {
	text-align: center;
}

/* Remove .infobox when element selectors above are removed */
.infobox .infobox-navbar {
	/* @noflip */
	text-align: right;
}

/* Ajustements pour le formulaire de recherche dans le skin Vector 2022 */
#p-search {
  display: block; /* S'assure que le conteneur de la recherche est visible */
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* Ajustements pour le formulaire de recherche dans le skin Vector 2022 */
#p-search {
  display: block; /* S'assure que le conteneur de la recherche est visible */
  margin-left: auto;
  margin-right: auto;
  position: relative;
}