Created
February 21, 2016 09:00
-
-
Save tsi/0bd1d26c020d49a79b46 to your computer and use it in GitHub Desktop.
Revisions
-
tsi created this gist
Feb 21, 2016 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ // ---------------------------------------------- // Image Replacement // ---------------------------------------------- @mixin ir($img, $width: image-width($img), $height: image-height($img), $x: 50%, $y: 50%) { background: { image: image-url($img); repeat: no-repeat; position: $x $y; }; width: $width; height: $height; text-indent: $width; overflow: hidden; white-space: nowrap; display: block; }