Sha256: 64871d9be39b7f9e0fc2324b7b3e069a6e1912933fc4bf2dee19e3e5f11f1822

Contents?: true

Size: 928 Bytes

Versions: 86

Compression:

Stored size: 928 Bytes

Contents

@mixin image-dimensions($file) {
  height: image-height($file);
  width: image-width($file);
}

@mixin sprite-image($file) {
  background: sprite-image($file) $repeat;
}

@mixin sized-sprite-image($file) {
  background: sprite-image($file);  
  @include image-dimensions($file);
}

@mixin sprite-folder($folder, $image-dimensions: false) {
  .#{$folder} {
    @if $image-dimensions {
      background: sprite-url($folder);
    }
    @else {
      background: sprite-url($folder) no-repeat;
    }
  }
  @for $i from 0 to sprite-files-in-folder($folder) {
    $file: sprite-file-from-folder($folder, $i);
    .#{$folder}-#{image-basename($file)} {
      @extend .#{$folder};
      background-position: sprite-position(sprite-file-from-folder($folder, $i));
      @if $image-dimensions {
        @include image-dimensions($file);
      }
    }
  }
}

@mixin sized-sprite-folder($folder) {
  @include sprite-folder($folder, true);
}

Version data entries

86 entries across 85 versions & 13 rubygems

Version Path
comixins-0.1.2 vendor/assets/stylesheets/_lemonade.scss
arcabouco-0.2.13 vendor/bundle/gems/compass-core-1.0.3/stylesheets/_lemonade.scss
egghead-styles-1.0.82 app/assets/stylesheets/plugins/compass/_lemonade.scss
egghead-styles-1.0.81 app/assets/stylesheets/plugins/compass/_lemonade.scss
egghead-styles-1.0.80 app/assets/stylesheets/plugins/compass/_lemonade.scss
egghead-styles-1.0.79 app/assets/stylesheets/plugins/compass/_lemonade.scss
egghead-styles-1.0.78 app/assets/stylesheets/plugins/compass/_lemonade.scss
egghead-styles-1.0.77 app/assets/stylesheets/plugins/compass/_lemonade.scss
egghead-styles-1.0.76 app/assets/stylesheets/plugins/compass/_lemonade.scss
egghead-styles-1.0.75 app/assets/stylesheets/plugins/compass/_lemonade.scss
egghead-styles-1.0.74 app/assets/stylesheets/plugins/compass/_lemonade.scss
egghead-styles-1.0.73 app/assets/stylesheets/plugins/compass/_lemonade.scss
gem_2345-0.1.2 stylesheets/_lemonade.scss
ghost-manager-1.0.0 magneto/source/assets/bower_components/compass-mixins/lib/_lemonade.scss
compass-core-1.0.3 stylesheets/_lemonade.scss
compass-core-1.1.0.alpha.3 stylesheets/_lemonade.scss
compass-core-1.1.0.alpha.2 stylesheets/_lemonade.scss
compass-core-1.1.0.alpha.1 stylesheets/_lemonade.scss
compass-core-1.1.0.alpha.0 stylesheets/_lemonade.scss
compass-core-1.0.1 stylesheets/_lemonade.scss