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

.standardList {
  :global {
nikogu's avatar
nikogu committed
6 7 8 9 10
    .ant-card-head {
      border-bottom: none;
    }
    .ant-card-head-title {
      line-height: 32px;
niko's avatar
niko committed
11 12 13 14
      padding: 24px 0;
    }
    .ant-card-extra {
      padding: 24px 0;
nikogu's avatar
nikogu committed
15
    }
16 17 18
    .ant-list-pagination {
      text-align: right;
    }
niko's avatar
niko committed
19 20 21 22 23 24
    .ant-avatar-lg {
      width: 48px;
      height: 48px;
      line-height: 48px;
    }
    .ant-list-pagination {
ddcat1115's avatar
ddcat1115 committed
25
      margin-top: 24px;
niko's avatar
niko committed
26
    }
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
  }
  .headerInfo {
    position: relative;
    text-align: center;
    & > span {
      color: @text-color-secondary;
      display: inline-block;
      font-size: @font-size-base;
      line-height: 22px;
      margin-bottom: 4px;
    }
    & > p {
      color: @heading-color;
      font-size: 24px;
      line-height: 32px;
    }
    & > em {
      background-color: @border-color-split;
      position: absolute;
      height: 56px;
      width: 1px;
      top: 0;
      right: 0;
    }
  }
  .listContent {
    font-size: 0;
    & > div {
      color: @text-color-secondary;
      display: inline-block;
      font-size: @font-size-base;
niko's avatar
niko committed
58
      margin-left: 40px;
59 60 61 62 63
      & > span {
        line-height: 20px;
      }
      & > p {
        margin-top: 4px;
afc163's avatar
afc163 committed
64
        margin-bottom: 0;
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
        line-height: 22px;
      }
    }
    & > div:last-child {
      position: relative;
      top: -16px;
      width: 188px;
    }
  }
  .extraContentSearch {
    margin-left: 16px;
    width: 272px;
  }
}

nikogu's avatar
nikogu committed
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
@media screen and (max-width: @screen-xs) {
  .standardList {
    :global {
      .ant-list-item-content {
        display: block;
        flex: none;
        width: 100%;
      }
      .ant-list-item-action {
        margin-left: 0;
      }
    }
    .listContent {
      margin-left: 0;
      & > div {
        margin-left: 0;
      }
    }
niko's avatar
niko committed
98 99 100 101 102 103 104
    .listCard {
      :global {
        .ant-card-head-title {
          overflow: visible;
        }
      }
    }
nikogu's avatar
nikogu committed
105 106 107
  }
}

108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
@media screen and (max-width: @screen-sm) {
  .standardList {
    .extraContentSearch {
      margin-left: 0;
      width: 100%;
    }
    .headerInfo {
      margin-bottom: 16px;
      & > em {
        display: none;
      }
    }
  }
}

@media screen and (max-width: @screen-md) {
  .standardList {
    .listContent {
      & > div {
        display: block;
      }
      & > div:last-child {
        top: 0;
        width: 100%;
      }
    }
  }
niko's avatar
niko committed
135 136 137 138 139 140 141 142
  .listCard {
    :global {
      .ant-radio-group {
        display: block;
        margin-bottom: 8px;
      }
    }
  }
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
}

@media screen and (max-width: @screen-lg) and (min-width: @screen-md) {
  .standardList {
    .listContent {
      & > div {
        display: block;
      }
      & > div:last-child {
        top: 0;
        width: 100%;
      }
    }
  }
}
niko's avatar
niko committed
158 159 160 161

@media screen and (max-width: @screen-xl) {
  .standardList {
    .listContent {
niko's avatar
niko committed
162 163 164 165 166 167 168 169 170 171 172 173 174 175
      & > div {
        margin-left: 24px;
      }
      & > div:last-child {
        top: 0;
      }
    }
  }
}

@media screen and (max-width: 1400px) {
  .standardList {
    .listContent {
      text-align: right;
niko's avatar
niko committed
176 177 178 179 180 181
      & > div:last-child {
        top: 0;
      }
    }
  }
}