/* Copyright (c) Fortanix, Inc.
|* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of
|* the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */

@layer baklava.overrides {
  .bk-util-scroller {
    // Prevents cursor from scrolling vertical, once entered a scroll container with horizontal scroll
    // overscroll-behavior: none;
    
    &.bk-util-scroller--vertical {
      @supports not (overflow-block: auto) {
        // stylelint-disable-next-line declaration-property-value-disallowed-list
        overflow-y: auto;
      }
      @supports (overflow-block: auto) {
        // stylelint-disable-next-line declaration-property-value-disallowed-list
        overflow-block: auto;
      }
    }
    
    &.bk-util-scroller--horizontal {
      @supports not (overflow-inline: auto) {
        // stylelint-disable-next-line declaration-property-value-disallowed-list
        overflow-x: auto;
      }
      @supports (overflow-inline: auto) {
        // stylelint-disable-next-line declaration-property-value-disallowed-list
        overflow-inline: auto;
      }
    }
    
    // stylelint-disable-next-line declaration-property-value-disallowed-list
    &.bk-util-scroller--both { overflow: auto; }
  }
}
