// The mixins in this file are automatically generated by the 'polymer' // command provided by the polymer gem. Don't edit this file directly; // change the polymer.rb configuration file, then re-run 'polymer'. @mixin polymer($source, $x-offset: 0px, $y-offset: 0px) <% project.sprites.each_with_index do |sprite, sprite_index| %> <% sprite.sources.each_with_index do |source, source_index| %> <% if sprite_index == 0 and source_index == 0 %> @if $source == "<%= sprite.name %>/<%= source.name %>" <% else %> @else if $source == "<%= sprite.name %>/<%= source.name %>" <% end %> $y-offset: $y-offset - <%= sprite.position_of(source) %>px background: url(<%= sprite.url %>) $x-offset $y-offset no-repeat <% end %> <% end %> @mixin polymer-pos($source, $x-offset: 0px, $y-offset: 0px) <% project.sprites.each_with_index do |sprite, sprite_index| %> <% sprite.sources.each_with_index do |source, source_index| %> <% if sprite_index == 0 and source_index == 0 %> @if $source == "<%= sprite.name %>/<%= source.name %>" <% else %> @else if $source == "<%= sprite.name %>/<%= source.name %>" <% end %> $y-offset: $y-offset - <%= sprite.position_of(source) %>px background-position: $x-offset $y-offset <% end %> <% end %>