InspaniaAdmin
Simple theme for ActiveAdmin
Complete demo here : https://aact.herokuapp.com/
admin user : admin@example.com / password
Installation
- Add this to your Gemfile:
gem 'inspania_admin'
-
Run
bundle install
. -
Add this line to the file
config/initializers/active_admin.rb
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
Usage
CSS
In your active_admin.css
, include the css file:
/*
*= require inspania_admin/base
*/
Remove the line *= require active_admin/base
Then restart your webserver if it was previously running.
Sass Support
@import "active_admin/base"
If you prefer SCSS, add this to your
active_admin.scss
file:
@import "inspania_admin/base";
If you use the
Sass indented syntax,
add this to your active_admin.sass
file:
@import inspania_admin/base
JS
In your active_admin.js
, include the js file:
//= require inspania_admin/base
//= 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, add this to your
active_admin.scss
file:
$primary-color: #2dbb43;
@import "inspania_admin/base";
If you use the
Sass indented syntax,
add this to your active_admin.sass
file:
$primary-color: #2dbb43
@import inspania_admin/base
Then restart your webserver if it was previously running.
Contributing
- Fork it ( https://github.com/cprodhomme/inspania_admin/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request