Skip to content

Instantly share code, notes, and snippets.

@wmcmillian-coalmarch
Last active February 29, 2016 18:55
Show Gist options
  • Save wmcmillian-coalmarch/9944e13f0e9f8d9ad9a4 to your computer and use it in GitHub Desktop.
Save wmcmillian-coalmarch/9944e13f0e9f8d9ad9a4 to your computer and use it in GitHub Desktop.
Base Typography Layout
//font-sizes and line-heights not in comp taken from here: http://typecast.com/blog/a-more-modern-scale-for-web-typography
h1 {
font-size: 2em;
line-height: 1.25em;
}
h2 {
font-size: 1.625em;
line-height: 1.15384615em
}
h3 {
font-size: 1.375em;
line-height: 1.13636364em
}
h4 {
font-size: 1.125em;
line-height: 1.11111111em;
}
blockquote {
font-size: 1.25em;
line-height: 1.25em;
}
@include breakpoint($tab) {
body {
line-height: 1.375em;
}
h1 {
font-size: 2.5em;
line-height: 1.125em;
}
h2 {
font-size: 2em;
line-height: 1.25em;
}
h3 {
font-size: 1.5em;
line-height: 1.25em;
}
h4 {
font-size: 1.125em;
line-height: 1.22222222em
}
blockquote {
font-size: 1.5em;
line-height: 1.45833333em;
}
}
@include breakpoint($desk) {
h1 {
font-size: 3em;
line-height: 1.05em;
}
h2 {
font-size: 2.25em;
}
h3 {
font-size: 1.75em;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment