nagoshiashumari / Rpg-Awesome

A fantasy themed font and CSS toolkit.
http://nagoshiashumari.github.io/Rpg-Awesome/
BSD 2-Clause "Simplified" License
863 stars 50 forks source link

Rails install #32

Closed geraldhiller closed 7 years ago

geraldhiller commented 7 years ago

How would I install this in a rails app? Thanks a lot for your help!

tritium21 commented 7 years ago

You would serve the font as a static file, and include it in your CSS. There is nothing rails specific about it. In fact, since you shouldn't be serving static files through rails at all (you should be using your front end web server to serve both the font and CSS), you shouldn't do anything to a rails app to use a font.

geraldhiller commented 7 years ago

Which file would I serve?

LiamKenneth commented 7 years ago

You need to add the rpg-awesome.css to your html page and make sure the file path for the fonts point to the correct place.

The paths for the fonts are at the top of the css file so you can't miss them.

Add this between your head tags (make sure file path is correct): <link rel="stylesheet" href="css/rpg-awesome.css" />

You use the icons like this: <i class="ra ra-aware"></i>

Here's the full list of icons keep the ra class and just change the ra-aware to the one you want.

Also there is a demo file you can checkout that should help.

geraldhiller commented 7 years ago

Thanks a lot!