zanetaylor
9/11/2013 - 7:41 PM

SASS caret mixin

SASS caret mixin

@mixin caret($point, $border-width, $color) {
  $opposite: opposite-position($point);
  border: $border-width solid transparent;
  border-#{$opposite}: $border-width solid $color;
  border-#{$point}: 0;
  height: 0;
  width: 0;
}