I have the following CSS declaration using the PostCSS precss plugin:
.woocommerce-account.logged-in {
.myaccount-hamburger{
display: block;
}
.woocommerce{
position: static;
}
#main{
position: relative;
}
.site-header{
margin-bottom: 0;
}
}
But for whatever reason, the .woocommerce
rule isn't being applied. Any clues why? I know it's a valid selector, because if I start fiddling around and removing some of the other declarations, it does in fact work.
Please note, that if I manually expand every rule like this, everything is working fine. Therefore, it's an issue with the nesting:
.woocommerce-account.logged-in .myaccount-hamburger{
display: block;
}
.woocommerce-account.logged-in .woocommerce{
position: static;
}
.woocommerce-account.logged-in #main{
position: relative;
}
.woocommerce-account.logged-in .site-header{
margin-bottom: 0;
}
As per request, here's some HTML. There's a lot of html so I'll show the basics...
<body class="woocommerce-account logged-in">
<header class="site-header"></header>
<main id="main">
<div class="myaccount-hamburger"></div>
<div class="woocommerce"></div>
</main>
</body>