Don't know what you exactly expect, here are a few basic examples in SCSS. Let's assume you have a class like this.
.login {}
Now create a mixin you want to use in the class.
@mixin main-button($parent-selector, $property, $selector, $size-value) {
#{$parent-selector}__img {
width: 100px;
#{$property}: left;
}
#{$selector} {
background: none;
}
&__button {
font-size: $size-value;
};
}
Use the mixin in the class.
.login {
@include main-button(&, float, "text", 14px);
}
The output should be like this.
.login {
.login__img {
width: 100px;
float: left;
}
.text {
background: none;
}
.login__button {
font-size: 14px;
}
}