Is it possible to create a nested rule for an individual selector in scss (sass)? In scss, it is possible to write styles for children and names with the parent prefix & , but I need to add an external selector to the attachment. For example, the code:
.one{ .two, &_1, &_other{ color: red; } } Compiled into:
.one .two, .one_1, .one_other{ color: red; } Is there any possibility to put some external selector inside .one{} so that the result is without a parent? For example, I want to write something like:
.one{ .two, &_1, &_other, '/какой-то префикс, поднимающий на уровень вверх/'.class{ color: red; } } And get this code:
.one .two, .one_1, .one_other, .class{ color: red; }