@import '~@delon/theme/index';
:host ::ng-deep {
  .content {
    display: flex;
    .avatar {
      flex: 0 1 72px;
      margin-bottom: 8px;
      .ant-avatar {
        display: block;
        width: 72px;
        height: 72px;
        border-radius: 72px;
      }
    }
    .desc {
      position: relative;
      top: 4px;
      flex: 1 1 auto;
      margin-left: 24px;
      color: @text-color-secondary;
      line-height: 22px;
      .desc-title {
        margin-bottom: 12px;
        color: @heading-color;
        font-weight: 500;
        font-size: 20px;
        line-height: 28px;
      }
    }
  }
  .page-extra {
    .clearfix();

    float: right;
    white-space: nowrap;
    & > div {
      position: relative;
      display: inline-block;
      padding: 0 32px;
      & > p:first-child {
        margin-bottom: 4px;
        color: @text-color-secondary;
        font-size: @font-size-base;
        line-height: 22px;
      }
      & > p {
        margin: 0;
        color: @heading-color;
        font-size: 30px;
        line-height: 38px;
        & > span {
          color: @text-color-secondary;
          font-size: 20px;
        }
      }
      &::after {
        position: absolute;
        top: 8px;
        right: 0;
        width: 1px;
        height: 40px;
        background-color: @border-color-split;
        content: '';
      }
    }
    & > div:last-child {
      padding-right: 0;
      &::after {
        display: none;
      }
    }
  }
  .project-list {
    .ant-card-meta-description {
      height: 44px;
      overflow: hidden;
      color: @text-color-secondary;
      line-height: 22px;
    }
    .card-title {
      font-size: 0;
      a {
        display: inline-block;
        height: 24px;
        margin-left: 12px;
        color: @heading-color;
        font-size: @font-size-base;
        line-height: 24px;
        vertical-align: top;
        &:hover {
          color: @primary-color;
        }
      }
    }
    .project-grid {
      width: 33.33%;
    }
    .project-item {
      display: flex;
      height: 20px;
      margin-top: 8px;
      overflow: hidden;
      font-size: 12px;
      line-height: 20px;
      .textOverflow();
      a {
        display: inline-block;
        flex: 1 1 0;
        color: @text-color-secondary;
        .textOverflow();
        &:hover {
          color: @primary-color;
        }
      }
      .datetime {
        flex: 0 0 auto;
        float: right;
        color: @disabled-color;
      }
    }
  }
  .activities {
    padding: 0 24px 8px;
    .username {
      color: @text-color;
    }
    .event {
      font-weight: normal;
    }
  }
  .members {
    a {
      display: block;
      height: 24px;
      margin: 12px 0;
      line-height: 24px;
      .textOverflow();
      .member {
        display: inline-block;
        max-width: 100px;
        margin-left: 12px;
        color: @text-color;
        font-size: @font-size-base;
        line-height: 24px;
        vertical-align: top;
        transition: all 0.3s;
        .textOverflow();
      }
      &:hover {
        span {
          color: @primary-color;
        }
      }
    }
  }
  .datetime {
    color: @disabled-color;
  }
  .links {
    padding: 20px 0 8px 24px;
    font-size: 0;
    > a {
      display: inline-block;
      width: 25%;
      margin-bottom: 13px;
      color: @text-color;
      font-size: @font-size-base;
      &:hover {
        color: @primary-color;
      }
    }
  }

  @media screen and (max-width: @screen-xl) and (min-width: @screen-lg) {
    .active-card {
      margin-bottom: 24px;
    }
    .members {
      margin-bottom: 0;
    }
    .page-extra {
      margin-left: -44px;
      & > div {
        padding: 0 16px;
      }
    }
  }

  @media screen and (max-width: @screen-lg) {
    .active-card {
      margin-bottom: 24px;
    }
    .members {
      margin-bottom: 0;
    }
    .page-extra {
      float: none;
      margin-right: 0;
      & > div {
        padding: 0 16px;
        text-align: left;
        &::after {
          display: none;
        }
      }
    }
  }

  @media screen and (max-width: @screen-md) {
    .page-extra {
      margin-left: -16px;
    }
    .project-list {
      .project-grid {
        width: 50%;
      }
    }
  }

  @media screen and (max-width: @screen-sm) {
    .content {
      display: block;
      .desc {
        margin-left: 0;
      }
    }
    .page-extra {
      & > div {
        float: none;
      }
    }
  }

  @media screen and (max-width: @screen-xs) {
    .project-list {
      .project-grid {
        width: 100%;
      }
    }
  }
}
