TimGoulain / tim_app

ruby on rails tutorial
0 stars 0 forks source link

Set up Font Awesome #17

Closed jibai31 closed 9 years ago

jibai31 commented 9 years ago

Font Awesome

Super library to easily put icons in your views

List of icons : http://fortawesome.github.io/Font-Awesome/icons/

How to use : Find the icon you want to display (eg, "check"). Add a <b> tag in your HTML with the class fa and a class fa-check (or the name of whatever icon you found in the list).

<b class="fa fa-check"></b>

Or in HAML for a link :

= link_to new_user_registration_path, class: "btn btn-primary btn-lg" do
  %b.fa.fa-check
  Sign up now!

screen shot 2015-08-19 at 16 49 26