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

.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
  }
  .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;
afc163's avatar
afc163 committed
40
      margin: 0;
41 42 43 44 45 46 47 48 49 50 51 52
    }
    & > em {
      background-color: @border-color-split;
      position: absolute;
      height: 56px;
      width: 1px;
      top: 0;
      right: 0;
    }
  }
  .listContent {
    font-size: 0;
afc163's avatar
afc163 committed
53
    .listContentItem {
54 55
      color: @text-color-secondary;
      display: inline-block;
afc163's avatar
afc163 committed
56
      vertical-align: middle;
57
      font-size: @font-size-base;
niko's avatar
niko committed
58
      margin-left: 40px;
afc163's avatar
afc163 committed
59
      > span {
60 61
        line-height: 20px;
      }
afc163's avatar
afc163 committed
62
      > p {
63
        margin-top: 4px;
afc163's avatar
afc163 committed
64
        margin-bottom: 0;
65 66 67 68 69 70 71 72 73 74
        line-height: 22px;
      }
    }
  }
  .extraContentSearch {
    margin-left: 16px;
    width: 272px;
  }
}

nikogu's avatar
nikogu committed
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
@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
93 94 95 96 97 98 99
    .listCard {
      :global {
        .ant-card-head-title {
          overflow: visible;
        }
      }
    }
nikogu's avatar
nikogu committed
100 101 102
  }
}

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
@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
130 131 132 133 134 135 136 137
  .listCard {
    :global {
      .ant-radio-group {
        display: block;
        margin-bottom: 8px;
      }
    }
  }
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
}

@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
153 154 155 156

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