I have a ruby ββon rails, ruby2 and rails4 project. I have bootstrap sass installed. I recently set the activeadmin attribute, which adds the active_admin.css.scss file to my application / styles folder:
// SASS variable overrides must be declared before loading up Active Admin styles. // // To view the variables that Active Admin provides, take a look at // `app/assets/stylesheets/active_admin/mixins/_variables.css.scss` in the // Active Admin source. // // For example, to change the sidebar width: // $sidebar-width: 242px; // Active Admin got SASS! @import "active_admin/mixins"; @import "active_admin/base"; // Overriding any non-variable SASS must be done after the fact. // For example, to change the default status-tag color: // // .status_tag { background:
Now the buttons and forms in my project, which I developed using the bootstrap class, look completely different. This is similar to active_admin.css.scss, overloading my entire project. When I comment on the following lines as follows:
// @import "active_admin/mixins"; // @import "active_admin/base";
My original buttons are coming back, but ActiveAdmin is a mess to watch. Any idea how I can figure this out - just activate active_admin.css.scss with my actice_admin stuff and leave the rest alone?
sass twitter-bootstrap ruby-on-rails-4 activeadmin
Charris
source share