Open influsion opened 7 years ago
We have this solution:
// LESS .selector { @r: ~'.selector'; &--mode { @{r}__block { prop: value; } } } // CSS .selector--mode .selector__block { prop: value; }
I propose to add a feature: writing @r: &; instead of @r: ~".selector"; to get the current selector and save it in any variable.
@r: &;
@r: ~".selector";
Examples:
// LESS .selector { @r: &; // .selector } .selector { &__inner { @r: &; // .selector__inner } } .selector { &--modification &__inner { @r: &; // .selector--modification .selector__inner } }
We have this solution:
I propose to add a feature: writing
@r: &;
instead of@r: ~".selector";
to get the current selector and save it in any variable.Examples: