MediaWiki:Common.css

De TC-Dossiers

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.
/* ---- Couleurs et variables racines ---- */
:root {
  --background-color-base: #f0f0f0;
  --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;
}

.vector-sticky-header {
  box-shadow: 0px 2px 2px var(--primary-color);
}

/* ---- 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;
}

/* BANNIERE ACCUEIL */

.tc-banner {
  background: url(//tc-dossiers.fr/wiki/logo.svg) no-repeat -0px -0px;
  background-size: auto;
  padding: 10px;
  font-family: 'Open Sans',Sans-serif;
}

.tc-banner-conteneur-texte {
    margin-left: 14rem;
}

.tc-banner-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color); /* Bleu de TC Dossiers*/
    margin-top: 10px;
}

.tc-banner-subtitle {
    font-size: 1.2em;
    color: #54595d; /* Couleur de sous-titre*/
    margin-top: 5px;
}

/* INFOBOX */

.infobox {
    width: 300px;
    border: 1px solid #var(--primary-color);
    padding: 20px;
    background-color: #F0F4FA;
    border-radius: 4px;
}

.infobox pre, 
.infobox code, 
.infobox .mw-code {
    all: unset !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: inherit !important;
    font-size: inherit !important;
    font-family: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.infobox-title-custom {
    font-family: var(--title-font);
    font-size: 1.5em;
    color: var(--primary-color);
    padding: 4px 10px;
    border-left: 4px solid var(--primary-color);
    background-color: #F0F4FA;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 10px;
}

.infobox-legende-photo {
    text-align: center;
    font-size: 0.8em;
    margin-bottom: 5px;
}


@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: middle;
}

.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;
    padding-inline:3px;
}

/* 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;
}

.cdx-text-input__input {
    height: 100%;
    min-height: 40px; /* Ajuste selon la hauteur souhaitée */
    padding: 8px;
}