« Modèle:SocialButton/styles.css » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| (11 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 9 : | Ligne 9 : | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: | gap: 10px; | ||
padding: 12px 16px; | padding: 12px 16px; | ||
| Ligne 38 : | Ligne 38 : | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: | gap: 8px; | ||
flex-wrap: nowrap; | flex-wrap: nowrap; | ||
flex: 0 0 auto; | flex: 0 0 auto; | ||
| Ligne 79 : | Ligne 79 : | ||
/* Tailles */ | /* Tailles */ | ||
.sb-icon{ width: 45px; height: 45px; } | .sb-icon{ width: 45px; height: 45px; } | ||
.sb-btn.button-link--tiktok img{ | |||
transform: scale(1.8); | |||
transform-origin: center; | |||
} | |||
/* Support : base */ | /* Support : base */ | ||
| Ligne 116 : | Ligne 121 : | ||
/* ========================================= | /* ========================================= | ||
HELLOASSO | HELLOASSO — compact MAIS logo au-dessus du texte | ||
========================================= */ | ========================================= */ | ||
.sb-buttons--support{ | .sb-buttons--support{ | ||
display: flex; | display: flex; | ||
gap: | gap: 8px; | ||
flex: 0 0 auto; | flex: 0 0 auto; | ||
} | } | ||
| Ligne 127 : | Ligne 132 : | ||
.sb-buttons--support .sb-btn.sb-support{ | .sb-buttons--support .sb-btn.sb-support{ | ||
flex: 0 0 auto; | flex: 0 0 auto; | ||
width: | width: 140px; /* légèrement + large pour stabiliser la colonne */ | ||
height: 45px; | height: 45px; | ||
} | } | ||
| Ligne 134 : | Ligne 139 : | ||
width: 100% !important; | width: 100% !important; | ||
flex-direction: column; | display: flex; | ||
flex-direction: column; /* logo au-dessus */ | |||
justify-content: center; | justify-content: center; | ||
align-items: center; | align-items: center; | ||
padding: 0 | padding: 0 12px !important; /* compact horizontal */ | ||
gap: | gap: 2px; | ||
line-height: 1; | line-height: 1; | ||
| Ligne 145 : | Ligne 151 : | ||
} | } | ||
/* Logo : un peu moins "zoomé" pour éviter l’écrasement */ | |||
.sb-buttons--support .sb-btn.sb-support img{ | .sb-buttons--support .sb-btn.sb-support img{ | ||
height: 18px !important; | height: 18px !important; | ||
width: auto !important; | width: auto !important; | ||
transform: scale( | transform: scale(1.55); /* avant ~1.9/2 : dézoom */ | ||
transform-origin: center; | transform-origin: center; | ||
| Ligne 156 : | Ligne 163 : | ||
} | } | ||
/* Texte : compact et lisible */ | |||
.sb-buttons--support .sb-btn.sb-support b, | .sb-buttons--support .sb-btn.sb-support b, | ||
.sb-buttons--support .sb-btn.sb-support strong{ | .sb-buttons--support .sb-btn.sb-support strong{ | ||
display: block; | |||
margin: 0 !important; | |||
line-height: 1; | line-height: 1; | ||
font-size: 0. | font-size: 0.66rem; | ||
font-weight: 600; | font-weight: 600; | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
| Ligne 260 : | Ligne 271 : | ||
height: 45px; | height: 45px; | ||
padding: 0 | padding: 0 8px; /* compact pour tenir en 1 ligne */ | ||
border-radius: 12px; | border-radius: 12px; | ||
background: rgba(0,0,0,.05); | background: rgba(0,0,0,.05); | ||
line-height: 1; | line-height: 1; | ||
font-size: 0. | font-size: 0.82rem; | ||
} | } | ||
| Ligne 353 : | Ligne 364 : | ||
display: none !important; | display: none !important; | ||
content: none !important; | content: none !important; | ||
} | |||
/* ========================================= | |||
COMPTEURS — neutraliser le gadget/extension "copier" | |||
(sans toucher aux boutons) | |||
========================================= */ | |||
.sb-counters{ | |||
-webkit-user-select: none; | |||
user-select: none; | |||
} | |||
/* Si le gadget s'accroche à code/pre injectés, on les neutralise */ | |||
.sb-counters code, | |||
.sb-counters pre, | |||
.sb-counters kbd, | |||
.sb-counters samp{ | |||
background: transparent !important; | |||
border: 0 !important; | |||
padding: 0 !important; | |||
box-shadow: none !important; | |||
font-family: inherit !important; | |||
} | |||
/* Certains gadgets posent un bouton via pseudo-éléments / enfants */ | |||
.sb-counters [class*="copy"], | |||
.sb-counters .copy-button, | |||
.sb-counters .mw-copybutton, | |||
.sb-counters .mw-clipboard-button{ | |||
display: none !important; | |||
} | |||
/* ========================================= | |||
Séparateurs verticaux entre les 3 sections | |||
========================================= */ | |||
.sb-buttons--icons, | |||
.sb-buttons--support{ | |||
position: relative; | |||
} | |||
/* barre après Réseaux */ | |||
.sb-buttons--icons::after{ | |||
content: ""; | |||
display: block; | |||
width: 2px; | |||
height: 36px; /* ajuste si tu veux plus/moins haut */ | |||
background: #000; | |||
border-radius: 2px; | |||
margin: 0 14px; /* espace autour de la barre */ | |||
} | |||
/* barre après HelloAsso */ | |||
.sb-buttons--support::after{ | |||
content: ""; | |||
display: block; | |||
width: 2px; | |||
height: 36px; | |||
background: #000; | |||
border-radius: 2px; | |||
margin: 0 14px; | |||
} | |||
/* sur mobile (wrap), on enlève pour éviter des barres perdues */ | |||
@media (max-width: 900px){ | |||
.sb-buttons--icons::after, | |||
.sb-buttons--support::after{ | |||
display: none; | |||
} | |||
} | } | ||