jthingelstad / foreground

A MediaWiki skin that focuses on putting your content in the foreground.
http://foreground.wikiproject.net/
Other
137 stars 60 forks source link

Fontawesome icons Pure CSS #386

Closed Hutchy68 closed 3 years ago

Hutchy68 commented 3 years ago

This is a pure CSS method of using icons for Foreground. I also updated Fontawesome to 4.7.0. For some reason, the fonts and the CSS for Fontawesome was still 4.5. OUCH!

Example of CSS needed to add a new icon to a menu item in navigation:

#n-FAQs a:before {content: "\f29c";} is for a circle question mark.

The content value is always \ followed by the Unicode value. From https://fontawesome.com/v4.7.0/icon/question-circle-o

image

Hutchy68 commented 3 years ago

Reference Issue #385

Hutchy68 commented 3 years ago

Can I get some feedback on this PR? Has anyone tried it/tested it yet? I would like to get out a new release of Foreground.