All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gems.compass-core-1.0.3.stylesheets._lemonade.scss Maven / Gradle / Ivy

There is a newer version: 3.7.2
Show newest version
@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);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy