// @import '../_utils.scss';
.#{$split-prefix-cls} {
  &-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
  }

  &-pane {
    position: absolute;
    @include theme-background-color($__split-panel_background-color);

    &.left-pane,
    &.right-pane {
      top: $split-pane-top;
      bottom: $split-pane-bottom;
    }

    &.left-pane {
      left: $split-pane-left-left;
    }

    &.right-pane {
      right: $split-pane-right-right;
    }

    &.top-pane,
    &.bottom-pane {
      left: $split-top-bottom-pane-left;
      right: $split-top-bottom-pane-right;
    }

    &.top-pane {
      top: $split-top-pane-top;
    }

    &.bottom-pane {
      bottom: $split-bottom-pane-bottom;
    }

    &-moving {
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
    }
  }

  &-trigger {
    border: 1px solid $border-color-base;
    @include theme-border-color($__split-trigger_border-color);
    &-con {
      position: absolute;
      transform: translate(-50%, -50%);
      z-index: 10;
    }

    &-bar-con {
      position: absolute;
      overflow: hidden;

      &.vertical {
        left: $trigger-bar-offset;
        top: 50%;
        height: $trigger-bar-con-height;
        transform: translate(0, -50%);
      }

      &.horizontal {
        left: 50%;
        top: $trigger-bar-offset;
        width: $trigger-bar-con-height;
        transform: translate(-50%, 0);
      }
    }

    &-vertical {
      width: $trigger-width;
      height: 100%;
      background: $trigger-background;
      border-top: none;
      border-bottom: none;
      @include theme-background-color($__split-trigger_vertical_background-color);
      cursor: col-resize;
      .#{$split-prefix-cls}-trigger-bar {
        width: $trigger-bar-width;
        height: 1px;
        background: $trigger-bar-background;
        @include theme-background-color($__split-trigger-bar_vertical_background-color);
        float: left;
        margin-top: $trigger-bar-interval;
      }
    }

    &-horizontal {
      height: $trigger-width;
      width: 100%;
      background: $trigger-background;
      @include theme-background-color($__split-trigger_horizontal_background-color);
      border-left: none;
      border-right: none;
      cursor: row-resize;
      .#{$split-prefix-cls}-trigger-bar {
        height: $trigger-bar-width;
        width: 1px;
        background: $trigger-bar-background;
        @include theme-background-color($__split-trigger-bar_horizontal_background-color);
        float: left;
        margin-right: $trigger-bar-interval;
      }
    }
  }

  &-horizontal {
    &>.#{$split-prefix-cls}-trigger-con {
      top: 50%;
      height: 100%;
      width: 0;
    }
  }

  &-vertical {
    &>.#{$split-prefix-cls}-trigger-con {
      left: 50%;
      height: 0;
      width: 100%;
    }
  }

  .no-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
}
