Skip to content

Instantly share code, notes, and snippets.

@derekshirk
Last active August 29, 2015 14:13
Show Gist options
  • Save derekshirk/89c6f75845696ea85339 to your computer and use it in GitHub Desktop.
Save derekshirk/89c6f75845696ea85339 to your computer and use it in GitHub Desktop.
sass - simple box mixin
$box-style1: 5px, solid, red;
$box-style2: (bStyle: dotted, bColor: blue, bWidth: medium);
@mixin boxy($bWidth, $bStyle, $bColor) {
border-width: $bWidth;
border-style: $bStyle;
border-color: $bColor;
}
.first {
@include boxy($box-style1...);
}
.second {
@include boxy($box-style2...);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment