Last active
December 16, 2016 10:11
-
-
Save veirus/0aa196277b36853492a3084ef6da22e4 to your computer and use it in GitHub Desktop.
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 characters
$image-path: '../img' !default | |
=bgi($name, $ext:'png', $repeat:false, $size:false) | |
@if($ext == svg) | |
background-image: url(#{$image-path}/#{$name}.png) | |
background-image: url(#{$image-path}/#{$name}.#{$ext}) | |
@if not($repeat) | |
background-repeat: no-repeat | |
@if($size) | |
background-size: $size; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment