« MediaWiki:Common.css » : différence entre les versions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| (166 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
/* | /* ---- 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); | |||
} | |||
body { background: # | /* ---- 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 left, | |||
url(//tc-dossiers.fr/wiki/schema-ligne.svg) no-repeat right; /* Image de fond du schéma */ | |||
background-size: auto, contain; /* Ajuste la taille : logo auto, schéma en contain */ | |||
padding: 5px; | |||
font-family: 'Open Sans', Sans-serif; | |||
height: 6rem; | |||
display: flex; | |||
align-items: center; | |||
justify-content: space-between; /* Espacement entre le texte et l'image */ | |||
} | |||
.tc-banner-conteneur-texte { | |||
margin-left: 12rem; /* Ajuste selon le logo de gauche */ | |||
margin-right: 12rem; /* Ajuste selon le logo de droite */ | |||
} | |||
.tc-banner-title { | |||
font-size: 2em; | |||
font-weight: bold; | |||
color: var(--primary-color); | |||
margin-top: 0; | |||
} | |||
.tc-banner-subtitle { | |||
font-size: 1em; | |||
color: #54595d; | |||
margin-top: 2px; | |||
} | |||
/* 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; | |||
} | |||
Dernière version du 9 mars 2025 à 17:14
/* ---- 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 left,
url(//tc-dossiers.fr/wiki/schema-ligne.svg) no-repeat right; /* Image de fond du schéma */
background-size: auto, contain; /* Ajuste la taille : logo auto, schéma en contain */
padding: 5px;
font-family: 'Open Sans', Sans-serif;
height: 6rem;
display: flex;
align-items: center;
justify-content: space-between; /* Espacement entre le texte et l'image */
}
.tc-banner-conteneur-texte {
margin-left: 12rem; /* Ajuste selon le logo de gauche */
margin-right: 12rem; /* Ajuste selon le logo de droite */
}
.tc-banner-title {
font-size: 2em;
font-weight: bold;
color: var(--primary-color);
margin-top: 0;
}
.tc-banner-subtitle {
font-size: 1em;
color: #54595d;
margin-top: 2px;
}
/* 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;
}