@use 'mixins/mixins.scss' as *;

@keyframes guide {
  0% {
    box-shadow: 0 0 0 0 rgb(255, 255, 255);
  }
  100% {
    box-shadow: 0 0 5px 0px var(--el-border-color);
  }
}

@include b(multiple-form) {
  background-color: var(--el-fill-color-blank);
  width: 100%;
  $title-height: 24px;
  padding: 4px;
  border-radius: var(--el-border-radius-base);

  @include e(title) {
    height: $title-height;
    line-height: $title-height;

    font-size: 16px;
    font-weight: 600;
  }

  $tools-height: 40px;

  @include e(tools) {
    height: $tools-height;

    display: flex;
    align-items: center;
    align-content: center;
    background-color: var(--el-bg-color);

    & > * {
      vertical-align: middle;
    }
  }

  @include e(index-line) {
    display: inline-block;
    vertical-align: middle;
    border-top: 1px dashed var(--el-border-color);
    height: 1px;
  }

  @include e(sort-handle) {
    cursor: move;
  }
  @include e(sort-ghost) {
    visibility: hidden;
  }

  @include e(btn-add) {
    width: 100%;
    display: block;
    padding: 6px 0;
    cursor: pointer;
    transition: background-color 0.25s;
    border-radius: var(--el-border-radius-base);
    border: 1px solid var(--el-border-color);

    &:hover {
      background-color: var(--el-color-primary-light-9);
    }
    &:active {
      background-color: var(--el-color-primary-light-7);
    }
    &:hover > span,
    &:active > span {
      color: var(--el-color-primary);
    }

    & > span {
      position: sticky;
      left: 50%;
      color: var(--el-text-color-regular);
      display: inline-block;
      transform: translateX(-50%);
      transition: color 0.25s;
    }
  }

  .is-required {
    &::after {
      content: ' *';
      color: #f00;
    }
  }
}
