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

.activitiesList {
A
afc163 已提交
5 6 7 8
  padding: 0 24px 8px 24px;
  .username {
    color: @text-color;
  }
A
afc163 已提交
9
  .event {
A
afc163 已提交
10
    font-weight: normal;
11 12 13
  }
}

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

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

.members {
  a {
    display: block;
A
afc163 已提交
88
    margin: 12px 0;
89 90 91
    line-height: 24px;
    height: 24px;
    .textOverflow();
A
afc163 已提交
92
    .member {
93 94 95 96
      font-size: @font-size-base;
      color: @text-color;
      line-height: 24px;
      max-width: 100px;
A
afc163 已提交
97 98 99 100
      vertical-align: top;
      margin-left: 12px;
      transition: all .3s;
      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 {
N
niko 已提交
114
      color: @text-color-secondary;
A
afc163 已提交
115 116 117
      height: 44px;
      line-height: 22px;
      overflow: hidden;
118 119
    }
  }
N
niko 已提交
120
  .cardTitle {
A
afc163 已提交
121
    font-size: 0;
N
niko 已提交
122 123 124
    a {
      color: @heading-color;
      margin-left: 12px;
A
afc163 已提交
125 126 127 128 129
      line-height: 24px;
      height: 24px;
      display: inline-block;
      vertical-align: top;
      font-size: @font-size-base;
N
niko 已提交
130 131 132 133 134
      &:hover {
        color: @primary-color;
      }
    }
  }
135 136 137 138 139
  .projectGrid {
    width: 33.33%;
  }
  .projectItemContent {
    display: flex;
A
afc163 已提交
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;
      }
    }
A
afc163 已提交
155 156
    .datetime {
      color: @disabled-color;
157 158 159 160 161 162
      flex: 0 0 auto;
      float: right;
    }
  }
}

A
afc163 已提交
163 164 165 166
.datetime {
  color: @disabled-color;
}

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

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

@media screen and (max-width: @screen-md) {
A
afc163 已提交
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;
    }
  }
A
afc163 已提交
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%;
    }
  }
}