// The mixins in this file are automatically generated by the 'montage' // command provided by the montage' gem. Don't edit this file directly; change // the montage.yml configuration file, then re-run 'montage' <% @project.sprites.each do |sprite| %> =<%= sprite.name %>-sprite($icon, $x_offset: 0px, $y_offset: 0px) <% sprite.sources.each_with_index do |source, index| %> @<%= index == 0 ? '' : 'else ' %>if $icon == "<%= source.name %>" $y_offset: $y_offset - <%= sprite.position_of(source) %>px <% end %> background: url(<%= sprite.url %>) $x_offset $y_offset no-repeat =<%= sprite.name %>-sprite-pos($icon, $x_offset: 0px, $y_offset: 0px) <% sprite.sources.each_with_index do |source, index| %> @<%= index == 0 ? '' : 'else ' %>if $icon == "<%= source.name %>" $y_offset: $y_offset - <%= sprite.position_of(source) %>px <% end %> background-position: $x_offset $y_offset <% end %>