Workplace.less 3.9 KB
Newer Older
jim's avatar
jim committed
1 2
@import '~antd/lib/style/themes/default.less';
@import '../../utils/utils.less';
3 4

.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
    }
  }
}

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

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

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

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

jim's avatar
jim committed
167
@media screen and (max-width: @screen-xl) and (min-width: @screen-lg) {
nikogu's avatar
nikogu committed
168 169 170
  .activeCard {
    margin-bottom: 24px;
  }
171 172 173
  .members {
    margin-bottom: 0;
  }
afc163's avatar
afc163 committed
174
  .extraContent {
175
    margin-left: -44px;
afc163's avatar
afc163 committed
176
    .statItem {
177 178 179 180 181 182
      padding: 0 16px;
    }
  }
}

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

@media screen and (max-width: @screen-md) {
afc163's avatar
afc163 committed
203
  .extraContent {
204 205
    margin-left: -16px;
  }
206 207 208 209 210 211 212
  .projectList {
    .projectGrid {
      width: 50%;
    }
  }
}

213 214 215 216 217 218 219
@media screen and (max-width: @screen-sm) {
  .pageHeaderContent {
    display: block;
    .content {
      margin-left: 0;
    }
  }
afc163's avatar
afc163 committed
220 221
  .extraContent {
    .statItem {
222 223 224 225 226
      float: none;
    }
  }
}

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