Workplace.less 3.78 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
@import "~antd/lib/style/themes/default.less";
@import "../../utils/utils.less";

.activitiesList {
  padding: 0 24px 24px 24px;
  :global {
    .ant-list-item-meta-title:hover {
      color: @text-color;
    }
  }
}

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

40
.pageHeaderExtra {
41
  .clearfix();
niko's avatar
niko committed
42 43
  float: right;
  margin-right: 8px;
44
  & > div {
niko's avatar
niko committed
45
    padding: 0 32px;
46 47 48 49 50 51
    position: relative;
    float: left;
    & > p:first-child {
      color: @text-color-secondary;
      font-size: @font-size-base;
      line-height: 22px;
niko's avatar
niko committed
52
      margin-bottom: 4px;
53 54
    }
    & > p {
niko's avatar
niko committed
55
      color: @heading-color;
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
      font-size: 30px;
      line-height: 38px;
      & > span {
        color: @text-color-secondary;
        font-size: 20px;
      }
    }
    & > em {
      background-color: @border-color-split;
      position: absolute;
      top: 8px;
      right: 0;
      width: 1px;
      height: 40px;
    }
  }
  & > div:last-child {
    padding-right: 0;
  }
}

.members {
78
  margin-bottom: 35px;
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
  a {
    display: block;
    margin-bottom: 24px;
    line-height: 24px;
    height: 24px;
    .textOverflow();
    img {
      border-radius: 24px;
      display: inline;
      position: relative;
      top: -2px;
      width: 24px;
      height: 24px;
      margin-right: 12px;
      vertical-align: middle;
    }
    span {
      font-size: @font-size-base;
      color: @text-color;
      line-height: 24px;
      max-width: 100px;
      .textOverflow();
    }
    &:hover {
      span {
        color: @primary-color;
      }
    }
  }
}

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

@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;
  }
168
  .pageHeaderExtra {
169 170 171 172 173 174 175 176
    margin-left: -44px;
    & > div {
      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;
  }
183
  .pageHeaderExtra {
niko's avatar
niko committed
184 185
    float: none;
    margin-right: 0;
186 187 188 189 190 191 192 193 194 195 196
    & > div {
      padding: 0 16px;
      text-align: left;
      & > em {
        display: none;
      }
    }
  }
}

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

207 208 209 210 211 212 213 214 215 216 217 218 219 220
@media screen and (max-width: @screen-sm) {
  .pageHeaderContent {
    display: block;
    .content {
      margin-left: 0;
    }
  }
  .pageHeaderExtra {
    & > div {
      float: none;
    }
  }
}

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