Created
August 28, 2013 12:17
-
-
Save manuelcabral/6365383 to your computer and use it in GitHub Desktop.
Compass mixin to simulate text-stroke using text-shadow
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
@import "compass/css3/text-shadow"; | |
@mixin text-stroke-with-shadow($thickness, $color, $blur) { | |
@include text-shadow( $thickness 0 $blur $color, | |
(-$thickness) 0 $blur $color, | |
0 $thickness $blur $color, | |
0 (-$thickness) $blur $color, | |
($thickness/2) ($thickness/2) $blur $color, | |
((-$thickness)/2) ((-$thickness)/2) $blur $color, | |
($thickness/2) ((-$thickness)/2) $blur $color, | |
((-$thickness)/2) ($thickness/2) $blur $color); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment