Created
July 21, 2011 02:31
-
-
Save adamstac/1096391 to your computer and use it in GitHub Desktop.
Simple Sass mixin example for headings
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
@mixin heading | |
( | |
$color: $pure-yellow, | |
$font-size: 20px, | |
$font-weight: normal | |
) | |
{ | |
@extend .PFCentroSerifPro-Regular; | |
color: $color; | |
font-size: $font-size; | |
font-weight: $font-weight; | |
} |
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
.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; | |
} |
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
@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