UserCenter.less 1.42 KB
Newer Older
ddcat1115's avatar
ddcat1115 committed
1
@import '~antd/lib/style/themes/default.less';
ddcat1115's avatar
ddcat1115 committed
2
@import "../utils/utils.less";
ddcat1115's avatar
ddcat1115 committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76

.avatarHolder {
  text-align: center;
  margin-bottom: 24px;

  & > img {
    width: 104px;
    height: 104px;
    margin-bottom: 20px;
  }

  .name {
    font-size: 20px;
    line-height: 28px;
    font-weight: 500;
    color: @heading-color;
    margin-bottom: 4px;
  }
}

.detail {
  p {
    margin-bottom: 8px;
    padding-left: 26px;
    position: relative;

    &:last-child {
      margin-bottom: 0;
    }
  }

  i {
    position: absolute;
    height: 14px;
    width: 14px;
    left: 0;
    top: 4px;
    background: url(https://gw.alipayobjects.com/zos/rmsportal/pBjWzVAHnOOtAUvZmZfy.svg);

    &.title {
      background-position: 0 0;
    }

    &.group {
      background-position: 0 -22px;
    }

    &.address {
      background-position: 0 -44px;
    }
  }
}

.tagsTitle, .teamTitle {
  font-weight: 500;
  color: @heading-color;
  margin-bottom: 12px;
}

.tags {
  :global {
    .ant-tag {
      margin-bottom: 8px;
    }
  }
}

.team {
  :global {
    .ant-avatar {
      margin-right: 12px;
    }
  }

ddcat1115's avatar
ddcat1115 committed
77 78
  a {
    display: block;
ddcat1115's avatar
ddcat1115 committed
79
    margin-bottom: 24px;
ddcat1115's avatar
ddcat1115 committed
80 81 82 83 84 85 86
    color: @text-color;
    transition: color .3s;
    .textOverflow();

    &:hover {
      color: @primary-color;
    }
ddcat1115's avatar
ddcat1115 committed
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
  }
}

.tabsCard {
  :global {
    .ant-card-head {
      padding: 0 16px;
    }
  }
}

.articleList {
  :global {
    .ant-list-item:first-child {
      padding-top: 0;
    }
  }
}