Closed justinskolnick closed 9 years ago
:thumbsup:
This is great, @justinskolnick! I think I only found one bug and it's in the function documentation:
// =image('feed.png', 'img/css/') will return url('../img/css/feed.png')
// =image('feed.png', 'img/css') will return url('../img/css/feed.png')
In both cases these shouldn't have the ../ at the beginning of the returned path, correct? Or maybe I'm missing something?
Sorry about that.
No worries, thanks for the PR!
The
image()
function returns a CSSurl()
function. The function prepends the file specified as$imageName
with the default image path/directory or a provided$imagesFolder
.becomes:
Likewise, the
svg-image
mixin can be rewritten from:to:
or removed altogether, with the rule (and whenever necessary, the fallback) specified inline, minus the
@include
.