Created
April 5, 2013 17:53
-
-
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".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=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