Created
August 22, 2013 09:19
-
-
Save voodoocode/6304963 to your computer and use it in GitHub Desktop.
box shadow as border. uses inset, so you border can be used dditionally
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
/* a box shadow that looks like a border. control border strength with $spread. */ | |
@mixin box-shadow-as-border($spread, $r, $g, $b, $a) { | |
-webkit-box-shadow: inset 0 0 1px $spread rgba($r, $g, $b, $a); | |
-moz-box-shadow: inset 0 0 1px $spread rgba($r, $g, $b, $a); | |
box-shadow: 0 0 1px $spread rgba($r, $g, $b, $a) inset; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment