It seems by the conventions of the other mixing I have created and seen that this should work but there is two problems with it that I can not seem to find the solution for .
- The default path if not Quoted throws an error during compilation
- The
url($path)
is not evaluating the $path variable
@mixin backgroundCover($path:"./Media/Images/background.png"){ background-image:url( $path ); background-repeat:no-repeat; background-size:cover; }
What is the proper way to write this function
==================== Worth noting that this issue came up again today
@mixin keyframes( $animationName )
{
@-webkit-keyframes #{animationName} {
@content;
}
@-moz-keyframes #{animationName} {
@content;
}
@-o-keyframes #{animationName} {
@content;
}
@keyframes #{animationName} {
@content;
}
}
originally #{animationName} was $animationName and winging errors all over the place