Basculer le menu
Changer de menu des préférences
Basculer le menu personnel
Non connecté(e)
Votre adresse IP sera visible au public si vous faites des modifications.

« Modèle:SocialButton/styles.css » : différence entre les versions

De Nefald
Agrado (discussion | contributions)
Annulation des modifications 4287 de Agrado (discussion)
Balise : Annulation
Agrado (discussion | contributions)
Aucun résumé des modifications
Balise : Révoqué
Ligne 1 : Ligne 1 :
/* Bandeau : une seule ligne (desktop), fond transparent */
/* =========================================================
  SOCIALBUTTON — STYLES COMPLETS
  ========================================================= */
 
 
/* ===============================
  BANDEAU GLOBAL
  =============================== */
 
.sb-footer{
.sb-footer{
   width: 100%;
   width:100%;
   box-sizing: border-box;
   box-sizing:border-box;


   display: flex;
   display:flex;
   align-items: center;
   align-items:center;
   gap: 14px;
   gap:14px;


   padding: 14px 16px;
   padding:14px 16px;
   border-radius: 12px;
   border-radius:12px;


   background: transparent;     /* <-- plus de fond gris */
   background:transparent;         /* pas de fond gris */
   box-shadow: none;            /* optionnel, tu peux remettre une ombre si tu veux */
   box-shadow:none;
  overflow: visible;
}
}


/* Titres inline */
 
/* ===============================
  TITRES
  =============================== */
 
.sb-title{
.sb-title{
  color: #fff;
   font-weight:700;
   font-weight: 700;
   font-size:1.05rem;
   font-size: 1.05rem;
   white-space:nowrap;
   white-space: nowrap;
  color:#000 !important;          /* texte noir */
}
}


/* Spacer pour pousser la partie soutien à droite */
 
/* espaceur pour pousser la partie droite */
.sb-spacer{
.sb-spacer{
   flex: 1 1 auto;
   flex:1 1 auto;
}
}


/* Groupes de boutons */
 
/* ===============================
  GROUPES DE BOUTONS
  =============================== */
 
.sb-buttons{
.sb-buttons{
   display: flex;
   display:flex;
   align-items: center;
   align-items:center;
   gap: 10px;
   gap:10px;
   flex-wrap: nowrap;           /* <-- tout sur une seule ligne */
   flex-wrap:nowrap;               /* tout sur une ligne */
}
}


/* Boutons (wrapper) : reprend le look ButtonLink */
 
/* ===============================
  WRAPPER BOUTON
  =============================== */
 
.sb-btn{
.sb-btn{
   border-radius: 12px;
   border-radius:12px;
   overflow: hidden;
   overflow:hidden;


  box-shadow: 0 2px 8px rgba(0,0,0,.10);
   transition:all .3s cubic-bezier(.4,0,.2,1);
   transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow:0 2px 8px rgba(0,0,0,.10);


   display: flex;
   display:flex;
   align-items: center;
   align-items:center;
   justify-content: center;
   justify-content:center;


   /* fallback */
   background:#6c757d;              /* fallback si pas de classe */
  background: #6c757d;
}
}


.sb-btn:hover{
.sb-btn:hover{
   transform: translateY(-2px);
   transform:translateY(-2px);
   box-shadow: 0 4px 16px rgba(0,0,0,.20);
   box-shadow:0 4px 16px rgba(0,0,0,.20);
}
}


/* Réseaux : 58x58 */
 
/* ===============================
  TAILLES
  =============================== */
 
.sb-icon{
.sb-icon{
   width: 58px;
   width:58px;
   height: 58px;
   height:58px;
}
}


/* Soutien : 58px haut, largeur auto */
.sb-support{
.sb-support{
   height: 58px;
   height:58px;
   padding: 0 14px;
   padding:0 14px;
  gap:10px;
}
}


/* IMPORTANT : le lien généré par [URL LABEL] doit remplir le bouton */
.sb-footer a{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;


   width: 100%;
/* ===============================
   height: 100%;
  LIEN EXTERNE GÉNÉRÉ PAR MEDIAWIKI
  (RESET COMPLET → évite surcouches)
  =============================== */
 
.sb-footer a,
.sb-footer a:link,
.sb-footer a:visited,
.sb-footer a:hover,
.sb-footer a:active,
.sb-footer a.external{
 
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
 
   width:100%;
   height:100%;
 
  color:#fff !important;
  text-decoration:none !important;
 
  /* reset ultra important */
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;


   color: #fff !important;
   padding:0 !important;
   text-decoration: none !important;
   margin:0 !important;


   background: transparent !important; /* évite que le thème mette un fond sur <a> */
   border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
}
}


/* Neutraliser l’icône au survol (lien externe / copier) DANS le bandeau */
 
.sb-footer a.external::after{
/* Empêche toute peinture interne (corrige la "surcouche") */
   display: none !important;
.sb-btn *{
  content: none !important;
   background:transparent !important;
}
}
.sb-footer a::after{
 
   display: none !important;
 
   content: none !important;
/* ===============================
  SUPPRESSION ICÔNE EXTERNE / COPIER
  =============================== */
 
.sb-footer a::after,
.sb-footer a::before,
.sb-footer a.external::after,
.sb-footer a.external::before{
   content:none !important;
   display:none !important;
}
}


/* Certains skins ajoutent une icône via background-image : on coupe */
.sb-footer .oo-ui-iconElement-icon,
.sb-footer a.external{
.sb-footer .mw-ui-icon,
   background-image: none !important;
.sb-footer .mw-icon,
  padding-right: 0 !important;
.sb-footer .vector-icon,
.sb-footer .vector-icon-link-external,
.sb-footer .external-icon,
.sb-footer .mw-indicator,
.sb-footer .mw-indicators{
   display:none !important;
}
}


