Created
August 4, 2014 22:47
-
-
Save nadavspi/371c9669e578a9d3d0aa 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.0) | |
| // ---- | |
| // Applies the Open Sans font stack | |
| // | |
| // $weight - font weight | |
| // - Options: light, normal, semibold, bold | |
| @mixin opensans($weight) { | |
| font-family: 'Open Sans', Arial, Helvetica, sans-serif; | |
| @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
| body { | |
| font-family: Georgia, serif; | |
| } | |
| h1 { | |
| font-size: 2em; | |
| font-family: 'Open Sans', Arial, Helvetica, sans-serif; | |
| font-weight: 600; | |
| } | |
| h2 { | |
| font-size: 1.5em; | |
| font-family: 'Open Sans', Arial, Helvetica, sans-serif; | |
| font-weight: 700; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment