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
# Transform a YAML i18n local files into JSON object. | |
# suitable when using Rails YAML for javascript UI translations. | |
# | |
# This takes files DIR_ROOT/locale and outputs DIR_ROOT/js/locale | |
# filenames are determined by YAML filename. | |
# | |
# Mark Young @zarzax Nov 2010 | |
# | |
# Transforms YAML en.yml: | |
# en: |
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_image_default_width ||= 17px | |
!sprite_image_default_height ||= 17px | |
!sprite_image_default_margin ||= 1px | |
!sprite_image ||= "silk-sprite.png" | |
//use with image from http://github.com/zarzax/silk-sass-mixin/blob/master/images/silk-sprite.png | |
// Simplest use: +silk-sprite("icons-32.png", 1) | |
=silk-sprite(!img, !col, !row = 1, !width = !sprite_image_default_width, !height = !sprite_image_default_height, !margin = !sprite_image_default_margin) | |
!x = ((!col - 1) * -!width) - ((!col - 1) * !margin) |