//
// Resize handle
//

@resize-handle-color: #4099ff;
@resize-handle-size: 10px;
@resize-clone-z-index: 10000;

.mce-content-body {
  div.mce-resizehandle {
    @offset: -@resize-handle-size / 3;

    background-color: @resize-handle-color;
    border-color: @resize-handle-color;
    border-style: solid;
    border-width: 1px;
    box-sizing: border-box;
    height: @resize-handle-size;
    position: absolute;
    width: @resize-handle-size;
    z-index: @z-index-resize-handle;

    &:hover {
      background-color: @resize-handle-color;
    }

    &:nth-of-type(1) {
      cursor: nwse-resize;
    }

    &:nth-of-type(2) {
      cursor: nesw-resize;
    }

    &:nth-of-type(3) {
      cursor: nwse-resize;
    }

    &:nth-of-type(4) {
      cursor: nesw-resize;
    }
  }

  .mce-resize-backdrop {
    z-index: @resize-clone-z-index;
  }

  .mce-clonedresizable {
    cursor: default;
    opacity: .5;
    outline: 1px dashed black;
    position: absolute;
    z-index: @resize-clone-z-index + 1;

    // Hide table borders when using table_column_resizing: 'resizetable'
    &.mce-resizetable-columns th,
    &.mce-resizetable-columns td {
      border: 0;
    }
  }

  .mce-resize-helper {
    background: #555;
    background: rgba(0 0 0 / 75%);
    border: 1px;
    border-radius: 3px;
    color: white;
    display: none;
    font-family: sans-serif;
    font-size: 12px;
    line-height: 14px;
    margin: 5px 10px;
    padding: 5px;
    position: absolute;
    white-space: nowrap;
    z-index: @resize-clone-z-index + 2;
  }
}
