What is the difference between doing:
@mixin test($color: #000) {
border: 1px solid red;
color: $color;
}
@mixin extension($color: #000) {
@include test($color);
background-color: #eee;
}
or doing the following?
@mixin test($color: #000) {
border: 1px solid red;
color: $color;
@content
}
@mixin extension($color: #000) {
@include test($color) {
background-color: #eee;
}
}
is there any difference in the resulting CSS?
I cannot see the convenience of the @content directive.