MediaWiki:Common.css
Révision datée du 5 décembre 2025 à 08:45 par Admin (discussion | contributions)
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. */
/* Images en taille écran */
.res-img img {
max-width:100%;
height:auto;
}
/* Police Garamond par défaut //font-size: larger; */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond&display=swap');
body {
font-family:'EB Garamond', serif !important;
// font-size: 1.0em;
}
/* jwf--Make text larger */
#mw-content-text {
font-size: 1.1em;
}
/* jwf--Make text larger */
#bodyContent {
font-size: 1.1em;
}
/* Edit textarea */
#wpTextbox1 {
font-size: 1.1em;
}
/* Edit summary */
#wpSummary {
font-size: 1.1em;
}
// https://www.onlinewebfonts.com/download/c9b789c26d2c1139fd1a7301469db4a3
@import url(https://db.onlinewebfonts.com/c/c9b789c26d2c1139fd1a7301469db4a3?family=Britannic+Bold+V2);
@font-face {
font-family: "Britannic Bold V2";
src: url("https://db.onlinewebfonts.com/t/c9b789c26d2c1139fd1a7301469db4a3.eot");
src: url("https://db.onlinewebfonts.com/t/c9b789c26d2c1139fd1a7301469db4a3.eot?#iefix")format("embedded-opentype"),
url("https://db.onlinewebfonts.com/t/c9b789c26d2c1139fd1a7301469db4a3.woff2")format("woff2"),
url("https://db.onlinewebfonts.com/t/c9b789c26d2c1139fd1a7301469db4a3.woff")format("woff"),
url("https://db.onlinewebfonts.com/t/c9b789c26d2c1139fd1a7301469db4a3.ttf")format("truetype"),
url("https://db.onlinewebfonts.com/t/c9b789c26d2c1139fd1a7301469db4a3.svg#Britannic Bold V2")format("svg");
}
#firstHeading{
font-family:'Britannic Bold V2', serif !important;
}
.mw-body-content h2 {
font-family:'Britannic Bold V2', serif !important;
}
/*
// #h1.firstHeading {font-family: Britannic Bold;}
@import url(https://db.onlinewebfonts.com/c/8be4a2f403c2dc27187d892cca388e24?family=Britannic+Bold);
@font-face {
font-family: "Britannic Bold";
src: url("https://db.onlinewebfonts.com/t/8be4a2f403c2dc27187d892cca388e24.eot");
src: url("https://db.onlinewebfonts.com/t/8be4a2f403c2dc27187d892cca388e24.eot?#iefix")format("embedded-opentype"),
url("https://db.onlinewebfonts.com/t/8be4a2f403c2dc27187d892cca388e24.woff2")format("woff2"),
url("https://db.onlinewebfonts.com/t/8be4a2f403c2dc27187d892cca388e24.woff")format("woff"),
url("https://db.onlinewebfonts.com/t/8be4a2f403c2dc27187d892cca388e24.ttf")format("truetype"),
url("https://db.onlinewebfonts.com/t/8be4a2f403c2dc27187d892cca388e24.svg#Britannic Bold")format("svg");
}
.page-content :is(h2, h3, h4, h5, h6) .mw-headline {
font-family: Britannic Bold;
}
*/
/* Sommaire fixe à droite
https://webapps.stackexchange.com/questions/3851/how-can-i-float-the-table-of-contents-to-the-right-with-mediawiki
*/
//#toc {float:right;margin:0 0 1em 1em;position:fixed;top:100px;right:10px;};
/* Sommaire fixe */
/*
#toc {
position: fixed;
right: 0;
top: 7em; // 5em is height of header, 6em brings just under
// bottom: 5em; // 5em puts us above the footer; not bad but too low when TOC is collapsed
z-index: 10000; // Ensure we float above the header, etc.
// Add opacity (translucency)
background-color: rgb(249, 249, 249);
background-color: rgba(249, 249, 249, 0.9); // Higher opacity (last arg) means less transparency
}
// Ensure the TOC height doesn't take over the screen; percentages may be higher than view port, so we use pixels
#toc > ul {
max-height: 350px;
overflow: auto;
}
.toctoggle {
float: right;
}
*/