Workplace.less 3.78 KB
Newer Older
jim's avatar
jim committed
1
@import '~antd/lib/style/themes/default.less';
2
@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
    height: 24px;
ddcat1115's avatar
ddcat1115 committed
90
    color: @text-color;
jim's avatar
jim committed
91
    transition: all 0.3s;
92
    .textOverflow();
afc163's avatar
afc163 committed
93
    .member {
94 95
      font-size: @font-size-base;
      line-height: 24px;
afc163's avatar
afc163 committed
96 97
      vertical-align: top;
      margin-left: 12px;
98 99
    }
    &:hover {
ddcat1115's avatar
ddcat1115 committed
100
      color: @primary-color;
101 102 103 104 105 106 107
    }
  }
}

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

afc163's avatar
afc163 committed
157 158 159 160
.datetime {
  color: @disabled-color;
}

jim's avatar
jim committed
161
@media screen and (max-width: @screen-xl) and (min-width: @screen-lg) {
nikogu's avatar
nikogu committed
162 163 164
  .activeCard {
    margin-bottom: 24px;
  }
165 166 167
  .members {
    margin-bottom: 0;
  }
afc163's avatar
afc163 committed
168
  .extraContent {
169
    margin-left: -44px;
afc163's avatar
afc163 committed
170
    .statItem {
171 172 173 174 175 176
      padding: 0 16px;
    }
  }
}

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

@media screen and (max-width: @screen-md) {
afc163's avatar
afc163 committed
197
  .extraContent {
198 199
    margin-left: -16px;
  }
200 201 202 203 204 205 206
  .projectList {
    .projectGrid {
      width: 50%;
    }
  }
}

207 208 209 210 211 212 213
@media screen and (max-width: @screen-sm) {
  .pageHeaderContent {
    display: block;
    .content {
      margin-left: 0;
    }
  }
afc163's avatar
afc163 committed
214 215
  .extraContent {
    .statItem {
216 217 218 219 220
      float: none;
    }
  }
}

221 222 223 224 225 226 227
@media screen and (max-width: @screen-xs) {
  .projectList {
    .projectGrid {
      width: 100%;
    }
  }
}