.erda-list {
  &-item {
    margin-top: 0.5rem;
    border-bottom: 1px solid $color-border;
    border-radius: 2px;
    background-color: $white;
    box-shadow: 0 2px 4px 0 $color-box-shadow;
    background-position: 100% 0;
    background-repeat: no-repeat;

    &.no-border {
      border-bottom: none;
    }

    &-operations {
      display: flex;
      align-items: flex-start;
      cursor: default;
    }

    &:last-child {
      border-bottom: none;
    }

    &-body {
      display: flex;
      flex: 1;
      flex-direction: column;
      width: 0;

      .body-title {
        display: flex;
        align-items: center;

        .title-text {
          width: auto;
          color: $color-text;
        }

        .title-icon {
          color: $color-text-desc;
          font-size: 18px;
        }
      }

      .body-description {
        color: $color-text-sub;
      }

      .body-extra-info {
        color: $color-text-desc;

        .info-item {
          display: inline-flex;
          align-items: center;
          max-width: 240px;
          margin-right: 24px;

          &.type-normal {
            color: $color-text-desc;
          }

          &.type-success {
            color: $color-success;
          }

          &.type-warning {
            color: $color-warning;
          }

          &.type-error {
            color: $color-danger;
          }
        }
      }
    }

    .erda-list-item-prefix-img {
      margin-right: 12px;
      line-height: 1;

      img {
        margin: 10px;
        width: calc(100% - 20px);
        height: calc(100% - 20px);
      }

      > * {
        width: 76px;
        height: 76px;
      }

      .prefix-img-middle {
        width: 36px;
        height: 36px;
      }

      .prefix-img-circle {
        border-radius: 50%;
      }
    }

    .body-title {
      font-size: 20px;
      line-height: 32px;
    }

    .body-description {
      font-size: 12px;
      height: 20px;
      line-height: 20px;
      color: $color-text-desc;
    }

    .body-extra-info {
      margin-top: 4px;
      line-height: 1.2;
    }

    &.middle &-container {
      padding: 8px 12px;
    }

    &.small &-container {
      padding: 4px 8px;

      .body-title {
        margin: 0;
      }
      .item-prefix-img {
        width: 20px;
        height: 20px;

        &.prefix-img-circle {
          border-radius: 50%;
        }
      }

      .erda-list-item-body {
        .title-icon {
          width: 20px;
          height: 20px;
        }

        .title-text {
          font-size: 14px;
          line-height: 20px;
          font-weight: normal;
        }
      }
    }

    &.large &-container {
      padding: 12px 16px;
    }
  }

  .load-more {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
    color: $color-text-desc;
    font-size: 14px;
  }
}

.erda-list-operations {
  .ant-dropdown-menu {
    width: 200px;
    background-color: $color-default;
  }

  .ant-dropdown-menu-item,
  .ant-dropdown-menu-submenu-title {
    color: rgba($white, 0.9);
  }

  .ant-dropdown-menu-item:hover,
  .ant-dropdown-menu-submenu-title:hover {
    background-color: rgba($white, 0.08);
    color: $white;
  }

  .ant-dropdown-menu-title-content {
    .disabled {
      color: rgba($white, 0.6) !important;
    }
  }
}
