.material-box {
  /* width: 100%; */
}

.config-active {
  position: relative;
  outline: 1px solid @primary-color;
  z-index: 1;
  & > .config-handle {
    position: absolute;
    z-index: 1 !important;
    height: auto;

    & > .badge {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      min-width: 32px;
      font-weight: 600;
      letter-spacing: 0.04em;
      white-space: nowrap;
    }

    & > .parent-row {
      position: absolute;
      bottom: 18px;
      overflow: hidden;

      .handle-content {
        width: fit-content;
        height: 16px;
        margin-top: 2px;
        display: flex;
        align-items: center;
        cursor: pointer;
        font-weight: 700;
        color: #fff;
        background: @primary-color;

        & > .badge-button {
          display: flex;
          align-items: center;
          & > span {
            display: inline-block;
            color: #fff;
            transform: scale(0.8);
            padding-bottom: 2px;
          }
        }
      }
    }

    & > .handle-content {
      width: fit-content;
      height: 16px;
      display: flex;
      align-items: center;
      cursor: pointer;
      color: #fff;
      background: @primary-color;

      & > div[role='button'] {
        display: flex;
        align-items: center;
        & > span {
          display: inline-block;
          color: #fff;
          transform: scale(0.8);
          padding-bottom: 2px;
        }
      }
      & > .action-part {
        margin-right: 5px;
        display: flex;
        align-items: center;
        .line {
          display: inline-block;
          width: 1px;
          height: 8px;
          background-color: #fff;
          vertical-align: middle;
          margin: 0 4px;
        }

        i {
          margin-left: 5px;
          margin-right: 0;
          font-size: 13px;
        }
      }
    }

    .operation-content & {
      left: auto !important;
      right: -1px;
    }
  }
}

.hover-active {
  position: relative;
  outline: 1px solid @primary-color;
  & > .config-handle {
    position: absolute;
    height: 16px;
    line-height: 16px;
    & > span {
      display: inline-block;
      transform: scale(0.8);
      color: @primary-color;
    }
  }
}

.yee-entry-wrapper > .entry-content { // content下第一个子元素选中状态在右侧
  & > div:first-child.config-active > .config-handle,
  & > div:first-child.hover-active > .config-handle,
  & > div > div > div:first-child > .config-active > .config-handle,
  & > div > div > div:first-child > .hover-active > .config-handle {
    left: auto !important;
    right: -1px !important;
    top: 0 !important;
  }

  &> .config-wrap .config-handle {
    .parent-row.is-bottom {
      top: 18px;
      bottom: auto !important;
      transform: rotateX(180deg);

      .handle-content {
        transform: rotateX(180deg);
      }
    }
  }
}

body > canvas.yeepay-drag-handle {
  position: fixed;
  top: -999px;
  left: -999px;
}
