Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActiveAdmin and additional custom CSS files

Where can i put custom css files to customize ActiveAdmin CSS?

I see in active_admin.rb there is the following line:

config.register_stylesheet 'active_admin.css'

but i can't understand where the file has to go. All i want to do is add some extra custom styles to AA's default ones

like image 882
pastullo Avatar asked Nov 27 '14 12:11

pastullo


1 Answers

Lets say I have 2 css files, highlight.css and select2.css

In config/initializers/active_admin.rb, I would add it like this:

config.register_stylesheet 'highlight.min.css'
config.register_stylesheet 'select2.css'

Note:

highlight.css and select2.css should be inside/under app/assets/stylesheets

like image 152
MIdhun Krishna Avatar answered Nov 09 '22 20:11

MIdhun Krishna