Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- block {
- &__element {
- &--modifier-one { color: red; }
- &--modifier--two { color: blue; }
- }
- }
- // in less/sass, somthing like
- .block {
- @at-root #{&}__element {}
- @at-root #{&}--modifier {}
- }
- // returns:
- // .block {}
- // .block__element {}
- // .block--modifier {}
- // or use
- .block {
- &__element {}
- &--modifier {}
- }
Add Comment
Please, Sign In to add comment