Instead of typing
width:200px; height:200px;
just type
@include size(200px);
or
@include size(20px,35px);
@mixin size($width, $height: $width) {
width: $width;
height: $height;
}
<div class="square"></div>
.square { @include size(200px); }
.square {
width: 200px;
height: 200px;
}
Created by Ricardo Zea