$rprogress-color: #173c9c !default;

/* Make clicks pass-through */
#rayprogress {
  pointer-events: none;

  .bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1031;
    width: 100%;
    height: 2px;
    background: $rprogress-color;
  }

  /* Fancy blur effect */
  .peg {
    position: absolute;
    right: 0;
    display: block;
    width: 100px;
    height: 100%;
    opacity: 1;
    transform: rotate(3deg) translate(0, -4px);
    box-shadow: 0 0 10px $rprogress-color, 0 0 5px $rprogress-color;
  }

  /* Remove these to get rid of the spinner */
  .spinner {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1031;
    display: block;
  }

  .spinner-icon {
    width: 18px;
    height: 18px;
    border: solid 2px transparent;
    border-top-color: $rprogress-color;
    border-left-color: $rprogress-color;
    border-radius: 50%;
    box-sizing: border-box;
    animation: rayprogress-spinner 400ms linear infinite;
  }
}

.rayprogress-custom-parent {
  position: relative;
  overflow: hidden;
}

.rayprogress-custom-parent #rayprogress .spinner,
.rayprogress-custom-parent #rayprogress .bar {
  position: absolute;
}

@keyframes rayprogress-spinner {
  0% { transform: rotate(0deg); }

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