Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 889 Bytes

README.md

File metadata and controls

43 lines (27 loc) · 889 Bytes

GLYPHICONS Halflings for Rails

WARNING: this gem is deprecated!

GLYPHICONS Halflings, extracted from Twitter Bootstrap and customized for use with Sass @extend and Rails.

This gem won't pollute your code or force you to follow a specific developing methodology. It will only create placeholders and you are free to decide how and where to use them.

Installation

Add this line to your Gemfile:

gem 'glyphicons-rails'

And then execute:

$ bundle

Usage

Add this to your application.css.scss file:

@import "glyphicons";

To show an icon use:

@extend %glyphicon-[icon_name];

Example:

.hide-button {
  @extend %glyphicon-chevron-up;
}

You can find all the icons (with names) at the official Twitter Bootstrap components page.