Created
November 19, 2013 22:22
-
-
Save miguelgr/7553655 to your computer and use it in GitHub Desktop.
Caret mixin. Specify the position for the caret, the size and color.
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, $color) | |
$opposite: opposite-position($point) | |
border: $size solid transparent | |
border-#{$opposite}: $size solid $color | |
border-#{$point}: 0 | |
height: 0 | |
width: 0 | |
// usage | |
// +caret(right, 20px, #b9b9b9) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment