style.less 4.1 KB
Newer Older
jim's avatar
jim committed
1
@import '~antd/lib/style/themes/default.less';
陈帅's avatar
陈帅 committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

.textOverflow() {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: break-all;
}

// mixins for clearfix
// ------------------------
.clearfix() {
  zoom: 1;
  &::before,
  &::after {
    display: table;
    content: ' ';
  }
  &::after {
    clear: both;
    height: 0;
    font-size: 0;
    visibility: hidden;
  }
}
26 27

.activitiesList {
afc163's avatar
afc163 committed
28 29 30 31
  padding: 0 24px 8px 24px;
  .username {
    color: @text-color;
  }
afc163's avatar
afc163 committed
32
  .event {
afc163's avatar
afc163 committed
33
    font-weight: normal;
34 35 36
  }
}

37
.pageHeaderContent {
38
  display: flex;
39
  .avatar {
niko's avatar
niko committed
40
    flex: 0 1 72px;
afc163's avatar
afc163 committed
41
    margin-bottom: 8px;
42 43
    & > span {
      display: block;
niko's avatar
niko committed
44 45
      width: 72px;
      height: 72px;
陈帅's avatar
陈帅 committed
46
      border-radius: 72px;
47 48
    }
  }
49
  .content {
50
    position: relative;
afc163's avatar
afc163 committed
51
    top: 4px;
52
    flex: 1 1 auto;
陈帅's avatar
陈帅 committed
53
    margin-left: 24px;
54
    color: @text-color-secondary;
afc163's avatar
afc163 committed
55
    line-height: 22px;
56
    .contentTitle {
陈帅's avatar
陈帅 committed
57 58 59
      margin-bottom: 12px;
      color: @heading-color;
      font-weight: 500;
60
      font-size: 20px;
afc163's avatar
afc163 committed
61
      line-height: 28px;
62 63 64 65
    }
  }
}

afc163's avatar
afc163 committed
66
.extraContent {
67
  .clearfix();
陈帅's avatar
陈帅 committed
68

niko's avatar
niko committed
69
  float: right;
afc163's avatar
afc163 committed
70 71
  white-space: nowrap;
  .statItem {
72
    position: relative;
afc163's avatar
afc163 committed
73
    display: inline-block;
陈帅's avatar
陈帅 committed
74
    padding: 0 32px;
afc163's avatar
afc163 committed
75
    > p:first-child {
陈帅's avatar
陈帅 committed
76
      margin-bottom: 4px;
77 78 79 80
      color: @text-color-secondary;
      font-size: @font-size-base;
      line-height: 22px;
    }
afc163's avatar
afc163 committed
81
    > p {
陈帅's avatar
陈帅 committed
82
      margin: 0;
niko's avatar
niko committed
83
      color: @heading-color;
84 85
      font-size: 30px;
      line-height: 38px;
afc163's avatar
afc163 committed
86
      > span {
87 88 89 90
        color: @text-color-secondary;
        font-size: 20px;
      }
    }
陈帅's avatar
陈帅 committed
91
    &::after {
92 93 94 95 96
      position: absolute;
      top: 8px;
      right: 0;
      width: 1px;
      height: 40px;
陈帅's avatar
陈帅 committed
97
      background-color: @border-color-split;
afc163's avatar
afc163 committed
98
      content: '';
99
    }
afc163's avatar
afc163 committed
100 101
    &:last-child {
      padding-right: 0;
陈帅's avatar
陈帅 committed
102
      &::after {
afc163's avatar
afc163 committed
103 104
        display: none;
      }
afc163's avatar
afc163 committed
105
    }
106 107 108 109 110 111 112
  }
}

.members {
  a {
    display: block;
    height: 24px;
陈帅's avatar
陈帅 committed
113
    margin: 12px 0;
ddcat1115's avatar
ddcat1115 committed
114
    color: @text-color;
jim's avatar
jim committed
115
    transition: all 0.3s;
116
    .textOverflow();
afc163's avatar
afc163 committed
117
    .member {
陈帅's avatar
陈帅 committed
118
      margin-left: 12px;
119 120
      font-size: @font-size-base;
      line-height: 24px;
afc163's avatar
afc163 committed
121
      vertical-align: top;
122 123
    }
    &:hover {
ddcat1115's avatar
ddcat1115 committed
124
      color: @primary-color;
125 126 127 128 129 130 131
    }
  }
}

.projectList {
  :global {
    .ant-card-meta-description {
afc163's avatar
afc163 committed
132 133
      height: 44px;
      overflow: hidden;
陈帅's avatar
陈帅 committed
134 135
      color: @text-color-secondary;
      line-height: 22px;
136 137
    }
  }
niko's avatar
niko committed
138
  .cardTitle {
afc163's avatar
afc163 committed
139
    font-size: 0;
niko's avatar
niko committed
140
    a {
陈帅's avatar
陈帅 committed
141 142
      display: inline-block;
      height: 24px;
niko's avatar
niko committed
143
      margin-left: 12px;
陈帅's avatar
陈帅 committed
144 145
      color: @heading-color;
      font-size: @font-size-base;
afc163's avatar
afc163 committed
146 147
      line-height: 24px;
      vertical-align: top;
niko's avatar
niko committed
148 149 150 151 152
      &:hover {
        color: @primary-color;
      }
    }
  }
153 154 155 156 157
  .projectGrid {
    width: 33.33%;
  }
  .projectItemContent {
    display: flex;
陈帅's avatar
陈帅 committed
158
    height: 20px;
afc163's avatar
afc163 committed
159
    margin-top: 8px;
160 161 162 163 164 165 166
    overflow: hidden;
    font-size: 12px;
    line-height: 20px;
    .textOverflow();
    a {
      display: inline-block;
      flex: 1 1 0;
陈帅's avatar
陈帅 committed
167
      color: @text-color-secondary;
168 169 170 171 172
      .textOverflow();
      &:hover {
        color: @primary-color;
      }
    }
afc163's avatar
afc163 committed
173
    .datetime {
174 175
      flex: 0 0 auto;
      float: right;
陈帅's avatar
陈帅 committed
176
      color: @disabled-color;
177 178 179 180
    }
  }
}

afc163's avatar
afc163 committed
181 182 183 184
.datetime {
  color: @disabled-color;
}

jim's avatar
jim committed
185
@media screen and (max-width: @screen-xl) and (min-width: @screen-lg) {
nikogu's avatar
nikogu committed
186 187 188
  .activeCard {
    margin-bottom: 24px;
  }
189 190 191
  .members {
    margin-bottom: 0;
  }
afc163's avatar
afc163 committed
192
  .extraContent {
193
    margin-left: -44px;
afc163's avatar
afc163 committed
194
    .statItem {
195 196 197 198 199 200
      padding: 0 16px;
    }
  }
}

@media screen and (max-width: @screen-lg) {
nikogu's avatar
nikogu committed
201 202 203
  .activeCard {
    margin-bottom: 24px;
  }
204 205 206
  .members {
    margin-bottom: 0;
  }
afc163's avatar
afc163 committed
207
  .extraContent {
niko's avatar
niko committed
208 209
    float: none;
    margin-right: 0;
afc163's avatar
afc163 committed
210
    .statItem {
211 212
      padding: 0 16px;
      text-align: left;
陈帅's avatar
陈帅 committed
213
      &::after {
214 215 216 217 218 219 220
        display: none;
      }
    }
  }
}

@media screen and (max-width: @screen-md) {
afc163's avatar
afc163 committed
221
  .extraContent {
222 223
    margin-left: -16px;
  }
224 225 226 227 228 229 230
  .projectList {
    .projectGrid {
      width: 50%;
    }
  }
}

231 232 233 234 235 236 237
@media screen and (max-width: @screen-sm) {
  .pageHeaderContent {
    display: block;
    .content {
      margin-left: 0;
    }
  }
afc163's avatar
afc163 committed
238 239
  .extraContent {
    .statItem {
240 241 242 243 244
      float: none;
    }
  }
}

245 246 247 248 249 250 251
@media screen and (max-width: @screen-xs) {
  .projectList {
    .projectGrid {
      width: 100%;
    }
  }
}