// @form-build-color: #e0e0e0;
// @form-build-title-bg: #3c3c3c;
// @form-build-border-dark-color: #1e1e1e;
@css-box-color: #d3dadb;
@css-box-hover-color: #6ab2fb;
@form-build-color: #333;
@form-build-title-bg: #DBDBDB;
@form-build-border-dark-color: #ccc;
@form-build-border-color: #ccc;

.formbuild-style-wrap {
  &,
  h3 {
    color: @form-build-color !important;
  }
  &,
  h3,
  span {
    font-size: 12px; 
  }
  .ant-collapse-header {
    font-size: 12px !important;
  }
  // .formbuild-style-btnGroupStyle {
  //   button {
  //     border-color: lighten(@form-build-title-bg, 15%);
  //     background: @form-build-title-bg;
  //     color: @form-build-color;
  //     &:hover,
  //     &:focus,
  //     &:active {
  //       background: @form-build-title-bg !important;
  //     }
  //   }
  // }
  // .formbuild-style-radioGroupStyle {
  //   > label {
  //     background: @form-build-title-bg;
  //     border-color: lighten(@form-build-title-bg, 15%) !important;
  //     &::before {
  //       background-color: lighten(@form-build-title-bg, 15%) !important;
  //     }
  //     svg {
  //       fill: @form-build-color !important;
  //     }
  //   }
  //   .ant-radio-button-wrapper-checked {
  //     background: @form-build-title-bg;
  //   }
  // }
}
.formbuild-style-btnGroupStyle {
  button {
    margin: 0 !important;
    padding: 1px 4px;
    width: 18px !important;
    border-radius: 0;
    &:first-child {
      border-top-left-radius: 2px;
      border-bottom-left-radius: 2px;
    }
    &:last-child {
      border-top-right-radius: 2px;
      border-bottom-right-radius: 2px;
    }
    + button {
      margin-left: -1px !important
    }
    &:hover {
      z-index: 1;
    }
    &:focus {
      color: rgba(0, 0, 0, 0.65) !important;
      border-color: #d9d9d9 !important;
    }
    &.active {
      z-index: 3;
      color: #709efa !important;
      border-color: #709efa !important;
    }
  }
}
.formbuild-style-radioGroupStyle {
  > label {
    margin: 0 !important;
    padding: 3px 1px !important;
    width: 19px !important;
    height: 26px !important;
    &:hover {
      svg {
        fill: #709efa !important;
      }
    }
  }
  .ant-radio-button-wrapper-checked {
    border-color: #709efa !important;
    svg {
      fill: #709efa !important;
    }
  }
}
.formbuild-style-settingStyle {
  h3 {
    color: @form-build-color;
    font-weight: normal;
  }
}
.formbuild-style-selectClass {
  padding: 5px 8px;
  input {
    width: 225px;
    height: 26px;
    // background: @form-build-title-bg;
    color: @form-build-color;
    border: 1px solid @form-build-border-color;
    outline: none !important;
    margin-bottom: 2px;
    float: left;
    &:focus {
      box-shadow: none;
    }
  }
  > div {
    margin-bottom: 10px;
    overflow: hidden;
  }
}
.formbuild-style-classEdit {
  color: @form-build-color;
  fill: currentColor;
  vertical-align: -8px;
  opacity: 0.8;
  margin-left: 5px;
  cursor: pointer;
  &:hover {
    opacity: 1;
  }
}
.formbuild-style-classTips {
  width: 225px;
  height: 26px;
  line-height: 26px;
  padding: 0 8px;
  border-radius: 2px;
  display: inline-block;
  background: @form-build-color;
  color: @form-build-border-dark-color;
}
.formbuild-style-classBox {
  height: 26px;
  line-height: 26px;
  display: inline-block;
  padding: 0 8px;
  background: @form-build-color;
  color: @form-build-title-bg;
  border-radius: 2px;
  margin-bottom: 2px;
  float: left;
  cursor: pointer;
  + .formbuild-style-classBox {
    margin-left: 2px;
  }
}
.formbuild-style-cssBoxWrap {
  width: 184px;
  height: 134px;
  position: relative;
  padding: 18px;
  margin: 45px 30px 30px 33px;
  > span {
    position: absolute;
    left: -33px;
    top: -32px;
  }
}
.formbuild-style-marginTopBox {
  position: absolute;
  top: 0;
  left: 2px;
  width: 180px;
  height: 15px;
  > span {
    display: inline-block;
  }
  .formbuild-style-triangleLeft,
  .formbuild-style-triangleRight {
    width: 0;
    height: 0;
    border-top: 15px solid @css-box-color;
  }
  .formbuild-style-triangleLeft {
    border-left: 15px solid transparent;
  }
  .formbuild-style-triangleRight {
    border-right: 15px solid transparent;
  }
  .formbuild-style-rectangleTop {
    width: 150px;
    height: 15px;
    background: @css-box-color;
  }
  &:hover {
    .formbuild-style-triangleLeft,
    .formbuild-style-triangleRight {
      border-top-color: @css-box-hover-color
    }
    .formbuild-style-rectangleTop {
      background: @css-box-hover-color;
    }
  }
}
.formbuild-style-marginRightBox {
  position: absolute;
  right: 0;
  top: 2px;
  width: 15px;
  height: 140px;
  overflow: hidden;
  > span {
    display: block;
    float: left;
  }
  .formbuild-style-triangleTop,
  .formbuild-style-triangleBottom {
    width: 0;
    height: 0;
  }
  .formbuild-style-triangleTop {
    border-bottom: 15px solid @css-box-color;
    border-left: 15px solid transparent;
  }
  .formbuild-style-rectangleRight {
    width: 15px;
    height: 100px;
    background: @css-box-color;
  }
  .formbuild-style-triangleBottom {
    border-top: 15px solid @css-box-color;
    border-left: 15px solid transparent;
  }
  &:hover {
    .formbuild-style-triangleTop,
    .formbuild-style-triangleBottom {
      border-top-color: @css-box-hover-color;
      border-bottom-color: @css-box-hover-color;
    }
    .formbuild-style-rectangleRight {
      background: @css-box-hover-color;
    }
  }
}
.formbuild-style-marginBottomBox {
  position: absolute;
  bottom: 0;
  left: 2px;
  width: 180px;
  height: 15px;
  > span {
    display: inline-block;
  }
  .formbuild-style-triangleLeft,
  .formbuild-style-triangleRight {
    width: 0;
    height: 0;
    border-bottom: 15px solid @css-box-color;
  }
  .formbuild-style-triangleLeft {
    border-left: 15px solid transparent;
  }
  .formbuild-style-triangleRight {
    border-right: 15px solid transparent;
  }
  .formbuild-style-rectangleBottom {
    width: 150px;
    height: 15px;
    background: @css-box-color;
  }
  &:hover {
    .formbuild-style-triangleLeft,
    .formbuild-style-triangleRight {
      border-bottom-color: @css-box-hover-color;
    }
    .formbuild-style-rectangleBottom {
      background: @css-box-hover-color;
    }
  }
}
.formbuild-style-marginLeftBox {
  position: absolute;
  left: 0;
  top: 2px;
  width: 15px;
  height: 140px;
  overflow: hidden;
  > span {
    display: block;
    float: left;
  }
  .formbuild-style-triangleTop,
  .formbuild-style-triangleBottom {
    width: 0;
    height: 0;
  }
  .formbuild-style-triangleTop {
    border-bottom: 15px solid @css-box-color;
    border-right: 15px solid transparent;
  }
  .formbuild-style-rectangleLeft {
    width: 15px;
    height: 100px;
    background: @css-box-color;
  }
  .formbuild-style-triangleBottom {
    border-top: 15px solid @css-box-color;
    border-right: 15px solid transparent;
  }
  &:hover {
    .formbuild-style-triangleTop,
    .formbuild-style-triangleBottom {
      border-top-color: @css-box-hover-color;
      border-bottom-color: @css-box-hover-color;
    }
    .formbuild-style-rectangleLeft {
      background: @css-box-hover-color;
    }
  }
}
.formbuild-style-innerBox {
  width: 100%;
  height: 100%;
  position: relative;
  border: 1px solid #ddd;
  padding: 3px;
  > span {
    display: block;
    height: 100%;
    line-height: 90px;
    text-align: center;
  }
  .formbuild-style-marginTopBox {
    width: 136px;
    top: 3px;
    left: 5px;
  }
  .formbuild-style-marginBottomBox {
    width: 136px;
    bottom: 3px;
    left: 5px;
  }
  .formbuild-style-marginRightBox {
    top: 5px;
    right: 3px;
    height: 96px;
  }
  .formbuild-style-marginLeftBox {
    left: 3px;
    top: 5px;
    height: 96px;
  }
  .formbuild-style-rectangleTop,
  .formbuild-style-rectangleBottom {
    width: 106px;
  }
  .formbuild-style-rectangleLeft,
  .formbuild-style-rectangleRight {
    height: 56px;
  }
}
.formbuild-style-inputMarginTop {
  position: absolute !important;
  left: 50%;
  margin-left: -25px !important;
  top: -10px;
}
.formbuild-style-inputMarginBottom {
  position: absolute !important;
  left: 50%;
  margin-left: -25px !important;
  bottom: -10px;
  height: 26px;
}
.formbuild-style-inputMarginLeft {
  position: absolute !important;
  top: 50%;
  margin-top: -12px !important;
  left: -32px;
}
.formbuild-style-inputMarginRight {
  position: absolute !important;
  top: 50%;
  margin-top: -12px !important;
  right: -32px;
}
.formbuild-style-inputPaddingTop {
  position: absolute !important;
  left: 50%;
  margin-left: -25px !important;
  top: 25px;
}
.formbuild-style-inputPaddingBottom {
  position: absolute !important;
  left: 50%;
  margin-left: -25px !important;
  bottom: 25px;
  height: 26px;
}
.formbuild-style-inputPaddingLeft {
  position: absolute !important;
  top: 50%;
  margin-top: -12px !important;
  left: 10px;
}
.formbuild-style-inputPaddingRight {
  position: absolute !important;
  top: 50%;
  margin-top: -12px !important;
  right: 10px;
}
.formbuild-style-inputNumberStyle {
  input {
    padding: 0 1px;
  }
}
.formbuild-style-cssLineBoxWrap {
  width: 100%;
  position: relative;
  > span {
    position: absolute;
    left: 0;
    top: -58px;
    display: block;
  }
}

