Skip to content

Instantly share code, notes, and snippets.

@alastairjwright
Created January 23, 2014 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alastairjwright/8582668 to your computer and use it in GitHub Desktop.
Save alastairjwright/8582668 to your computer and use it in GitHub Desktop.
CSS Stroke Mixin
.stroke(@base: base, @color: color, @shadow-color: shadow-color){
text-shadow:
(@base * -1) (@base * -1) 0 @color,
@base (@base * -1) 0 @color,
(@base * -1) @base 0 @color,
@base @base 0 @color,
((@base + 1) * -1) ((@base + 1) * -1) 0 @color,
(@base + 1) ((@base + 1) * -1) 0 @color,
((@base + 1) * -1) (@base + 1) 0 @color,
(@base + 1) (@base + 1) 0 @color,
(@base + 2) (@base + 2) (@base + 7) @shadow-color;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment