
.el-loading-mask{
  position: absolute;
  z-index:10000;
  background-color: rgba(255,255,255,.5);
  margin: 0;
  top:0;
  right:0;
  bottom: 0;
  left: 0;

  &.is-fullscreen{
    position: fixed;
  }
}

.el-loading-spinner{
  top:50%;
  margin-top: -21px;
  width: 100%;
  text-align: center;
  position: absolute;

  &.is-fullscreen{
    position: fixed;
  }

  .el-loading-text{
    color: $color-primary;
    margin: 3px 0;
    font-size: 14px;
  }

  .circular{
    width: $loading-spinner-size;
    -webkit-animation:rotate 2s linear infinite;    
    animation:rotate 2s linear infinite;
  }

  .path{
    -webkit-animation:dash 1.5s ease-in-out infinite;    
    animation:dash 1.5s ease-in-out infinite;
    stroke-dasharray: 1,200;
    stroke-dashoffset:0;
    stroke-width: 2;
    stroke:$color-primary;
    stroke-linecap: round;
  }

  &.is-full-screen{
    margin-top: -25px;

    .circular{
      width: $loading-fullscreen-spinner-size;
    }
  }
}

@keyframes rotate {

  100% {
    -webkit-transform: rotate(360deg);    
    transform: rotate(360deg);
  }
}

@-webkit-keyframes rotate {

  100% {
    -webkit-transform: rotate(360deg);    
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35;
  }
  to {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -124;
  }
}


@-webkit-keyframes dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35;
  }
  to {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -124;
  }
}