.formbuild-style-cssLineBox {
  width: 40px;
  height: 34px;
  border: 1px solid #ddd;
  position: relative;
  margin: 53px auto 43px;
  .formbuild-style-lineTop,
  .formbuild-style-lineBottom {
    width: 28px;
    height: 3px;
    background: #7a878b;
    position: absolute;
  }
  .formbuild-style-lineTop {
    left: 5px;
    top: -3px;
  }
  .formbuild-style-lineBottom {
    left: 5px;
    bottom: -3px;
  }
  .formbuild-style-lineRight,
  .formbuild-style-lineLeft {
    width: 3px;
    height: 22px;
    background: #7a878b;
    position: absolute;
  }
  .formbuild-style-lineRight {
    top: 5px;
    right: -3px;
  }
  .formbuild-style-lineLeft {
    top: 5px;
    left: -3px;
  }
  .formbuild-style-borderTop {
    position: absolute;
    left: 50%;
    margin-left: -20px !important;
    top: -32px;
  }
  .formbuild-style-borderBottom {
    position: absolute;
    left: 50%;
    margin-left: -20px !important;
    bottom: -32px;
    height: 26px;
  }
  .formbuild-style-borderLeft {
    position: absolute;
    top: 50%;
    margin-top: -14px !important;
    left: -44px;
  }
  .formbuild-style-borderRight {
    position: absolute;
    top: 50%;
    margin-top: -14px !important;
    right: -44px;
  }
  &:hover {
    .formbuild-style-lineTop,
    .formbuild-style-lineBottom,
    .formbuild-style-lineLeft,
    .formbuild-style-lineRight {
      background: @css-box-hover-color;
    }
  }
}
.formbuild-style-cssCornerBoxWrap {
  width: 100%;
  height: 120px;
  position: relative;
  > span {
    position: absolute;
    left: 0;
    top: -58px;
    display: block;
  }
}
.formbuild-style-cssCornerBox {
  width: 40px;
  height: 34px;
  border: 1px solid #ddd;
  position: relative;
  margin: 53px auto 43px;
  border-radius: 10px;
  .formbuild-style-cornerRightTop,
  .formbuild-style-cornerRightBottom,
  .formbuild-style-cornerLeftTop,
  .formbuild-style-cornerLeftBottom {
    border: 2px solid #7a878b;
    display: inline-block;
    min-width: 1em;
    min-height: 1em;
    padding: 0.5em;
    border-radius: 50%;
    border-top-color: transparent;
    border-left-color: transparent;
    border-bottom-color: transparent;
    position: absolute;
  }
  .formbuild-style-cornerRightTop {
    transform: rotate(-49deg);
    top: -2px;
    right: -2px;
  }
  .formbuild-style-cornerRightBottom {
    transform: rotate(49deg);
    bottom: -2px;
    right: -2px;
  }
  .formbuild-style-cornerLeftTop {
    transform: rotate(229deg);
    top: -2px;
    left: -2px;
  }
  .formbuild-style-cornerLeftBottom {
    transform: rotate(131deg);
    bottom: -2px;
    left: -2px;
  }
  &:hover {
    .formbuild-style-cornerRightTop,
    .formbuild-style-cornerRightBottom {
      border-right-color: @css-box-hover-color;
    }
    .formbuild-style-cornerLeftTop,
    .formbuild-style-cornerLeftBottom {
      border-right-color: @css-box-hover-color;
    }
  }
  .formbuild-style-cornerTop {
    position: absolute;
    left: 0%;
    margin-left: -32px !important;
    top: -32px;
  }
  .formbuild-style-cornerBottom {
    position: absolute;
    margin-right: -32px !important;
    right: 0%;
    bottom: -32px;
    height: 26px;
  }
  .formbuild-style-cornerLeft {
    position: absolute;
    margin-left: -32px !important;
    left: 0%;
    bottom: -32px;
    height: 26px;
  }
  .formbuild-style-cornerRight {
    position: absolute;
    right: 0%;
    top: -32px;
    margin-right: -32px;
  }
}
.formbuild-style-codeViewBox {
  width: 500px;
  .ant-popover-inner-content {
    height: 300px;
    padding-left: 0 !important;
  }
}
.formbuild-style-alignIcon {
  width: 14px !important;
  height: 14px !important;
  font-size: 14px !important;
}
.formbuild-style-textDecoration{
  > span {
    text-decoration: underline;
  }
}
.formbuild-style-editorWrap {
  .minimap.slider-mouseover,
  .decorationsOverviewRuler,
  .decorationsOverviewRuler + div {
    display: none;
  }
}
.formbuild-style-colorPickerWrap {
  .mdc-menu-surface {
    right: -65px !important;
    top: 0;
  }
}
.formbuild-style-collapse {
  background-color: transparent;
  .ant-collapse-content {
    overflow: visible !important;
  }
  .mdc-typography--overline {
    text-transform: unset;
    letter-spacing: unset;
    font-weight: normal;
  }
}
.formbuild-style-borderColorWrap {
  width: 30px !important;
  margin: 2px 0 0 4px;
  > div, > div > div, > div > div > div:last-child {
    width: 30px !important;
  }
  > div > div > div:last-child > div {
    width: 18px !important;
  }
  .mdc-menu-surface {
    right: -180px !important;
  }
}
.formbuild-style-select {
  .ant-select-selector {
    padding: 0 5px 0 2px !important;
  }
}
.formbuild-style-modal {
  .ant-modal-body {
    padding: 0 10px !important;
  }
}
.formbuild-style-mask {
  width: 110%;
  height: 100%;
  z-index: 100;
  position: absolute;
  left: 0;
  top: 0;
  background:rgba(0, 0, 0, 0.15);
}
.formbuild-style-formLabel {
  position: absolute;
  top: 0;
}
.formbuild-style-form.ant-form {
  margin: 10px 0 0;
  .ant-form-item {
    margin-bottom: 0;
  }
}
.formbuild-style-popover-placeholder {
  height: 100%;
  padding-top: 110px;
  text-align: center;
}
.formbuild-style-colorPickerBox {
  // > div > div {
  //   background-color: @form-build-title-bg;
  // }
  margin-bottom: 30px;
}

