You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

font-ionicons-rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

font-ionicons-rails

2.0.1.6
bundlerRubygems
Version published
Maintainers
1
Created
Source

font-ionicons-rails Gem Version Build Status

The font-ionicons-rails is the best gem made for ionicons and provides the ionicons web fonts and stylesheets as a Rails engine for use with the asset pipeline.

Installation

Add this to your Gemfile:

gem "font-ionicons-rails"

or

gem "font-ionicons-rails", git: 'https://github.com/ricardoemerson/font-ionicons-rails.git'

and run bundle install.

Usage

In your application.css, include the css file:

/*
 *= require ionicons
 */

Then restart your webserver if it was previously running.

Sass Support

If you prefer SCSS, add this to yourapplication.css.scss file:

@import "ionicons";

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

@import ionicons

Helpers

There are also some helpers (ion_icon) for improve use.

ion_icon "camera"
# => <i class="ion-camera"></i>

ion_icon "camera", text: "Take a photo"
# => <i class="ion-camera"></i> Take a photo

ion_icon "chevron-right", text: "Get started", right: true
# => Get started <i class="ion-chevron-right"></i>

content_tag(:li, ion_icon("checkmark-round", text: "Bulleted list item"))
# => <li><i class="ion-checkmark-round"></i> Bulleted list item</li>

License

  • The ionicons font is licensed under the MIT license.

Special Thanks

The font-ionicons-rails was inspired by font-awesome-rails made by David Bock.

FAQs

Package last updated on 01 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts