This is what I have in LESS:
.light-hatching {
background-image: url('./assets/bg-button-default.png');
background-repeat: repeat;
background-color: lighten(#f9f9f9, 2%);
}
.btn-default {
.light-hatching;
}
Notice that btn-default
is nesting light-hatching
. This does not work in Sass. In the guide, they say I can do nesting exactly like it works on LESS, but it does work.
How do I achieve the same as the same LESS example in Sass?