Skip to content

arkhitech/materialize-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Materializecss sass version for rails asset pipeline GitHub version

materialize-sass is a Sass-powered version of Materialize - a modern responsive front-end framework based on Material Design.

Installation

In your Gemfile you need to add the materialize-sass gem:

gem 'materialize-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 separately:

$ gem install materialize-sass

Usage

a. SASS

Import Materialize styles in app/assets/stylesheets/application.css.scss:

@import "materialize";

NOTE: If you have just generated a new Rails app, 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 Bootstrap Javascripts in app/assets/javascripts/application.js:

//= require jquery
//= require materialize-sprockets

Contributing

  1. Fork it ( https://github.com/[my-github-username]/materialize-sass/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published