I am trying to convert some less to sass and can't understand how to fix the following bug. This isn't my code it's a clients and I have no clue what they are trying to do.
Could someone please help me? How do I fix the following bug? I have spent the past two hours trying to figure out how to fix it.
Issue: "error (Line 6:Invalid CSS after "...ze:, $key:1) ": expected "{, was "($size =< 30)")"
Code Example:
@mixin margin($label, $size: 1, $key:1) ($size =< 30)
{
.m-${key} {
margin: $size !important;
}
.m-t-${key} {
margin-top: $size !important;
}
.m-b-${key} {
margin-bottom: $size !important;
}
.m-l-${key} {
margin-left: $size !important;
}
.m-r-${key} {
margin-right: $size !important;
}
}
Thank you very much ahead of time!