// First-PR results pane styles

.results-wrapper {
  -webkit-perspective: 500px;
  perspective: 500px;
}
.result {
  -webkit-transform-origin: 50% 0;
  transform-origin: 50% 0;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
  margin: -1px 0 0;
  font-size: 14px;
  line-height: 20px;
  padding: 20px 20px 20px;
  text-align: left;
  & h2 {
    font-size: 20px;
    font-weight: normal;
    line-height: 25px;
    small {
      color: $med-grey;
      font-size: 18px;
    }
  }
  & p a,
  & p a:visited {
    color: $green;
  }
  & a {
    color: inherit;
    font-weight: 900;
    text-decoration: none;
    &:hover {
    text-decoration: underline;
    }
  }
}

.hidden, .expanded {
  transition: all 400ms cubic-bezier(0.40, 1.34, 0.51, 1.01);
}
.hidden {
  opacity: 0;
  -webkit-transform: rotateX(-60deg);
  transform: rotateX(-60deg);
}
.expanded {
  -webkit-transform: rotateX(0deg);
  transform: rotateX(0deg);
  opacity: 1;
}
.found {
  position: relative;
  h2 {
    margin-bottom: 15px;
  }
  p {
    margin-bottom:10px;
  }
}
.pr-number {
  color: $med-grey;
}
.user-media, .pr-dates {
  overflow:hidden;
  _overflow:visible;
  zoom:1;
}
.avatar {
  float: left;
  margin: 1px 10px 0 0;
  img {
    border-radius: 4px;
    display: block;
  }
}
.missing h2 {
  margin-bottom: 10px;
}

.state{
  line-height:20px;
  color:#fff;
  padding:1px 6px;
  margin-right: 3px;
  border-radius:3px;
  display:inline-block;
}
#tweet{
  width:110px;
  margin:20px auto;
}
#tweet iframe {
  max-width:150px;
  /*Use important to override inline iframe css*/
  width: auto !important;
}
.merged{
  background: $color--merged;
}
.open{
  background: $color--open;
}
.closed{
  background: $color--closed;
}
.spinner {
  margin: -13px 0 0;
  width: 50px;
  height: 26px;
  text-align: center;
  font-size: 10px;
  position: absolute;
  top: 50%;
  right: 10px;
}
.hide {
  display: none;
}

.spinner {
  &> div {
    background-color: $green;
    height: 100%;
    width: 6px;
    display: inline-block;

    -webkit-animation: stretchdelay 1.2s infinite ease-in-out;
    animation: stretchdelay 1.2s infinite ease-in-out;
  }

  .rect2 {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
  }
  .rect3 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
  }
  .rect4 {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
  }
  .rect5 {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
  }
}

@-webkit-keyframes stretchdelay {
  0%, 40%, 100% { -webkit-transform: scaleY(0.4) }
  20% { -webkit-transform: scaleY(1.0) }
}

@keyframes stretchdelay {
  0%, 40%, 100% {
    transform: scaleY(0.4);
    -webkit-transform: scaleY(0.4);
  }  20% {
    transform: scaleY(1.0);
    -webkit-transform: scaleY(1.0);
  }
}
