Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

sprite-file returning absolute path #1079

Closed
brewster1134 opened this Issue · 3 comments

2 participants

@brewster1134

tjhe documentation for sprite-file($map, $sprite) says it returns a relative path, however for me it is returning an absolute path.

is there a different mixin available to get the relative path of the original sprite image in the image directory to be used with an img tag?

@scottdavis
Owner

I think this is another case where the docs and the implemented code do not match

https://github.com/chriseppstein/compass/blob/stable/lib/compass/sass_extensions/functions/sprites.rb#L82

@scottdavis
Owner

I think what you need would be a sprite-file-url function but, this would create a problem because its assumed that you can store the raw sprite images outside of the scope of your images folder.

@scottdavis
Owner

fixed by 8b964f2

@scottdavis scottdavis closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.