Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3.1 + ActiveAdmin GEM css/stylesheet conflict?

I must be missing something really simple, but I could not find anyone else with the problem. Basically, Rails 3.1 merges all the .css files into application.css. After I installed ActiveAdmin, ActiveAdmin's CSS are also merged into application.css, causes conflict and overrides my stylesheet.

What am I missing here?

like image 462
Min Ming Lo Avatar asked Dec 28 '22 10:12

Min Ming Lo


2 Answers

I removed *= require_tree . from application.css and added each other css individually. Not sure whether this is the best way, but it works.

like image 168
Min Ming Lo Avatar answered Jan 05 '23 05:01

Min Ming Lo


I solved it by adding the generated active_admin css and js in the vendor directory..

  • vendor/assets/stylesheets/active_admin.css.scss
  • vendor/assets/active_admin.js
like image 31
bpn Avatar answered Jan 05 '23 06:01

bpn