$upload-prefix-cls: "#{$css-prefix}upload";
$uploaded-prefix-cls: "#{$upload-prefix-cls}-uploaded";
.#{$upload-prefix-cls} {
  form,
  input[type="file"] {
    display: none;
  }

  &-list {
    margin-top: $upload-list-margin-top;

    &-file {
      padding: $upload-list-file-padding;
      color: $text-color;
      border-radius: $border-radius-small;
      transition: background-color $transition-time $ease-in-out;
      overflow: hidden;
      position: relative;
      // & > span{
      span.li-body-span {
        cursor: pointer;
        transition: color $transition-time $ease-in-out;

        > i {
          margin-right: $upload-list-file-span-i-margin-right;
        }

        i {
          display: inline-block;
          width: $font-size-small;
          height: $font-size-small;
          color: $text-color;
          text-align: center;
        }
      }

      &:hover {
        // background: $input-disabled-bg;
        background: $upload-list-file-background;

        & > span {
          color: $text-color;//***********************
          i {
            color: $text-color;
          }
        }
        .#{$upload-prefix-cls}-list-remove {
          opacity: 1;
        }
      }

      .custom-tooltip {
        &:hover {
          // background: $input-disabled-bg;
          background: #f7f7f7;//***********************
          & > span {
            color: $text-color;//***********************
            i {
              color: $text-color;//***********************
            }
          }
        }
      }
    }

    &-file-text-nowrap {
      .li-body {
        display: flex;
        align-items: center;

        span.li-body-span {
          display: flex;
          flex: 1;
          overflow: hidden;
          align-items: center;

          i {
            width: auto;
            height: auto;
          }
        }

        span.file-name {
          // flex: 1;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }
    }

    &-remove {
      // opacity: 0;
      font-size: $upload-list-remove-font-size;
      cursor: pointer;
      float: right;
      margin-right: $upload-list-remove-margin-right;
      color: $legend-color;
      transition: all $transition-time ease;
      padding-left: 10px;

      &:hover {
        color: $upload-list-remove-hover-color;
      }
    }
  }

  &-drag {
    background: $upload-drag-background;
    border: $upload-drag-border;
    border-radius: $border-radius-small;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color $transition-time ease;

    &:hover {
      border: 1px dashed $default-hover-focus-color;//********************
    }
  }

  &-dragOver {
    border: 2px dashed $primary-color;
  }

  &-self {
    > .#{$upload-prefix-cls} {
      display: inline-block;
    }
    > .#{$uploaded-prefix-cls}-wrap {
      display: block;
      margin-top: $upload-self-uploaded-wrap-margin-top;
      border: $upload-self-uploaded-wrap-border;
      border-radius: $upload-self-uploaded-wrap-border-radius;
      line-height: $upload-self-uploaded-wrap-line-height;
      text-align: $upload-self-uploaded-wrap-text-align;
      color: $upload-self-uploaded-wrap-color;
      font-size: $upload-self-uploaded-wrap-font-size;
      font-weight: $upload-self-uploaded-wrap-font-weight;
      .#{$uploaded-prefix-cls}-title {
        padding-left: $upload-self-uploaded-title-padding-left;
        background: $upload-self-uploaded-title-background;
      }
      .#{$uploaded-prefix-cls}-close {
        font-size: $upload-self-uploaded-close-font-size;
        cursor: pointer;
        float: right;
        margin-right: $upload-self-uploaded-close-margin-right;
      }
      .#{$upload-prefix-cls}-list {
        margin-top: $upload-self-uploaded-list-margin-top;
      }
    }
  }
}
