diff --git a/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass b/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass index 5d46a53a..2381dbd4 100644 --- a/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass +++ b/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass @@ -4,8 +4,8 @@ // Simplest use: +sprite-img("icons-32.png", 1) =sprite-img(!img, !col, !row = 1, !width = !sprite_image_default_width, !height = !sprite_image_default_height, !margin = !sprite_image_default_margin) - !x = ((!col - 1) * -!height) - ((!col - 1) * !margin) - !y = ((!row - 1) * -!width) - ((!row - 1) * !margin) + !x = ((!col - 1) * -!width) - ((!col - 1) * !margin) + !y = ((!row - 1) * -!height) - ((!row - 1) * !margin) :background= image_url(!img) "no-repeat" !x !y :width= !width :height= !height