/* Scrollbars */

StScrollView {
  &.vfade { -st-vfade-offset: 32px; }
  &.hfade { -st-hfade-offset: 32px; }
}

StScrollBar {
  padding: $base_spacing;

  StScrollView & {
    min-width: 8px;
    min-height: 8px;
  }

  StBin#trough {
    border-radius: $circular_radius;
    background-color: $divider;
  }

  StButton#vhandle, StButton#hhandle {
    border-radius: $circular_radius;
    background-color: $text-secondary-disabled;
    border: 4px solid transparent; //would be nice to margin or at least to transparent

    @if $colorful == 'true' {
      &:hover { background-color: $text-secondary; }
      &:active { background-color: $text; }
    } @else {
      &:hover { background-color: rgba($primary, 0.5); }
      &:active { background-color: $primary; }
    }
  }
}

.popup-sub-menu {
  StScrollBar {
    StBin#trough {
      background-color: on($primary, divider);
    }

    StButton#vhandle, StButton#hhandle {
      background-color: on($primary, track);

      &:hover { background-color: on($primary, disabled); }
      &:active { background-color: on($primary, secondary); }
    }
  }
}
