Skip to content

Instantly share code, notes, and snippets.

@nadavspi
Created August 4, 2014 23:22
Show Gist options
  • Select an option

  • Save nadavspi/5cbee6bf8b1909019169 to your computer and use it in GitHub Desktop.

Select an option

Save nadavspi/5cbee6bf8b1909019169 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.0.rc.0)
// ----
// Applies the Open Sans font stack
//
// $weight - font weight
// - Options: light, normal, semibold, bold
%opensans {
font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
@mixin opensans($weight) {
@extend %opensans;
@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);
}
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