Workplace.less 3.68 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
  .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 {
75
  margin-bottom: 35px;
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
  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 {
niko's avatar
niko committed
110
      color: @text-color-secondary;
111 112 113 114
      font-size: 12px;
      min-height: 36px;
    }
  }
niko's avatar
niko committed
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
  .cardTitle {
    :global {
      .ant-avatar {
        position: relative;
        top: 5px;
      }
    }
    a {
      color: @heading-color;
      margin-left: 12px;
      &:hover {
        color: @primary-color;
      }
    }
  }
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
  .projectGrid {
    width: 33.33%;
  }
  .projectItemContent {
    display: flex;
    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) {
nikogu's avatar
nikogu committed
159 160 161
  .activeCard {
    margin-bottom: 24px;
  }
162 163 164
  .members {
    margin-bottom: 0;
  }
165
  .pageHeaderExtra {
166 167 168 169 170 171 172 173
    margin-left: -44px;
    & > div {
      padding: 0 16px;
    }
  }
}

@media screen and (max-width: @screen-lg) {
nikogu's avatar
nikogu committed
174 175 176
  .activeCard {
    margin-bottom: 24px;
  }
177 178 179
  .members {
    margin-bottom: 0;
  }
180
  .pageHeaderExtra {
181 182 183 184 185 186 187 188 189 190 191
    & > div {
      padding: 0 16px;
      text-align: left;
      & > em {
        display: none;
      }
    }
  }
}

@media screen and (max-width: @screen-md) {
192 193 194
  .pageHeaderExtra {
    margin-left: -16px;
  }
195 196 197 198 199 200 201
  .projectList {
    .projectGrid {
      width: 50%;
    }
  }
}

202 203 204 205 206 207 208 209 210 211 212 213 214 215
@media screen and (max-width: @screen-sm) {
  .pageHeaderContent {
    display: block;
    .content {
      margin-left: 0;
    }
  }
  .pageHeaderExtra {
    & > div {
      float: none;
    }
  }
}

216 217 218 219 220 221 222
@media screen and (max-width: @screen-xs) {
  .projectList {
    .projectGrid {
      width: 100%;
    }
  }
}