Skip to content

Instantly share code, notes, and snippets.

@adamstac
Created July 21, 2011 02:31
Show Gist options
  • Save adamstac/1096391 to your computer and use it in GitHub Desktop.
Save adamstac/1096391 to your computer and use it in GitHub Desktop.
Simple Sass mixin example for headings
@mixin heading
(
$color: $pure-yellow,
$font-size: 20px,
$font-weight: normal
)
{
@extend .PFCentroSerifPro-Regular;
color: $color;
font-size: $font-size;
font-weight: $font-weight;
}
.PFCentroSerifPro-Regular, .featured-projects h3 {
font-family: "PFCentroSerifPro-Regular", "Georgia", serif;
}
.featured-projects h3 {
color: #ffd84a;
font-size: 20px;
font-weight: normal;
margin-bottom: 10px;
}
@import colors
@import typography
@import heading
.featured-projects h3
+headings
margin-bottom: 10px
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment