Skip to content

Instantly share code, notes, and snippets.

@manuelcabral
Created August 28, 2013 12:17
Show Gist options
  • Save manuelcabral/6365383 to your computer and use it in GitHub Desktop.
Save manuelcabral/6365383 to your computer and use it in GitHub Desktop.
Compass mixin to simulate text-stroke using text-shadow
@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