GitXplorerGitXplorer
c

material_design_lite-rails

public
127 stars
12 forks
3 issues

Commits

List of commits on branch master.
Unverified
b4927adf7d99c6c0d0f12f18a57e8f7ee8848577

Update README.md with note about material_design_lite-sass

ccllns committed 9 years ago
Unverified
e1799dd81f363d202ff269dafab0086b34a9a192

Upgrade to v1.0.5

ccllns committed 9 years ago
Unverified
40a99c0a332fbfbe3d3a8c328e841b4091400d95

Upgrade to v1.0.3

ccllns committed 9 years ago
Unverified
f29e07eae6f7a73b7c4bf09cc0300dfc8f0593e2

Upgrade to v1.0.2

ccllns committed 9 years ago
Unverified
45e8f1ff679929b5042e03cdcd2f8860ef60e44e

Upgrade to v1.0.1

ccllns committed 9 years ago
Unverified
d397d049dad962ae62433d2525569468549a3de0

Add note about hosting 'Material Icons' locally

ccllns committed 10 years ago

README

The README file for this repository.

Material Design Lite, for Rails!

A gemified version of Google's Material Design Lite library.

Installation

To your Rails application's Gemfile, add

gem 'material_design_lite-rails', '~> 1.3'

And then run

$ bundle

Javascripts

To your application.js file, add:

  //= require material

Stylesheets

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.

Icons

Material Design Lite uses a font called 'Material Icons'. You can either load this font from google, or host it yourself.

Load font from google

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

Host font locally

Use the material_icons gem to host the font locally.

Versioning

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.

TODO:

  • [ ] Add tests (make sure CSS/JS loads, and check version)
  • [ ] Add view helpers, to ease burden of manually adding all the classes.
  • [ ] Fix issue where you need to manually create node_modules directory

Contributing

  1. Fork it ( https://github.com/cllns/material_design_lite-rails/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