I'm new to sass and currently exploring it. I want to try using mixin but when I tried it, it's just not working. Here's the code:
@mixin container($radius, $width, $height, $bg, $color) {
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
-ms-border-radius: $radius;
border-radius: $radius;
$width: $width;
$height: $height;
$bg: $bg;
$color: $color;
margin: 0 auto;
}
.container {
@include container(10px, 80%, 700px, $white, $dark-grey)
}
So I have a div and class container and want to put the mixin in there but it's just not working. Can someone help??