@import '../../../style/themes/index';
@import '../../../style/mixins/index';

@upload-prefix-cls: ~'@{sail-prefix}-upload';

.@{upload-prefix-cls} {
  display: inline-block;
  /** 样式写在这里面 */
  .fileList ul,
  li {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .fileList {
    margin-bottom: 16px;
    margin-top: 16px;
  }

  .file {
    height: 36px;
    line-height: 36px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0px;
    margin-bottom: 12px;
    width: 100%;
  }


  .leftInfo {
    width: calc(100% - 28px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f7f8fa;
    padding-right: 10px;
    padding-left: 12px;
    border-radius: 2px;
  }

  .selectedFile{
    background-color: @primary-2;
  }

  .tag{
    margin-left: @unit;
  }

  .linkFileName {
    max-width: 80%;
    display: flex;
    align-items: center;
  }

  .fileName {
    white-space: nowrap;
    overflow-x: hidden;
    overflow-y: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
  }

  .progress {
    /* max-width: 50%; */
    flex: 1;
  }

  .deleteIcon {
    margin-left: 16px;
    cursor: pointer;
  }

  &-icon {
    cursor: pointer;
  }

  &-button {
    padding: 3px 16px;
    border: 1px solid @primary-6;
    color: @primary-6;
    border-radius: 2px;
    cursor: pointer;
    &:hover {
      color: @primary-5;
      border: 1px solid @primary-5;
    }
    &:focus {
      color: @primary-5;
      border: 1px solid @primary-5;
    }
    &:active {
      color: @primary-7;
      border: 1px solid @primary-7;
    }
  }

  &-download {
    height: 29px;
    line-height: 29px;
    margin-left: 32px;
    color: @primary-6;
    cursor: pointer;
    &:hover {
      color: @primary-5;
    }
    &:focus {
      color: @primary-5;
    }
    &:active {
      color: @primary-7;
    }
  }
}
