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)
Page créée avec « .sb-footer{ width: 100%; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 18px; padding: 18px; border-radius: 12px; overflow: hidden; background: #343a40; box-shadow: 0 2px 8px rgba(0,0,0,.12); } .sb-col{ flex: 1 1 320px; min-width: 280px; display: flex; flex-direction: column; gap: 10px; } .sb-title{ color: #fff; font-weight: 700; font-size: 1.15rem; line-height: 1.2; } .sb-row{ display: flex; flex-wra... »
 
Agrado (discussion | contributions)
Aucun résumé des modifications
 
(63 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
/* =========================================
  BANDEAU FOOTER SOCIAL
  ========================================= */
.sb-footer{
.sb-footer{
   width: 100%;
   width: 100%;
Ligne 4 : Ligne 8 :


   display: flex;
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 18px;
   gap: 10px;


   padding: 18px;
   padding: 12px 16px;
   border-radius: 12px;
   border-radius: 12px;
  overflow: hidden;


   background: #343a40;
   background: transparent;
   box-shadow: 0 2px 8px rgba(0,0,0,.12);
   box-shadow: none;
}


.sb-col{
   /* IMPORTANT : évite le scroll/grey wrapper du skin */
  flex: 1 1 320px;
   flex-wrap: nowrap;
   min-width: 280px;
   overflow: hidden;
 
  display: flex;
   flex-direction: column;
   gap: 10px;
}
}


/* Titres */
.sb-title{
.sb-title{
   color: #fff;
   color: #000 !important;
   font-weight: 700;
   font-weight: 700;
   font-size: 1.15rem;
   font-size: 1.05rem;
   line-height: 1.2;
   white-space: nowrap;
  flex: 0 0 auto;
}
}


.sb-row{
/* (Spacer supprimé) */
.sb-spacer{ display: none !important; }
 
/* Groupes */
.sb-buttons{
   display: flex;
   display: flex;
  flex-wrap: wrap;
  gap: 10px;
   align-items: center;
   align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}
}


/* --- Boutons icônes 58x58 --- */
/* =========================================
.sb-icon{
  BOUTONS (fond garanti via :before)
   width: 58px;
  ========================================= */
   height: 58px;
 
.sb-footer .sb-btn{
   position: relative;
  border-radius: 12px;
   overflow: hidden;


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


   border-radius: 12px;
   box-shadow: 0 2px 8px rgba(0,0,0,.10);
   overflow: hidden;
   transition: all .3s cubic-bezier(.4,0,.2,1);
 
  flex: 0 0 auto;
}
 
.sb-footer .sb-btn:before{
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;


   text-decoration: none !important;
   background: transparent;
   color: #fff !important;
   pointer-events: none;
}


   box-shadow: 0 2px 8px rgba(0,0,0,.12);
.sb-footer .sb-btn:hover{
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  transform: translateY(-2px);
   box-shadow: 0 4px 16px rgba(0,0,0,.20);
}
}


.sb-icon:hover{
/* Tailles */
   transform: translateY(-1px);
.sb-icon{ width: 45px; height: 45px; }
   box-shadow: 0 6px 18px rgba(0,0,0,.22);
 
  filter: brightness(1.02);
.sb-btn.button-link--tiktok img{
   transform: scale(1.8);
   transform-origin: center;
}
}


/* --- Boutons soutien : hauteur 58, largeur auto --- */
/* Support : base */
.sb-support{
.sb-support{
   height: 58px;
   height: 45px;         /* même hauteur que les icônes */
   display: inline-flex;
  padding: 0;
  width: auto;
  flex: 0 0 auto;
}
 
/* =========================================
  Lien plein bouton, au-dessus du fond
  ========================================= */
 
.sb-footer .sb-btn > a{
  position: relative;
  z-index: 1;
 
   display: flex;
   align-items: center;
   align-items: center;
  justify-content: center;
   gap: 10px;
   gap: 10px;


   padding: 0 14px;
   width: 100%;
   border-radius: 12px;
  height: 100%;
   overflow: hidden;
 
   margin: 0 !important;
   padding: 0 !important;


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


   box-shadow: 0 2px 8px rgba(0,0,0,.12);
  background: transparent !important;
   transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  border: 0 !important;
   box-shadow: none !important;
}
 
/* =========================================
  HELLOASSO — compact MAIS logo au-dessus du texte
  ========================================= */
 
.sb-buttons--support{
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
 
.sb-buttons--support .sb-btn.sb-support{
  flex: 0 0 auto;
  width: 140px;         /* légèrement + large pour stabiliser la colonne */
   height: 45px;
}
 
.sb-buttons--support .sb-btn.sb-support > a{
  width: 100% !important;
 
  display: flex;
  flex-direction: column;      /* logo au-dessus */
  justify-content: center;
  align-items: center;
 
  padding: 0 12px !important;  /* compact horizontal */
  gap: 2px;
 
  line-height: 1;
  text-align: center;
}
}


.sb-support:hover{
/* Logo : un peu moins "zoomé" pour éviter l’écrasement */
   transform: translateY(-1px);
.sb-buttons--support .sb-btn.sb-support img{
   box-shadow: 0 6px 18px rgba(0,0,0,.22);
  height: 18px !important;
   filter: brightness(1.02);
  width: auto !important;
 
   transform: scale(1.55);     /* avant ~1.9/2 : dézoom */
   transform-origin: center;
 
  display: block;
   margin: 0 !important;
}
}


.sb-support__text{
/* Texte : compact et lisible */
   font-weight: 700;
.sb-buttons--support .sb-btn.sb-support b,
.sb-buttons--support .sb-btn.sb-support strong{
  display: block;
  margin: 0 !important;
  line-height: 1;
 
  font-size: 0.66rem;
   font-weight: 600;
 
   white-space: nowrap;
   white-space: nowrap;
}
}


/* Images */
/* =========================================
  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 icônes réseaux sociaux */
.sb-icon img{
.sb-icon img{
   width: 28px !important;
   width: 28px !important;
   height: 28px !important;
   height: 28px !important;
  object-fit: contain;
  display: block;
  background: transparent !important;
}
/* =========================================
  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;
}
/* =========================================
  COULEURS (fond via :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; }
/* =========================================
  COMPTEURS (à droite) — compact + anti-style skin
  ========================================= */
.sb-counters{
  margin-left: auto;              /* pousse à droite */
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex: 0 0 auto;
  /* évite toute boîte scrollable ajoutée */
  min-width: 0;
}
/* Reset ciblé : on neutralise l'apparence "code" sans casser le reste */
.sb-counters,
.sb-counters *{
  font-family: inherit !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
/* Si le skin injecte code/pre */
.sb-counters code,
.sb-counters pre{
  font-family: inherit !important;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
}
/* Cartes compteurs */
.sb-counter{
  display: flex;
  align-items: center;
  gap: 6px;
  height: 45px;
  padding: 0 8px;              /* compact pour tenir en 1 ligne */
  border-radius: 12px;
  background: rgba(0,0,0,.05);
  line-height: 1;
  font-size: 0.82rem;
}
.sb-counter__num{
  font-weight: 800;
  font-size: 1.0rem;
}
.sb-counter__label{
  font-weight: 600;
  opacity: .7;
}
/* =========================================
  RESPONSIVE
  ========================================= */
@media (max-width: 900px){
  .sb-footer{
    flex-wrap: wrap;
    align-items: flex-start;
    overflow: visible;          /* on autorise le wrap sur petit écran */
  }
  .sb-buttons{ flex-wrap: wrap; }
  /* compteurs passent sur la ligne suivante, sans casser */
  .sb-counters{
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    margin-top: 6px;
  }
}
/* Empêche les comportements de wrapper/scroll du skin sur la fin de ligne */
.sb-footer{
  overflow: hidden; /* au lieu de visible */
}
/* Compteurs à droite : compact et stable */
.sb-counters{
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex: 0 0 auto;
}
/* Style visuel compteurs */
.sb-counter{
  display: flex;
  align-items: center;
  gap: 6px;
  height: 45px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.05);
  line-height: 1;
  font-size: 0.85rem;
}
.sb-counter__num{
  font-weight: 800;
  font-size: 1.0rem;
}
.sb-counter__label{
  font-weight: 600;
  opacity: .7;
}
/* Neutralise uniquement les styles "code/copy" SI un wrapper est injecté DANS les compteurs */
.sb-counters code,
.sb-counters pre{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  font-family: inherit !important;
}
/* On évite que des décorations de lien/skin polluent les compteurs */
.sb-counters a:before,
.sb-counters a:after,
.sb-counters .external:before,
.sb-counters .external:after{
  display: none !important;
  content: none !important;
}
/* =========================================
  COMPTEURS — neutraliser le gadget/extension "copier"
  (sans toucher aux boutons)
  ========================================= */
.sb-counters{
  -webkit-user-select: none;
  user-select: none;
}
/* Si le gadget s'accroche à code/pre injectés, on les neutralise */
.sb-counters code,
.sb-counters pre,
.sb-counters kbd,
.sb-counters samp{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  font-family: inherit !important;
}
/* Certains gadgets posent un bouton via pseudo-éléments / enfants */
.sb-counters [class*="copy"],
.sb-counters .copy-button,
.sb-counters .mw-copybutton,
.sb-counters .mw-clipboard-button{
  display: none !important;
}
/* =========================================
  Séparateurs verticaux entre les 3 sections
  ========================================= */
.sb-buttons--icons,
.sb-buttons--support{
  position: relative;
}
/* barre après Réseaux */
.sb-buttons--icons::after{
  content: "";
   display: block;
   display: block;
  width: 2px;
  height: 36px;                /* ajuste si tu veux plus/moins haut */
  background: #000;
  border-radius: 2px;
  margin: 0 14px;              /* espace autour de la barre */
}
}


.sb-support__icon img{
/* barre après HelloAsso */
   width: 22px !important;
.sb-buttons--support::after{
  height: 22px !important;
   content: "";
   display: block;
   display: block;
  width: 2px;
  height: 36px;
  background: #000;
  border-radius: 2px;
  margin: 0 14px;
}
}


/* Masquer l'icône "lien externe" MediaWiki dans le bandeau */
/* sur mobile (wrap), on enlève pour éviter des barres perdues */
.sb-footer a.external::after{
@media (max-width: 900px){
  display: none !important;
  .sb-buttons--icons::after,
  .sb-buttons--support::after{
    display: none;
  }
}
}
Les témoins (''cookies'') nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de témoins.