.vtj-designer {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  iframe {
    width: 100%;
    height: 100%;
  }
  .el-empty {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  &__hover {
    border: 1px dashed $--vtj-primary-color;
    background-color: rgba(64, 158, 255, 0.05);
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
  }
  &__hover-title {
    color: $--vtj-primary-color;
    position: absolute;
    background-color: $--vtj-primary-color-light-9;
    height: 23px;
    line-height: 22px;
    border-radius: 4px;
    font-size: 12px;
    padding: 0 5px;
    white-space: nowrap;
    box-shadow: 0 0 3px #fff;
    i {
      color: $--vtj-secondary-color;
    }

    &.is-inner {
      left: 2px;
      top: 2px;
    }

    &.is-left-top {
      left: 0;
      top: -2px;
      transform: translateY(-100%);
    }

    &.is-left-bottom {
      left: 0;
      bottom: -2px;
      transform: translateY(100%);
    }
    &.is-right-top {
      right: 0;
      top: -2px;
      transform: translateY(-100%);
    }
    &.is-right-bottom {
      right: 0;
      bottom: -2px;
      transform: translateY(100%);
    }
  }

  &__selected {
    border: 2px solid $--vtj-primary-color;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 10;
  }

  &__dropping {
    border: 2px solid $--vtj-primary-color;
    background-color: rgba(64, 158, 255, 0.05);
    position: absolute;
    pointer-events: none;
    &.is-inner {
      border: 1px solid $--vtj-primary-color;
    }
  }

  &__slots {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
  }
  &__slot {
    border: 1px solid $--vtj-border-color;
    display: inline-block;
    padding: 30px 10px;
    background-color: $--vtj-warning-color-light;
    cursor: pointer;
    flex-grow: 1;
    margin: 5px;
    text-align: center;
    &:hover {
      opacity: 0.7;
    }
  }
}

.vtj-actions {
  position: absolute;
  pointer-events: initial;
  font-size: 12px;
  white-space: nowrap;
  &__layers {
    background: $--vtj-primary-color;
    box-shadow: 0 0 3px #fff;
    padding: 0 5px;
    border-radius: 3px;
    display: inline-block;
    vertical-align: top;
    .el-tooltip__trigger {
      color: #fff !important;
      cursor: pointer;
      font-size: 12px;
      height: 23px;
      line-height: 22px;
      &:hover {
        opacity: 0.6;
      }
    }
    .vtj-icon-layers {
      margin-right: 5px;
    }

  }
  &__tools {
    background: $--vtj-primary-color;
    padding: 0 5px;
    border-radius: 3px;
    display: inline-block;
    margin-left: 5px;
    height: 23px;
    line-height: 22px;
    vertical-align: top;
    box-shadow: 0 0 3px #fff;
    i {
      color: #fff;
      cursor: pointer;
      padding: 3px;
      line-height: 1;
      &:hover {
        opacity: 0.6;
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
      }
      &.vtj-icon-unlock {
        color: #f3d19e;
      }
    }
  }
  &.is-inner {
    right: 2px;
    top: 2px;
  }

  &.is-left-top {
    left: 0;
    top: -4px;
    transform: translateY(-100%);
  }

  &.is-left-bottom {
    left: 0;
    bottom: -4px;
    transform: translateY(100%);
  }
  &.is-right-top {
    right: 0;
    top: -4px;
    transform: translateY(-100%);
  }
  &.is-right-bottom {
    right: 0;
    bottom: -4px;
    transform: translateY(100%);
  }
}

.is-Page {
  color: $--vtj-success-color;
  margin-left: 5px;
  font-size: 12px;
  zoom: 0.8;
}
.is-Node {
  color: $--vtj-primary-color;
  margin-left: 5px;
  font-size: 12px;
  zoom: 0.8;
}

.is-Block {
  color: $--vtj-warning-color;
  margin-left: 5px;
  font-size: 12px;
  zoom: 0.8;
}

.vtj-viewport {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}
