You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation says I can color Fontawesome icons like so:
i.fa-twitter-square:before {
color:#55acee;
}
First, it's fa-square-twitter and not fa-twitter-square. Regardless, it does not work. For example, with the following conf.py (clean project with sphinx-quickstart):
You're correct that the example still uses the old name for that icon, it should be fa-square-twitter. You're also right that the example still doesn't work even if you fix that. That's because we switched to embedding the icons as svg nodes instead of i nodes (which also makes the ::before part incorrect). The guidance should be:
svg.fa-square-twitter {
color:#55acee;
}
I'll open a quick PR. Thanks for flagging the mistake.
The documentation says I can color Fontawesome icons like so:
First, it's
fa-square-twitter
and notfa-twitter-square
. Regardless, it does not work. For example, with the followingconf.py
(clean project with sphinx-quickstart):and
_static/styles.css
:the icon is still in the default grey color.
The only way I could get it to work was by targeting the class directly:
but since I wanted to add the color on hover, I had to do this:
I'm using
v0.16.1
with Sphinx8.1.3
.The text was updated successfully, but these errors were encountered: