Created
May 30, 2014 15:27
-
-
Save marcelosomers/c37903bdbd06a5c0f60f to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.3.7) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
// _configuration.scss | |
$base-path: '../bundles/assets/'; | |
$image-path: $base-path + 'images/'; | |
$font-path: $base-path + 'fonts/'; | |
@function image($file, $path: $image-path) { | |
@return url($path + $file); | |
} | |
// _component.scss | |
element { | |
background-image: image('file.jpg'); | |
} |
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
element { | |
background-image: url("../bundles/assets/images/file.jpg"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment