/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
@import "~@bentley/ui-core/lib/ui-core/style/themecolors";
@import "../widget/variables";

.nz-stagePanels-splitter {
  $grip-size: 5px;

  display: flex;
  width: 100%;
  height: 100%;

  > .nz-pane {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 0px;
    min-width: 0;
    min-height: 0;
  }

  > .nz-grip {
    background-color: $buic-background-5;
    flex: 0 0 auto;
    touch-action: none;
  }

  &.nz-vertical {
    flex-direction: column;

    > .nz-grip {
      height: $grip-size;
      cursor: ns-resize;

      @include for-tablet-landscape-down {
        height: $nz-resize-grip-size-large;
      }
    }
  }

  &:not(.nz-vertical) {
    flex-direction: row;

    > .nz-grip {
      width: $grip-size;
      cursor: ew-resize;

      @include for-tablet-landscape-down {
        width: $nz-resize-grip-size-large;
      }
    }
  }
}
