// ==========================================================================
// Spinner
// ==========================================================================

// Pulled from purple.heroku for most of it

.spinner {
  display: inline-flex;
  justify-content: space-around;
  position: relative;
  vertical-align: middle;
  width: 30px;
  height: 6px;
  text-align: center;
  top: -1px;

  i.spinner__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: $gray;

    animation: pulse .85s infinite ease-in-out;

    &.spinner__dot--one {
      animation-delay: -0.2s;
    }

    &.spinner__dot--two {
      animation-delay: -0.1s;
    }
  }

  &.spinner--inverted {

    i.spinner__dot {
      background: #fff;
    }
  }

  .btn--saving & {
    width: 18px;
    margin-right: 8px;
    opacity: .6;

    i.spinner__dot {
      width: 3px;
      height: 3px;
    }
  }
}
