Created
October 29, 2013 03:12
-
-
Save cancer/7208670 to your computer and use it in GitHub Desktop.
Compassのsprite-mapでハマった ref: http://qiita.com/cancer/items/4c0d8f577c71e4b8667e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sprite-map: sprite-map("sprite/*.png"); | |
%sprite-base{ | |
$sprite-path: sprite-path($sprite-map); | |
$sprite-width: image-width("sprite/"#{$sprite-path}) / 2; | |
$sprite-height: image-height("sprite/"#{$sprite-path}) / 2; | |
background-image: sprite-url($sprite-map); | |
background-size: $sprite-width $sprite-height; | |
background-repeat: no-repeat; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Errno::ENOENT on line 28 of /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/sass_extensions/functions/image_size.rb: No such file or directory - ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sprite-map: sprite-map("sprite/*.png"); | |
%sprite-base{ | |
background: $sprite-map; | |
$sprite-path: sprite-path($sprite-map); | |
$sprite-width: image-width("sprite/"#{$sprite-path}) / 2; | |
$sprite-height: image-height("sprite/"#{$sprite-path}) / 2; | |
background-size: $sprite-width $sprite-height; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sprite-map: sprite-map("sprite/*.png"); | |
$sprite-url: sprite-url($sprite-map); | |
%sprite-base{ | |
$sprite-path: sprite-path($sprite-map); | |
$sprite-width: image-width("sprite/"#{$sprite-path}) / 2; | |
$sprite-height: image-height("sprite/"#{$sprite-path}) / 2; | |
background-image: $sprite-url; | |
background-size: $sprite-width $sprite-height; | |
background-repeat: no-repeat; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment