@charset "utf-8";
@import "../../base/fn";
.ysui-load {
  margin: 0 auto;
  text-align: center;
  &.ysui-load_whole{
    position: absolute;
    transform: translate(-50%,0%);
    top: 30%;
    left: 50%;
    width: 100%;
    .ysui-load__text{
      &.ysui-load_icon-loading:before{
        width: 66*$px;
        height: 66*$px;
      }
      &.ysui-load_icon-failed:before{
        width: 100*$px;
        height: 100*$px;
      }
    }
  }
  &.ysui-load_dialog{
    position: absolute;
    transform: translate(-50%,-50%);
    top: 50%;
    left: 50%;
    width: 100%;
    .ysui-load__text{
      &.ysui-load_icon-loading:before{
        width: 66*$px;
        height: 66*$px;
      }
      &.ysui-load_icon-failed:before{
        width: 100*$px;
        height: 100*$px;
      }
    }
  }
  &.ysui-load_partial{
    height: 120*$px;
    position: relative;
    .ysui-load__text{
      position: absolute;
      transform: translate(-50%,-50%);
      top: 50%;
      left: 50%;
      width: 100%;
      &.ysui-load_icon-loading:before{
        width: 48*$px;
        height: 48*$px;
        margin-bottom: 0;
      }
    }
    .ysui-load_icon-failed:before{
      display: none;
    }
  }
  &.ysui-load_footer{
    height: 146*$px;
    position: relative;
    .ysui-load__text{
      display: inline-flex;
      margin-top: 30*$px;
      &.ysui-load_icon-loading:before{
        width: 44*$px;
        height: 44*$px;
        margin:0 20*$px 0 0;
      }
    }
  }
  .ysui-load__icon {
    display: inline-block;
  }
  .ysui-load__text{
    font-size: $ysui-f28;
    color: $ysui-c4;
  }
}
