Today is my first time asking a question here! Here's the issue I'm facing. I'm trying to use my own CSS classes for colors, but some of them are not working as expected. Take a look at this example:
<button type="button" class="btn btn-ladevi_blue" data-toggle="modal" data-target="#loginModalCenter">
Launch demo modal
</button>
Here's a snippet of the CSS code I'm using:
.btn-ladevi_orange{
color: #FFFFFF;
background-color: #FFA700;
border-color: #FFA700;}
.btn-ladevi_blue{
color: #FFFFFF;
background-color: #00496B;
border-color: #00496B;}
Every time I add something like "btn" before my custom class, it seems to get ignored. Upon inspecting the element and checking its attributes, I see that they are being overridden. However, if I change my custom class to a predefined one like "primary," it works as expected with no overrides.
I referred to this site for guidance:
https://codepen.io/ondrejsvestka/pen/NjxgVR
This is more or less what I am aiming for.
For now, I am circumventing the issue by adding attributes as styles directly within my HTML code (as I did with others, though they are increasing in number!). But I am eager to find out how to make these custom classes work seamlessly with the predefined ones.
Thank you in advance!