/*---------------------------------------------------------------------------------------------
* 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/base/base";
@import "~@bentley/ui-core/lib/ui-core/style/breakpoints";
@import "~@bentley/ui-core/lib/ui-core/style/colors";

$resizer-size: 6px;
$resizer-size-large: 14px;

#uifw-contentlayout-div {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: auto;

  .Pane2 {
    height: 100%;
  }

  .Resizer {
    background: rgb(180, 180, 180);
    box-sizing: border-box;
    background-clip: padding-box;
    margin: 0;

    &:hover {
      transition: all 2s ease;
    }

    &.horizontal {
      height: $resizer-size;
      min-height: $resizer-size;
      cursor: ns-resize;
      width: 100%;

      @include for-tablet-landscape-down {
        height: $resizer-size-large;
        min-height: $resizer-size-large;
      }
    }

    &.vertical {
      width: $resizer-size;
      min-width: $resizer-size;
      cursor: ew-resize;

      @include for-tablet-landscape-down {
        width: $resizer-size-large;
        min-width: $resizer-size-large;
      }
    }

    &.disabled {
      cursor: not-allowed;

      &:hover {
        border-color: transparent;
      }
    }
  }

  .uifw-contentlayout-wrapper {
    position: relative;
    width: 100%;
    height: 100%;

    .uifw-contentlayout-overlay-div {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-style: solid;
      border-width: 2px 0 0 0;
      box-sizing: border-box;
      pointer-events: none;

      &.uifw-contentlayout-overlay-active {
        border-color: $uicore-orange;
      }

      &.uifw-contentlayout-overlay-inactive {
        border-color: transparent;
      }
    }
  }

  .uifw-contentlayout-full-size {
    @include uicore-full-size;
  }
}

div.uifw-contentlayout-full-size div.SplitPane div.Pane {
  overflow: hidden;
}
