Skip to content

Instantly share code, notes, and snippets.

@teodragovic
Created January 20, 2014 13:05
Show Gist options
  • Save teodragovic/8519562 to your computer and use it in GitHub Desktop.
Save teodragovic/8519562 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
$pages:
"cold-world" font1 sans-serif,
"cream" font2 sans-serif,
"fish" font3 sans-serif,
"knowledge-god" font4 sans-serif,
"run" font5 sans-serif,
"winter-warz" font6 sans-serif;
@mixin font($font-stack, $stack: 1) {
font-family: nth($font-stack, $stack);
}
@each $page in $pages {
$class: nth($page, 1);
$font-stack: ();
@for $i from 2 through length($page) {
$font-stack: append($font-stack, nth($page, $i));
}
.#{$class} {
@include font($font-stack, 1);
}
}
.cold-world {
font-family: font1;
}
.cream {
font-family: font2;
}
.fish {
font-family: font3;
}
.knowledge-god {
font-family: font4;
}
.run {
font-family: font5;
}
.winter-warz {
font-family: font6;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment