Workplace.less 3.98 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 {
niko's avatar
niko committed
16
    flex: 0 1 72px;
afc163's avatar
afc163 committed
17
    margin-bottom: 8px;
18
    & > span {
niko's avatar
niko committed
19
      border-radius: 72px;
20
      display: block;
niko's avatar
niko committed
21 22
      width: 72px;
      height: 72px;
23 24
    }
  }
25
  .content {
26
    position: relative;
afc163's avatar
afc163 committed
27
    top: 4px;
niko's avatar
niko committed
28
    margin-left: 24px;
29
    flex: 1 1 auto;
30
    color: @text-color-secondary;
afc163's avatar
afc163 committed
31
    line-height: 22px;
32 33
    .contentTitle {
      font-size: 20px;
afc163's avatar
afc163 committed
34
      line-height: 28px;
35 36 37
      font-weight: 500;
      color: @heading-color;
      margin-bottom: 12px;
38 39 40 41
    }
  }
}

42
.pageHeaderExtra {
43
  .clearfix();
niko's avatar
niko committed
44
  float: right;
45
  & > div {
niko's avatar
niko committed
46
    padding: 0 32px;
47 48 49 50 51 52
    position: relative;
    float: left;
    & > p:first-child {
      color: @text-color-secondary;
      font-size: @font-size-base;
      line-height: 22px;
niko's avatar
niko committed
53
      margin-bottom: 4px;
54 55
    }
    & > p {
niko's avatar
niko committed
56
      color: @heading-color;
57 58 59 60 61 62 63
      font-size: 30px;
      line-height: 38px;
      & > span {
        color: @text-color-secondary;
        font-size: 20px;
      }
    }
afc163's avatar
afc163 committed
64
    &:after {
65 66 67 68 69 70
      background-color: @border-color-split;
      position: absolute;
      top: 8px;
      right: 0;
      width: 1px;
      height: 40px;
afc163's avatar
afc163 committed
71
      content: '';
72 73 74 75
    }
  }
  & > div:last-child {
    padding-right: 0;
afc163's avatar
afc163 committed
76 77 78
    &:after {
      display: none;
    }
79 80 81 82
  }
}

.members {
83
  margin-bottom: 35px;
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
  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
118
      color: @text-color-secondary;
afc163's avatar
afc163 committed
119 120 121
      height: 44px;
      line-height: 22px;
      overflow: hidden;
122 123
    }
  }
niko's avatar
niko committed
124
  .cardTitle {
afc163's avatar
afc163 committed
125
    font-size: 0;
niko's avatar
niko committed
126 127 128
    a {
      color: @heading-color;
      margin-left: 12px;
afc163's avatar
afc163 committed
129 130 131 132 133
      line-height: 24px;
      height: 24px;
      display: inline-block;
      vertical-align: top;
      font-size: @font-size-base;
niko's avatar
niko committed
134 135 136 137 138
      &:hover {
        color: @primary-color;
      }
    }
  }
139 140 141 142 143
  .projectGrid {
    width: 33.33%;
  }
  .projectItemContent {
    display: flex;
afc163's avatar
afc163 committed
144
    margin-top: 8px;
145 146 147 148 149 150 151 152 153 154 155 156 157 158
    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;
      }
    }
afc163's avatar
afc163 committed
159 160
    .datetime {
      color: @disabled-color;
161 162 163 164 165 166
      flex: 0 0 auto;
      float: right;
    }
  }
}

afc163's avatar
afc163 committed
167 168 169 170
.datetime {
  color: @disabled-color;
}

171
@media screen and (max-width: @screen-xl)  and (min-width: @screen-lg) {
nikogu's avatar
nikogu committed
172 173 174
  .activeCard {
    margin-bottom: 24px;
  }
175 176 177
  .members {
    margin-bottom: 0;
  }
178
  .pageHeaderExtra {
179 180 181 182 183 184 185 186
    margin-left: -44px;
    & > div {
      padding: 0 16px;
    }
  }
}

@media screen and (max-width: @screen-lg) {
nikogu's avatar
nikogu committed
187 188 189
  .activeCard {
    margin-bottom: 24px;
  }
190 191 192
  .members {
    margin-bottom: 0;
  }
193
  .pageHeaderExtra {
niko's avatar
niko committed
194 195
    float: none;
    margin-right: 0;
196 197 198
    & > div {
      padding: 0 16px;
      text-align: left;
afc163's avatar
afc163 committed
199
      &:after {
200 201 202 203 204 205 206
        display: none;
      }
    }
  }
}

@media screen and (max-width: @screen-md) {
207 208 209
  .pageHeaderExtra {
    margin-left: -16px;
  }
210 211 212 213 214 215 216
  .projectList {
    .projectGrid {
      width: 50%;
    }
  }
}

217 218 219 220 221 222 223 224 225 226 227 228 229 230
@media screen and (max-width: @screen-sm) {
  .pageHeaderContent {
    display: block;
    .content {
      margin-left: 0;
    }
  }
  .pageHeaderExtra {
    & > div {
      float: none;
    }
  }
}

231 232 233 234 235 236 237
@media screen and (max-width: @screen-xs) {
  .projectList {
    .projectGrid {
      width: 100%;
    }
  }
}