Created
May 23, 2014 14:20
-
-
Save dieppon/df1e796ba4e5c3a096ef to your computer and use it in GitHub Desktop.
Use this mixing with the hires graphic (https://gist.github.com/dieppon/832ad09bff037a86fa45) and the svg-graphic (https://gist.github.com/dieppon/9256673) 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
// Sprite graphic for easy reuse | |
@mixin sprite-graphic($sprite-graphic-pos:null, $format: $sprite-graphic-format, $file: $sprite-graphic-file, $type: $sprite-graphic-type, $width: $sprite-graphic-width, $height: $sprite-graphic-height){ | |
@if $format == 'hires' { | |
@include hires-graphic($file, $type, $width, $height); | |
} | |
@if $format == 'svg' { | |
@include svg-graphic($file, $type, $width, $height); | |
} | |
@if $sprite-graphic-pos == 'null' {} | |
@else { | |
background-position: $sprite-graphic-pos; | |
} | |
background-repeat: no-repeat; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment