/**
Progress bars

This component can be used to display progress either without a container and with a transparent background, or within a container. 

.progress-bar--contained - display the progress bar within a container

Markup:
<progress class="progress-bar {{modifier_class}}" max="100" value="50"></progress>

Name: progressBar

Styleguide 2.34
*/

.progress-bar {
  display: block;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 12px;
  width: 100%;
  background: transparent;
  border: 0;
  color: transparent;
  &::-webkit-progress-bar {
    background: transparent;
  }
  &::-webkit-progress-value {
    background: linear-gradient(270deg, @theme-green1, @theme-green4);
    transition: width 1s ease;
  }
  &::-moz-progress-bar {
    background: linear-gradient(270deg, @theme-green1, @theme-green4);
    transition: width 1s ease; //currently doesn't work for Firefox, but in case they add it
  }
  &::-ms-fill {
    background: linear-gradient(270deg, @theme-green1, @theme-green4);
    transition: width 1s ease;
    border: none;
  }
}

.progress-bar--contained {
  border-radius: @border-radius-default;
  background: @theme-grey2;
  border: 1px solid @theme-grey3;
  overflow: hidden;
  &::-webkit-progress-bar {
    background: @theme-grey2;
  }
}