@import '../common/index.less';

.ph-page-loading {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background-color: #fff;
  text-align: center;

  &.is-pad {
    .loading-image {
      width: @r * 94px;
      margin: @r * 245px auto 0;
    }
  
    .loading-text {
      margin-top: @r * 24px;
      font-size: @r * 24px;
      line-height: @r * 30px;
    }
  }

  .loading-image {
    width: 86px;
    margin: 187px auto 0;
    animation: 1.5s loading-plane infinite;
  }

  .loading-text {
    margin-top: 17px;
    font-size: 16px;
    line-height: 30px;
    color: #b5b7bd;
    position: relative;
    display: inline-block;

    &::after {
      content: '·';
      position: absolute;
      left: 100%;
      text-align: left;
      animation: 2s loading-text infinite;
    }
  }
}

@keyframes loading-plane {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes loading-text {
  0% { content: '' }
  30% { content: '·' }
  60% { content: '··' }
  100% { content: '···' }
}