Skip to content

Instantly share code, notes, and snippets.

@teodragovic
Created January 20, 2014 11:49
Show Gist options
  • Save teodragovic/8518768 to your computer and use it in GitHub Desktop.
Save teodragovic/8518768 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v0.7.0)
// ----
$cold-world: Verdana, sans-serif;
$cream: Verdana, sans-serif;
$fish: Verdana, sans-serif;
$knowledge-god: Verdana, sans-serif;
$run: test, test, Verdana, sans-serif;
$winter-warz: Verdana, sans-serif;
//$font-list: $cold-world, $cream, $fish, $knowledge-god, $run, $winter-warz;
$pages: "cold-world", "cream", "fish", "knowledge-god", "run", "winter-warz";
$font-list: ();
@function variable($x) {
@return unquote("$" + $x);
}
@mixin font($font-stack, $stack: 1) {
font-family: nth($font-stack, $stack);
}
@each $page in $pages {
$font-list: append($font-list, variable($page), comma);
}
@each $page in $pages {
.#{$page} {
@include font(nth($font-list, index($pages, $page)), 1);
//@include font(variable($page), 1);
}
}
.cold-world {
font-family: $cold-world; }
.cream {
font-family: $cream; }
.fish {
font-family: $fish; }
.knowledge-god {
font-family: $knowledge-god; }
.run {
font-family: $run; }
.winter-warz {
font-family: $winter-warz; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment