Sha256: 0de674311b9a0f374698a58b7832459d4e11f27b2c92847a21dbd7ae7fd0d73d
Contents?: true
Size: 1.96 KB
Versions: 1
Compression:
Stored size: 1.96 KB
Contents
# Administrate Materialize Theme [![Gem Version](https://badge.fury.io/rb/administrate-materialize-theme.svg)](https://badge.fury.io/rb/administrate-materialize-theme) A Material theme form [Administrate](https://github.com/thoughtbot/administrate), based on [Materialize](https://materializecss.com) framework. Features: - easy to install, just include CSS/JS to apply the theme; - Material Design responsive theme; - customizable via SASS variables; - allow to use *Materialize* components in the admin. ![screenshot](screenshot.png) ## Installation - After installing Administrate, add to *Gemfile*: `gem 'administrate-materialize-theme'` (and execute `bundle`) - Edit *app/assets/config/manifest.js*, adding at the end: ```js //= link administrate-materialize-theme/theme.css //= link administrate-materialize-theme/theme.js ``` - Edit *app/views/layouts/admin/application.html.erb* (you can generate it using `rails generate administrate:views:layout`), adding before head closing tag: ```html <%= stylesheet_link_tag 'administrate-materialize-theme/theme', media: 'all' %> <%= javascript_include_tag 'administrate-materialize-theme/theme' %> ``` ## Customizations To change Materialize variables it's necessary to create a new *.scss* (or *.sass*) file like this one (ex. *admin.scss*): ```scss // app/assets/stylesheets/admin.scss $primary-color: #FB1; @import 'administrate-materialize-theme/theme'; ``` And replace the link tag in the *application.html.erb* with: `<%= stylesheet_link_tag 'admin', media: 'all' %>` For the complete list of options take a look [here](app/assets/stylesheets/administrate-materialize-theme/components/_variables.scss). ## Do you like it? Star it! If you use this component just star it. A developer is more motivated to improve a project when there is some interest. ## Contributors - [Mattia Roccoberton](https://blocknot.es/): author ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
administrate-materialize-theme-0.2.0 | README.md |