This is my HTML code.
<div class="app-menu-layout">
<main class="app-menu-layout-main">
<div class="app-menu-layout-main-container">Hello World</div>
</main>
</div>
Here's what I did, but he was wrong
.app-menu-layout {
&>&-main {
&>&-container{
color:red
}
}
}
// Compiled CSS
.app-menu-layout>.app-menu-layout-main>.app-menu-layout>.app-menu-layout-main-container {
color: red;
}
expected results:
.app-menu-layout>.app-menu-layout-main>.app-menu-layout-main-container {
color: red;
}
How should I write the nested structure of less?