// Core variables and mixins
@import "_variables.less";
// Custom for this template
@import "bootstrap_addons/_mixins.less";

@bgColor: #000;
@stroke-color: @globalColor;
@trail-color: @bodyBackground;

.progress-bar-wrap{
  max-width: 100%;
  width: 210px;
}

.progress-bar {
  position: relative;
  width: 100%;
  margin: 0px;

  .progress-bar__body {
    position: absolute;
    right: 50%;
    width: 100%;
    top: 50%;
    padding: 0;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    font: 30px/30px @altFontFamily;
    color: black;

    &:after{
      content: '%';
    }
  }

  .progress-bar__stroke,
  .progress-bar__trail{
    stroke-linejoin: round;
  }
}

.progress-bar-horizontal{
  text-align: left;
  > svg{
    margin-top: 7px;
  }

  .progress-bar__body{
    width: auto!important;
    top: -5px;
    right: 0;
  }
}

.progress-bar-radial{
  position: relative;
  padding-bottom: 100%;

  > svg{
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 5px;
    overflow: hidden;
  }

  .progress-bar__stroke,
  .progress-bar__trail{
    stroke-location: outside;
  }
  //--------IE fix----------------------
  &.progress-zero .progress-bar__stroke{
    stroke-dasharray: 279, 280 !important;
  }

  &.progress-full .progress-bar__stroke{
    stroke-dasharray: 280, 280 !important;
  }
  //--------End IE fix------------------

  .progress-bar__body{
    .translate(50%, -50%);
  }
}

.progress-bar-default {
  .progress-bar__stroke{
    stroke: @stroke-color;
  }

  .progress-bar__trail{
    stroke: @trail-color;
  }
}