18F/micropurchase

View on GitHub
app/assets/stylesheets/components/_header.scss

Summary

Maintainability
Test Coverage
.header {
  background: $background-color;
  min-height: 7rem;
}

.icon {
  display: table;

  @include media($medium-screen) {
    display: block;
  }
}

.title {
  background-image: image-url('18F-Logo-2016-Blue.svg');
  background-repeat: no-repeat;
  color: $color-white;
  float: left;
  font-size: 24px;
  font-weight: $font-light;
  margin-top: 1.25rem;
  padding-left: 55px;
  position: relative;
}

.subtitle {
  font-size: 12px;
  font-weight: 200;
  font-family: 'Merriweather';
  font-style: italic;
}

.nav {
  @include unstyled-list;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 3.5rem;

  @include media($medium-screen) {
    flex-direction: row;
    justify-content: space-between;
  }
}

.header-side {
  float: left;

  @include media($medium-screen) {
    float: right;
  }
}


.nav-link {
  font-size: 16px;
  margin-left: 1.5rem;
  padding-bottom: .5rem;
  color: $color-white;

  @include media($medium-screen) {
    padding-bottom: 0;
  }

  a {
    color: $color-white;
    font-weight: 500;
  }
}

.sign-in a {
  color: $color-primary-alt;
}

.label-beta {
  background-color: $color-primary-alt;
  color: $color-white;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 1px;
  position: relative;
  top: -.2rem;
  left: .3rem;
  text-decoration: none;
}