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)
Aucun résumé des modifications
Agrado (discussion | contributions)
Aucun résumé des modifications
 
(35 versions intermédiaires par le même utilisateur non affichées)
Ligne 9 : Ligne 9 :
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   gap: 14px;
   gap: 10px;


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


   background: transparent;
   background: transparent;
   box-shadow: none;
   box-shadow: none;
   overflow: visible;
 
  /* IMPORTANT : évite le scroll/grey wrapper du skin */
  flex-wrap: nowrap;
   overflow: hidden;
}
}


Ligne 25 : Ligne 28 :
   font-size: 1.05rem;
   font-size: 1.05rem;
   white-space: nowrap;
   white-space: nowrap;
  flex: 0 0 auto;
}
}


/* Spacer */
/* (Spacer supprimé) */
.sb-spacer{ flex: 1 1 auto; }
.sb-spacer{ display: none !important; }


/* Groupes */
/* Groupes */
Ligne 34 : Ligne 38 :
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   gap: 10px;
   gap: 8px;
   flex-wrap: nowrap;
   flex-wrap: nowrap;
  flex: 0 0 auto;
}
}


Ligne 53 : Ligne 58 :
   box-shadow: 0 2px 8px rgba(0,0,0,.10);
   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);
  flex: 0 0 auto;
}
}


Ligne 62 : Ligne 69 :


   background: transparent;
   background: transparent;
   pointer-events: none; /* le fond ne capte jamais les clics */
   pointer-events: none;
}
}


Ligne 73 : Ligne 80 :
.sb-icon{ width: 45px; height: 45px; }
.sb-icon{ width: 45px; height: 45px; }


/* Soutien : largeur auto (pas full-width) */
.sb-btn.button-link--tiktok img{
  transform: scale(1.8);
  transform-origin: center;
}
 
/* Support : base */
.sb-support{
.sb-support{
   height: 45px;
   height: 45px;         /* même hauteur que les icônes */
   padding: 0;           /* padding géré sur <a> pour être sûr */
   padding: 0;
   width: auto;
   width: auto;
   flex: 0 0 auto;
   flex: 0 0 auto;
Ligne 108 : Ligne 120 :
}
}


/* HelloAsso : empiler logo + texte (logo au-dessus) */
/* =========================================
/* Conteneur bouton */
  HELLOASSO — compact MAIS logo au-dessus du texte
.sb-footer .sb-btn.sb-support{
  ========================================= */
   height: auto;
 
   min-height: 58px;         /* plus compact qu’avant */
.sb-buttons--support{
   display: flex;
   gap: 8px;
  flex: 0 0 auto;
}
}


/* Lien vertical compact */
.sb-buttons--support .sb-btn.sb-support{
.sb-footer .sb-btn.sb-support > a{
  flex: 0 0 auto;
   width: auto !important;
   width: 140px;          /* légèrement + large pour stabiliser la colonne */
  height: 45px;
}


   padding: 6px 14px !important;  /* ↓ moins d'air haut/bas */
.sb-buttons--support .sb-btn.sb-support > a{
  flex-direction: column;
   width: 100% !important;


  display: flex;
  flex-direction: column;      /* logo au-dessus */
  justify-content: center;
   align-items: center;
   align-items: center;
  justify-content: center;


   gap: 3px;                     /* ↓ espace logo/texte réduit */
   padding: 0 12px !important; /* compact horizontal */
   line-height: 1;               /* supprime marge fantôme inline */
  gap: 2px;
 
   line-height: 1;
  text-align: center;
}
}


/* Logo plus gros MAIS sans marge */
/* Logo : un peu moins "zoomé" pour éviter l’écrasement */
.sb-footer .sb-btn.sb-support img{
.sb-buttons--support .sb-btn.sb-support img{
   width: 32px !important;       /* ↑ plus gros */
  height: 18px !important;
   height: 32px !important;
   width: auto !important;
 
  transform: scale(1.55);      /* avant ~1.9/2 : dézoom */
   transform-origin: center;


   display: block;               /* supprime espace baseline */
   display: block;
   margin: 0 !important;
   margin: 0 !important;
}
}


/* Texte : compact et lisible */
.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;
}


/* =========================================
/* =========================================
Ligne 154 : Ligne 191 :
}
}


/* Images */
/* Images icônes réseaux sociaux */
.sb-icon img{
.sb-icon img{
   width: 28px !important;
   width: 28px !important;
Ligne 161 : Ligne 198 :
   display: block;
   display: block;
   background: transparent !important;
   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;
}
}


Ligne 207 : Ligne 228 :
.sb-footer .sb-btn.button-link--tiktok:before    { background: #000; }
.sb-footer .sb-btn.button-link--tiktok:before    { background: #000; }
.sb-footer .sb-btn.button-link--helloasso:before { background: #5a2ca0; }
.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;
}


/* =========================================
/* =========================================
Ligne 216 : Ligne 297 :
     flex-wrap: wrap;
     flex-wrap: wrap;
     align-items: flex-start;
     align-items: flex-start;
    overflow: visible;          /* on autorise le wrap sur petit écran */
   }
   }
  .sb-spacer{ display: none; }
 
   .sb-buttons{ flex-wrap: wrap; }
   .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 */
}
}


/* Taille du texte UNIQUEMENT dans boutons HelloAsso */
/* Compteurs à droite : compact et stable */
.sb-footer .sb-support b,
.sb-counters{
.sb-footer .sb-support strong{
  display: flex;
   font-size: 0.7rem;  /* ajuste : 0.8–0.9 idéal */
  align-items: center;
   font-weight: 600;     /* un peu moins gras = plus compact visuellement */
  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;
  width: 2px;
  height: 36px;                /* ajuste si tu veux plus/moins haut */
  background: #000;
  border-radius: 2px;
 
  margin: 0 14px;              /* espace autour de la barre */
}
 
/* barre après HelloAsso */
.sb-buttons--support::after{
  content: "";
  display: block;
  width: 2px;
  height: 36px;
  background: #000;
  border-radius: 2px;
 
  margin: 0 14px;
}
 
/* sur mobile (wrap), on enlève pour éviter des barres perdues */
@media (max-width: 900px){
  .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.