Created
August 15, 2014 02:55
-
-
Save nadavspi/67a346797067dddc8a7b to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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.14) | |
| // Compass (v1.0.0.rc.1) | |
| // ---- | |
| // Applies the Open Sans font stack | |
| // | |
| // $weight - font weight | |
| // - Options: light, normal, semibold, bold | |
| %opensans-stack { | |
| font-family: 'Open Sans', Arial, Helvetica, sans-serif; | |
| } | |
| @mixin opensans($weight) { | |
| @extend %opensans-stack; | |
| @if $weight == "light" { | |
| font-weight: 300; | |
| } | |
| @if $weight == "normal" { | |
| font-weight: 400; | |
| } | |
| @if $weight == "semibold" { | |
| font-weight: 600; | |
| } | |
| @if $weight == "bold" { | |
| font-weight: 700; | |
| } | |
| } | |
| body { | |
| font-family: Georgia, serif; | |
| } | |
| h1 { | |
| font-size: 2em; | |
| @include opensans(semibold); | |
| } | |
| h2 { | |
| font-size: 1.5em; | |
| @include opensans(bold); | |
| } | |
This file contains hidden or 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
| h1, h2 { | |
| font-family: 'Open Sans', Arial, Helvetica, sans-serif; | |
| } | |
| body { | |
| font-family: Georgia, serif; | |
| } | |
| h1 { | |
| font-size: 2em; | |
| font-weight: 600; | |
| } | |
| h2 { | |
| font-size: 1.5em; | |
| font-weight: 700; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment