/* Slider */

$slider_size: 15px;

.slider {
  height: $slider_size;
  // slider trough
  -barlevel-height: 3px; // has to be an odd number
  -barlevel-background-color: $dark_fill; //background of the trough // Yaru: adapt the trough to gtk
  -barlevel-border-width: 1px;
  -barlevel-border-color: $borders_color; // trough border color
  // fill style
  -barlevel-active-background-color: $progress_bg_color; //active trough fill // Yaru: we detached progress from selected
  -barlevel-active-border-color: $progress_border_color; //active trough border // Yaru: we detached progress from selected
  // overfill style (red in this case)
  -barlevel-overdrive-color: $destructive_color;
  -barlevel-overdrive-border-color: if($variant == 'light', darken($destructive_color, 4%), lighten($destructive_color, 2%)); //trough border when red;
  -barlevel-overdrive-separator-width:1px;
  // slider handler
  -slider-handle-radius: $slider_size * 0.5; // half the size of the size
  -slider-handle-border-width: 1px;
  -slider-handle-border-color: darken($alt_borders_color, 3%); // Yaru: the handle border needs to be darker for the light theme

  color: lighten($bg_color, 12%);
  &:hover { color: $hover_bg_color; }
  &:active { color: $active_bg_color; }
}