Created
February 1, 2016 08:51
-
-
Save tcrammond/3c52defa4576fc3a5855 to your computer and use it in GitHub Desktop.
Scss image-url function
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
// libsass removed the image-url function as of 3.x | |
// This is a basic replacement I have used. | |
$assets-folder: some/path; | |
@function image-url ($url) { | |
@return url($assets-folder + '/' + unquote($url)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you! 9 years later, it happened that I need that!