@use '../base/common/base-variables' as *;

/*! component's theme wise override definitions and variables */
$hscroll-skin: 'material3' !default;
$border-type: solid;
$hscroll-hover-font: rgba($icon-color) !default;
$hscroll-active-font-color: rgba($content-text-color-alt2) !default;
$hscroll-default-bg: $content-bg-color-alt1 !default;
$hscroll-press-bg: $content-bg-color-pressed !default;
$hscroll-active-bg: rgba($content-bg-color-selected) !default;
$hscroll-border-size: 1px !default;
$hscroll-nav-nrml-minheight: 35px !default;
$hscroll-nav-bgr-minheight: 56px !default;
$hscroll-mob-nav-nrml-width: 50px !default;
$hscroll-nav-nrml-width: 40px !default;
$hscroll-nav-bgr-left: 46px !default;
$hscroll-nav-bgr-right: 46px !default;
$hscroll-nav-bgr-width: 46px !default;
$hscroll-nrml-padding: 0 $hscroll-nav-nrml-width !default;
$hscroll-bgr-padding: 0 $hscroll-nav-bgr-width !default;
$hscroll-border-type: $border-type !default;
$hscroll-box-shadow: none !default;
$hscroll-hover-bg: $content-bg-color-hover !default;
$hscroll-hover-border-color: $content-bg-color-hover !default;
$hscroll-default-icon-color: rgba($icon-color) !default;
$hscroll-focus-border: 0 !default;
$hscroll-active-border: 0 !default;
$hscroll-hover-border: 0 !default;
$hscroll-active-box-shadow: none !default;
$hscroll-overlay-opacity: .5 !default;
$hscroll-overlay-bg: rgba($content-bg-color) !default;
$hscroll-overlay-start: transparent !default;
$hscroll-overlay-end: $hscroll-overlay-bg !default;
$hscroll-right-bg: linear-gradient(-270deg, $hscroll-overlay-start 0%, $hscroll-overlay-end 100%) !default;
$hscroll-left-bg:  linear-gradient(-270deg, $hscroll-overlay-end 0%, $hscroll-overlay-start 100%) !default;

$hscroll-device-arrow-box-shadow: rgba($shadow) !default;
$hscroll-device-arrow-rtl-box-shadow: rgba($shadow) !default;
$hscroll-device-arrow-bg: $content-bg-color-alt2 !default;
$hscroll-device-arrow-border-size: 1px !default;
$hscroll-device-arrow-border-color: rgba($border-light) !default;
$hscroll-device-arrow-color: rgba($icon-color) !default;
$hscroll-device-arrow-size: 18px !default;
$hscroll-device-arrow-icon-size: 18px !default;
$hscroll-device-arrow-size-bigger: 22px !default;
$hscroll-device-arrow-width: 48px !default;
$hscroll-border-none: 0 !default;
$hscroll-item-height: inherit !default;
$hscroll-item-line-height: normal !default;

$hscroll-default-border: rgba($border-light) !default;
$hscroll-ribble-animation-border-frame: rgba(255, 255, 255, .5) !default;
$hscroll-ribble-animation-shadow-frame: 0 0 0 0 $hscroll-ribble-animation-border-frame !default;
$hscroll-ribble-animation-shadow-frame-end: 0 0 0 200px rgba(255, 255, 255, .12) !default;

$hscroll-nav-hover-press-bg: $hscroll-hover-bg !default;
$hscroll-nav-hover-icons-color: $hscroll-default-icon-color !default;
$hscroll-nav-focus-bg-color: $hscroll-hover-bg !default;
$hscroll-nav-focus-border: $hscroll-focus-border !default;
$hscroll-nav-active-color: $hscroll-default-icon-color !default;

@mixin hscroll-btn-animation {
  background-color: transparent;
  border-radius: $border-radius-50p;
  border-width: 1px;
  box-sizing: border-box;
  content: '';
  height: 1px;
  left: 50%;
  position: absolute;
  top: 50%;
  visibility: hidden;
  width: 1px;
}

@mixin hscroll-btn-animation-after {
  animation: hscroll-popup-shadow .6s ease-out 0ms;
  visibility: visible;
}

@keyframes hscroll-popup-shadow {
  0% {
    border-color: $hscroll-ribble-animation-border-frame;
    box-shadow: $hscroll-ribble-animation-shadow-frame;
  }

  100% {
    box-shadow: $hscroll-ribble-animation-shadow-frame-end;
  }
}
