Created
August 5, 2014 08:20
-
-
Save vitto/b5d8900c7eb41b8ba76c to your computer and use it in GitHub Desktop.
Frontsize - Example for fillRetinaImage mixin
This file contains 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 characters
<svg id="svg-element"> | |
<path class="your-background-fill" width="100" height="75"></path> | |
<path class="other-background-fill" width="100" height="100"></path> | |
</svg> |
This file contains 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 characters
.your-background-fill { | |
.fillRetinaImage("background-1x.png", "background-2x.png", cover); | |
} | |
.other-background-fill { | |
.fillRetinaImage("other-background-1x.png", "other-background-2x.png", cover, "http://other-domain.com/"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment