/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import "theme";

.resize {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  background: transparent;

  &.vertical {
    width: 7px;
    height: 100%;
    border-left: 1px solid @border-color-split;
    cursor: col-resize;
  }

  &.horizontal {
    width: 100%;
    height: 7px;
    cursor: row-resize;
    transform: translateY(-3.5px);
  }
}

.resize-handle {
  position: relative;
  top: -2px;
  left: 50%;
  width: 30px;
  height: 10px;
  margin-right: 15px;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  background: #fbfbfb;
  line-height: 10px;
  text-align: center;
  pointer-events: none;

  &.vertical {
    top: 50%;
    left: auto;
    margin-top: -15px;
    margin-right: auto;
    margin-left: 5px;
    transform: rotate(90deg);
    transform-origin: left top;
  }

  i {
    position: relative;
    top: -2px;
  }
}
