MediaWiki:Common.css
Apparence
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).
- Edge : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl + F5.
/* --- STYLE INFOBULLE STYLE WIKIPÉDIA --- */
/* Le mot souligné dans le texte */
.m-popups {
position: relative;
display: inline;
color: #3366cc; /* Bleu lien Wikipédia */
border-bottom: 1px dotted #a2a9b1;
cursor: help;
text-decoration: none;
}
/* La boîte qui surgit (la carte) */
.m-popups-card {
visibility: hidden;
width: 350px;
background: #ffffff;
border: 1px solid #a2a9b1;
border-radius: 3px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
position: absolute;
z-index: 1000;
bottom: 140%; /* Distance par rapport au mot */
left: 50%;
margin-left: -175px; /* Pour centrer la boîte */
opacity: 0;
transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
transform: translateY(10px);
pointer-events: none;
}
/* Affichage au survol du mot */
.m-popups:hover .m-popups-card {
visibility: visible;
opacity: 1;
transform: translateY(0);
}
/* Zone de contenu avec Padding de 20px */
.m-popups-content {
padding: 20px;
color: #202122;
font-size: 14px;
line-height: 1.6;
font-family: sans-serif;
text-align: left;
}
/* Le titre à l'intérieur de la bulle */
.m-popups-title {
display: block;
font-size: 18px;
font-weight: bold;
margin-bottom: 12px;
padding-bottom: 8px;
border-bottom: 1px solid #eaecf0; /* Ligne de séparation grise */
font-family: 'Linux Libertine', 'Georgia', serif;
}
/* Image à l'intérieur de la bulle */
.m-popups-image {
float: right;
margin-left: 15px;
margin-bottom: 10px;
border: 1px solid #eaecf0;
max-width: 100px;
height: auto;
}
/* La flèche de pointage en bas de la boîte */
.m-popups-card::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -10px;
border-width: 10px;
border-style: solid;
border-color: #ffffff transparent transparent transparent;
}