Skip to content

Instantly share code, notes, and snippets.

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

  • Save nadavspi/371c9669e578a9d3d0aa to your computer and use it in GitHub Desktop.

Select an option

Save nadavspi/371c9669e578a9d3d0aa 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
@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);
}
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