MediaWiki:Common.css
Aller à la navigation
Aller à la recherche
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.
/* Carte interactive avec photos au survol (demande de Pol Gillet, ajouté par YouIT le 22/11/2026 ; repère réduit le 22/11/2026).
Utilisation : <div class="carte-interactive"> + [[Fichier:carte|class=fond-carte]] + des <div class="repere" style="left:..%; top:..%;"><div class="photo-popup">…</div></div> */
.carte-interactive { position: relative; display: inline-block; max-width: 100%; }
.carte-interactive p { margin: 0; }
.carte-interactive .fond-carte img, .carte-interactive img.fond-carte { display: block; max-width: 100%; height: auto; }
.carte-interactive .repere { position: absolute; width: 8px; height: 8px; margin: -5px 0 0 -5px; border-radius: 50%;
background: #d33; border: 1px solid #fff; box-shadow: 0 0 2px rgba(0,0,0,.7); cursor: pointer; }
.carte-interactive .repere:hover { z-index: 20; background: #f55; }
.carte-interactive .photo-popup { display: none; position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
width: 260px; background: #fff; border: 1px solid #aaa; border-radius: 6px; padding: 6px;
box-shadow: 0 2px 10px rgba(0,0,0,.4); z-index: 10; font-size: 90%; line-height: 1.4; text-align: center; color: #202122; }
.carte-interactive .photo-popup img { max-width: 100%; height: auto; }
.carte-interactive .repere:hover .photo-popup { display: block; }