style.less 2.43 KB
/*dragProgress*/
.dragProgress_wrap {
  width: 420px;
  float: left;
  height: 30px;
  position:relative;
  user-select: none;
  -o-user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;

  .bar_wrap {
    width: 380px;
    float: left;
    height: 100%;
    padding-top: 5px;

    .roller {
      height: 10px;
      border-radius: 5px;
      margin-top: 5px;
      width: 100%;
      background: #cdcdcd;

      .water {
        height: 100%;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
      }

      .water_1 {
        .water;
        background: #e50011;
      }

      .water_2 {
        .water;
        background: #e73016;
      }
      .water_3 {
        .water;
        background: #e84340;
      }
      .water_4 {
        .water;
        background: #ee7b44;
      }
      .water_5 {
        .water;
        background: #f5ba46;
      }
      .water_6 {
        .water;
        background: #fff000;
      }
      .water_7 {
        .water;
        background: #b6c753;
      }
      .water_8 {
        .water;
        background: #a2c047;
      }
      .water_9 {
        .water;
        background: #32ad45;
      }

      .water_10 {
        .water;
        background: #009943;
        border-bottom-right-radius: 5px;
        border-top-right-radius: 5px;
      }

    }

    .item {
      border: solid 1px #cdcdcd;
      height: 100%;
      width: 20px;
      border-radius: 10px;
      position: absolute;
      cursor: pointer;
      margin-top: -15px;
      height: 20px;
    }

    .item_1 {
      .item;
      background: #e50011;
      border-color:#e73016;
    }
    .item_2 {
      .item;
      background: #e73016;
      border-color:#e84340;
    }
    .item_3 {
      .item;
      background: #e84340;
      border-color:#ee7b44;
    }
    .item_4 {
      .item;
      background: #ee7b44;
      border-color:#f5ba46;
    }
    .item_5 {
      .item;
      background: #f5ba46;
      border-color:#fff000;
    }
    .item_6 {
      .item;
      background: #fff000;
      border-color:#b6c753;
    }
    .item_7 {
      .item;
      background: #b6c753;
      border-color:#a2c047;
    }
    .item_8 {
      .item;
      background: #a2c047;
      border-color:#32ad45;
    }
    .item_9 {
      .item;
      background: #32ad45;
      border-color:#009943;
    }
    .item_10 {
      .item;
      background: #009943;
    }
  }

  .proportion {
    float: right;
    margin-top: 5px;
  }
}
/*dragProgress*/