First time here asking something myself! Here's the thing. I'm trying to use my own CSS classes for colors. Several of them don't work. Here's an example:
<button type="button" class="btn btn-ladevi_blue" data-toggle="modal" data-target="#loginModalCenter">
Launch demo modal
</button>
Here the CSS:
.btn-ladevi_orange{
color: #FFFFFF;
background-color: #FFA700;
border-color: #FFA700;}
.btn-ladevi_blue{
color: #FFFFFF;
background-color: #00496B;
border-color: #00496B;}
Whenever I add something like "btn" before my custom class it gets ignored. When I "inspect" the element and go to check its attributes I can see that they are overridden. But if I change my custom class to something predefined like "primary" it obviously works and when inspected they aren't overridden and are working properly.
I checked this site:
https://codepen.io/ondrejsvestka/pen/NjxgVR
That's more or less what a want to achieve.
For now I'm going to bypass the problem by adding the attributes as styles within my HTML code (what I was doing with the others, but they are kind of growing in numbers, LOL!). But I'd like to know how to make this custom classes work with the predefined ones.
Thanks in advance!