.yee-resource-class-wrap {
  height: 100%;
}

.yee-resource-class-content {
  height: 100%;
}

.yee-resource-nav {
  display: flex;
  padding: 8px;
  width: 100%;
  box-shadow: 0px 1px 0px 0px #efefef;

  .yee-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    margin: 0 8px;
    border-radius: 2px;
    font-size: 12px;
    span {
      margin-left: 4px;
    }
  }
}

.yee-resource-class-list {
  height: calc(100% - 48px);
  overflow-y: auto;

  .yee-resource-class-item {
    cursor: pointer;
    color: #333333;
    box-shadow: 0px 1px 0px 0px #efefef;
    font-size: 12px;
    font-family:
      PingFangSC-Regular,
      PingFang SC;
    font-weight: 400;

    .yee-resource-class-item-text {
      flex: 1;
      display: flex;
      justify-content: space-between;
      align-items: center;
      overflow: hidden;
      height: 16px;
      padding-right: 10px;

      span {
        display: inline-block;
        width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
    }

    .yee-resource-class-label {
      position: relative;
      display: flex;
      align-items: center;
      position: relative;
      padding: 0 18px 0 4px;
      height: 40px;
      &:hover {
        background: #f0f0f0;
      }
    }

    .yee-resource-left-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 14px;
      margin-right: 4px;
      user-select: none;
    }

    .yee-resource-right-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      user-select: none;
    }

    .yee-resource-class-children {
      .yee-resource-class-label {
        padding-left: 10px;
      }
    }
  }
  .active {
    & > .yee-resource-class-label {
      display: flex;
      align-items: center;
      position: relative;
      padding: 0 18px 0 4px;
      height: 40px;
      background: rgba(82, 191, 99, 0.06);
      color: @yee-primary-color;

      &:after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 4px;
        height: 100%;
        background: @yee-primary-color;
      }
    }
  }

  .yee-spin-nested-loading,
  .yee-spin-container {
    height: 100%;
  }
}

.yee-resource-file-content {
  height: 100%;
  .yee-resource-file-sarchbox {
    padding: 16px;

    .yee-input {
      font-size: 12px;
    }

    .yee-btn {
      padding: 0 10px;
      color: #999999;
    }
  }

  .yee-resource-file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 8px;
    font-size: 12px;
    color: #666666;

    .yee-icon {
      cursor: pointer;
    }

    .yee-resource-file-operate {
      font-size: 12px;
      cursor: pointer;
      &:hover {
        color: @yee-primary-color;
      }

      .yee-btn {
        height: 18px;
        padding: 0;
        margin-left: 8px;
        line-height: 18px;
        font-size: 12px;
      }
    }
  }

  .yee-resource-file-list {
    position: relative;
    height: calc(100% - 90px);
    padding: 8px 16px 16px;
    overflow-y: auto;

    .yee-resource-file-img {
      position: relative;
      width: 100px;
      height: 100px;
      border-radius: 2px;
      overflow: hidden;
      cursor: pointer;

      img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #f5f5f5;
      }

      .yee-resource-file-box {
        position: relative;
        width: 100%;
        height: 100%;

        img {
          draggable: false;
          user-select: none;
        }

        .anticon {
          z-index: 0;
        }

        & > span {
          position: absolute;
          left: 16px;
          right: 16px;
          bottom: 8px;
          font-size: 16px;
          font-weight: bold;
          color: rgba(0, 0, 0, 0.48);
          z-index: 1;
        }
      }

      .yee-resource-file-tools {
        display: none;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 32px;
        text-align: right;
        line-height: 32px;
        background: rgba(0, 0, 0, 0.64);
        color: #ffffff;

        i.anticon {
          font-size: 14px;
        }
      }

      &:hover {
        background: rgba(0, 0, 0, 0.48);

        img {
          opacity: 0.48;
        }

        .yee-resource-file-tools {
          display: flex;
          justify-content: space-around;
          align-items: center;
          z-index: 1;
        }
      }

      .yee-checkbox-wrapper {
        position: absolute;
        top: 2px;
        left: 4px;

        .yee-checkbox-inner {
          width: 18px;
          height: 18px;
        }
      }
    }

    .yee-resource-file-title {
      height: 12px;
      margin-top: 10px;
      font-size: 12px;
      font-family:
        PingFangSC-Regular,
        PingFang SC;
      font-weight: 400;
      color: #262626;
      line-height: 12px;
      overflow: hidden;
      text-align: center;
      text-overflow: ellipsis;
      white-space: nowrap;
      cursor: pointer;
    }

    .yee-empty {
      margin-top: 30%;
    }
  }

  .yee-resource-file-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 20px;

    .yee-spin {
      height: 14px;
      width: 14px;
    }
    .loading-text {
      margin-left: 8px;
      font-size: 14px;
      color: #666666;
    }
  }

  .yee-resource-file-nomore {
    .yee-divider {
      margin: 20px 0px 0;
      font-size: 14px;
      color: #666666;
      font-weight: 400;
    }
  }
}

.yee-resource-file-wrap .yee-drawer-title {
  width: calc(100% - 50px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.file-modal-wrap {
  .yee-upload-drag-icon {
    padding-top: 8px;
  }
}
