@import "variables";
@import "mixins";

$slider-col-input-bg: $white !default;
$slider-col-fg: transparent !default;
$slider-col-axis: $col-prm-l !default;

$slider-ff: $font-family !default;

.ui-slider {
  height: 1.4rem;
  margin: 0 0.7rem;
  &:before {
    content: "";
    position: absolute;
    top: 0.5rem;
    height: 4px;
    left: -0.7rem;
    right: -0.7rem;
    background-color: $slider-col-axis;
  }

  .ui-slider-range {
    background-color: $slider-col-fg;
    top: 0.5rem;
    height: 4px;
  }

  .ui-slider-handle {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 100%;
    outline: none;
    cursor: pointer;
    margin-left: -0.7rem !important;
    top: -0.2rem !important;
    background-color: $col-prm;
  }
}

.slider-range-wrapper {
  margin-bottom: 1rem;
  input {
    padding: 0.8rem 0.5rem;
    text-align: center;
    float: left;
    width: 45%;
    font-size: 1.1rem;
    background-color: $slider-col-input-bg;
    border: 1px solid $gray100;
    font-family: $slider-ff;
    &:focus,
    &:active {
      border: 1px solid $col-prm;
    }
  }
  .dash {
    width: 10%;
    display: block;
    float: left;
    text-align: center;
    line-height: 2.4rem;
  }
  .inputs {
    display: flex;
    align-items: center;
    margin-top: (2rem * 1.6);
    &:after {
      content: "";
      display: table;
      clear: both;
    }
  }

  .unit {
    margin-left: 0.5rem;
    font-size: 1rem;
    line-height: 1;
  }
}
.ui-slider:before {
  content: "";
  position: absolute;
  top: 0.6rem;
  height: 3px;
  left: -0.7rem;
  right: 3px;
  background-color: $slider-col-axis;
}
