BasicList.less 3.04 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
    .ant-list-pagination {
      text-align: right;
18
      margin-top: 24px;
19
    }
niko's avatar
niko committed
20 21 22 23 24
    .ant-avatar-lg {
      width: 48px;
      height: 48px;
      line-height: 48px;
    }
25 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
  }
  .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
56
      margin-left: 40px;
57 58 59 60 61
      & > span {
        line-height: 20px;
      }
      & > p {
        margin-top: 4px;
afc163's avatar
afc163 committed
62
        margin-bottom: 0;
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
        line-height: 22px;
      }
    }
    & > div:last-child {
      position: relative;
      top: -16px;
      width: 188px;
    }
  }
  .extraContentSearch {
    margin-left: 16px;
    width: 272px;
  }
}

nikogu's avatar
nikogu committed
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
@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
96 97 98 99 100 101 102
    .listCard {
      :global {
        .ant-card-head-title {
          overflow: visible;
        }
      }
    }
nikogu's avatar
nikogu committed
103 104 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
@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
133 134 135 136 137 138 139 140
  .listCard {
    :global {
      .ant-radio-group {
        display: block;
        margin-bottom: 8px;
      }
    }
  }
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
}

@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
156 157 158 159

@media screen and (max-width: @screen-xl) {
  .standardList {
    .listContent {
niko's avatar
niko committed
160 161 162 163 164 165 166 167 168 169 170 171 172 173
      & > 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
174 175 176 177 178 179
      & > div:last-child {
        top: 0;
      }
    }
  }
}