Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confused about pseudo-elements in 5.0 #159

Open
jessephillips opened this issue Jul 3, 2018 · 1 comment
Open

Confused about pseudo-elements in 5.0 #159

jessephillips opened this issue Jul 3, 2018 · 1 comment

Comments

@jessephillips
Copy link

I was confused about how to use FontAwesome icons in 5.0. I eventually figured it out, but I think this (or something like it) would be a helpful addition to the docs (note: this is my first time ever making a suggested change to a public repo. I apologize if this is foolish or rude or something).

My suggested change to README.md:

CSS Pseudo Element Usage (:before/:after)

(See FontAwesome docs for more details on pseudo-elements)

4.x Syntax

&:before {
  font-family: "FontAwesome";
  content: "\f058"; // check-circle
}

5.x Syntax

  • The font-family is Font Awesome 5 Free
  • Use font-weight: 900 for solid icons
&:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f058";
}
@plindelauf
Copy link

This SHOULD be in the docs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants