Sha256: 718a811073ea3952534d11e2c54022561a3203779b3390d6740a00e426f331ae
Contents?: true
Size: 1.55 KB
Versions: 2
Compression:
Stored size: 1.55 KB
Contents
[![Gem Version](https://badge.fury.io/rb/materialize-rails.svg)](https://badge.fury.io/rb/materialize-rails) # materialize-rails `materialize-rails` makes using [Materialize](http://materializecss.com) in your Rails 4+ app easy. This gem may contain custom patches applied on top of the Materialize release. Such releases of `materialize-rails` are marked as such in the version number. A lack of `custom[0-9]+` means that it only contains the original Materialize release. ## Installation Add ```ruby gem 'materialize-rails' ``` to your `Gemfile`. Then ```console $ bundle install ``` and you're done. ## Usage The Materialize files are available to your Rails 4+ app now, but you need to make sure your app actually uses them first. ### Stylesheets Import the Materialize styles into your stylesheets. ```scss @import "materialize"; ``` This can be done in any `.scss` file that is part of your application. ### JavaScript Add this line to your `app/assets/javascripts/application.js`: ```js //= require materialize ``` Since Materialize depends on jQuery, that line needs to be included after jQuery, e. g. ```js //= require jquery2 //= require materialize ``` ## You want to contribute? 1. [Fork](https://github.com/Skudo/materialize-rails/fork) materialize-rails. 2. Add your contributions in a branch on your fork. 3. Push the changes in your branch. 4. Create a new pull request. Please note that Materialize-based contributions should go to [their GitHub account](https://github.com/Dogfalo/materialize), so your changes can be included right at the source.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
materialize-rails-0.97.5.2 | README.md |
materialize-rails-0.97.5.custom1 | README.md |