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
 
(47 versions intermédiaires par le même utilisateur non affichées)
Ligne 3 : Ligne 3 :
   ========================================= */
   ========================================= */


/* Container principal */
.sb-footer{
.sb-footer{
   width: 100%;
   width: 100%;
Ligne 10 : 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;
}
}


 
/* Titres */
/* =========================================
  TITRES (texte noir demandé)
  ========================================= */
 
.sb-title{
.sb-title{
   color: #000 !important;
   color: #000 !important;
Ligne 30 : Ligne 28 :
   font-size: 1.05rem;
   font-size: 1.05rem;
   white-space: nowrap;
   white-space: nowrap;
  flex: 0 0 auto;
}
}


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


/* Spacer pousse la partie soutien à droite */
/* Groupes */
.sb-spacer{
  flex: 1 1 auto;
}
 
 
/* =========================================
  GROUPES
  ========================================= */
 
.sb-buttons{
.sb-buttons{
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   gap: 10px;
   gap: 8px;
   flex-wrap: nowrap;
   flex-wrap: nowrap;
  flex: 0 0 auto;
}
}


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


.button-link-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;
}


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


.button-link-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;
}


.button-link-content a {
  flex: 0 0 auto;
    color: white !important;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
}


.button-link-content a:hover,
.sb-footer .sb-btn:before{
.button-link-content a:visited {
  content: "";
    color: white !important;
  position: absolute;
}
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;


/* CONTENEUR D'IMAGE DE TAILLE FIXE */
  background: transparent;
.button-link-content .mw-file-description {
  pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;          /* LARGEUR FIXE */
    height: 50px;          /* HAUTEUR FIXE */
    margin: 0 auto 0.5rem;
    overflow: hidden;       /* Cache ce qui dépasse */
}
 
/* IMAGE RESPONSIVE DANS LE CONTENEUR */
.button-link-content img {
    max-width: 100%;        /* Ne dépasse pas le conteneur */
    max-height: 100%;      /* Ne dépasse pas le conteneur */
    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-footer .sb-btn:hover{
.button-link-content a.external::after {
  transform: translateY(-2px);
    display: none !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.20);
}
}


/* Tailles */
.sb-icon{ width: 45px; height: 45px; }


/* =========================================
.sb-btn.button-link--tiktok img{
  TAILLES
   transform: scale(1.8);
  ========================================= */
   transform-origin: center;
 
/* Réseaux carrés */
.sb-icon{
   width: 58px;
   height: 58px;
}
}


/* Boutons soutien */
/* Support : base */
.sb-support{
.sb-support{
   height: 58px;
   height: 45px;         /* même hauteur que les icônes */
   padding: 0 14px;
   padding: 0;
  width: auto;
  flex: 0 0 auto;
}
}


/* =========================================
/* =========================================
   LIENS INTERNES (MediaWiki safe)
   Lien plein bouton, au-dessus du fond
   ========================================= */
   ========================================= */


.sb-footer a{
.sb-footer .sb-btn > a{
  position: relative;
  z-index: 1;
 
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
Ligne 149 : Ligne 108 :
   width: 100%;
   width: 100%;
   height: 100%;
   height: 100%;
  margin: 0 !important;
  padding: 0 !important;


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


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


/* =========================================
  HELLOASSO — compact MAIS logo au-dessus du texte
  ========================================= */


/* Masquer l'icône de lien externe */
.sb-buttons--support{
.button-link-content a.external::after {
  display: flex;
    display: none !important;
  gap: 8px;
  flex: 0 0 auto;
}
}


/* Masquer éventuel texte brut d’URL */
.sb-buttons--support .sb-btn.sb-support{
.sb-footer a.external{
  flex: 0 0 auto;
   font-size: 0;
  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-footer a.external img,
/* Logo : un peu moins "zoomé" pour éviter l’écrasement */
.sb-footer a.external b,
.sb-buttons--support .sb-btn.sb-support img{
.sb-footer a.external strong{
  height: 18px !important;
   font-size: initial;
  width: auto !important;
 
  transform: scale(1.55);      /* avant ~1.9/2 : dézoom */
   transform-origin: center;
 
  display: block;
  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;
}


/* =========================================
/* =========================================
   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;
Ligne 183 : Ligne 197 :
   object-fit: contain;
   object-fit: contain;
   display: block;
   display: block;
  background: transparent !important;
}
}


.sb-support img{
/* =========================================
   width: 22px !important;
  Supprimer icônes externes (skins)
   height: 22px !important;
  ========================================= */
   object-fit: contain;
 
   display: block;
.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)
  ========================================= */


/* Texte boutons soutien */
.sb-footer .sb-btn.button-link--discord:before  { background: #5865f2; }
.sb-support strong,
.sb-footer .sb-btn.button-link--twitter:before   { background: #1da1f2; }
.sb-support b{
.sb-footer .sb-btn.button-link--instagram:before {
   font-size: 0.95rem;
   background: linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  font-weight: 700;
   white-space: nowrap;
}
}
 
.sb-footer .sb-btn.button-link--tiktok:before    { background: #000; }
.sb-footer .sb-btn.button-link--helloasso:before { background: #5a2ca0; }


/* =========================================
/* =========================================
   COULEURS RÉSEAUX SOCIAUX
   COMPTEURS (à droite) — compact + anti-style skin
  (scopé uniquement au footer)
   ========================================= */
   ========================================= */


.sb-footer .button-link--discord { background: #5865f2; }
.sb-counters{
.sb-footer .button-link--twitter { background: #1da1f2; }
  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;
}


.sb-footer .button-link--instagram {
/* Si le skin injecte code/pre */
   background: linear-gradient(
.sb-counters code,
    45deg,
.sb-counters pre{
    #f09433 0%,
  font-family: inherit !important;
    #e6683c 25%,
   background: transparent !important;
    #dc2743 50%,
  padding: 0 !important;
    #cc2366 75%,
   border: 0 !important;
    #bc1888 100%
   );
}
}


.sb-footer .button-link--tiktok { background: #000000; }
/* Cartes compteurs */
.sb-counter{
  display: flex;
  align-items: center;
  gap: 6px;


/* HelloAsso */
  height: 45px;
.sb-footer .button-link--helloasso { background: #5a2ca0; }
  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 232 : Ligne 294 :


@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;
    overflow: visible;          /* on autorise le wrap sur petit écran */
   }
   }


   .sb-spacer{
   .sb-buttons{ flex-wrap: wrap; }
     display: none;
 
  /* 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-buttons{
.sb-counters{
    flex-wrap: wrap;
   -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.