« Modèle:SocialButton/styles.css » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications |
Aucun résumé des modifications Balise : Révoqué |
||
| Ligne 3 : | Ligne 3 : | ||
========================================= */ | ========================================= */ | ||
.sb-footer{ | .sb-footer{ | ||
width: 100%; | width: 100%; | ||
| Ligne 22 : | Ligne 21 : | ||
/* ========================================= | /* ========================================= | ||
TITRES | TITRES | ||
========================================= */ | ========================================= */ | ||
| Ligne 33 : | Ligne 32 : | ||
/* Spacer | /* Spacer */ | ||
.sb-spacer{ | .sb-spacer{ | ||
flex: 1 1 auto; | flex: 1 1 auto; | ||
| Ligne 52 : | Ligne 51 : | ||
/* ========================================= | /* ========================================= | ||
BOUTONS ( | BOUTONS — BASE UNIQUE (IMPORTANT) | ||
========================================= */ | ========================================= */ | ||
.sb- | .sb-footer .sb-btn{ | ||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
border-radius: 12px; | |||
overflow: hidden; | |||
. | transition: all .3s cubic-bezier(.4,0,.2,1); | ||
box-shadow: 0 2px 8px rgba(0,0,0,.10); | |||
/* PAS de gris fallback */ | |||
background: transparent; | |||
} | } | ||
.sb-footer .sb-btn:hover{ | |||
.sb- | transform: translateY(-2px); | ||
box-shadow: 0 4px 16px rgba(0,0,0,.20); | |||
} | } | ||
| Ligne 124 : | Ligne 79 : | ||
========================================= */ | ========================================= */ | ||
/* Réseaux carrés */ | /* Réseaux (carrés) */ | ||
.sb-icon{ | .sb-icon{ | ||
width: 58px; | width: 58px; | ||
| Ligne 130 : | Ligne 85 : | ||
} | } | ||
/* | /* Soutien (largeur auto) */ | ||
.sb-support{ | .sb-support{ | ||
height: 58px; | height: 58px; | ||
padding: 0 | padding: 0 16px; | ||
} | } | ||
/* ========================================= | /* ========================================= | ||
LIEN INTERNE PLEIN BOUTON | |||
========================================= */ | ========================================= */ | ||
.sb-footer a{ | .sb-footer .sb-btn > a{ | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| Ligne 149 : | Ligne 104 : | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
margin: 0 !important; | |||
padding: 0 !important; | |||
background: transparent !important; | |||
border: 0 !important; | |||
box-shadow: none !important; | |||
color: #fff !important; | color: #fff !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
} | |||
/* ========================================= | |||
SUPPRESSION STYLES MEDIAWIKI INDÉSIRABLES | |||
========================================= */ | |||
/* | /* icône lien externe */ | ||
. | .sb-footer a::after, | ||
.sb-footer a::before, | |||
.sb-footer a.external::after, | |||
.sb-footer a.external::before{ | |||
display: none !important; | |||
content: none !important; | |||
} | } | ||
/* | /* background auto des liens externes */ | ||
.sb-footer a.external{ | .sb-footer a.external{ | ||
background-image: none !important; | |||
padding-right: 0 !important; | |||
} | } | ||
.sb-footer | /* wrappers fichiers */ | ||
. | .sb-footer .mw-file-description{ | ||
background: transparent !important; | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
border: 0 !important; | |||
} | } | ||
| Ligne 204 : | Ligne 175 : | ||
/* ========================================= | /* ========================================= | ||
COULEURS RÉSEAUX SOCIAUX | COULEURS RÉSEAUX SOCIAUX | ||
( | (appliquées AU BOUTON, pas au lien) | ||
========================================= */ | ========================================= */ | ||
.sb-footer .button-link--discord { background: #5865f2; } | .sb-footer .sb-btn.button-link--discord { background: #5865f2; } | ||
.sb-footer .button-link--twitter { background: #1da1f2; } | .sb-footer .sb-btn.button-link--twitter { background: #1da1f2; } | ||
.sb-footer .button-link--instagram { | .sb-footer .sb-btn.button-link--instagram{ | ||
background: linear-gradient( | background: linear-gradient( | ||
45deg, | 45deg, | ||
| Ligne 221 : | Ligne 192 : | ||
} | } | ||
.sb-footer .button-link--tiktok { background: # | .sb-footer .sb-btn.button-link--tiktok { background: #000; } | ||
.sb-footer .sb-btn.button-link--helloasso { background: #5a2ca0; } | |||
.sb-footer .button-link--helloasso { background: #5a2ca0; } | |||
Version du 5 février 2026 à 08:51
/* =========================================
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 — BASE UNIQUE (IMPORTANT)
========================================= */
.sb-footer .sb-btn{
display: flex;
align-items: center;
justify-content: center;
border-radius: 12px;
overflow: hidden;
transition: all .3s cubic-bezier(.4,0,.2,1);
box-shadow: 0 2px 8px rgba(0,0,0,.10);
/* PAS de gris fallback */
background: transparent;
}
.sb-footer .sb-btn:hover{
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(0,0,0,.20);
}
/* =========================================
TAILLES
========================================= */
/* Réseaux (carrés) */
.sb-icon{
width: 58px;
height: 58px;
}
/* Soutien (largeur auto) */
.sb-support{
height: 58px;
padding: 0 16px;
}
/* =========================================
LIEN INTERNE PLEIN BOUTON
========================================= */
.sb-footer .sb-btn > a{
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
width: 100%;
height: 100%;
margin: 0 !important;
padding: 0 !important;
background: transparent !important;
border: 0 !important;
box-shadow: none !important;
color: #fff !important;
text-decoration: none !important;
}
/* =========================================
SUPPRESSION STYLES MEDIAWIKI INDÉSIRABLES
========================================= */
/* icône lien externe */
.sb-footer a::after,
.sb-footer a::before,
.sb-footer a.external::after,
.sb-footer a.external::before{
display: none !important;
content: none !important;
}
/* background auto des liens externes */
.sb-footer a.external{
background-image: none !important;
padding-right: 0 !important;
}
/* wrappers fichiers */
.sb-footer .mw-file-description{
background: transparent !important;
padding: 0 !important;
margin: 0 !important;
border: 0 !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-size: 0.95rem;
font-weight: 700;
white-space: nowrap;
}
/* =========================================
COULEURS RÉSEAUX SOCIAUX
(appliquées AU BOUTON, pas au lien)
========================================= */
.sb-footer .sb-btn.button-link--discord { background: #5865f2; }
.sb-footer .sb-btn.button-link--twitter { background: #1da1f2; }
.sb-footer .sb-btn.button-link--instagram{
background: linear-gradient(
45deg,
#f09433 0%,
#e6683c 25%,
#dc2743 50%,
#cc2366 75%,
#bc1888 100%
);
}
.sb-footer .sb-btn.button-link--tiktok { background: #000; }
.sb-footer .sb-btn.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;
}
}