Skip to content

A sleek webfont for your favourite cryptocurrencies. Featuring 88 icons. CryptoFont by @AMPoellmann (alexanderpoellmann.com)

License

Notifications You must be signed in to change notification settings

frizbee/cryptofont-rails

Repository files navigation

cryptofont-rails

Cryptofont-rails provides the Cryptofont web fonts and styles as Rails engine for use with the asset pipeline.

Installation

Add this line to your application's Gemfile:

gem 'cryptofont-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cryptofont-rails

Usage

In your application.css, include the css file:

/*
 * require cryptofont
 */

Then restart your webserver if it was peviously running. Congratulation! You now have cryptofont icon support.

SASS Support

It you prefer SCSS, add this to your application.css.scss file:

@import "cryptofont";

If you use the SASS indented syntax, add this to your application.css.sass file:

@import cryptofont

Helpers

There are also some helpers cf_icon that make your views better read and cleaner.

cf_icon "btc"
# => <i class="cf-btc"></i>

cf_icon "ltc", text: "Litecoin"
# => <i class="cf-litecoin"></i> Litecoin

cf_icon "eth", text: "Ethereum", right: true
# => Ethereum <i class="cf-eth"></i>

cf_icon "dash 4x", text: "Dash"
# => <i class="cf-dash cf-4x"></i>

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/frizbee/cryptofont-rails.

License

About

A sleek webfont for your favourite cryptocurrencies. Featuring 88 icons. CryptoFont by @AMPoellmann (alexanderpoellmann.com)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published