Material-sass
material-sass is a Sass rubygems version of Material, a HTML5 UI design based on Google Material. Offical repo github.com/Daemonite/material
Installation
Add this line to your application's Gemfile:
gem 'material-sass'
NOTE: Ensure that the sass-rails gem is presented in your Gemfile.
And then run the bundler and restart your server to make the files available through the pipeline:
$ bundle install
Or install it yourself as:
$ gem install material-sass
Usage
a. Sass
Import Materialize styles in app/assets/stylesheets/application.scss:
@import "material";
NOTE: If you have just generated a new Rails application, it may come with a .css file instead. If this file exists, it will be served instead of Sass, so remove it.
$ rm app/assets/stylesheets/application.css
b. JavaScript
Require Material javascripts in app/assets/javascripts/application.js:
//= require jquery
//= require material-sprockets
Contributing
- Fork it ( https://github.com/[my-github-username]/material-sass/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request