« MediaWiki:Common.css » : différence entre les versions

aucun résumé des modifications
Aucun résumé des modifications
Aucun résumé des modifications
Balises : Révoqué Modification par mobile Modification par le web mobile
Ligne 328 : Ligne 328 :
.mw-body-content .FichePNJNL.fiche-pnj-animal .bandeau-pnj b {
.mw-body-content .FichePNJNL.fiche-pnj-animal .bandeau-pnj b {
     color: #7A5C26 !important;
     color: #7A5C26 !important;
}
/* ================================================= */
/* FichePNJNL — Affichage mobile (responsive)        */
/* À ajouter dans MediaWiki:Common.css              */
/* ================================================= */
@media screen and (max-width: 768px) {
/* Ne passe en flex que si la page contient une FichePNJNL */
.mw-body-content .mw-parser-output:has(.FichePNJNL) {
display: flex;
flex-direction: column;
}
/* L’infobox passe en premier et occupe toute la largeur */
.mw-body-content .FichePNJNL {
float: none !important;
width: 100% !important;
max-width: 100% !important;
margin: 0 0 1em 0 !important;
order: -1 !important;
}
}
}