Sha256: 1d7ef5ee7cdb0c5a502d32647f16c48c39a4e8d16b1403b201b6227a9bde241c
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
// 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-position($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 %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polymer-1.0.0.beta.4 | lib/polymer/templates/sass_mixins.erb |