Permalink
Browse files

Merge pull request #107 from iangreenleaf/text-replacement

Text replacement mixin
  • Loading branch information...
2 parents 6050387 + f772336 commit 516f94304799f9b029c58b17f5a88fa1148b9adb @tj committed Jun 19, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/nib/text/replace-text.styl
@@ -0,0 +1,9 @@
+/*
+ * Replace text with an image.
+ */
+
+replace-text(image, x=50%, y=50%)
+ hide-text()
+ background-image image
+ background-repeat no-repeat
+ background-position x y

0 comments on commit 516f943

Please sign in to comment.