$notice-prefix-cls: "#{$css-prefix}notice";
$icon-prefix-cls: "#{$css-prefix}icon";

.#{$notice-prefix-cls} {
  width: $notice-width;
  margin-right: $notice-margin-right;
  position: fixed;
  z-index: $zindex-notification;

  &-notice {
    margin-bottom: $notice-margin-bottom;
    // padding: $notice-padding;
    padding: $notice-notice-padding;
    //border: 1px solid $border-color-split;
    border-radius: $border-radius-small;
    box-shadow: 0 1px 6px 0 rgba(51, 51, 51, 0.15);     //**********************************************8
    background: $notice-notice-background;
    line-height: 1;
    position: relative;
    overflow: hidden;

    &-close {
      position: absolute;
      // right: $notice-notice-close-right;
      top: $notice-notice-close-top;
      right: 16px;//********************
      color: $notice-notice-close-color;
      outline: none;

      i {
        @include close-base(1px,14px);
      }
    }

    &-with-desc {
      .#{$notice-prefix-cls}-notice-close {
        top: $notice-notice-close-top;//**********************************************8
      }
    }
  }

  &-title {
    font-size: $font-size-base;
    font-weight: $notice-title-font-weight;
    color: $text-color;
    padding-right: $notice-title-padding-right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }

  &-with-desc &-title {
    margin-bottom: $notice-with-desc-margin-bottom;
    margin-left: $notice-with-icon-margin-left;
  }

  &-desc {
    font-size: $notice-desc-font-size;
    color: $notice-desc-color;
    text-align: justify;
    line-height: 1.5;
  }

  &-with-desc &-desc {
    margin-top: 12px;
    margin-left: $notice-with-desc-desc-margin-left;
  }

  &-icon {
    // position: absolute;
    position: relative;
    left: 0;
    top: 0;              //*****************************************************************
    margin-top: -1px;
    font-size: $notice-icon-font-size;
    display: inline-block;

    &-success {
      color: $success-color;
    }

    &-info {
      color: $primary-color;
    }

    &-warning {
      color: $warning-color;
    }

    &-error {
      color: $error-color;
    }
  }

  &-with-desc &-icon {
    & i.iconfont {
      font-size: $notice-with-desc-iconfont-font-size;
    }
  }

  &-custom-content {
    &::after {
      content: none;//****************************************************************去除右侧色块
      display: block;
      width: 4px;
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
    }
  }

  &-with-normal {
    &::after {
      background: $notice-with-normal-color;
    }
    .#{$notice-prefix-cls}-title,.#{$notice-prefix-cls}-desc {
      margin-left: 0;
    }
  }

  &-with-info {
    &::after {
      background: $notice-with-info-color;
    }
  }

  &-with-success {
    &::after {
      background: $notice-with-success-color;
    }
  }

  &-with-warning {
    &::after {
      background: $notice-with-warning-color;
    }
  }

  &-with-error {
    &::after {
      background: $notice-with-error-color;
    }
  }
}
