A gemified version of Google's Material Design Lite library.
To your Rails application's Gemfile, add
gem 'material_design_lite-rails', '~> 1.3'
And then run
$ bundle
To your application.js
file, add:
//= require material
Do one of the following:
To your application.css
, add
*= require material
OR
If you're using sass, use sass's
@import
in your application.scss
.
@import "material";
This gem only provides the compiled CSS file from
google/material-design-lite
.
If you're looking for the individual Sass files,
so you can take only parts of Material Design Lite,
you should use
the rubysamurai/material_design_lite-sass
gem instead.
Material Design Lite uses a font called 'Material Icons'. You can either load this font from google, or host it yourself.
Add the following line to your application.html.erb
view layout file,
in the <head>
section:
<%= stylesheet_link_tag "https://fonts.googleapis.com/icon?family=Material+Icons" %>
OR
Use the material_icons
gem to host the font locally.
This gem is versioned semantically,
in line with
google/material-design-lite
If there needs to be a release of this gem without a corresponding release to
google/material-design-lite'
to the repo, an additional digit will be added
(so if this gem's version is 1.0.0.1
, google's version would still be 1.0.0
).
The first three digits will always be the same as google/material-design-lite
.
node_modules
directorygit checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)