Is it possible to make a custom rule in Css as @media I have a parent class and need to make changes depended on this class as
<div class="parentGreen">
<ul class="ul1">
<li>1</li>
<li>2</li>
</ul>
<ul class="ul2">
<li>1</li>
<li>2</li>
</ul>
</div>
so when i change the parentGreen the items inside their css changes too
@parentGreen{
ul{
direction: ltr
}
}
@parentYellow{
ul{
direction: rtl;
margin:10px;
}
}
.parentGreen ul {...}andparentYellow ul {...}