Sha256: 98540aa11f320b8f798ecf90b02097a46f39b8e4f8936b8cb320186e6144c74b

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

# Ratchet-Sass

This gem encapsulates the [Ratchet](http://goratchet.com/) Framework. Currently the gem supports Ratchet v2.0.2.

## Installation

Add this line to your application's Gemfile:

    gem 'ratchet-sass'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install ratchet-sass

## Usage

First you need to add the .js file to your project (via application.js for example) to include all the js components:

    //= ...
    //= require rachet
    //=

Or you can add individual components:

    //= ...
    //= require modals
    //= require push
    //=

You also need to include the ratchet css in your stylesheet manifest:

    /* ...
    *= require ratchet
    */

Finally to get the fonts to load right, you need to add the following to your application.rb:

    # Add the fonts path
    config.assets.paths << Rails.root.join('app', 'assets', 'fonts')

    # Precompile additional assets
    config.assets.precompile += %w( .svg .eot .woff .ttf )

For more information on Ratchet check out their [docs](http://goratchet.com/getting-started/).

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ratchet-sass-2.0.2 README.md