file cleanup
This commit is contained in:
parent
01b9cd3a46
commit
f7d0079f27
@ -1,5 +1,3 @@
|
|||||||
require 'compass/sass_extensions/sprites/image'
|
|
||||||
require 'compass/sass_extensions/sprites/engines/chunky_png_engine'
|
|
||||||
module Compass
|
module Compass
|
||||||
module SassExtensions
|
module SassExtensions
|
||||||
module Sprites
|
module Sprites
|
||||||
|
1
lib/compass/sass_extensions/sprites/engines.rb
Normal file
1
lib/compass/sass_extensions/sprites/engines.rb
Normal file
@ -0,0 +1 @@
|
|||||||
|
require 'compass/sass_extensions/sprites/engines/chunky_png_engine'
|
@ -16,7 +16,7 @@ module Compass
|
|||||||
images.each do |image|
|
images.each do |image|
|
||||||
input_png = ChunkyPNG::Image.from_file(image.file)
|
input_png = ChunkyPNG::Image.from_file(image.file)
|
||||||
if image.repeat == "no-repeat"
|
if image.repeat == "no-repeat"
|
||||||
output_png.replace input_png, image.left, image.top
|
output_png.replace! input_png, image.left, image.top
|
||||||
else
|
else
|
||||||
x = image.left - (image.left / image.width).ceil * image.width
|
x = image.left - (image.left / image.width).ceil * image.width
|
||||||
while x < width do
|
while x < width do
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
require 'digest/md5'
|
|
||||||
|
|
||||||
module Compass
|
module Compass
|
||||||
module SassExtensions
|
module SassExtensions
|
||||||
module Sprites
|
module Sprites
|
||||||
|
Loading…
Reference in New Issue
Block a user