I am attempting to achieve the following in my Rails application:
Let's suppose I have a class called .foo
.foo{ color:red;}
and another class named .bar
.bar{ color:green;}
I aim to change the color of the foo elements to blue, but only when they are surrounded by a bar class
For example, here I want "blah blah" to be displayed in blue.
<div class = "bar" >
<div class = "foo" >
blah blah
</div>
</div>
How can I accomplish this without utilizing LESS or any similar tools?