/**
 * horizontal
 */
.jplist-slider{
  width: 300px;
  height: 20px;
  background: #efefef;
  margin-right: 15px;
  margin-bottom: 35px;
  border-radius: 2px;
  position: relative;
  box-sizing: border-box;
}

.jplist-slider::before{
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: blue;
  position: absolute;
  z-index: 100;
  left: 0;
  top: 50%;
  transform: translate(0, -50%);
}

.jplist-slider-holder-1,
.jplist-slider-holder-2{
  width: 10px;
  height: 100%;
  border-radius: 2px;
  display: block;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, 0);
  z-index: 200;
  transition: 0.3s background-color;
  padding: 0;
  margin: 0;
  font-size: 0;
  line-height: 0;
}

.jplist-slider-holder-1{
  background: #000;
}

.jplist-slider-holder-1:active{
  background: #9f35ff;
}

.jplist-slider-holder-2{
  background: #822121;
}

.jplist-slider-holder-2:active{
  background: #ff2888;
}

.jplist-slider-range{
  width: 0;
  height: 20px;
  background: #ccc;
  display: block;
  position: absolute;
  left: 0;
  top: 0;
}

/**
 * vertical
 */
.jplist-slider.jplist-slider-vertical{
  width: 20px;
  height: 300px;
}

.jplist-slider.jplist-slider-vertical::before{
  width: 3px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0);
}

.jplist-slider.jplist-slider-vertical .jplist-slider-holder-1,
.jplist-slider.jplist-slider-vertical .jplist-slider-holder-2{
  height: 10px;
  width: 100%;
  left: 0;
  top: 0;
  transform: translate(0, -50%);
}

.jplist-slider.jplist-slider-vertical .jplist-slider-range{
  width: 100%;
  height: 0;
}