maestrano/mno-enterprise

View on GitHub
frontend/app/assets/stylesheets/mno_enterprise/custom/utility/step.less

Summary

Maintainability
Test Coverage
.step {
  margin-left:-1px;
  display:inline-block;
  width:33%;
  .font(16px,500,@text-inverse-color);
  background-color:@bg-inverse-color;
  padding:7px 0px 7px 26px;

  .wrapper {
    float:right;
    margin:-8px 17px 0px 0px;
    img {
      position:absolute;
    }
  }

  .arrow {
    position: absolute;
    margin:18px 0px 0px -5px;
  }

  .arrow:before, .arrow:after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent;
    border-right: 0;
  }

  .arrow:before {
    bottom: -19px;
    left: 22px;
    border-left-color: #131f25;
    border-width: 19px;
  }

  .arrow:after {
    bottom: -17px;
    left: 22px;
    border-left-color: @bg-inverse-color;
    border-width: 17px;
  }

  &.active {
    background-color:@brand-primary;
    color:white;
    .wrapper {
      margin:-7px 17px 0px 0px;
    }

    .arrow:before {
      bottom: -18px;
      border-width: 18px;
      border-left-color: @brand-primary;
    }

    .arrow:after {
      border-left-color: @brand-primary;
      bottom: -16px;
      border-width: 16px;
    }
  }

  &.left {
    .border-left-radius(5px);
  }

  &.right {
    .border-right-radius(5px);
    margin-left:-2px;
  }

  &.light-color {
    background-color:@decorator-inverse-color;
    border: solid 1px @decorator-inverse-color;
    
    .arrow:before {
      border-left-color: #7F9496;
    }

    .arrow:after {
      border-left-color: @decorator-inverse-color;
    }
    
    &.active {
      background-color:@brand-primary;
      border: solid 1px @brand-primary;
      
      .arrow:before {
        border-left-color: @brand-primary;
      }

      .arrow:after {
        border-left-color: @brand-primary;
      }
    }
  }

}