# ArcticAdmin [![Gem Version](https://img.shields.io/gem/v/arctic_admin.svg)](https://rubygems.org/gems/arctic_admin) [![Gem Downloads](https://img.shields.io/gem/dt/arctic_admin.svg)](https://rubygems.org/gems/arctic_admin) [![Dependency Status](https://gemnasium.com/badges/github.com/cle61/arctic_admin.svg)](https://gemnasium.com/github.com/cle61/arctic_admin) Simple theme for ActiveAdmin Complete demo here : https://arctic-admin.herokuapp.com/ admin user : admin@example.com / password ![Screenshot](doc/index.png) ## Installation - Add this to your Gemfile: ```ruby gem 'arctic_admin' ``` - Run `bundle install`. - Add this line to the file `config/initializers/active_admin.rb` ```ruby meta_tags_options = { viewport: 'width=device-width, initial-scale=1' } config.meta_tags = meta_tags_options config.meta_tags_for_logged_out_pages = meta_tags_options ``` if you use ActiveAdmin from Github, use the branch `2-0-alpha` like this : ```ruby gem 'arctic_admin', github: 'cle61/arctic_admin', branch: '2-0-alpha' ``` ## Usage ### CSS In your `active_admin.css`, include the css file: ```css /* *= require arctic_admin/base */ ``` **Remove the line `*= require active_admin/base`** Then restart your webserver if it was previously running. ### Sass Support ![Remove the line @import "active_admin/base"](http://messages.hellobits.com/warning.svg?message=Remove%20the%20line%20%40import%20%22active_admin%2Fbase%22) If you prefer [SCSS](http://sass-lang.com/documentation/file.SASS_REFERENCE.html), add this to your `active_admin.css.scss` file: ```scss @import "arctic_admin/base"; ``` If you use the [Sass indented syntax](http://sass-lang.com/docs/yardoc/file.INDENTED_SYNTAX.html), add this to your `active_admin.css.sass` file: ```sass @import arctic_admin/base ``` ### JS In your `active_admin.js`, include the js file: ```js //= require arctic_admin/base ``` **Remove the line `//= require active_admin/base`** ### Customization For this, you need to use sass to custom the theme. You can even change basic color of the theme by placing some other variables: If you use the [SCSS](http://sass-lang.com/documentation/file.SASS_REFERENCE.html), add this to your `active_admin.css.scss` file: ```scss $primary-color: #2dbb43; @import "arctic_admin/base"; ``` If you use the [Sass indented syntax](http://sass-lang.com/docs/yardoc/file.INDENTED_SYNTAX.html), add this to your `active_admin.css.sass` file: ```sass $primary-color: #2dbb43 @import arctic_admin/base ``` Then restart your webserver if it was previously running. ## Contributing 1. Fork it ( https://github.com/cle61/arctic_admin/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 new Pull Request