Answer the question
In order to leave comments, you need to log in
How to write a construction like .product.product_item in SCSS?
How to write a construction like .product.product_item in SCSS
I try like this, but it gives an error
.product {
&.&_item {
}
}
Answer the question
In order to leave comments, you need to log in
.product {
$this: &;
@at-root {
#{$this}#{$this}_item {
color: red;
}
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question