Workplace.less 3.97 KB
Newer Older
1 2 3 4
@import "~antd/lib/style/themes/default.less";
@import "../../utils/utils.less";

.activitiesList {
afc163's avatar
afc163 committed
5 6 7 8
  padding: 0 24px 8px 24px;
  .username {
    color: @text-color;
  }
afc163's avatar
afc163 committed
9
  .event {
afc163's avatar
afc163 committed
10
    font-weight: normal;
11 12 13
  }
}

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

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

.members {
  a {
    display: block;
afc163's avatar
afc163 committed
87
    margin: 12px 0;
88 89 90
    line-height: 24px;
    height: 24px;
    .textOverflow();
afc163's avatar
afc163 committed
91
    .member {
92 93 94 95
      font-size: @font-size-base;
      color: @text-color;
      line-height: 24px;
      max-width: 100px;
afc163's avatar
afc163 committed
96 97 98 99
      vertical-align: top;
      margin-left: 12px;
      transition: all .3s;
      display: inline-block;
100 101 102 103 104 105 106 107 108 109 110 111 112
      .textOverflow();
    }
    &:hover {
      span {
        color: @primary-color;
      }
    }
  }
}

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

afc163's avatar
afc163 committed
162 163 164 165
.datetime {
  color: @disabled-color;
}

ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
166 167 168 169 170 171
@media screen and (min-width: @screen-xl) {
  .pageHeaderExtra {
    min-width: 345px;
  }
}

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

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

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

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

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