@import "../import.less";
.mu-linear-progress{
  position: relative;
  height: 4px;
  display: block;
  width: 100%;
  margin: 0px;
  overflow: hidden;
  &.mu-secondary-color {
    background-color: transparent;
    .mu-linear-progress-background,
    .mu-linear-progress-indeterminate,
    .mu-linear-progress-determinate {
      background-color: @secondaryColor;
    }
  }
  &.mu-success-color {
    background-color: transparent;
    .mu-linear-progress-background,
    .mu-linear-progress-indeterminate,
    .mu-linear-progress-determinate {
      background-color: @successColor;
    }
  }
  &.mu-warning-color {
    background-color: transparent;
    .mu-linear-progress-background,
    .mu-linear-progress-indeterminate,
    .mu-linear-progress-determinate {
      background-color: @warningColor;
    }
  }
  &.mu-info-color {
    background-color: transparent;
    .mu-linear-progress-background,
    .mu-linear-progress-indeterminate,
    .mu-linear-progress-determinate {
      background-color: @infoColor;
    }
  }
  &.mu-error-color {
    background-color: transparent;
    .mu-linear-progress-background,
    .mu-linear-progress-indeterminate,
    .mu-linear-progress-determinate {
      background-color: @errorColor;
    }
  }
  &.mu-primary-color {
    background-color: transparent;
  }
}
.mu-linear-progress-background {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: @primaryColor;
  opacity: 0.3;
}

.mu-linear-progress-indeterminate{
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  background-color: @primaryColor;
  animation: mu-linear-progress-animate 840ms @easeInOutFunction;
  animation-iteration-count: infinite;
}

.mu-linear-progress-determinate{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background-color: @primaryColor;
  transition: width .3s linear;
}

@keyframes mu-linear-progress-animate {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}


.mu-focus-ripple{
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  opacity: 0.16;
  background-color: currentColor;
  animation: mu-pulsate 750ms @easeInOutFunction;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

@keyframes mu-pulsate {
  0% {
    transform: scale(0.72);
  }
  100% {
    transform: scale(0.85);
  }
}


.mu-circle-wrapper {
  display: inline-block;
  position: relative;
  width: 48px;
  height: 48px;

  &.active{
    -webkit-animation: container-rotate 1568ms linear infinite;
    animation: container-rotate 1568ms linear infinite;
  }
  .mu-circle {
    border-radius: 50%;
  }

  .left {
    float: left !important;
  }

  .right {
    float: right !important;
  }

}

.mu-circle-spinner {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  border-color: @primaryColor;
  opacity: 1;
  -webkit-animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
  animation: fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
  &.mu-secondary-color {
    border-color: @secondaryColor;
    background-color: transparent;
  }
  &.mu-success-color {
    border-color: @successColor;
    background-color: transparent;
  }
  &.mu-warning-color {
    border-color: @warningColor;
    background-color: transparent;
  }
  &.mu-info-color {
    border-color: @infoColor;
    background-color: transparent;
  }
  &.mu-error-color {
    border-color: @errorColor;
    background-color: transparent;
  }
  &.mu-primary-color {
    background-color: transparent;
  }
  &.mu-inverse {
    color: inherit;
  }
}

.mu-circle-clipper {
  display: inline-block;
  position: relative;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-color: inherit;
}

.mu-circle-gap-patch {
  position: absolute;
  top: 0;
  left: 45%;
  width: 10%;
  height: 100%;
  overflow: hidden;
  border-color: inherit;
}

.mu-circle-gap-patch .mu-circle {
  width: 1000%;
  left: -450%;
}

.mu-circle-clipper .mu-circle {
  width: 200%;
  height: 100%;
  border-width: 3px;
  border-style: solid;
  border-color: inherit;
  border-bottom-color: transparent !important;
  border-radius: 50%;
  -webkit-animation: none;
  animation: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
}

.mu-circle-spinner.active .mu-circle-clipper.left .mu-circle {
  -webkit-animation: left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
  animation: left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}

.mu-circle-spinner.active .mu-circle-clipper.right .mu-circle {
    -webkit-animation: right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
    animation: right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}

.mu-circle-clipper.left .mu-circle {
  left: 0;
  border-right-color: transparent !important;
  -webkit-transform: rotate(129deg);
  transform: rotate(129deg);
}

.mu-circle-clipper.right .mu-circle {
    left: -100%;
    border-left-color: transparent !important;
    -webkit-transform: rotate(-129deg);
    transform: rotate(-129deg);
}


@-webkit-keyframes fill-unfill-rotate {
  12.5% {
    -webkit-transform: rotate(135deg);
  }
  25% {
    -webkit-transform: rotate(270deg);
  }
  37.5% {
    -webkit-transform: rotate(405deg);
  }
  50% {
    -webkit-transform: rotate(540deg);
  }
  62.5% {
    -webkit-transform: rotate(675deg);
  }
  75% {
    -webkit-transform: rotate(810deg);
  }
  87.5% {
    -webkit-transform: rotate(945deg);
  }
  to {
    -webkit-transform: rotate(1080deg);
  }
}
@keyframes fill-unfill-rotate {
  12.5% {
    transform: rotate(135deg);
  }
  25% {
    transform: rotate(270deg);
  }
  37.5% {
    transform: rotate(405deg);
  }
  50% {
    transform: rotate(540deg);
  }
  62.5% {
    transform: rotate(675deg);
  }
  75% {
    transform: rotate(810deg);
  }
  87.5% {
    transform: rotate(945deg);
  }
  to {
    transform: rotate(1080deg);
  }
}
@-webkit-keyframes left-spin {
  from {
    -webkit-transform: rotate(130deg);
  }
  50% {
    -webkit-transform: rotate(-5deg);
  }
  to {
    -webkit-transform: rotate(130deg);
  }
}
@keyframes left-spin {
  from {
    transform: rotate(130deg);
  }
  50% {
    transform: rotate(-5deg);
  }
  to {
    transform: rotate(130deg);
  }
}

@-webkit-keyframes right-spin {
    from {
        -webkit-transform: rotate(-130deg)
    }
    50% {
        -webkit-transform: rotate(5deg)
    }
    to {
        -webkit-transform: rotate(-130deg)
    }
}

@keyframes right-spin {
    from {
        transform: rotate(-130deg)
    }
    50% {
        transform: rotate(5deg)
    }
    to {
        transform: rotate(-130deg)
    }
}


@-webkit-keyframes container-rotate {
  to {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes container-rotate {
  to {
    transform: rotate(360deg);
  }
}

.mu-circular-progress {
  display: inline-block;
  position: relative;
  overflow: hidden;
  &.mu-secondary-color {
    background: transparent;
    .mu-circular-progress-determinate-path {
      stroke: @secondaryColor;
    }
  }
  &.mu-success-color {
    background: transparent;
    .mu-circular-progress-determinate-path {
      stroke: @successColor;
    }
  }
  &.mu-warning-color {
    background: transparent;
    .mu-circular-progress-determinate-path {
      stroke: @warningColor;
    }
  }
  &.mu-info-color {
    background: transparent;
    .mu-circular-progress-determinate-path {
      stroke: @infoColor;
    }
  }
  &.mu-error-color {
    background: transparent;
    .mu-circular-progress-determinate-path {
      stroke: @errorColor;
    }
  }
  &.mu-primary-color {
    background: transparent;
  }
  &.mu-inverse {
    color: inherit;
  }
}

.mu-circular-progress-determinate{
  position: relative;
}

.mu-circular-progress-determinate-path{
  stroke: @primaryColor;
  stroke-linecap: round;
  transition: all 0.3s linear;
}

