Sha256: caf0240b1d46233920499497f241bedac96a95967f217535bed4a779194d2dee
Contents?: true
Size: 1.53 KB
Versions: 3
Compression:
Stored size: 1.53 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'. <% project.data_uri_sprites.each do |sprite| %> .<%= sprite.name %>_data background: url(<%= data_uris[sprite.name] %>) 0 0 no-repeat <% end %> @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 %> <% if project.data_uri_sprites.include?(sprite) %> @extend .<%= sprite.name %>_data @include polymer-position($source, $x-offset, $y-offset) <% else %> $y-offset: $y-offset - <%= sprite.position_of(source) %>px background: url(<%= sprite.url %>) $x-offset $y-offset no-repeat <% end %> <% 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
polymer-1.0.0.beta.7 | lib/polymer/templates/sass_mixins.erb |
polymer-1.0.0.beta.6 | lib/polymer/templates/sass_mixins.erb |
polymer-1.0.0.beta.5 | lib/polymer/templates/sass_mixins.erb |