CardList.less 1.62 KB
Newer Older
1 2 3 4
@import "~antd/lib/style/themes/default.less";
@import "../../utils/utils.less";

.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 12 13
        & > a {
          color: @heading-color;
        }
ddcat1115's avatar
ddcat1115 committed
14 15 16 17
      }
      .ant-card-actions {
        background: #f7f9fa;
      }
18 19 20 21 22
      .ant-card-body:hover {
        .ant-card-meta-title > a {
          color: @primary-color;
        }
      }
23 24
    }
  }
25 26 27
  .item {
    height: 64px;
  }
ddcat1115's avatar
ddcat1115 committed
28 29 30 31 32 33

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

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

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

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

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

.pageHeaderContent {
  position: relative;
}

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

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

@media screen and (max-width: @screen-sm) {
  .pageHeaderContent {
    padding-bottom: 30px;
  }
  .contentLink {
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 1000px;
    a {
      margin-right: 16px;
    }
    img {
      margin-right: 4px;
    }
  }
}