« Modèle:SocialButton/styles.css » : différence entre les versions
De Nefald
Autres actions
Annulation des modifications 4287 de Agrado (discussion) Balise : Annulation |
Aucun résumé des modifications Balise : Révoqué |
||
| Ligne 1 : | Ligne 1 : | ||
/* | /* ========================================================= | ||
SOCIALBUTTON — STYLES COMPLETS | |||
========================================================= */ | |||
/* =============================== | |||
BANDEAU GLOBAL | |||
=============================== */ | |||
.sb-footer{ | .sb-footer{ | ||
width: 100%; | width:100%; | ||
box-sizing: border-box; | box-sizing:border-box; | ||
display: flex; | display:flex; | ||
align-items: center; | align-items:center; | ||
gap: 14px; | gap:14px; | ||
padding: 14px 16px; | padding:14px 16px; | ||
border-radius: 12px; | border-radius:12px; | ||
background: transparent; | background:transparent; /* pas de fond gris */ | ||
box-shadow: none | box-shadow:none; | ||
} | } | ||
/* | |||
/* =============================== | |||
TITRES | |||
=============================== */ | |||
.sb-title{ | .sb-title{ | ||
font-weight:700; | |||
font-weight: 700; | font-size:1.05rem; | ||
font-size: 1.05rem; | white-space:nowrap; | ||
white-space: nowrap; | color:#000 !important; /* texte noir */ | ||
} | } | ||
/* | |||
/* espaceur pour pousser la partie droite */ | |||
.sb-spacer{ | .sb-spacer{ | ||
flex: 1 1 auto; | flex:1 1 auto; | ||
} | } | ||
/* | |||
/* =============================== | |||
GROUPES DE BOUTONS | |||
=============================== */ | |||
.sb-buttons{ | .sb-buttons{ | ||
display: flex; | display:flex; | ||
align-items: center; | align-items:center; | ||
gap: 10px; | gap:10px; | ||
flex-wrap: nowrap; | flex-wrap:nowrap; /* tout sur une ligne */ | ||
} | } | ||
/* | |||
/* =============================== | |||
WRAPPER BOUTON | |||
=============================== */ | |||
.sb-btn{ | .sb-btn{ | ||
border-radius: 12px; | border-radius:12px; | ||
overflow: hidden; | overflow:hidden; | ||
transition:all .3s cubic-bezier(.4,0,.2,1); | |||
transition: all .3s cubic-bezier(.4,0,.2,1); | box-shadow:0 2px 8px rgba(0,0,0,.10); | ||
display: flex; | display:flex; | ||
align-items: center; | align-items:center; | ||
justify-content: center; | justify-content:center; | ||
/* fallback */ | background:#6c757d; /* fallback si pas de classe */ | ||
} | } | ||
.sb-btn:hover{ | .sb-btn:hover{ | ||
transform: translateY(-2px); | transform:translateY(-2px); | ||
box-shadow: 0 4px 16px rgba(0,0,0,.20); | box-shadow:0 4px 16px rgba(0,0,0,.20); | ||
} | } | ||
/* | |||
/* =============================== | |||
TAILLES | |||
=============================== */ | |||
.sb-icon{ | .sb-icon{ | ||
width: 58px; | width:58px; | ||
height: 58px; | height:58px; | ||
} | } | ||
.sb-support{ | .sb-support{ | ||
height: 58px; | height:58px; | ||
padding: 0 14px; | padding:0 14px; | ||
gap:10px; | |||
} | } | ||
width: 100%; | /* =============================== | ||
height: 100%; | LIEN EXTERNE GÉNÉRÉ PAR MEDIAWIKI | ||
(RESET COMPLET → évite surcouches) | |||
=============================== */ | |||
.sb-footer a, | |||
.sb-footer a:link, | |||
.sb-footer a:visited, | |||
.sb-footer a:hover, | |||
.sb-footer a:active, | |||
.sb-footer a.external{ | |||
display:flex; | |||
align-items:center; | |||
justify-content:center; | |||
gap:10px; | |||
width:100%; | |||
height:100%; | |||
color:#fff !important; | |||
text-decoration:none !important; | |||
/* reset ultra important */ | |||
background:transparent !important; | |||
background-color:transparent !important; | |||
background-image:none !important; | |||
padding:0 !important; | |||
margin:0 !important; | |||
border:0 !important; | |||
outline:0 !important; | |||
box-shadow:none !important; | |||
} | } | ||
/* | |||
.sb- | /* Empêche toute peinture interne (corrige la "surcouche") */ | ||
.sb-btn *{ | |||
background:transparent !important; | |||
} | } | ||
.sb-footer a::after{ | |||
/* =============================== | |||
SUPPRESSION ICÔNE EXTERNE / COPIER | |||
=============================== */ | |||
.sb-footer a::after, | |||
.sb-footer a::before, | |||
.sb-footer a.external::after, | |||
.sb-footer a.external::before{ | |||
content:none !important; | |||
display:none !important; | |||
} | } | ||
.sb-footer .oo-ui-iconElement-icon, | |||
.sb-footer | .sb-footer .mw-ui-icon, | ||
.sb-footer .mw-icon, | |||
.sb-footer .vector-icon, | |||
.sb-footer .vector-icon-link-external, | |||
.sb-footer .external-icon, | |||
.sb-footer .mw-indicator, | |||
.sb-footer .mw-indicators{ | |||
display:none !important; | |||
} | } | ||
/* | |||
/* =============================== | |||
IMAGES | |||
=============================== */ | |||
.sb-icon img{ | .sb-icon img{ | ||
width: 28px !important; | width:28px !important; | ||
height: 28px !important; | height:28px !important; | ||
object-fit: contain; | object-fit:contain; | ||
display: block; | display:block; | ||
} | } | ||
.sb-support img{ | .sb-support img{ | ||
width: 22px !important; | width:22px !important; | ||
height: 22px !important; | height:22px !important; | ||
object-fit: contain; | object-fit:contain; | ||
display: block; | display:block; | ||
} | } | ||
/* | |||
/* =============================== | |||
TEXTE BOUTONS SOUTIEN | |||
=============================== */ | |||
.sb-support strong, | |||
.sb- | .sb-support b{ | ||
.sb- | font-weight:700; | ||
white-space:nowrap; | |||
} | } | ||
/* | /* =============================== | ||
@media (max-width: 900px){ | RESPONSIVE | ||
=============================== */ | |||
@media (max-width:900px){ | |||
.sb-footer{ | .sb-footer{ | ||
flex-wrap: wrap; | flex-wrap:wrap; | ||
align-items: flex-start; | align-items:flex-start; | ||
} | } | ||
.sb-spacer{ | .sb-spacer{ | ||
display: none; | display:none; | ||
} | } | ||
.sb-buttons{ | .sb-buttons{ | ||
flex-wrap: wrap; | flex-wrap:wrap; | ||
} | } | ||
} | } | ||
Version du 5 février 2026 à 08:22
/* =========================================================
SOCIALBUTTON — STYLES COMPLETS
========================================================= */
/* ===============================
BANDEAU GLOBAL
=============================== */
.sb-footer{
width:100%;
box-sizing:border-box;
display:flex;
align-items:center;
gap:14px;
padding:14px 16px;
border-radius:12px;
background:transparent; /* pas de fond gris */
box-shadow:none;
}
/* ===============================
TITRES
=============================== */
.sb-title{
font-weight:700;
font-size:1.05rem;
white-space:nowrap;
color:#000 !important; /* texte noir */
}
/* espaceur pour pousser la partie droite */
.sb-spacer{
flex:1 1 auto;
}
/* ===============================
GROUPES DE BOUTONS
=============================== */
.sb-buttons{
display:flex;
align-items:center;
gap:10px;
flex-wrap:nowrap; /* tout sur une ligne */
}
/* ===============================
WRAPPER BOUTON
=============================== */
.sb-btn{
border-radius:12px;
overflow:hidden;
transition:all .3s cubic-bezier(.4,0,.2,1);
box-shadow:0 2px 8px rgba(0,0,0,.10);
display:flex;
align-items:center;
justify-content:center;
background:#6c757d; /* fallback si pas de classe */
}
.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 14px;
gap:10px;
}
/* ===============================
LIEN EXTERNE GÉNÉRÉ PAR MEDIAWIKI
(RESET COMPLET → évite surcouches)
=============================== */
.sb-footer a,
.sb-footer a:link,
.sb-footer a:visited,
.sb-footer a:hover,
.sb-footer a:active,
.sb-footer a.external{
display:flex;
align-items:center;
justify-content:center;
gap:10px;
width:100%;
height:100%;
color:#fff !important;
text-decoration:none !important;
/* reset ultra important */
background:transparent !important;
background-color:transparent !important;
background-image:none !important;
padding:0 !important;
margin:0 !important;
border:0 !important;
outline:0 !important;
box-shadow:none !important;
}
/* Empêche toute peinture interne (corrige la "surcouche") */
.sb-btn *{
background:transparent !important;
}
/* ===============================
SUPPRESSION ICÔNE EXTERNE / COPIER
=============================== */
.sb-footer a::after,
.sb-footer a::before,
.sb-footer a.external::after,
.sb-footer a.external::before{
content:none !important;
display:none !important;
}
.sb-footer .oo-ui-iconElement-icon,
.sb-footer .mw-ui-icon,
.sb-footer .mw-icon,
.sb-footer .vector-icon,
.sb-footer .vector-icon-link-external,
.sb-footer .external-icon,
.sb-footer .mw-indicator,
.sb-footer .mw-indicators{
display:none !important;
}
/* ===============================
IMAGES
=============================== */
.sb-icon img{
width:28px !important;
height:28px !important;
object-fit:contain;
display:block;
}
.sb-support img{
width:22px !important;
height:22px !important;
object-fit:contain;
display:block;
}
/* ===============================
TEXTE BOUTONS SOUTIEN
=============================== */
.sb-support strong,
.sb-support b{
font-weight:700;
white-space:nowrap;
}
/* ===============================
RESPONSIVE
=============================== */
@media (max-width:900px){
.sb-footer{
flex-wrap:wrap;
align-items:flex-start;
}
.sb-spacer{
display:none;
}
.sb-buttons{
flex-wrap:wrap;
}
}