Skip to content

Instantly share code, notes, and snippets.

@mannieschumpert
Created April 5, 2013 17:53
Show Gist options
  • Save mannieschumpert/5321261 to your computer and use it in GitHub Desktop.
Save mannieschumpert/5321261 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment