Workplace.less 3.25 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
@import "~antd/lib/style/themes/default.less";
@import "../../utils/utils.less";

.activitiesList {
  padding: 0 24px 24px 24px;
  :global {
    .ant-list-item-meta-title:hover {
      color: @text-color;
    }
  }
}

13
.pageHeaderContent {
14
  display: flex;
15
  .avatar {
16 17 18 19 20 21 22 23
    flex: 0 1 80px;
    & > span {
      border-radius: 80px;
      display: block;
      width: 80px;
      height: 80px;
    }
  }
24
  .content {
25 26 27 28
    position: relative;
    top: 8px;
    margin-left: 32px;
    flex: 1 1 auto;
29 30 31 32 33 34
    color: @text-color-secondary;
    .contentTitle {
      font-size: 20px;
      font-weight: 500;
      color: @heading-color;
      margin-bottom: 12px;
35 36 37 38
    }
  }
}

39
.pageHeaderExtra {
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 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
  .clearfix();
  & > div {
    padding: 0 24px;
    position: relative;
    float: left;
    & > p:first-child {
      color: @text-color-secondary;
      font-size: @font-size-base;
      line-height: 22px;
      margin-bottom: 2px;
    }
    & > p {
      color: @text-color;
      font-size: 30px;
      line-height: 38px;
      & > span {
        color: @text-color-secondary;
        font-size: 20px;
      }
    }
    & > em {
      background-color: @border-color-split;
      position: absolute;
      top: 8px;
      right: 0;
      width: 1px;
      height: 40px;
    }
  }
  & > div:last-child {
    padding-right: 0;
  }
}

.members {
  a {
    display: block;
    margin-bottom: 24px;
    line-height: 24px;
    height: 24px;
    .textOverflow();
    img {
      border-radius: 24px;
      display: inline;
      position: relative;
      top: -2px;
      width: 24px;
      height: 24px;
      margin-right: 12px;
      vertical-align: middle;
    }
    span {
      font-size: @font-size-base;
      color: @text-color;
      line-height: 24px;
      max-width: 100px;
      .textOverflow();
    }
    &:hover {
      span {
        color: @primary-color;
      }
    }
  }
}

.projectList {
  :global {
    .ant-card-meta-description {
      font-size: 12px;
      min-height: 36px;
    }
  }
  .projectGrid {
    width: 33.33%;
  }
  .projectItemContent {
    display: flex;
    padding-left: 48px;
    margin-top: 12px;
    overflow: hidden;
    font-size: 12px;
    height: 20px;
    line-height: 20px;
    .textOverflow();
    a {
      color: @text-color-secondary;
      display: inline-block;
      flex: 1 1 0;
      .textOverflow();
      &:hover {
        color: @primary-color;
      }
    }
    span {
      color: @text-color-secondary;
      flex: 0 0 auto;
      float: right;
    }
  }
}

@media screen and (max-width: @screen-xl)  and (min-width: @screen-lg) {
143
  .pageHeaderExtra {
144 145 146 147 148 149 150 151
    margin-left: -44px;
    & > div {
      padding: 0 16px;
    }
  }
}

@media screen and (max-width: @screen-lg) {
152
  .pageHeaderExtra {
153 154 155 156 157 158 159 160 161 162 163
    & > div {
      padding: 0 16px;
      text-align: left;
      & > em {
        display: none;
      }
    }
  }
}

@media screen and (max-width: @screen-md) {
164 165 166
  .pageHeaderExtra {
    margin-left: -16px;
  }
167 168 169 170 171 172 173
  .projectList {
    .projectGrid {
      width: 50%;
    }
  }
}

174 175 176 177 178 179 180 181 182 183 184 185 186 187
@media screen and (max-width: @screen-sm) {
  .pageHeaderContent {
    display: block;
    .content {
      margin-left: 0;
    }
  }
  .pageHeaderExtra {
    & > div {
      float: none;
    }
  }
}

188 189 190 191 192 193 194
@media screen and (max-width: @screen-xs) {
  .projectList {
    .projectGrid {
      width: 100%;
    }
  }
}