Created
January 20, 2014 13:05
-
-
Save teodragovic/8519562 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// 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); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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