mannieschumpert
4/5/2013 - 5:53 PM

Inspired by the Sass Pt.2 course on CodeSchool.com, this Sass mixin gist also adds a parameter to adjust the size of the "caret".

Inspired by the Sass Pt.2 course on CodeSchool.com, this Sass mixin gist also adds a parameter to adjust the size of the "caret".

=caret($point,$size)
  $opposite: opposite-position($point)
  border: $size solid transparent
  border-#{$opposite}: $size solid #000
  border-#{$point}: 0
  height: 0
  width: 0