CardList.less 1.68 KB
Newer Older
jim's avatar
jim committed
1
@import '~antd/lib/style/themes/default.less';
2
@import '~@/utils/utils.less';
3 4

.cardList {
nikogu's avatar
nikogu committed
5
  margin-bottom: -24px;
ddcat1115's avatar
ddcat1115 committed
6 7 8 9 10

  .card {
    :global {
      .ant-card-meta-title {
        margin-bottom: 12px;
11
        & > a {
ddcat1115's avatar
ddcat1115 committed
12 13
          display: inline-block;
          max-width: 100%;
14
          color: @heading-color;
15
        }
ddcat1115's avatar
ddcat1115 committed
16 17 18 19
      }
      .ant-card-actions {
        background: #f7f9fa;
      }
20 21 22 23 24
      .ant-card-body:hover {
        .ant-card-meta-title > a {
          color: @primary-color;
        }
      }
25 26
    }
  }
27 28 29
  .item {
    height: 64px;
  }
ddcat1115's avatar
ddcat1115 committed
30 31 32 33 34 35

  :global {
    .ant-list .ant-list-item-content-single {
      max-width: 100%;
    }
  }
36 37 38
}

.extraImg {
39
  width: 195px;
40 41
  margin-top: -60px;
  text-align: center;
42 43 44
  img {
    width: 100%;
  }
45 46 47
}

.newButton {
48 49 50
  width: 100%;
  height: 188px;
  color: @text-color-secondary;
nikogu's avatar
nikogu committed
51
  background-color: #fff;
52
  border-color: @border-color-base;
53
  border-radius: @border-radius-sm;
54 55
}

ddcat1115's avatar
ddcat1115 committed
56 57 58
.cardAvatar {
  width: 48px;
  height: 48px;
afc163's avatar
afc163 committed
59
  border-radius: 48px;
ddcat1115's avatar
ddcat1115 committed
60 61
}

62 63 64 65 66 67 68 69 70 71 72 73
.cardDescription {
  .textOverflowMulti();
}

.pageHeaderContent {
  position: relative;
}

.contentLink {
  margin-top: 16px;
  a {
    margin-right: 32px;
niko's avatar
niko committed
74 75 76
    img {
      width: 24px;
    }
77 78 79
  }
  img {
    margin-right: 8px;
80
    vertical-align: middle;
81 82 83 84 85 86 87 88 89 90
  }
}

@media screen and (max-width: @screen-lg) {
  .contentLink {
    a {
      margin-right: 16px;
    }
  }
}
niko's avatar
niko committed
91 92 93 94 95
@media screen and (max-width: @screen-md) {
  .extraImg {
    display: none;
  }
}
96 97 98 99 100 101 102 103

@media screen and (max-width: @screen-sm) {
  .pageHeaderContent {
    padding-bottom: 30px;
  }
  .contentLink {
    position: absolute;
    bottom: -4px;
104
    left: 0;
105 106 107 108 109 110 111 112 113
    width: 1000px;
    a {
      margin-right: 16px;
    }
    img {
      margin-right: 4px;
    }
  }
}