Guest User

Untitled

a guest
May 29th, 2014
385
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $scales:      (1, 2);
  2. $particles:   8;
  3. $padding:     10px;
  4. $size:        42px;
  5. $width:       336px;
  6.  
  7. @each $scale in $scales {
  8.   @mixin sprite-x#{$scale}
  9.   {
  10.     background: url(/img/sprite-x#{$scale}.png) -#{$size/$scale} -#{$size/$scale} no-repeat;
  11.     background-size: #{$width/$scale} auto;
  12.     width: #{$size/$scale};
  13.     height: #{$size/$scale};
  14.   }
  15.  
  16.   .sprite-x#{$scale} {
  17.     @include sprite-x#{$scale};
  18.  
  19.     @for $i from 0 through $particles {
  20.       @for $j from 0 through $particles {
  21.         &.sprite-#{$i+1}-#{$j+1} {
  22.           left: #{-$i*($size/$scale)-$padding};
  23.           top: #{-$j*($size/$scale)-$padding};
  24.         }
  25.       }
  26.     }
  27.   }
  28. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×