I have the following html with 2 panels inside one another. I want to apply CSS ONLY to the outer ky-panel and ky-panel body. How can I do this? The reason I want to do this is because the panels have mainly common CSS, but I would like to change a few things when the panels are nested.
<div class="ky-panel">
<div class="ky-panel-body">
<div class="ky-panel">
<div class="ky-panel-body">
some HTML with some CSS
</div>
</div>
</div>
</div>
I've tried the following CSS but it does not work:
@mixin ky-panel-body {
@if & {
some CSS
}
}