Inline fonts weren't being base64 encoded.
This commit is contained in:
parent
8ccdab41cc
commit
bced277049
@ -12,7 +12,7 @@ module Compass::SassExtensions::Functions::InlineImage
|
||||
while args.size > 0
|
||||
path = args.shift.value
|
||||
real_path = File.join(Compass.configuration.fonts_path, path)
|
||||
url = "url('data:#{compute_mime_type(path)};base64,#{data(real_path)}')"
|
||||
url = inline_image_string(data(real_path), compute_mime_type(path))
|
||||
files << "#{url} format('#{args.shift}')"
|
||||
end
|
||||
Sass::Script::String.new(files.join(", "))
|
||||
|
Loading…
Reference in New Issue
Block a user