« Modèle:Badge/styles.css » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications |
mAucun résumé des modifications |
||
| (2 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 140 : | Ligne 140 : | ||
} | } | ||
/* === Icônes | /* === Icônes === */ | ||
/* Icône AVANT le texte | /* Icône AVANT le texte */ | ||
.badge | .badge > span:first-child, | ||
.badge . | .badge > i:first-child { | ||
.badge | margin-right: 0; | ||
margin-left: 0.6em; | |||
} | |||
/* Icône APRÈS le texte */ | |||
.badge > span:last-child:not(:first-child), | |||
.badge > i:last-child:not(:first-child) { | |||
margin-left: 0; | margin-left: 0; | ||
font-size: | margin-right: 0.6em; | ||
} | |||
/* Alignement vertical des icônes FontAwesome */ | |||
.badge .fa, | |||
.badge .fas, | |||
.badge .far, | |||
.badge .fab { | |||
font-size: 0.6em; | |||
vertical-align: middle; | vertical-align: middle; | ||
line-height: 1; | |||
display: inline-block; | |||
} | } | ||
/* | /* Correction pour l'extension FontAwesome qui génère des <span> */ | ||
.badge | .badge span[class*="fa-"] { | ||
margin-left: 0.6em; | |||
margin-left: 0. | |||
margin-right: 0; | margin-right: 0; | ||
} | } | ||
.badge span[class*="fa-"]:first-child { | |||
.badge | |||
margin-left: 0; | margin-left: 0; | ||
margin-right: 0.6em; | |||
} | } | ||