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 4303 de Agrado (discussion)
Balise : Annulation
Agrado (discussion | contributions)
Aucun résumé des modifications
Ligne 3 : Ligne 3 :
   ========================================= */
   ========================================= */


/* Container principal */
.sb-footer{
.sb-footer{
   width: 100%;
   width: 100%;
Ligne 20 : Ligne 19 :
}
}


 
/* Titres */
/* =========================================
  TITRES (texte noir demandé)
  ========================================= */
 
.sb-title{
.sb-title{
   color: #000 !important;
   color: #000 !important;
Ligne 32 : Ligne 27 :
}
}


/* Spacer */
.sb-spacer{ flex: 1 1 auto; }


/* Spacer pousse la partie soutien à droite */
/* Groupes */
.sb-spacer{
  flex: 1 1 auto;
}
 
 
/* =========================================
  GROUPES
  ========================================= */
 
.sb-buttons{
.sb-buttons{
   display: flex;
   display: flex;
Ligne 49 : Ligne 37 :
   flex-wrap: nowrap;
   flex-wrap: nowrap;
}
}


/* =========================================
/* =========================================
   BOUTONS (base commune)
   BOUTONS (fond garanti via ::before)
   ========================================= */
   ========================================= */


.sb-wrapper {
.sb-footer .sb-btn{
    min-height: 80px;
  position: relative;
    border-radius: 12px;
  border-radius: 12px;
    overflow: hidden;
  overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    background: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
}


.sb-wrapper:hover {
  display: flex;
    transform: translateY(-2px);
  align-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  justify-content: center;
}


.sb-content {
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
    width: 100%;
  transition: all .3s cubic-bezier(.4,0,.2,1);
    text-align: center;
    padding: 1rem;
}
}


.sb-content a {
/* fond derrière */
    color: white !important;
.sb-footer .sb-btn:before{
    text-decoration: none !important;
  content: "";
    display: flex;
  position: absolute;
    flex-direction: column;
  top: 0; right: 0; bottom: 0; left: 0;
    align-items: center;
  z-index: 0;
    justify-content: center;
  background: transparent;
}
}


.sb-content a:hover,
.sb-footer .sb-btn:hover{
.sb-content a:visited {
  transform: translateY(-2px);
    color: white !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.20);
}
}


/* CONTENEUR D'IMAGE DE TAILLE FIXE */
/* Tailles */
.sb-content .mw-file-description {
.sb-icon{ width: 58px; height: 58px; }
    display: flex;
.sb-support{ height: 58px; padding: 0 16px; }
    align-items: center;
    justify-content: center;
    width: 50px;          /* LARGEUR FIXE */
    height: 50px;           /* HAUTEUR FIXE */
    margin: 0 auto 0.5rem;
    overflow: hidden;      /* Cache ce qui dépasse */
}


/* IMAGE RESPONSIVE DANS LE CONTENEUR */
/* Lien au-dessus du fond */
.sb-content img {
.sb-footer .sb-btn > a{
    max-width: 100%;       /* Ne dépasse pas le conteneur */
  position: relative;
    max-height: 100%;      /* Ne dépasse pas le conteneur */
  z-index: 1;
    width: auto !important;
    height: auto !important;
    object-fit: contain;    /* Garde les proportions */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}


/* Masquer l'icône de lien externe */
.sb-content a.external::after {
    display: none !important;
}
/* =========================================
  TAILLES
  ========================================= */
/* Réseaux carrés */
.sb-icon{
  width: 58px;
  height: 58px;
}
/* Boutons soutien */
.sb-support{
  height: 58px;
  padding: 0 14px;
}
/* =========================================
  LIENS INTERNES (MediaWiki safe)
  ========================================= */
.sb-footer a{
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
Ligne 149 : Ligne 85 :
   width: 100%;
   width: 100%;
   height: 100%;
   height: 100%;
  margin: 0 !important;
  padding: 0 !important;


   color: #fff !important;
   color: #fff !important;
Ligne 154 : Ligne 93 :


   background: transparent !important;
   background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
}


/* =========================================
  Neutraliser wrappers MediaWiki (fichiers)
  ========================================= */


/* Masquer l'icône de lien externe */
.sb-footer .sb-btn .mw-file-description,
.button-link-content a.external::after {
.sb-footer .sb-btn .mw-file-element,
    display: none !important;
.sb-footer .sb-btn .mw-file-description a,
.sb-footer .sb-btn .mw-file-element a{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
}


/* Masquer éventuel texte brut d’URL */
/* Images */
.sb-footer a.external{
  font-size: 0;
}
 
.sb-footer a.external img,
.sb-footer a.external b,
.sb-footer a.external strong{
  font-size: initial;
}
 
 
/* =========================================
  IMAGES
  ========================================= */
 
.sb-icon img{
.sb-icon img{
   width: 28px !important;
   width: 28px !important;
Ligne 183 : Ligne 118 :
   object-fit: contain;
   object-fit: contain;
   display: block;
   display: block;
  background: transparent !important;
}
}


Ligne 190 : Ligne 126 :
   object-fit: contain;
   object-fit: contain;
   display: block;
   display: block;
  background: transparent !important;
}
}


 
/* Texte soutien */
/* Texte boutons soutien */
.sb-support strong,
.sb-support strong,
.sb-support b{
.sb-support b{
Ligne 200 : Ligne 136 :
   white-space: nowrap;
   white-space: nowrap;
}
}


