SeriouslyAwesome/democratictravelers

View on GitHub
app/assets/stylesheets/bitters/_typography.scss

Summary

Maintainability
Test Coverage
body {
  color: $base-font-color;
  font-family: $base-font-family;
  font-size: $base-font-size;
  -webkit-font-smoothing: antialiased;
  line-height: $baseline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: $header-font-family;
  margin: 0;
  text-rendering: optimizeLegibility; // Fix the character spacing for headings
  line-height: $baseline;
  color: $black;
  
  a { color: $black; }
  
  small { 
    font-size: 75%;
    color: $medium-gray;
    font-weight: normal;
    line-height: 0;
  }
}

h1 {
  font-size: $base-font-size * 2.75; // 16 * 2.75 = 44px
  line-height: $baseline * 2;
  
  small { 
    display: block;
    font-size: $base-font-size * 1.5;
    line-height: $baseline;
    margin-bottom: $baseline;
  }
}

h2 {
  font-size: $base-font-size * 2; // 16 * 2 = 32px
  line-height: $baseline * 2;
}

h3 {
  font-size: $base-font-size * 1.75; // 16 * 1.75 = 28px
  line-height: $baseline;
  a {
    line-height: 0;
  }
}

h4 {
  font-size: $base-font-size * 1.5; // 16 * 1.5 = 24px
}

h5 {
  font-size: $base-font-size * 1.25; // 16 * 1.25 = 20px
}

h6 {
  font-size: $base-font-size;
}

p, ul, ol {
  margin: 0 0 $baseline 0;
}

a {
  color: $base-link-color;
  text-decoration: none;
  @include transition(color 0.1s linear);

  &:hover {
    color: $hover-link-color;
  }

  &:active, &:focus {
    color: $hover-link-color;
    outline: none;
  }
}

hr {
  border-bottom: 1px solid $base-border-color;
  border-left: none;
  border-right: none;
  border-top: none;
  margin: $baseline 0;
}

img {
  margin: 0;
  max-width: 100%;
}

abbr, acronym {
  border-bottom: 1px dotted $base-border-color;
  cursor: help;
}

address {
  display: block;
  margin: 0 0 ($baseline / 2);
}

hgroup {
  margin-bottom: $baseline / 2;
}

del {
  color: lighten($base-font-color, 15);
}

blockquote {
  border-left: 2px solid $base-border-color;
  color: lighten($base-font-color, 15);
  margin: $baseline 0;
  padding-left: $baseline / 2;
  p { 
    font-size: $base-font-size * 1.375;
    color: $black;
    line-height: $baseline;
    margin-bottom: 0; }
}

cite {
  color: lighten($base-font-color, 25);
  font-style: italic;

  &:before {
    content: '\2014 \00A0';
  }
}

.centered {
  text-align: center;
}