« Modèle:SocialButton/styles.css » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 55 : | Ligne 55 : | ||
========================================= */ | ========================================= */ | ||
. | .sb-wrapper { | ||
min-height: 80px; | min-height: 80px; | ||
border-radius: 12px; | border-radius: 12px; | ||
| Ligne 68 : | Ligne 68 : | ||
} | } | ||
. | .sb-wrapper:hover { | ||
transform: translateY(-2px); | transform: translateY(-2px); | ||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); | box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); | ||
} | } | ||
. | .sb-content { | ||
width: 100%; | width: 100%; | ||
text-align: center; | text-align: center; | ||
| Ligne 79 : | Ligne 79 : | ||
} | } | ||
. | .sb-content a { | ||
color: white !important; | color: white !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
| Ligne 88 : | Ligne 88 : | ||
} | } | ||
. | .sb-content a:hover, | ||
. | .sb-content a:visited { | ||
color: white !important; | color: white !important; | ||
} | } | ||
/* CONTENEUR D'IMAGE DE TAILLE FIXE */ | /* CONTENEUR D'IMAGE DE TAILLE FIXE */ | ||
. | .sb-content .mw-file-description { | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
width: | width: 50px; /* LARGEUR FIXE */ | ||
height: 50px; /* HAUTEUR FIXE */ | height: 50px; /* HAUTEUR FIXE */ | ||
margin: 0 auto 0.5rem; | margin: 0 auto 0.5rem; | ||
| Ligne 105 : | Ligne 105 : | ||
/* IMAGE RESPONSIVE DANS LE CONTENEUR */ | /* IMAGE RESPONSIVE DANS LE CONTENEUR */ | ||
. | .sb-content img { | ||
max-width: 100%; /* Ne dépasse pas le conteneur */ | max-width: 100%; /* Ne dépasse pas le conteneur */ | ||
max-height: 100%; /* Ne dépasse pas le conteneur */ | max-height: 100%; /* Ne dépasse pas le conteneur */ | ||
| Ligne 115 : | Ligne 115 : | ||
/* Masquer l'icône de lien externe */ | /* Masquer l'icône de lien externe */ | ||
. | .sb-content a.external::after { | ||
display: none !important; | display: none !important; | ||
} | } | ||
Version du 5 février 2026 à 08:47
/* =========================================
BANDEAU FOOTER SOCIAL
========================================= */
/* Container principal */
.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 (texte noir demandé)
========================================= */
.sb-title{
color: #000 !important;
font-weight: 700;
font-size: 1.05rem;
white-space: nowrap;
}
/* Spacer pousse la partie soutien à droite */
.sb-spacer{
flex: 1 1 auto;
}
/* =========================================
GROUPES
========================================= */
.sb-buttons{
display: flex;
align-items: center;
gap: 10px;
flex-wrap: nowrap;
}
/* =========================================
BOUTONS (base commune)
========================================= */
.sb-wrapper {
min-height: 80px;
border-radius: 12px;
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;
}
.sb-wrapper:hover {
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.sb-content {
width: 100%;
text-align: center;
padding: 1rem;
}
.sb-content a {
color: white !important;
text-decoration: none !important;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.sb-content a:hover,
.sb-content a:visited {
color: white !important;
}
/* CONTENEUR D'IMAGE DE TAILLE FIXE */
.sb-content .mw-file-description {
display: flex;
align-items: center;
justify-content: center;
width: 50px; /* LARGEUR FIXE */
height: 50px; /* HAUTEUR FIXE */
margin: 0 auto 0.5rem;
overflow: hidden; /* Cache ce qui dépasse */
}
/* IMAGE RESPONSIVE DANS LE CONTENEUR */
.sb-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-content a.external::after {
display: none !important;
}
/* =========================================
TAILLES
========================================= */
/* Réseaux carrés */
.sb-icon{
width: 58px;
height: 58px;
}
/* Boutons soutien */
.sb-support{
height: 58px;
padding: 0 14px;
}
/* =========================================
LIENS INTERNES (MediaWiki safe)
========================================= */
.sb-footer a{
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
width: 100%;
height: 100%;
color: #fff !important;
text-decoration: none !important;
background: transparent !important;
}
/* Masquer l'icône de lien externe */
.button-link-content a.external::after {
display: none !important;
}
/* Masquer éventuel texte brut d’URL */
.sb-footer a.external{
font-size: 0;
}
.sb-footer a.external img,
.sb-footer a.external b,
.sb-footer a.external strong{
font-size: initial;
}
/* =========================================
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-size: 0.95rem;
font-weight: 700;
white-space: nowrap;
}
/* =========================================
COULEURS RÉSEAUX SOCIAUX
(scopé uniquement au footer)
========================================= */
.sb-footer .button-link--discord { background: #5865f2; }
.sb-footer .button-link--twitter { background: #1da1f2; }
.sb-footer .button-link--instagram {
background: linear-gradient(
45deg,
#f09433 0%,
#e6683c 25%,
#dc2743 50%,
#cc2366 75%,
#bc1888 100%
);
}
.sb-footer .button-link--tiktok { background: #000000; }
/* HelloAsso */
.sb-footer .button-link--helloasso { 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;
}
}