/* =========================================
/* =========================================
   COULEURS RÉSEAUX SOCIAUX
   Supprimer icônes externes (skins)
  (scopé uniquement au footer)
   ========================================= */
   ========================================= */


.sb-footer .button-link--discord { background: #5865f2; }
.sb-footer a:after,
.sb-footer .button-link--twitter { background: #1da1f2; }
.sb-footer a:before,
.sb-footer a.external:after,
.sb-footer a.external:before{
  display: none !important;
  content: none !important;
}


.sb-footer .button-link--instagram {
.sb-footer a.external{
   background: linear-gradient(
   background-image: none !important;
    45deg,
  padding-right: 0 !important;
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}
}


.sb-footer .button-link--tiktok { background: #000000; }
/* =========================================
  Masquer overlays "outils/copie" sur fichiers
  (TemplateStyles-friendly)
  ========================================= */
 
.sb-footer .mw-file-description:before,
.sb-footer .mw-file-description:after,
.sb-footer .mw-file-element:before,
.sb-footer .mw-file-element:after{
  display: none !important;
  content: none !important;
}


/* HelloAsso */
/* =========================================
.sb-footer .button-link--helloasso { background: #5a2ca0; }
  COULEURS (appliquées au :before)
  ========================================= */


.sb-footer .sb-btn.button-link--discord:before  { background: #5865f2; }
.sb-footer .sb-btn.button-link--twitter:before  { background: #1da1f2; }
.sb-footer .sb-btn.button-link--instagram:before {
  background: linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}
.sb-footer .sb-btn.button-link--tiktok:before    { background: #000; }
.sb-footer .sb-btn.button-link--helloasso:before { background: #5a2ca0; }


/* =========================================
/* =========================================
Ligne 232 : Ligne 184 :


@media (max-width: 900px){
@media (max-width: 900px){
   .sb-footer{
   .sb-footer{
     flex-wrap: wrap;
     flex-wrap: wrap;
     align-items: flex-start;
     align-items: flex-start;
   }
   }
 
   .sb-spacer{ display: none; }
   .sb-spacer{
   .sb-buttons{ flex-wrap: wrap; }
    display: none;
  }
 
   .sb-buttons{
    flex-wrap: wrap;
  }
 
}
}

Version du 5 février 2026 à 08:59

/* =========================================
   BANDEAU FOOTER SOCIAL
   ========================================= */

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

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

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

  background: transparent;
  box-shadow: none;
  overflow: visible;
}

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

/* Spacer */
.sb-spacer{ flex: 1 1 auto; }

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

/* =========================================
   BOUTONS (fond garanti via ::before)
   ========================================= */

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

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

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

/* fond derrière */
.sb-footer .sb-btn:before{
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
  background: transparent;
}

.sb-footer .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 16px; }

/* Lien au-dessus du fond */
.sb-footer .sb-btn > a{
  position: relative;
  z-index: 1;

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

  width: 100%;
  height: 100%;

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

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

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* =========================================
   Neutraliser wrappers MediaWiki (fichiers)
   ========================================= */

.sb-footer .sb-btn .mw-file-description,
.sb-footer .sb-btn .mw-file-element,
.sb-footer .sb-btn .mw-file-description a,
.sb-footer .sb-btn .mw-file-element a{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

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

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

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

/* =========================================
   Supprimer icônes externes (skins)
   ========================================= */

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

.sb-footer a.external{
  background-image: none !important;
  padding-right: 0 !important;
}

/* =========================================
   Masquer overlays "outils/copie" sur fichiers
   (TemplateStyles-friendly)
   ========================================= */

.sb-footer .mw-file-description:before,
.sb-footer .mw-file-description:after,
.sb-footer .mw-file-element:before,
.sb-footer .mw-file-element:after{
  display: none !important;
  content: none !important;
}

/* =========================================
   COULEURS (appliquées au :before)
   ========================================= */

.sb-footer .sb-btn.button-link--discord:before   { background: #5865f2; }
.sb-footer .sb-btn.button-link--twitter:before   { background: #1da1f2; }
.sb-footer .sb-btn.button-link--instagram:before {
  background: linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}
.sb-footer .sb-btn.button-link--tiktok:before    { background: #000; }
.sb-footer .sb-btn.button-link--helloasso:before { background: #5a2ca0; }

/* =========================================
   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.