Sha256: 496f5cea2652c690bd168b1b4b33297d4bfc1cace8dea19c884934e0557bbc34
Contents?: true
Size: 965 Bytes
Versions: 2
Compression:
Stored size: 965 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
compass-sourcemaps-0.12.3.sourcemaps.a4836f1 | frameworks/compass/stylesheets/_lemonade.scss |
compass-sourcemaps-0.12.2.sourcemaps.57a186c | frameworks/compass/stylesheets/_lemonade.scss |