/* Images : tailles propres */
 
/* ===============================
  IMAGES
  =============================== */
 
.sb-icon img{
.sb-icon img{
   width: 28px !important;
   width:28px !important;
   height: 28px !important;
   height:28px !important;
   object-fit: contain;
   object-fit:contain;
   display: block;
   display:block;
}
}


.sb-support img{
.sb-support img{
   width: 22px !important;
   width:22px !important;
   height: 22px !important;
   height:22px !important;
   object-fit: contain;
   object-fit:contain;
   display: block;
   display:block;
}
}


/* Empêcher l’URL de s’afficher (ce que tu vois sur ta capture) :
 
   certains wikis affichent l’URL dans les liens externes si label “non reconnu”.
/* ===============================
   Ici on force le label à rester le contenu seulement. */
   TEXTE BOUTONS SOUTIEN
.sb-footer a.external{
   =============================== */
  font-size: 0;                /* masque tout texte brut éventuel */
 
}
.sb-support strong,
.sb-footer a.external img,
.sb-support b{
.sb-footer a.external b,
  font-weight:700;
.sb-footer a.external strong{
   white-space:nowrap;
   font-size: initial;           /* réactive la taille sur éléments visibles */
}
}


/* Texte des boutons soutien */
.sb-support strong, .sb-support b{
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}


/* Responsive : en dessous de 900px, on wrap sur 2 lignes proprement */
/* ===============================
@media (max-width: 900px){
  RESPONSIVE
  =============================== */
 
@media (max-width:900px){
 
   .sb-footer{
   .sb-footer{
     flex-wrap: wrap;
     flex-wrap:wrap;
     align-items: flex-start;
     align-items:flex-start;
   }
   }
   .sb-spacer{
   .sb-spacer{
     display: none;
     display:none;
   }
   }
   .sb-buttons{
   .sb-buttons{
     flex-wrap: wrap;
     flex-wrap:wrap;
   }
   }
}
}

Version du 5 février 2026 à 08:22

/* =========================================================
   SOCIALBUTTON — STYLES COMPLETS
   ========================================================= */


/* ===============================
   BANDEAU GLOBAL
   =============================== */

.sb-footer{
  width:100%;
  box-sizing:border-box;

  display:flex;
  align-items:center;
  gap:14px;

  padding:14px 16px;
  border-radius:12px;

  background:transparent;          /* pas de fond gris */
  box-shadow:none;
}


/* ===============================
   TITRES
   =============================== */

.sb-title{
  font-weight:700;
  font-size:1.05rem;
  white-space:nowrap;
  color:#000 !important;           /* texte noir */
}


/* espaceur pour pousser la partie droite */
.sb-spacer{
  flex:1 1 auto;
}


/* ===============================
   GROUPES DE BOUTONS
   =============================== */

.sb-buttons{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;                /* tout sur une ligne */
}


/* ===============================
   WRAPPER BOUTON
   =============================== */

.sb-btn{
  border-radius:12px;
  overflow:hidden;

  transition:all .3s cubic-bezier(.4,0,.2,1);
  box-shadow:0 2px 8px rgba(0,0,0,.10);

  display:flex;
  align-items:center;
  justify-content:center;

  background:#6c757d;              /* fallback si pas de classe */
}

.sb-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 16px rgba(0,0,0,.20);
}


/* ===============================
   TAILLES
   =============================== */

.sb-icon{
  width:58px;
  height:58px;
}

.sb-support{
  height:58px;
  padding:0 14px;
  gap:10px;
}


/* ===============================
   LIEN EXTERNE GÉNÉRÉ PAR MEDIAWIKI
   (RESET COMPLET → évite surcouches)
   =============================== */

.sb-footer a,
.sb-footer a:link,
.sb-footer a:visited,
.sb-footer a:hover,
.sb-footer a:active,
.sb-footer a.external{

  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  width:100%;
  height:100%;

  color:#fff !important;
  text-decoration:none !important;

  /* reset ultra important */
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;

  padding:0 !important;
  margin:0 !important;

  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
}


/* Empêche toute peinture interne (corrige la "surcouche") */
.sb-btn *{
  background:transparent !important;
}


/* ===============================
   SUPPRESSION ICÔNE EXTERNE / COPIER
   =============================== */

.sb-footer a::after,
.sb-footer a::before,
.sb-footer a.external::after,
.sb-footer a.external::before{
  content:none !important;
  display:none !important;
}

.sb-footer .oo-ui-iconElement-icon,
.sb-footer .mw-ui-icon,
.sb-footer .mw-icon,
.sb-footer .vector-icon,
.sb-footer .vector-icon-link-external,
.sb-footer .external-icon,
.sb-footer .mw-indicator,
.sb-footer .mw-indicators{
  display:none !important;
}


/* ===============================
   IMAGES
   =============================== */

.sb-icon img{
  width:28px !important;
  height:28px !important;
  object-fit:contain;
  display:block;
}

.sb-support img{
  width:22px !important;
  height:22px !important;
  object-fit:contain;
  display:block;
}


/* ===============================
   TEXTE BOUTONS SOUTIEN
   =============================== */

.sb-support strong,
.sb-support b{
  font-weight:700;
  white-space:nowrap;
}


/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width:900px){

  .sb-footer{
    flex-wrap:wrap;
    align-items:flex-start;
  }

  .sb-spacer{
    display:none;
  }

  .sb-buttons{
    flex-wrap:wrap;
  }
}
Les témoins (''cookies'') nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de témoins.