« Modèle:SocialButton/styles.css » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications Balise : Révoqué |
Aucun résumé des modifications Balise : Révoqué |
||
| Ligne 1 : | Ligne 1 : | ||
/* ========================================================= | /* ========================================================= | ||
SOCIALBUTTON — STYLES COMPLETS | SOCIALBUTTON — STYLES COMPLETS (PROPORTIONS CORRIGÉES) | ||
========================================================= */ | ========================================================= */ | ||
/* Bandeau */ | |||
/* | |||
.sb-footer{ | .sb-footer{ | ||
width:100%; | width:100%; | ||
| Ligne 19 : | Ligne 15 : | ||
border-radius:12px; | border-radius:12px; | ||
background:transparent; | background:transparent; | ||
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 | color:#000 !important; | ||
} | } | ||
/* espaceur entre les deux blocs */ | |||
.sb-spacer{ flex:1 1 auto; } | |||
/* | /* Groupes */ | ||
.sb-buttons{ | .sb-buttons{ | ||
display:flex; | display:flex; | ||
align-items:center; | align-items:center; | ||
gap:10px; | gap:10px; | ||
flex-wrap:nowrap; | flex-wrap:nowrap; | ||
} | } | ||
/* Bouton wrapper */ | |||
/* | |||
.sb-btn{ | .sb-btn{ | ||
border-radius:12px; | border-radius:12px; | ||
| Ligne 65 : | Ligne 46 : | ||
box-shadow:0 2px 8px rgba(0,0,0,.10); | box-shadow:0 2px 8px rgba(0,0,0,.10); | ||
display:flex; | display:inline-flex; /* <-- clé : proportions naturelles */ | ||
align-items:center; | align-items:center; | ||
justify-content:center; | justify-content:center; | ||
flex:0 0 auto; /* <-- n’absorbe pas l’espace */ | |||
background:#6c757d; | |||
} | } | ||
| Ligne 77 : | Ligne 59 : | ||
} | } | ||
/* Tailles */ | |||
/* | .sb-icon{ width:58px; height:58px; } | ||
.sb-icon{ | |||
} | |||
.sb-support{ | .sb-support{ | ||
height:58px; | height:58px; | ||
| Ligne 93 : | Ligne 67 : | ||
} | } | ||
/* Lien externe MW : NE DOIT PAS étirer le bouton */ | |||
/* | |||
.sb-footer a, | .sb-footer a, | ||
.sb-footer a:link, | .sb-footer a:link, | ||
| Ligne 105 : | Ligne 74 : | ||
.sb-footer a:active, | .sb-footer a:active, | ||
.sb-footer a.external{ | .sb-footer a.external{ | ||
display:inline-flex; /* <-- plus de flex plein écran */ | |||
display:flex; | |||
align-items:center; | align-items:center; | ||
justify-content:center; | justify-content:center; | ||
gap:10px; | gap:10px; | ||
width: | width:auto !important; /* <-- empêche l’étirement */ | ||
height: | height:auto !important; | ||
color:#fff !important; | color:#fff !important; | ||
text-decoration:none !important; | text-decoration:none !important; | ||
background:transparent !important; | background:transparent !important; | ||
background-color:transparent !important; | background-color:transparent !important; | ||
| Ligne 130 : | Ligne 97 : | ||
} | } | ||
/* Corrige la "surcouche" */ | |||
.sb-btn *{ background:transparent !important; } | |||
/* | /* Supprimer icône externe/copie */ | ||
.sb-footer a::after, | .sb-footer a::after, | ||
.sb-footer a::before, | .sb-footer a::before, | ||
| Ligne 149 : | Ligne 109 : | ||
} | } | ||
/* Masquage large des icônes injectées (si gadget/skin) */ | |||
.sb-footer .oo-ui-iconElement-icon, | .sb-footer .oo-ui-iconElement-icon, | ||
.sb-footer .mw-ui-icon, | .sb-footer .mw-ui-icon, | ||
| Ligne 160 : | Ligne 121 : | ||
} | } | ||
/* Images */ | |||
/* | |||
.sb-icon img{ | .sb-icon img{ | ||
width:28px !important; | width:28px !important; | ||
| Ligne 179 : | Ligne 136 : | ||
} | } | ||
/* Texte soutien */ | |||
/* | |||
.sb-support strong, | .sb-support strong, | ||
.sb-support b{ | .sb-support b{ | ||
| Ligne 190 : | Ligne 143 : | ||
} | } | ||
/* Responsive (inchangé) */ | |||
/* | |||
@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; | ||
} | } | ||
.sb-spacer{ display:none; } | |||
.sb-spacer{ | .sb-buttons{ flex-wrap:wrap; } | ||
.sb-buttons{ | |||
} | } | ||
Version du 5 février 2026 à 08:25
/* =========================================================
SOCIALBUTTON — STYLES COMPLETS (PROPORTIONS CORRIGÉES)
========================================================= */
/* Bandeau */
.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;
}
/* Titres */
.sb-title{
font-weight:700;
font-size:1.05rem;
white-space:nowrap;
color:#000 !important;
}
/* espaceur entre les deux blocs */
.sb-spacer{ flex:1 1 auto; }
/* Groupes */
.sb-buttons{
display:flex;
align-items:center;
gap:10px;
flex-wrap:nowrap;
}
/* Bouton wrapper */
.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:inline-flex; /* <-- clé : proportions naturelles */
align-items:center;
justify-content:center;
flex:0 0 auto; /* <-- n’absorbe pas l’espace */
background:#6c757d;
}
.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 MW : NE DOIT PAS étirer le bouton */
.sb-footer a,
.sb-footer a:link,
.sb-footer a:visited,
.sb-footer a:hover,
.sb-footer a:active,
.sb-footer a.external{
display:inline-flex; /* <-- plus de flex plein écran */
align-items:center;
justify-content:center;
gap:10px;
width:auto !important; /* <-- empêche l’étirement */
height:auto !important;
color:#fff !important;
text-decoration:none !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;
}
/* Corrige la "surcouche" */
.sb-btn *{ background:transparent !important; }
/* Supprimer icône externe/copie */
.sb-footer a::after,
.sb-footer a::before,
.sb-footer a.external::after,
.sb-footer a.external::before{
content:none !important;
display:none !important;
}
/* Masquage large des icônes injectées (si gadget/skin) */
.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 soutien */
.sb-support strong,
.sb-support b{
font-weight:700;
white-space:nowrap;
}
/* Responsive (inchangé) */
@media (max-width:900px){
.sb-footer{
flex-wrap:wrap;
align-items:flex-start;
}
.sb-spacer{ display:none; }
.sb-buttons{ flex-wrap:wrap; }
}