lib/header/index.css

/**
 * Dependencies.
 */

@import 'duojs/logo';
@import '../blanch';

/**
 * Site header.
 *
 *   .Header
 *     .Header-title
 *     .Header-tagline
 *     .Header-github
 *     .Header-search
 */

.Header {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: url('./background.jpg') center center no-repeat;
  background-size: cover;
  color: white;
  padding: 0 2em 20em;
}

.Header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background: linear-gradient(to bottom, color(var(--white) alpha(0%)), var(--white));
}

/**
 * Title.
 */

.Header-title {
  margin-top: 2em;
  font-size: 5em;
}

/**
 * Tagline.
 */

.Header-tagline {
  display: block;
  margin-top: 2em;
  font-family: 'Blanch Condensed';
  font-size: 2.3em;
  max-width: 10em;
  margin-right: auto;
  margin-left: auto;
  line-height: 1;
  text-shadow: 0 1px color(var(--darker-white) shade(25%));
}

/**
 * GitHub.
 */

.Header-github {
  display: block;
  position: fixed;
  z-index: 100;
  top: 1.5em;
  right: -6em;
  padding: .4em 1em;
  width: 15em;
  text-align: center;
  background: var(--green);
  text-transform: uppercase;
  font-family: 'Blanch Condensed';
  font-size: .9em;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  transform: rotate(45deg);
  transform-origin: 50% 50%;
  transition: background-color .2s;
}

.Header-github:hover {
  background: color(var(--green) shade(10%));
  color: var(--white);
}

@media (min-width: 768px) {
  .Header-github {
    top: 2.5em;
    right: -4.75em;
  }
}

/**
 * Search.
 */

.Header-search {
  visibility: hidden; /* hidden for now until we have a registry */
  padding: 1em 2em;
}

.Header-search-input {
  font-size: .75em;
  width: 19em;
  padding: .5em 1em;
  background: rgba(255, 255, 255, .15);
  border: 3px solid rgba(255, 255, 255, .5);
  border-radius: 1000px;
  transition: border-color .2s, background-color .2s;
}

.Header-search-input:hover {
  border-color: rgba(255, 255, 255, .7);
}

.Header-search-input:focus {
  background-color: rgba(255, 255, 255, .3);
  border-color: white;
  outline: none;
}

.Header-search-input::placeholder {
  color: rgba(255, 255, 255, .5);
}
