Modèle:SocialButton/styles.css
De Nefald
Autres actions
/* =========================================
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);
}
.sb-footer .sb-btn:before{
content: "";
position: absolute;
top: 0; right: 0; bottom: 0; left: 0;
z-index: 0;
background: transparent;
pointer-events: none; /* le fond ne capte jamais les clics */
}
.sb-footer .sb-btn:hover{
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(0,0,0,.20);
}
/* Tailles */
.sb-icon{ width: 45px; height: 45px; }
/* Soutien : largeur auto (pas full-width) */
.sb-support{
height: 45px;
padding: 0; /* padding géré sur <a> pour être sûr */
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;
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;
}
/* HelloAsso : empiler logo + texte (logo au-dessus) */
/* Conteneur bouton */
.sb-footer .sb-btn.sb-support{
height: auto;
min-height: 58px; /* plus compact qu’avant */
}
/* Lien vertical compact */
.sb-footer .sb-btn.sb-support > a{
width: auto !important;
padding: 4px 12px !important; /* ↓ moins d'air haut/bas */
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1px; /* ↓ espace logo/texte réduit */
line-height: 1; /* supprime marge fantôme inline */
}
/* Logo plus gros MAIS sans marge */
.sb-footer .sb-btn.sb-support img{
width: 50px !important; /* ↑ plus gros */
height: 50px !important;
transform: scale(2.1); /* zoom interne seulement */
display: block; /* supprime espace baseline */
margin: 0 !important;
}
/* Uniquement les boutons HelloAsso */
.sb-buttons--support{
display: flex;
gap: 10px;
}
/* largeur identique pour les 2 boutons soutien */
.sb-buttons--support .sb-btn.sb-support{
flex: 1 1 0;
max-width: 190px; /* ajuste si besoin */
}
/* le lien occupe toute la largeur */
.sb-buttons--support .sb-btn.sb-support > a{
width: 100% !important;
text-align: center;
align-items: center;
justify-content: center;
}
/* Plus d'air gauche/droite dans les boutons HelloAsso */
.sb-buttons--support .sb-btn.sb-support > a{
padding: 6px 18px !important; /* ↑ marge horizontale */
}
/* =========================================
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;
}
/* =========================================
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; }
/* =========================================
RESPONSIVE
========================================= */
@media (max-width: 900px){
.sb-footer{
flex-wrap: wrap;
align-items: flex-start;
}
.sb-spacer{ display: none; }
.sb-buttons{ flex-wrap: wrap; }
}
/* Taille du texte UNIQUEMENT dans boutons HelloAsso */
.sb-footer .sb-support b,
.sb-footer .sb-support strong{
font-size: 0.7rem; /* ajuste : 0.8–0.9 idéal */
font-weight: 600; /* un peu moins gras = plus compact visuellement */
}