Social media icons not being correctly displayed on FUN
ArturoAmorQ opened this issue · 11 comments
@brospars do you know if FUN can support fontawesome?
Yes it does but fontawesome v4 which uses fa fa-icon
instead of fab fa-icon
Is it possible to upgrade it to v5?
Can you use both tags (for both versions of fontawesome)?
Unfortunately it wouldn't work on the Jupyterbook side since font awseome v5 is now splitted in multiple fonts (free, brands, etc).
But I guess I could add an alias .fab
for the .fa
class in our css. The only drawback is that new icons won't work with this workaround
Thank you, I didn't think of that earlier...
It is now fixed.
Thanks @brospars!
Fontawesome uses css classes and pseudo-elements to display an icon using a font. For example :
.fa {
font: normal normal normal 14px/1 FontAwesome;
}
.fa-github::before {
content: "\f09b";
}
...
So I simply added a rule in our custom css so that .fab
is the same as .fa
like so :
.fa, .fab{
font: normal normal normal 14px/1 FontAwesome;
}