Created
April 24, 2014 15:38
-
-
Save davidpett/11259187 to your computer and use it in GitHub Desktop.
typography.scss
This file contains 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
%headerPrimary { | |
font-size: 48px; | |
font-weight: 200; | |
line-height: 1; | |
margin-bottom: 0.25em; | |
@include responsive('lap') { | |
font-size: 60px; | |
} | |
@include responsive('desk') { | |
font-size: 70px; | |
margin-bottom: 5em; | |
} | |
} | |
.somewhere .title { | |
@extend %headerPrimary; | |
color: #ff0000; | |
} | |
// or | |
@mixin headerPrimary { | |
font-size: 48px; | |
font-weight: 200; | |
line-height: 1; | |
margin-bottom: 0.25em; | |
@include responsive('lap') { | |
font-size: 60px; | |
} | |
@include responsive('desk') { | |
font-size: 70px; | |
margin-bottom: 5em; | |
} | |
@content; | |
} | |
.somewhere .better-title { | |
@include headerPrimary { | |
color: #ffcc00; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment