/*---------------------------------------------------------------------------------------------
* 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/z-index";

.nz-widget-widgetTarget {
  $size: 1em;
  $zIndex: uicore-get-z-index(drag-target) + 1;
  position: relative;
  z-index: $zIndex;

  &.nz-left, &.nz-right {
    &:after {
      width: 100%;
      height: $size;
    }

    &:not(.nz-first) {
      &:not(.nz-last) {
        &:after {
          transform: translateY(-50%);
        }
      }
    }

    &.nz-last {
      &:after {
        transform: translateY(-100%);
      }
    }
  }

  &.nz-top, &.nz-bottom {
    &:after {
      height: 100%;
      width: $size;
    }

    &:not(.nz-first) {
      &:not(.nz-last) {
        &:after {
          transform: translateX(-50%);
        }
      }
    }

    &.nz-last {
      &:after {
        transform: translateX(-100%);
      }
    }
  }

  &.nz-hidden {
    display: none;
  }

  &:after {
    content: '';
    position: absolute;
  }

  &.nz-targeted {
    &:after {
      background: rgb(140, 210, 255);
      opacity: 0.5;
    }
  }
}
