Bootstrap skin for Active Admin.
- Add the gem to your Gemfile:
# Note: The gem requires the bootstrap-sass gem, but without sassc - so add this emjot fork/branch to the Gemfile:
gem 'bootstrap-sass',
git: 'https://github.com/emjot/bootstrap-sass',
branch: 'remove-sassc'
gem 'active_bootstrap_skin',
git: 'https://github.com/emjot/active_bootstrap_skin',
branch: 'emjot' # or e.g. "tag: 'emjot-2.3.1'"
-
Don't forget you have to config the bootstraps-sass first.
-
In the
active_admin.scss
file, you includeactive_bootstrap_skin
. If you use dartsass-rails, you will also need to includebootstrap-sprockets-dartsass
before (and your sprockets-rails gem version is expected to be >= 3.4.2). Note: You have to comment out or remove the active admin stylesheets.
// Active Admin's got SASS!
// @import "active_admin/mixins";
// @import "active_admin/base";
// Active Bootstrap
@import "bootstrap-sprockets-dartsass"; // <-- add this line if you use dartsass-rails
@import "active_bootstrap_skin";
- In the
active_admin.js
file, you requireactive_bootstrap_skin
.
//= require active_admin/base
//= require bootstrap-sprockets
//= require active_bootstrap_skin