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

.exception {
  display: flex;
  align-items: center;
afc163's avatar
afc163 committed
6 7
  height: 80%;
  min-height: 500px;
8 9 10 11 12

  .imgBlock {
    flex: 0 0 62.5%;
    width: 62.5%;
    padding-right: 152px;
13
    zoom: 1;
14 15
    &::before,
    &::after {
jim's avatar
jim committed
16
      content: ' ';
17 18
      display: table;
    }
19
    &::after {
20 21
      clear: both;
      height: 0;
22 23
      font-size: 0;
      visibility: hidden;
24
    }
ddcat1115's avatar
ddcat1115 committed
25 26 27
  }

  .imgEle {
28
    float: right;
ddcat1115's avatar
ddcat1115 committed
29 30
    width: 100%;
    max-width: 430px;
31
    height: 360px;
ddcat1115's avatar
ddcat1115 committed
32 33
    background-repeat: no-repeat;
    background-position: 50% 50%;
afc163's avatar
afc163 committed
34
    background-size: contain;
35 36 37 38 39 40
  }

  .content {
    flex: auto;

    h1 {
41
      margin-bottom: 24px;
ddcat1115's avatar
ddcat1115 committed
42 43
      color: #434e59;
      font-weight: 600;
44
      font-size: 72px;
ddcat1115's avatar
ddcat1115 committed
45
      line-height: 72px;
46 47 48
    }

    .desc {
49
      margin-bottom: 16px;
50 51
      color: @text-color-secondary;
      font-size: 20px;
ddcat1115's avatar
ddcat1115 committed
52
      line-height: 28px;
53 54 55 56 57 58 59 60 61
    }

    .actions {
      button:not(:last-child) {
        margin-right: 8px;
      }
    }
  }
}
ddcat1115's avatar
ddcat1115 committed
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76

@media screen and (max-width: @screen-xl) {
  .exception {
    .imgBlock {
      padding-right: 88px;
    }
  }
}

@media screen and (max-width: @screen-sm) {
  .exception {
    display: block;
    text-align: center;
    .imgBlock {
      margin: 0 auto 24px;
77
      padding-right: 0;
ddcat1115's avatar
ddcat1115 committed
78 79 80 81 82 83 84 85 86 87 88 89
    }
  }
}

@media screen and (max-width: @screen-xs) {
  .exception {
    .imgBlock {
      margin-bottom: -24px;
      overflow: hidden;
    }
  }
}