« MediaWiki:Common.css » : différence entre les versions
aucun résumé des modifications
Aucun résumé des modifications |
Aucun résumé des modifications Balises : Modification par mobile Modification par le web mobile |
||
| Ligne 343 : | Ligne 343 : | ||
margin: 0 0 1em 0 !important; | margin: 0 0 1em 0 !important; | ||
} | } | ||
} | |||
/* ================================================= */ | |||
/* Infobox Effetmagique — Affichage mobile */ | |||
/* À AJOUTER à la fin de MediaWiki:Common.css */ | |||
/* ================================================= */ | |||
@media screen and (max-width: 768px) { | |||
/* Conteneur flex pour réordonner : infobox en premier */ | |||
.mw-parser-output:has(.infobox-effetmagique) { | |||
display: flex !important; | |||
flex-direction: column !important; | |||
} | |||
/* L’infobox passe en premier et occupe toute la largeur */ | |||
.mw-parser-output .infobox-effetmagique { | |||
float: none !important; | |||
width: 100% !important; | |||
max-width: 100% !important; | |||
margin: 0 0 1em 0 !important; | |||
order: -1 !important; | |||
} | |||
} | } | ||