style.less 3.77 KB
Newer Older
jim's avatar
jim committed
1
@import '~antd/lib/style/themes/default.less';
2
@import './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 20
    & > span {
      display: block;
niko's avatar
niko committed
21 22
      width: 72px;
      height: 72px;
陈帅's avatar
陈帅 committed
23
      border-radius: 72px;
24 25
    }
  }
26
  .content {
27
    position: relative;
afc163's avatar
afc163 committed
28
    top: 4px;
29
    flex: 1 1 auto;
陈帅's avatar
陈帅 committed
30
    margin-left: 24px;
31
    color: @text-color-secondary;
afc163's avatar
afc163 committed
32
    line-height: 22px;
33
    .contentTitle {
陈帅's avatar
陈帅 committed
34 35 36
      margin-bottom: 12px;
      color: @heading-color;
      font-weight: 500;
37
      font-size: 20px;
afc163's avatar
afc163 committed
38
      line-height: 28px;
39 40 41 42
    }
  }
}

afc163's avatar
afc163 committed
43
.extraContent {
44
  .clearfix();
陈帅's avatar
陈帅 committed
45

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

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

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

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

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

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

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

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

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