//common
@mixin placeholder($color: $input-placeholder-color) {
  // Firefox
  &::-moz-placeholder {
    color: $color;
    opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526
  }
  // Safari and Chrome
  &::-webkit-input-placeholder {
    color: $color;
  }
  // Internet Explorer 10+
  &:-ms-input-placeholder {
    color: $color;
  }
}


@mixin verify-tip-inner() {
  background-color: #f14c5d;//*****************************
  border-radius: 2px;//*****************************
  color: #fff;
  max-width: 200px;
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

@mixin verify-tip-arrow() {
  border-color: transparent;
  border-style: solid;
  height: 0;
  position: absolute;
  width: 0;
}

@mixin verify-tip() {
  display: block;
  font-family: $font-family;
  font-size: $font-size-small;
  font-style: normal;
  font-weight: normal;
  letter-spacing: normal;
  opacity: 100;
  position: absolute;
  text-align: start;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  white-space: nowrap;
  word-break: nowrap;
  word-spacing: normal;
  word-wrap: nowrap;
  line-height: $input-height-small;
  z-index: 9;

  &.verify-top {
    top: -31px;
  }

  > .verify-tip-arrow {
    @include verify-tip-arrow();
  }

  &.verify-top > .verify-tip-arrow {
    border-top-color: $error-color;
    border-width: 5px 5px 0;
    left: 50%;
    margin-left: -5px;
    bottom: -5px;
  }

  &.verify-bottom {
    margin-top: 2px;
    padding: 5px 0;
  }

  > .verify-tip-inner {
    @include verify-tip-inner();
  }

  &.verify-bottom > .verify-tip-arrow {
    border-bottom-color: #f14c5d;//*****************************
    border-width: 0 5px 5px;
    left: 50%;
    margin-left: -5px;
    top: 0;
  }

  &.bottom > .verify-tip-inner {
    background-color: $error-color;
    border-radius: 4px;
    color: #fff;
    max-width: 200px;
    padding: 0 8px;
    text-align: center;
    margin-top: -1px;
  }
}

.verify-tip {
  @include verify-tip();
}
