Is it possible, without SASS, LESS, Javascript - just pure CSS to do something similiar to:
.B
{
display: none;
}
.A:empty
{
display: none;
.B
{
display: block;
}
}
So that when class 'A' is empty do something else with container 'B'? Or that when class 'A' is having some state - do something else with container B?
Examples:
Hover A -> Hide B
Hide B -> Show C
C Empty -> Show D
I've tried finding the correct terms for these states but haven't found anything yet - if there is any?
Non dependant:
I don't want the classes to be dependant upon eachother.
<div class="A"><div class="B"></div></div>
...is not a solution.
<div class="A"></div>
<div class="B">Show me when condition in A is reached<div>
Since then I can just do whatever I wanted fine. I want class A to be on some part of the page and class B inside some other container somewhere else - non relative to class A.