« 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évocation manuelle |
||
| Ligne 1 : | Ligne 1 : | ||
/* | /* Bandeau : une seule ligne (desktop), fond transparent */ | ||
.sb-footer{ | .sb-footer{ | ||
width: 100%; | |||
box-sizing: border-box; | |||
width:100%; | |||
box-sizing:border-box; | |||
display: flex; | |||
align-items: center; | |||
gap: 14px; | |||
padding: 14px 16px; | |||
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{ | ||
font-weight:700; | color: #fff; | ||
font-size:1.05rem; | font-weight: 700; | ||
white-space:nowrap | font-size: 1.05rem; | ||
white-space: nowrap; | |||
} | } | ||
/* Spacer pour pousser la partie soutien à droite */ | |||
.sb-spacer{ | .sb-spacer{ | ||
flex:1; | 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; /* <-- tout sur une seule ligne */ | |||
} | } | ||
/* Boutons (wrapper) : reprend le look ButtonLink */ | |||
.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; | |||
} | } | ||
.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); | ||
} | } | ||
/* Réseaux : 58x58 */ | |||
/* | |||
.sb-icon{ | .sb-icon{ | ||
width:58px; | width: 58px; | ||
height:58px; | height: 58px; | ||
} | } | ||
/* Soutien : 58px haut, largeur auto */ | |||
.sb-support{ | .sb-support{ | ||
height:58px; | height: 58px; | ||
padding:0 14px | padding: 0 14px; | ||
} | } | ||
/* IMPORTANT : le lien généré par [URL LABEL] doit remplir le bouton */ | |||
.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; /* évite que le thème mette un fond sur <a> */ | |||
} | } | ||
/* | /* Neutraliser l’icône au survol (lien externe / copier) DANS le bandeau */ | ||
.sb-footer a.external::after{ | .sb-footer a.external::after{ | ||
display:none !important; | display: none !important; | ||
content: none !important; | |||
} | |||
.sb-footer a::after{ | |||
display: none !important; | |||
content: none !important; | |||
} | } | ||
/* Certains skins ajoutent une icône via background-image : on coupe */ | |||
.sb-footer a.external{ | |||
background-image: none !important; | |||
padding-right: 0 !important; | |||
} | |||
/* | /* 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; | |||
} | } | ||
.sb-support img{ | .sb-support img{ | ||
width:22px !important; | width: 22px !important; | ||
height:22px !important; | height: 22px !important; | ||
object-fit: contain; | |||
display: block; | |||
} | } | ||
/* Empêcher l’URL de s’afficher (ce que tu vois sur ta capture) : | |||
certains wikis affichent l’URL dans les liens externes si label “non reconnu”. | |||
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; | |||
} | |||
@media (max-width:900px){ | /* Responsive : en dessous de 900px, on wrap sur 2 lignes proprement */ | ||
@media (max-width: 900px){ | |||
.sb-footer{ | .sb-footer{ | ||
flex-wrap:wrap; | flex-wrap: wrap; | ||
align-items: flex-start; | |||
} | |||
.sb-spacer{ | |||
display: none; | |||
} | |||
.sb-buttons{ | |||
flex-wrap: wrap; | |||
} | } | ||
} | } | ||
Version du 5 février 2026 à 08:28
/* Bandeau : une seule ligne (desktop), fond transparent */
.sb-footer{
width: 100%;
box-sizing: border-box;
display: flex;
align-items: center;
gap: 14px;
padding: 14px 16px;
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{
color: #fff;
font-weight: 700;
font-size: 1.05rem;
white-space: nowrap;
}
/* Spacer pour pousser la partie soutien à 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 seule ligne */
}
/* Boutons (wrapper) : reprend le look ButtonLink */
.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: flex;
align-items: center;
justify-content: center;
/* fallback */
background: #6c757d;
}
.sb-btn:hover{
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(0,0,0,.20);
}
/* Réseaux : 58x58 */
.sb-icon{
width: 58px;
height: 58px;
}
/* Soutien : 58px haut, largeur auto */
.sb-support{
height: 58px;
padding: 0 14px;
}
/* IMPORTANT : le lien généré par [URL LABEL] doit remplir le bouton */
.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; /* évite que le thème mette un fond sur <a> */
}
/* 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;
}
/* Certains skins ajoutent une icône via background-image : on coupe */
.sb-footer a.external{
background-image: none !important;
padding-right: 0 !important;
}
/* Images : tailles propres */
.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;
}
/* Empêcher l’URL de s’afficher (ce que tu vois sur ta capture) :
certains wikis affichent l’URL dans les liens externes si label “non reconnu”.
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;
}
}