Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Text replacement mixin
  • Loading branch information
iangreenleaf committed Jun 19, 2012
1 parent 6050387 commit f772336
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions 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 f772336

Please sign in to comment.