Created
June 20, 2014 08:48
-
-
Save jaicab/fd3ffceba44274cfddc4 to your computer and use it in GitHub Desktop.
Transparent outlines
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
/* | |
Creates a transparent outline with two colored borders around it. | |
@param $transparent-width Thickness of the transparent border. | |
@param $color-width Thickness of the coloured borders. | |
@param $color Color of the colored borders. | |
*/ | |
@mixin transparent-outline($transparent-width, $color-width, $color){ | |
border: $transparent-width solid transparent; | |
box-shadow: 0 0 0 $color-width $color inset, | |
0 0 0 $color-width $color; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment