iamjohnlong / entypo-rails

Rails asset pipeline plugin and icon mappings for the awesome http://www.entypo.com/ icon font.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

entypo-rails

An asset pipeline plugin for Rails to easily add the Entypo icon font faces and an initial set of icon classes.

Entypo

The Entypo pictograms by Daniel Bruce http://www.entypo.com/ are provided in vendor. These pictograms are licensed under CC BY 3.0 and the font unter SIL Open Font License.

Installation

Add this line to your application's Gemfile:

gem 'entypo-rails'

And then execute:

$ bundle

Usage

Either use the provided mappings, based on icons-... and the :before:

// application.css[.scss]
//= require entypo
@charset "UTF-8";
<!-- some_template.html... -->
This is cool <i class="icon-thumbs-up"></i>.

or just include the entypo font face and do the mappings yourself, go to http://localhost:3000/_entypo/charmap in your browser for a list of all unicode codepoints and CSS classes.

// application.css[.scss]
//= require entypo-fonts
@charset "UTF-8";

// icons.css.scss (or wherever)
i.cool { font-family: 'entypo' }
i.cool:before { content: "\1F44D"; }
<!-- some_template.html... -->
This is cool <i class="cool"></i>.

Changes

2.0.0

  • Breaking: combined entyo and entypo social font, so entypo-social font family no longer exists
  • #2, #3, fixed display issues on Opera

1.0.2

  • Bugfix release for Rails asset pipeline

1.0.0

  • Initial release, with entypo fonts from 2012-10-31

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Rails asset pipeline plugin and icon mappings for the awesome http://www.entypo.com/ icon font.

License:Other