Skip to content

Instantly share code, notes, and snippets.

@procload
Created November 6, 2013 15:47
Show Gist options
  • Save procload/7338365 to your computer and use it in GitHub Desktop.
Save procload/7338365 to your computer and use it in GitHub Desktop.
Compass Sprites
@import "logos/large/*.png";
@include all-large-sprites;
@import "logos/small/*.png";
@include all-small-sprites;
@import "logos/retina/*.png";
@include all-retina-sprites;
@each $company in xom, xon, mobil, esso, xto {
.retina-#{$company} {
height: retina-sprite-height(#{$company});
width: retina-sprite-width(#{$company});
}
.large-#{$company} {
height: large-sprite-height(#{$company});
width: large-sprite-width(#{$company});
}
.small-#{$company} {
height: small-sprite-height(#{$company});
width: small-sprite-width(#{$company});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment