platform-iosx.less 743 Bytes
Newer Older
Nature's avatar
Nature committed
1 2 3 4
// iPhoneX适配
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
  .platform-ios{
    .has-header {
Nature's avatar
Nature committed
5
      top: 1.68rem;
Nature's avatar
Nature committed
6 7
    }
    .has-tabs {
Nature's avatar
Nature committed
8
      bottom: 1.68rem;
Nature's avatar
Nature committed
9 10
    }
    .has-footer{
Nature's avatar
Nature committed
11
      margin-bottom: 0.68rem;
Nature's avatar
Nature committed
12 13 14
    }
    .public-style {
      .bottom-tab{
Nature's avatar
Nature committed
15 16
        height: 1.56rem;
        padding-bottom: 0.68rem;
Nature's avatar
Nature committed
17 18 19 20
      }
    }
  }
}
JingChao's avatar
JingChao committed
21 22 23


// iPhoneX适配
Nature's avatar
Nature committed
24
@media (device-width: 414px) and (device-height: 896px){
JingChao's avatar
JingChao committed
25 26
  .platform-ios{
    .has-header {
Nature's avatar
Nature committed
27
      top: 1.68rem;
JingChao's avatar
JingChao committed
28 29
    }
    .has-tabs {
Nature's avatar
Nature committed
30
      bottom: 1.68rem;
JingChao's avatar
JingChao committed
31 32
    }
    .has-footer{
Nature's avatar
Nature committed
33
      margin-bottom: 0.68rem;
JingChao's avatar
JingChao committed
34 35 36
    }
    .public-style {
      .bottom-tab{
Nature's avatar
Nature committed
37 38
        height: 1.56rem;
        padding-bottom: 0.68rem;
JingChao's avatar
JingChao committed
39 40 41
      }
    }
  }
Nature's avatar
Nature committed
42
}