Workplace.less 3.86 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 60 61 62 63 64
      font-size: 30px;
      line-height: 38px;
      & > span {
        color: @text-color-secondary;
        font-size: 20px;
      }
    }
afc163's avatar
afc163 committed
65
    &:after {
66 67 68 69 70 71
      background-color: @border-color-split;
      position: absolute;
      top: 8px;
      right: 0;
      width: 1px;
      height: 40px;
afc163's avatar
afc163 committed
72
      content: '';
73 74 75 76
    }
  }
  & > div:last-child {
    padding-right: 0;
afc163's avatar
afc163 committed
77 78 79
    &:after {
      display: none;
    }
80 81 82 83 84 85
  }
}

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

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

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

165
@media screen and (max-width: @screen-xl)  and (min-width: @screen-lg) {
nikogu's avatar
nikogu committed
166 167 168
  .activeCard {
    margin-bottom: 24px;
  }
169 170 171
  .members {
    margin-bottom: 0;
  }
172
  .pageHeaderExtra {
173 174 175 176 177 178 179 180
    margin-left: -44px;
    & > div {
      padding: 0 16px;
    }
  }
}

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

@media screen and (max-width: @screen-md) {
201 202 203
  .pageHeaderExtra {
    margin-left: -16px;
  }
204 205 206 207 208 209 210
  .projectList {
    .projectGrid {
      width: 50%;
    }
  }
}

211 212 213 214 215 216 217 218 219 220 221 222 223 224
@media screen and (max-width: @screen-sm) {
  .pageHeaderContent {
    display: block;
    .content {
      margin-left: 0;
    }
  }
  .pageHeaderExtra {
    & > div {
      float: none;
    }
  }
}

225 226 227 228 229 230 231
@media screen and (max-width: @screen-xs) {
  .projectList {
    .projectGrid {
      width: 100%;
    }
  }
}