Skip to content

Instantly share code, notes, and snippets.

@Bobz-zg
Created February 25, 2016 04:13
Show Gist options
  • Save Bobz-zg/6fab5b4dbb58085cb632 to your computer and use it in GitHub Desktop.
Save Bobz-zg/6fab5b4dbb58085cb632 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$icons-svg: (
sprite: (width: 132px, height: 88px, svgPath: '../images/sprite.svg'),
facebook: (width: 33.9px, height: 33.9px, backgroundX: 0px, backgroundY: 0px),
linkedin: (width: 33.9px, height: 33.9px, backgroundX: -43.9px, backgroundY: 0px),
pinterest: (width: 33.9px, height: 33.9px, backgroundX: 0px, backgroundY: -43.9px),
twitter: (width: 33.9px, height: 33.9px, backgroundX: -43.9px, backgroundY: -43.9px),
vimeo: (width: 33.9px, height: 33.9px, backgroundX: -87.8px, backgroundY: 0px),
);
@each $key, $atts in $icons-svg {
@if( $key != 'sprite' ) {
@each $attr in $key {
.icon-svg-#{$attr} {
width: map-get($atts, width);
height: map-get($atts, height);
background-position: map-get($atts, backgroundX) map-get($atts, backgroundY);
}
}
}
}
.icon-svg-facebook {
width: 33.9px;
height: 33.9px;
background-position: 0px 0px;
}
.icon-svg-linkedin {
width: 33.9px;
height: 33.9px;
background-position: -43.9px 0px;
}
.icon-svg-pinterest {
width: 33.9px;
height: 33.9px;
background-position: 0px -43.9px;
}
.icon-svg-twitter {
width: 33.9px;
height: 33.9px;
background-position: -43.9px -43.9px;
}
.icon-svg-vimeo {
width: 33.9px;
height: 33.9px;
background-position: -87.8px 0px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment