$prefixCls: $lib-name + "-notice";
@keyframes #{$animation-prefix}move-in-right {
  0% {
    height: auto;
    margin: 10px;
    transform: translate(100%);
    opacity: 0;
  }
  100% {
    transform: translate(0%);
    opacity: 1;
  }
}
@keyframes #{$animation-prefix}move-out-right {
  from {
    transform: translate(0%);
    opacity: 1;
  }
  75% {
    height: auto;
    margin: 10px;
    transform: translate(100%);
    opacity: 0;
  }
  to {
    height: 0;
    margin: 0px;
    transform: translate(100%);
    opacity: 0;
  }
}

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

.#{$prefixCls}-wrapper {
  position: fixed;
  z-index: 120;
  text-align: right;
  .#{$prefixCls}-box {
    position: absolute;
    right: 0;
    .#{$prefixCls}-box-content {
      position: relative;
      display: inline-block;
      min-width: 150px;
      padding: 10px 16px;
      font-size: 14px;
      text-align: left;
      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}-custom-content {
        .#{$prefixCls}__icon {
          display: inline-block;
          margin-right: 8px;
          font-size: 14px;
          top: 1px;
          &.info {
            color: $info-color;
          }
          &.success {
            color: $success-color;
          }
          &.warning {
            color: $warning-color;
          }
          &.error {
            color: $error-color;
          }
          &.loading {
            color: $sub-text-color-light;
          }
        }
      }
      .#{$prefixCls}__content {
        width: 320px;
        margin-top: 10px;
        font-size: 12px;
        line-height: 1.5;
        color: $content-color-light;
      }
      .#{$prefixCls}-box-close {
        position: absolute;
        right: 16px;
        top: 10px;
        color: $sub-text-color-light;
        cursor: pointer;
        i {
          font-size: 12px;
          &:hover {
            color: $primary-color;
          }
        }
      }
    }
  }

  &.#{$prefixCls}-list {
    .#{$prefixCls}-box {
      position: relative;
      margin-bottom: 10px;
      .#{$prefixCls}__content {
        width: auto;
        max-width: 320px;
      }
    }
  }
}
