$prefixCls: $lib-name + "-message";
@keyframes #{$animation-prefix}move-in {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

.#{$animation-prefix}move-in-enter-active {
  animation: #{$animation-prefix}move-in $animation-time;
}
.#{$animation-prefix}move-in-leave-active {
  animation: #{$animation-prefix}move-in $animation-time reverse;
}

.#{$prefixCls}-wrapper {
  position: fixed;
  z-index: 120;
  .#{$prefixCls}-box {
    margin-bottom: 10px;
    .#{$prefixCls}-box-content {
      display: inline-block;
      transform: translateX(-50%);
      padding: 10px 16px;
      font-size: 14px;
      color: $title-color-light;
      background-color: $background-color-base;
      border-radius: 4px;
      border: 1px solid $border-color-base;
      box-sizing: border-box;
      box-shadow: $box-shadow-base;
      .#{$prefixCls}-box-content-text {
        display: inline-block;
        i {
          display: inline-block;
          line-height: 1;
          margin-right: 8px;
          font-size: 14px;
          &.info {
            color: $info-color;
          }
          &.success {
            color: $success-color;
          }
          &.warning {
            color: $warning-color;
          }
          &.error {
            color: $error-color;
          }
          &.loading {
            color: $sub-text-color-light;
          }
        }
      }
      .#{$prefixCls}-box-close {
        display: inline-block;
        margin-left: 20px;
        color: $sub-text-color-light;
        cursor: pointer;
        i {
          font-size: 12px;
          &:hover {
            color: $primary-color;
          }
        }
      }
    }
  }

  &.#{$prefixCls}-fixed {
    .#{$prefixCls}-box {
      position: absolute;
      top: 0;
      white-space: nowrap;
    }
  }
}
