Giter VIP home page Giter VIP logo

rails_admin_material's Introduction

RailsAdminMaterial theme Gem Version

A Material Design theme for rails_admin.

Features:

  • Material user interface

  • improve nested forms styles

  • hide/show sidebar

Demo: heroku app

Installation

  • Add the gem to Gemfile (and execute bundle): gem 'rails_admin_material'

  • Enable the theme in config/application.rb (just after Bundler.require line): ENV['RAILS_ADMIN_THEME'] = 'material'

  • Edit or create app/assets/javascripts/rails_admin/custom/ui.js and add: //= require rails_admin/themes/material/ui.js

Customization

To change theme colors add / edit app/assets/stylesheets/rails_admin/custom/variables.scss:

// orange theme sample
$brand-primary: #d51;
$brand-info: #ea2;
$link-color: #800;
$nav-pills-active-link-hover-bg: #d51;
$btn-primary-bg: #d51;
$btn-primary-border: #da0;
$btn-info-bg: #fa4;
$btn-info-border: #da0;
$fg-nav-tabs-active: #fb1;

Preview

preview

preview2

Notes

Based on Material Design for Bootstrap

If the styles are not applied try to clean the Rails pipeline cache:

rake assets:clean
rake assets:precompile

Sass errors? Try updating sass-rails (or sassc-rails): bundle update sass-rails

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

License

ISC

rails_admin_material's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.