uriji-icons-rails
An asset gemification of the uriji-icons font library
Installation
In your Gemfile include:
gem "uriji-icons-rails"
And then execute:
bundle install
Usage
In your application.css
, include the css file:
/*
*= require uriji-icons
*/
Then restart your webserver if it was previously running.
Sass Support
If you prefer SCSS, add this to your
application.css.scss
file:
@import "uriji-icons";
If you use the
Sass indented syntax,
add this to your application.css.sass
file:
@import uriji-icons
Helpers
The uj_icon
helper has been included. Some examples:
uj_icon "story"
# => <i class="uj-story"></i>
uj_icon "dream", text: "Dream"
# => <i class="uj-dream"></i> Dream
uj_icon "milestone", text: "Milestone", class: "hidden"
# => <i class="uj-milestone hidden"></i> Milestone
Icons
The source currently includes 99 icons, yo can see them in the Online Demo.
License
The MIT License