Skip to content

Instantly share code, notes, and snippets.

@Jaswetz
Created June 12, 2012 18:21
Show Gist options
  • Save Jaswetz/2919181 to your computer and use it in GitHub Desktop.
Save Jaswetz/2919181 to your computer and use it in GitHub Desktop.
SCSS: typography.scss
//----------------------------------------------------------------------------
// typography.scss
// Headings, body text, lists, code, and more
//----------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// @BODY
p
{
margin: 0 0 $baseLineHeight / 2;
font-family: $baseFontFamily;
font-size: $baseFontSize;
line-height: $baseLineHeight;
small
{
font-size: $baseFontSize - 2;
color: $grayLight;
}
}
.lead
{
margin-bottom: $baseLineHeight;
font-size: 20px;
font-weight: 200;
line-height: $baseLineHeight * 1.5;
}
// ---------------------------------------------------------------------------
// @LINKS
a
{
color: $linkColor;
text-decoration: none;
}
a:hover
{
color: $linkColorHover;
text-decoration: underline;
}
// ---------------------------------------------------------------------------
// @HEADINGS
h1, h2, h3, h4, h5, h6
{
margin: 0;
font-family: $headingsFontFamily;
font-weight: $headingsFontWeight;
color: $headingsColor;
text-rendering: optimizelegibility; // Fix the character spacing for headings
small
{
font-weight: normal;
color: $grayLight;
}
}
h1
{
font-size: 30 ÷ $baseFontSize;
line-height: $baseLineHeight * 2;
small
{
font-size: 18px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment