I have problem with root nesting
for better work with bem-modules in Sass we are use $root
.block
$root: &
background: gray
&__elem
background: red
color: black
&:hover
#{$root}__elem
color: white
this code compiled to:
.block {
background: gray;
}
.block__elem {
background: red;
color: black;
}
.block:hover .block__elem {
color: white;
}
How get this effect in stylus?