/**
* Copyright (c) 2022 - present TinyVue Authors.
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/

@import '../custom.less';
@import './vars.less';

@upload-thumb-prefix-cls: ~'@{css-prefix}upload--thumb';

.@{upload-thumb-prefix-cls} {
  .inject-FileUpload-vars();

  &__wrap {
    margin-top: 8px;
  }

  &__head {
    cursor: pointer;
    color: var(--tv-FileUpload-item-text-color);
    font-size: var(--tv-FileUpload-font-size);

    .thumb-icon {
      margin-right: 8px;
      fill: #999;
    }

    span {
      vertical-align: middle;
    }
  }

  &__body {
    .inject-FileUpload-vars();

    .thumb-item {
      display: flex;
      justify-content: flex-start;
      align-items: center;

      &:not(:last-child) {
        padding-bottom: 8px;
      }
    }

    .thumb-item-name {
      padding: 4px 8px;
      color: var(--tv-FileUpload-item-text-color);
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .thumb-success-icon {
      fill: #52c41a;
    }

    .close-icon,
    .download-icon,
    .refres-icon {
      fill: #7c7c7c;
      cursor: pointer;
    }

    .thumb-icon + .thumb-icon {
      margin-left: 8px;
    }
  }
}
