crowdAI/crowdai

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

Summary

Maintainability
Test Coverage
/* Typography */

a {
  color: $color-grey-87;
  text-decoration: none;
  transition: 0.3s;
  &:hover {
    color: $color-accent-dark;
  }
}

h1, h2, h3, h4, h5 {
  color: $color-grey-87;
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  color: $color-grey-80;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -1px;
  @media screen and (max-width: 1024px) {
    font-size: 40px;
  }
  @media screen and (max-width: 800px) {
    font-size: 32px;
  }
  @media screen and (max-width: 400px) {
    color: $color-grey-87;
    font-size: 24px;
    letter-spacing: 0;
  }
}

h2 {
  color: $color-grey-80;
  font-size: 36px;
  letter-spacing: -1px;
  @media screen and (max-width: 1024px) {
    font-size: 32px;
  }
  @media screen and (max-width: 800px) {
    color: $color-grey-87;
    font-size: 28px;
    letter-spacing: 0;
  }
  @media screen and (max-width: 400px) {
    color: $color-grey-87;
    font-size: 24px;
  }

}

h3 {
  font-size: 28px;
  @media screen and (max-width: 1024px) {
    font-size: 26px;
  }
  @media screen and (max-width: 800px) {
    font-size: 24px;
  }
  @media screen and (max-width: 400px) {
    font-size: 22px;
  }
}

h4 {
  font-size: 22px;
  @media screen and (max-width: 800px) {
    font-size: 22px;
  }
  @media screen and (max-width: 400px) {
    font-size: 20px;
  }
}

h5 {
  font-size: 16px;
  font-weight: 500;
}

.list-topics h5 {
  &:visited {
    font-weight: 400;
  }
}

h6 {
  color: $color-accent-dark;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  @media screen and (max-width: 400px) {
    font-size: 14px;
  }
}

p {
  line-height: 20px;
}

span.large,
p.large {
  font-size: 17px;
  line-height: 24px;
  max-width: 680px;

  @media screen and (max-width: 640px) {
    font-size: 16px;
    line-height: 22px;
  }
}

p a {
  border-bottom: 1px solid transparent;
  color: $color-accent-dark;
  &:hover {
    border-bottom: 1px solid $color-accent;
  }
}

strong {
  font-weight: 500;
}

i {
  font-style: italic;
}

abbr {
  border-bottom: 1px dotted $color-grey-80;
  text-decoration: none;
}

sup {
  color: $color-grey-54;
  vertical-align: baseline;
  position: relative;
  top: -5px;
  font-size: 10px;
}

/*
code {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 14px;
  padding: 2px 4px;
  color: $color-grey-87;
  background: $color-grey-03;
  border-radius: 3px;
}
*/
code.block {
  display: block;
  width: 100%;
  margin-top: 23px;
  padding: 8px 10px;
}

.light {
  color: $color-grey-54;
}

.color-accent {
  color: $color-accent-dark;
}

// added by Sean
.list-topics h5 {
  &:visited {
    font-weight: 400;
  }
}