I am trying to customize my code with the following elements:
.featured {
background-color: rgba(100, 150, 200, 1);
}
.hidden {
background-color: black;
}
<div>
<p class="featured hidden">Lorem ipsum dolor sit amet</p>
<p class="hidden">Consectetur adipiscing elit.</p>
</div>
Is there a way to combine classes in such a way that if both .hidden
and .featured
are applied to an element, the resulting background color will be a combination of the individual colors specified for these classes?
My goal is to create a darker shade when both classes are used together, rather than just using the .hidden
class alone.