@import '../styles/triangle.scss';

$themeColor: #3498db;
$bgColor: #ccc;
$tooltipGap: 10px;
$tooltipColor: #fff;

// component style
.vue-slider-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

// rail style
.vue-slider-rail {
  background-color: $bgColor;
  border-radius: 15px;
}

// process style
.vue-slider-process {
  background-color: $themeColor;
  border-radius: 15px;
}

// mark style
.vue-slider-mark {
  z-index: 4;

  &:first-child,
  &:last-child {
    .vue-slider-mark-step {
      display: none;
    }
  }

  @at-root &-step {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.16);

    &-active {
    }
  }

  @at-root &-label {
    font-size: 14px;
    white-space: nowrap;
    &-active {
    }
  }
}

// dot style
.vue-slider-dot {
  @at-root &-handle {
    cursor: pointer;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #fff;
    box-sizing: border-box;
    box-shadow: 0.5px 0.5px 2px 1px rgba(0, 0, 0, 0.32);

    @at-root &-focus {
      box-shadow: 0px 0px 1px 2px rgba($themeColor, 0.36);
    }
    @at-root &-disabled {
      cursor: not-allowed;
      background-color: #ccc;
    }
  }

  @at-root &-tooltip {
    @at-root &-inner {
      font-size: 14px;
      white-space: nowrap;
      padding: 2px 5px;
      min-width: 20px;
      text-align: center;
      color: $tooltipColor;
      border-radius: 5px;
      border-color: $themeColor;
      background-color: $themeColor;
      box-sizing: content-box;
      @include arrow(10px, inherit);
    }
  }

  @at-root &-tooltip-wrapper {
    opacity: 0;
    transition: all 0.3s;
    @at-root &-show {
      opacity: 1;
    }
  }
}
