Skip to content

Instantly share code, notes, and snippets.

@elisechant
Created August 1, 2014 10:26
Show Gist options
  • Save elisechant/f1f36167bf496037a47f to your computer and use it in GitHub Desktop.
Save elisechant/f1f36167bf496037a47f to your computer and use it in GitHub Desktop.
Nested each don't work :(
// File types available
$file-types: (
pdf: ('pdf'),
doc: ('doc docx'),
xls: ('xls xlsx'),
ppt: ('ppt pptx'),
zip: ('zip'),
img: ('jpg jpeg gif png'),
txt: ('txt default')
);
@each $type, $keys in $file-types {
@each $key in $keys {
#{$type} {
font: #{$key}; // equivalent to 'content'
content: #{$keys};
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment