« Modèle:SocialButton/styles.css » : différence entre les versions
De Nefald
Autres actions
Annulation des modifications 4277 de Agrado (discussion) Balise : Annulation |
v2 du bandeau |
||
| Ligne 1 : | Ligne 1 : | ||
/* Bandeau : une seule ligne (desktop), fond transparent */ | |||
.sb-footer{ | .sb-footer{ | ||
width: 100%; | width: 100%; | ||
| Ligne 4 : | Ligne 5 : | ||
display: flex; | display: flex; | ||
align-items: center; | |||
gap: | gap: 14px; | ||
padding: | padding: 14px 16px; | ||
border-radius: 12px; | border-radius: 12px; | ||
background: transparent; /* <-- plus de fond gris */ | |||
box-shadow: none; /* optionnel, tu peux remettre une ombre si tu veux */ | |||
overflow: visible; | |||
} | } | ||
/* Titres inline */ | |||
.sb-title{ | .sb-title{ | ||
color: #fff; | color: #fff; | ||
font-weight: 700; | font-weight: 700; | ||
font-size: 1. | font-size: 1.05rem; | ||
white-space: nowrap; | |||
} | |||
/* Spacer pour pousser la partie soutien à droite */ | |||
.sb-spacer{ | |||
flex: 1 1 auto; | |||
} | } | ||
.sb- | /* Groupes de boutons */ | ||
.sb-buttons{ | |||
display: flex; | display: flex; | ||
align-items: center; | |||
gap: 10px; | gap: 10px; | ||
flex-wrap: nowrap; /* <-- tout sur une seule ligne */ | |||
} | } | ||
/* | /* Boutons (wrapper) : reprend le look ButtonLink */ | ||
.sb- | .sb-btn{ | ||
border-radius: 12px; | |||
overflow: hidden; | |||
box-shadow: 0 2px 8px rgba(0,0,0,.10); | |||
transition: all .3s cubic-bezier(.4,0,.2,1); | |||
display: | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
/* fallback */ | |||
background: #6c757d; | |||
} | |||
box-shadow: 0 | .sb-btn:hover{ | ||
transform: translateY(-2px); | |||
box-shadow: 0 4px 16px rgba(0,0,0,.20); | |||
} | } | ||
.sb-icon | /* Réseaux : 58x58 */ | ||
.sb-icon{ | |||
width: 58px; | |||
height: 58px; | |||
} | } | ||
/* | /* Soutien : 58px haut, largeur auto */ | ||
.sb-support{ | .sb-support{ | ||
height: 58px; | height: 58px; | ||
display: | padding: 0 14px; | ||
} | |||
/* IMPORTANT : le lien généré par [URL LABEL] doit remplir le bouton */ | |||
.sb-footer a{ | |||
display: flex; | |||
align-items: center; | align-items: center; | ||
justify-content: center; | |||
gap: 10px; | gap: 10px; | ||
width: 100%; | |||
height: 100%; | |||
color: #fff !important; | |||
text-decoration: none !important; | text-decoration: none !important; | ||
background: transparent !important; /* évite que le thème mette un fond sur <a> */ | |||
} | } | ||
.sb- | /* Neutraliser l’icône au survol (lien externe / copier) DANS le bandeau */ | ||
.sb-footer a.external::after{ | |||
display: none !important; | |||
content: none !important; | |||
} | |||
.sb-footer a::after{ | |||
display: none !important; | |||
content: none !important; | |||
} | } | ||
.sb- | /* Certains skins ajoutent une icône via background-image : on coupe */ | ||
.sb-footer a.external{ | |||
background-image: none !important; | |||
padding-right: 0 !important; | |||
} | } | ||
/* Images */ | /* Images : tailles propres */ | ||
.sb-icon img{ | .sb-icon img{ | ||
width: 28px !important; | width: 28px !important; | ||
height: 28px !important; | height: 28px !important; | ||
object-fit: contain; | |||
display: block; | display: block; | ||
} | } | ||
.sb- | .sb-support img{ | ||
width: 22px !important; | width: 22px !important; | ||
height: 22px !important; | height: 22px !important; | ||
object-fit: contain; | |||
display: block; | display: block; | ||
} | } | ||
/* | /* Empêcher l’URL de s’afficher (ce que tu vois sur ta capture) : | ||
.sb-footer a.external:: | certains wikis affichent l’URL dans les liens externes si label “non reconnu”. | ||
display: none | Ici on force le label à rester le contenu seulement. */ | ||
.sb-footer a.external{ | |||
font-size: 0; /* masque tout texte brut éventuel */ | |||
} | |||
.sb-footer a.external img, | |||
.sb-footer a.external b, | |||
.sb-footer a.external strong{ | |||
font-size: initial; /* réactive la taille sur éléments visibles */ | |||
} | |||
/* Texte des boutons soutien */ | |||
.sb-support strong, .sb-support b{ | |||
font-size: 0.95rem; | |||
font-weight: 700; | |||
white-space: nowrap; | |||
} | |||
/* Responsive : en dessous de 900px, on wrap sur 2 lignes proprement */ | |||
@media (max-width: 900px){ | |||
.sb-footer{ | |||
flex-wrap: wrap; | |||
align-items: flex-start; | |||
} | |||
.sb-spacer{ | |||
display: none; | |||
} | |||
.sb-buttons{ | |||
flex-wrap: wrap; | |||
} | |||
} | } | ||