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

/*! component's theme wise override definitions and variables */
$hscroll-skin: 'bootstrap5' !default;
$border-type: solid;
$hscroll-hover-font: $icon-color !default;
$hscroll-active-font-color: $content-text-color-alt2 !default;
$hscroll-default-bg: $content-bg-color-alt2 !default;
$hscroll-press-bg: $content-bg-color-alt2 !default;
$hscroll-active-bg: $content-bg-color-alt2 !default;
$hscroll-border-size: 1px !default;
$hscroll-nav-nrml-minheight: 38px !default;
$hscroll-nav-bgr-minheight: 46px !default;
$hscroll-mob-nav-nrml-width: 40px !default;
$hscroll-nav-nrml-width: 32px !default;
$hscroll-nav-bgr-left: 38px !default;
$hscroll-nav-bgr-right: 38px !default;
$hscroll-nav-bgr-width: 38px !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-alt3 !default;
$hscroll-hover-border-color: $border-light !default;
$hscroll-default-icon-color: $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: $content-bg-color-alt2 !default;
$hscroll-overlay-start: rgba($hscroll-overlay-bg, 0) !default;
$hscroll-overlay-end: rgba($hscroll-overlay-bg, 1) !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: $shadow !default;
$hscroll-device-arrow-rtl-box-shadow: $shadow !default;
$hscroll-device-arrow-bg: $content-bg-color-alt2 !default;
$hscroll-device-arrow-border-size: 1px !default;
$hscroll-device-arrow-border-color: $border-light !default;
$hscroll-device-arrow-color: $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: $hscroll-hover-border-color !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: 50%;
  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;
  }
}
