@import '~choerodon-ui/lib/style/themes/default';
@import "~choerodon-ui-font/style/theme";

.home-page {
  padding: 0.2rem;
  height: 100%;
  overflow: scroll;

  &-title {
    font-size: 16px;
    margin-bottom: 0.2rem;
    font-weight: 500;
  }

  &-item {
    margin-bottom: 0.1rem;

    &-header {
      font-size: 13px;
      margin-bottom: 0.1rem;
      color: var(--text-color3);
    }

    &-headerIcon {
      vertical-align: top;
      cursor: pointer;
    }

    &-headerDate {
      margin-left: 0.05rem;
    }

    &-body {
      max-width: 8rem;
      display: flex;
      justify-content: space-between;
      padding: 0.1rem;
      border-radius: 0.02rem;

      &:hover {
        background: rgba(15, 19, 88, 0.03);
      }
    }

    &-bodyLeft {
      display: flex;
      align-items: center;
      overflow: hidden;
    }

    &-bodyIcon {
      width: 40px;
      height: 40px;
      line-height: 37px;
      border-radius: 50%;
      margin-right: 10px;
      background-color: rgba(77, 144, 254, 0.1);
      text-align: center;
      flex-shrink: 0;

      .icon {
        color: @primary-color;
      }
    }

    &-bodyInfo {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      overflow: hidden;
    }

    &-bodyTitle {
      max-width: 100%;
      cursor: pointer;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;

      &:hover {
        color: @primary-color;
        text-decoration: underline;
      }
    }

    &-bodyRepo {
      margin-top: 8px;
      font-size: 10px;
      color: var(--text-color3);
    }

    &-bodyRight {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      flex-shrink: 0;
    }

    &-bodyUser {
      margin-right: 0.1rem;
      color: var(--text-color3);
    }

    &-bodyDate {
      font-size: 10px;
      color: var(--text-color3);
    }
  }
}