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

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

.@{upload-prefix-cls} {
  width: 100%;
  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%;
    position: relative;
  }


  .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;
    flex: 1;
    max-width: 100%;
  }

  .maxInfo{
    max-width: calc(100% - 33px);
  }

  .selectedFile{
    background-color: @primary-1;
    .fileName{
      color: @blue-6;  
    }
    .FCwenjian{
      color: @blue-6!important;  
    }
  }

  .tag{
    margin-left: @unit;
  }

  .linkFileName {
    max-width: calc(100% - 28px);
    display: flex;
    align-items: center;
  }

  .fileName {
    white-space: nowrap;
    overflow-x: hidden;
    overflow-y: hidden;
    text-overflow: ellipsis;
    padding: 0 12px;
    color: @black-8;
  }

  .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;
    }
  }

  .ant-progress-bg, .ant-progress-success-bg ,.ant-progress-inner{
    height: 3px!important;
  }
  .ant-progress{
    line-height: 0;
  }
  .progress {
    /* max-width: 50%; */
    flex: 1;
    // position: absolute;
  }
  .fileBlock{
    display: flex;
    flex-direction: column;
    margin-bottom: @margin-sm;
  }
  .progressLine{
    display: flex;
  }
  .space{
    width: 16px;
    margin-left: @margin-md;
  }
  .ant-progress-status-success .ant-progress-bg{
    background-color: @success-6;
  }
  .ant-progress-bg{
    background-color: @blue-6;
  }
}
