/*!
 * The MIT License (MIT)
 *
 * Copyright (c) 2020 Karl STEIN
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

.cc-component.cc-resizable {
  position: relative;
}

.cc-component.cc-resizable.resizing {
  transition-property: height, width;
  transition-duration: 0s;
}

// Handles

.cc-component.cc-resizable .cc-resize-handle {
  cursor: nwse-resize;
  display: none;
  min-height: 5px;
  min-width: 5px;
  position: absolute;
  z-index: 1;
}

.cc-component.cc-resizable.resizing .cc-resize-handle,
.cc-component.cc-resizable:hover .cc-resize-handle {
  display: block;
}

.cc-component.cc-resizable .cc-resize-handle-e {
  cursor: e-resize;
  height: 100%;
  right: 0;
  top: 0;
}

.cc-component.cc-resizable .cc-resize-handle-n {
  cursor: n-resize;
  left: 0;
  top: 0;
  width: 100%;
}

.cc-component.cc-resizable .cc-resize-handle-ne {
  cursor: ne-resize;
  right: 0;
  top: 0;
  z-index: 2;
}

.cc-component.cc-resizable .cc-resize-handle-nw {
  cursor: nw-resize;
  left: 0;
  top: 0;
  z-index: 2;
}

.cc-component.cc-resizable .cc-resize-handle-s {
  cursor: s-resize;
  bottom: 0;
  left: 0;
  width: 100%;
}

.cc-component.cc-resizable .cc-resize-handle-se {
  cursor: se-resize;
  bottom: 0;
  right: 0;
  z-index: 2;
}

.cc-component.cc-resizable .cc-resize-handle-sw {
  cursor: sw-resize;
  bottom: 0;
  left: 0;
  z-index: 2;
}

.cc-component.cc-resizable .cc-resize-handle-w {
  cursor: w-resize;
  height: 100%;
  left: 0;
  top: 0;
}
