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

.standardList {
  :global {
nikogu's avatar
nikogu committed
6 7 8 9
    .ant-card-head {
      border-bottom: none;
    }
    .ant-card-head-title {
niko's avatar
niko committed
10
      padding: 24px 0;
11
      line-height: 32px;
niko's avatar
niko committed
12 13 14
    }
    .ant-card-extra {
      padding: 24px 0;
nikogu's avatar
nikogu committed
15
    }
16
    .ant-list-pagination {
17
      margin-top: 24px;
18
      text-align: right;
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
  }
  .headerInfo {
    position: relative;
    text-align: center;
    & > span {
      display: inline-block;
31 32
      margin-bottom: 4px;
      color: @text-color-secondary;
33 34 35 36
      font-size: @font-size-base;
      line-height: 22px;
    }
    & > p {
37
      margin: 0;
38 39 40 41 42 43 44 45
      color: @heading-color;
      font-size: 24px;
      line-height: 32px;
    }
    & > em {
      position: absolute;
      top: 0;
      right: 0;
46 47 48
      width: 1px;
      height: 56px;
      background-color: @border-color-split;
49 50 51 52
    }
  }
  .listContent {
    font-size: 0;
afc163's avatar
afc163 committed
53
    .listContentItem {
54
      display: inline-block;
niko's avatar
niko committed
55
      margin-left: 40px;
56 57 58
      color: @text-color-secondary;
      font-size: @font-size-base;
      vertical-align: middle;
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
        line-height: 22px;
      }
    }
  }
  .extraContentSearch {
    width: 272px;
71
    margin-left: 16px;
72 73 74
  }
}

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
@media screen and (max-width: @screen-sm) {
  .standardList {
    .extraContentSearch {
      width: 100%;
107
      margin-left: 0;
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
    }
    .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;
      }
    }
  }
}
valleykid's avatar
valleykid committed
177 178 179 180 181 182 183

.standardListForm {
  :global {
    .ant-form-item {
      margin-bottom: 12px;
      &:last-child {
        margin-bottom: 32px;
184
        padding-top: 4px;
valleykid's avatar
valleykid committed
185 186 187 188 189 190 191
      }
    }
  }
}

.formResult {
  width: 100%;
jim's avatar
jim committed
192
  [class^='title'] {
valleykid's avatar
valleykid committed
193 194 195
    margin-bottom: 8px;
  }
}