Reputation: 6108
I need to change the opacity of a modal-backdrop div that pop-ups when a bootstrap modal window is opened.
According to the css looks pretty easy. Overwriting
.modal-backdrop, .modal-backdrop .fade .in{opacity: .3 !important}
should be enough. However, when I do it, the modal doesn´t show anymore.
Please see this plunker: https://plnkr.co/edit/I6BSKbpclDnBNunNwLt2?p=preview
Note: If you delete the css line, you can see it works.
Upvotes: 0
Views: 24
Reputation: 6108
The !important has to be removed. Then works!
.modal-backdrop, .modal-backdrop .fade .in{opacity: .3}
Upvotes: 1