@import "common/var.scss";
.loading {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  .loading-mask {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(22, 27, 35, 0.8);
    &.transparent {
      background: none;
    }
  }
  .loading-content {
    position: absolute;
    background: transparent;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: flex;
    flex-flow: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    .loading-icon {
      width: 64px;
      height: 64px;
      display: inline-block;
      vertical-align: middle;
      background: transparent url('./images/ic_loading.svg') no-repeat;
      background-size: 100%;
    }
    @-webkit-keyframes loading-icon {
      0% {
        transform: rotate3d(0, 0, 1, 0deg);
      }
      100% {
        transform: rotate3d(0, 0, 1, 360deg);
      }
    }
    @keyframes loading-icon {
      0% {
        transform: rotate3d(0, 0, 1, 0deg);
      }
      100% {
        transform: rotate3d(0, 0, 1, 360deg);
      }
    }
  }
}
