Sha256: a7f57758c4e36c3dceb351881b76c3514cab2191ec48971aa1c26c19781d39ae

Contents?: true

Size: 905 Bytes

Versions: 2

Compression:

Stored size: 905 Bytes

Contents

// 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 %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
montage-0.4.0 lib/montage/templates/sass_mixins.erb
montage-0.3.0 lib/montage/templates/sass_mixins.erb