Skip to content

Instantly share code, notes, and snippets.

@opdavies
Created June 29, 2014 17:43
Show Gist options
  • Save opdavies/e8257240028e952e8637 to your computer and use it in GitHub Desktop.
Save opdavies/e8257240028e952e8637 to your computer and use it in GitHub Desktop.
SASS each loops
@each $family in futura-book, futura-bold, futura-bold-italic, futura-italic {
@font-face {
font-family: #{$family};
src: url('../fonts/#{$family}/#{$family}.eot');
src: url('../fonts/#{$family}/#{$family}.eot?#iefix') format('embedded-opentype'),
url('../fonts/#{$family}/#{$family}.woff') format('woff'),
url('../fonts/#{$family}/#{$family}.ttf') format('truetype'),
url('../fonts/#{$family}/#{$family}.svg##{$family}') format('svg');
font-weight: normal;
font-style: normal;
}
}
@each $item in twitter google facebook pinterest {
.#{$item} {
@extend .icon;
@extend .icon-#{$item};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment