Why I can't use that code from LESS in SCSS:
.button, .input, .textarea {
// some staff
&_red {
background: red;
color: #fff;
}
}
?
I need this CSS in output:
.button_red,
.input_red,
.textarea_red {
background: red;
color: #fff;
}
Prepros on compiling shows that error:
Syntax error: Invalid CSS after " &": expected "{", was "_red {" "_red" may only be used at the beginning of a compound selector. on line 4 of main.scss