Sampat Sampat - 1 year ago 185
CSS Question

How to override active admin CSS?

I am using Active Admin, is there a way to override CSS used by the active admin theme?

For eg:- I have to change css of submit button which is disabled to cursor: wait; and make it unclickable.

What's the best way to do this?

Answer Source

You can override any CSS property by overriding the CSS class or IDs in you own stylesheet with !important attribute if you do not have any access to the original stylesheet

For example, use

.submit-button {
    color: white !important;

to change the color of the submit button text.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download