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

aucun résumé des modifications
Aucun résumé des modifications
Aucun résumé des modifications
Balise : Révocation manuelle
 
(12 versions intermédiaires par le même utilisateur non affichées)
Ligne 321 : Ligne 321 :
/* </pre> */
/* </pre> */


/* Conteneur en 2 colonnes */
.sim_cat_ctn {
.row-2cols {
   display: flex;
   display: flex;
   flex-wrap: wrap; /* Permet le passage à la ligne */
   justify-content: space-between;
   gap: 2%; /* Espacement entre colonnes */
   flex-wrap: wrap;
}
}


/* Chaque colonne occupe environ la moitié */
.col-2 {
.row-2cols .col {
   width: 48%;
   flex: 1 1 48%;
}
}


/* Sur mobile : les colonnes s’empilent */
@media (max-width: 768px) {
@media (max-width: 768px) {
   .row-2cols {
   .sim_cat_ctn {
     flex-direction: column !important; /* Forcer le passage en colonne */
     flex-direction: column;
   }
   }
   .row-2cols .col {
   .col-2 {
    flex: 1 1 100% !important;
     width: 100%;
    max-width: 100% !important;
    float: none !important; /* Supprimer les floats hérités */
    display: block !important;
  }
  .row-2cols [style*="float:left"],
  .row-2cols [style*="float:right"] {
    float: none !important;
     width: 100% !important;
   }
   }
}
}