Last active
December 22, 2015 20:49
-
-
Save zanetaylor/6528761 to your computer and use it in GitHub Desktop.
SASS caret mixin
This file contains 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
@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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment