.yee-inspector-wrapper {
  .ant-tabs-nav {
    width: 100%;

    .ant-tabs-tab {
      width: 33%;
      text-align: center;
      margin: 0;
    }
  }
  .basic-attr {
    min-height: 100%;
    .compName {
      display: inline-block;
      font-weight: 500;
      color: rgba(0, 0, 0, 0.85);
      font-size: 12px;
      border-bottom: 1px solid #EFEFEF;
      width: 100%;
      margin: 0;
      padding: 16px 0 8px 16px;
      line-height: 17px;
    }
    .ant-collapse > .ant-collapse-item .ant-collapse-header {
      padding: 16px 0 8px 16px !important;
      line-height: 17px;
    }
    .ant-tabs-top-bar {
      position: fixed;
      width: 256px;
      top: 0;
      background-color: #fff;
      z-index: 10;
    }
    .ant-tabs-top-content {
      margin-top: 40px;
    }
  }

  /* ---------------------------------- style --------------------------------- */

  .yee-inspector-style {
    @apply relative;

    // &:not(:last-child) {
    //   @apply mb-4;
    // }

    & > span {
      @apply block;
      font-size: 12px;
    }
    .flex-layout {
      & > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        &:not(:last-child) {
          margin-bottom: 16px;
        }
      }
      .radio-icon {
        .ant-radio-button-wrapper {
          width: 24px;
          padding: 0;
          &:hover {
            background: #d6d6d9;
            svg {
              fill: #949494;
            }
          }
        }
        .ant-radio-button-wrapper-checked {
          background: #f0fff0 !important;
          svg {
            fill: @primary-color !important;
          }
        }
      }
    }
    span, .ant-radio-group span {
      font-size: 12px;
    }

    .extra-btn {
      @apply absolute top-0 right-1;
    }
    .ant-select-selection-selected-value, .ant-radio-button-wrapper {
      font-size: 12px;
    }
    .margin-preview {
      position: relative;
      width: 208px;
      height: 136px;
      background: #EEEFF2;
      padding: 6px;
      .ant-input {
        padding: 0;
        z-index: 1;
        position: absolute;
        background-color: transparent;
        text-align: center;
        font-weight: 500;
        color: rgba(0,0,0,0.6500);
        outline: 0;
        border: 0;
        &:focus {
          box-shadow: none !important;
        }
      }
      .margin-top {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 196px;
        height: 0;
        border-top: 24px solid #CECECE;
        border-left: 24px solid transparent;
        border-right: 24px solid transparent;
        cursor: pointer;
        &:hover {
          border-top: 24px solid #B8B8B8;
        }
        .ant-input {
          top: -24px;
          height: 24px;
        }
      }
      .margin-bottom {
        position: absolute;
        bottom: 6px;
        left: 6px;
        width: 196px;
        height: 0;
        border-bottom: 24px solid #CECECE ;
        border-left: 24px solid transparent;
        border-right: 24px solid transparent;
        cursor: pointer;
        &:hover {
          border-bottom: 24px solid #B8B8B8;
        }
        .ant-input {
          bottom: -24px;
          height: 24px;
        }
      }
      .margin-right {
        position: absolute;
        top: 6px;
        right: 6px;
        width: 0;
        height: 124px;
        border-right: 24px solid #DADADA;
        border-top: 24px solid transparent;
        border-bottom: 24px solid transparent;
        cursor: pointer;
        &:hover {
          border-right: 24px solid #C3C3C3;
        }
        .ant-input {
          right: -24px;
          width: 24px;
          height: 100%;
        }
      }
      .margin-left {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 0;
        height: 124px;
        border-left: 24px solid #DADADA;
        border-top: 24px solid transparent;
        border-bottom: 24px solid transparent;
        cursor: pointer;
        &:hover {
          border-left: 24px solid #C3C3C3;
        }
        .ant-input {
          left: -24px;
          width: 24px;
          height: 100%;
        }
      }
      .margin {
        position: absolute;
        top: 6px;
        left: 6px;
        font-weight: 500;
        color: rgba(0,0,0,0.2500);
        transform: scale(0.7);
      }
      .box {
        position: absolute;
        top: 30px;
        right: 30px;
        left: 30px;
        bottom: 30px;
        width: 147px;
        background-color: #EEEFF2;
        .padding-top {
          position: absolute;
          top: 6px;
          left: 6px;
          width: 137px;
          height: 0;
          border-top: 24px solid #CECECE;
          border-left: 24px solid transparent;
          border-right: 24px solid transparent;
          cursor: pointer;
          &:hover {
            border-top: 24px solid #B8B8B8;
          }
          .ant-input {
            top: -24px;
            height: 24px;
          }
        }
        .padding-bottom {
          position: absolute;
          bottom: 6px;
          left: 6px;
          width: 137px;
          height: 0;
          border-bottom: 24px solid #CECECE;
          border-left: 24px solid transparent;
          border-right: 24px solid transparent;
          cursor: pointer;
          &:hover {
            border-bottom: 24px solid #B8B8B8;
          }
          .ant-input {
            bottom: -24px;
            height: 24px;
          }
        }
        .padding-left {
          position: absolute;
          top: 6px;
          left: 6px;
          width: 0;
          height: 64px;
          border-left: 24px solid #DADADA;
          border-top: 24px solid transparent;
          border-bottom: 24px solid transparent;
          cursor: pointer;
          &:hover {
            border-left: 24px solid #C3C3C3;
          }
          .ant-input {
            left: -24px;
            width: 24px;
            height: 100%;
          }
        }
        .padding-right {
          position: absolute;
          top: 6px;
          right: 4px;
          width: 0;
          height: 64px;
          border-right: 24px solid #DADADA;
          border-top: 24px solid transparent;
          border-bottom: 24px solid transparent;
          cursor: pointer;
          &:hover {
            border-right: 24px solid #C3C3C3;
          }
          .ant-input {
            right: -24px;
            width: 24px;
            height: 100%;
          }
        }
        .padding {
          position: absolute;
          top: 6px;
          left: 6px;
          font-weight: 500;
          color: rgba(0,0,0,0.2500);
          transform: scale(0.7);
        }
      }
    }
    .m-colorPicker {
      position: absolute;
      right: 20px;
      bottom: 8px;
      border: 0.25px solid rgb(197, 200, 201);
      height: 16px;
      .colorBtn {
        cursor: pointer;
      }
      .box {
        right: -6px;
        z-index: 10 !important;
      }
      &.top .box {
        bottom: 24px;
      }
      &.bottom .box {
        top: 24px;
      }
    }
    .ant-collapse .ant-select-selection--single {
      height: 30px;
      line-height: 30px;
      transform: scaleY(0.8);
    }
    // size
    .size {
      .width {
        display: flex;
        flex-wrap: wrap;
        & > div {
          display: flex;
          align-items: center;
          width: 49%;
          margin-bottom: 8px;
          &:nth-child(odd)  {
            margin-right: 2%;
          }
          & > div {
            flex: 1;
            .ant-input {
              height: 30px;
              transform: scaleY(0.8);
              padding: 0 20px 0 3px;
              color: rgba(0,0,0,0.65);
            }
            .ant-input-suffix {
              right: 6px;
            }
          }
          & > span {
            width: 50px;
          }
        }
      }
      .overflow {
        display: flex;
        align-items: center;
        margin-bottom: 6px;
        & > span {
          width: 50px;
        }
        & > div {
          flex: 1;
        }
        .ant-radio-group {
          display: flex;
        }
        .ant-radio-group-solid {
          .ant-radio-button-wrapper {
            border: 0;
            color: rgba(0, 0, 0, 0.65);
            &::before {
              display: none;
            }
          }
          .ant-radio-button-wrapper-checked {
            background: #f0fff0;
            color: @primary-color;
            box-shadow: none;
            svg{
              background: #f0fff0;
              fill: @primary-color !important;
            }
          }
        }
      }
    }
    // typography
    .typography {
      .content {
        & > div {
          display: flex;
          align-items: center;
          margin-bottom: 8px;
          & > span {
            width: 50px;
          }
          & > div {
            flex: 1;
            display: flex;
            justify-content: space-between;
            .ant-input {
              height: 24px;
              padding: 0 20px 0 3px;
              color: rgba(0,0,0,0.65);
            }
          }
          .radio-icon {
            display: flex;
            .ant-radio-button-wrapper {
              border: 0;
              color: rgba(0, 0, 0, 0.65);
              height: 24px;
              padding: 0;
              line-height: 24px;
              &::before {
                display: none;
              }
              &:not(:last-child) {
                margin-right: 4px;
              }
              &:hover {
                background: #f0fff0;
                svg {
                  fill: @primary-color;
                }
              }
            }
            .ant-radio-button-wrapper-checked {
              background: #f0fff0;
              color: @primary-color;
              box-shadow: none;
              svg {
                background: #f0fff0;
                fill: @primary-color !important;
              }
            }
          }
        }
        .fontSize {
          & > span {
            width: 50px;
          }
          .ant-input {
            height: 30px;
            transform: scaleY(0.8);
          }
          .ant-input-affix-wrapper .ant-input-suffix {
            right: 4px;
          }
        }
        .color {
          .ant-input-affix-wrapper {
            flex: 1;
          }
          .m-colorPicker {
            right: 6px;
            top: 4px;
          }
        }
        .textAlign {
          .radio-icon .ant-radio-button-wrapper {
            padding: 0 6px;
          }
        }
        .fontStyle .radio-icon .ant-radio-button-wrapper:not(:last-child) {
          margin-right: 2px;
        }
      }
    }
    // background
    .background {
      .content {
        & > div {
          display: flex;
          align-items: center;
          margin-bottom: 8px;
          & > span {
            width: 50px;
          }
          & > div {
            flex: 1;
            width: 0;
            .ant-input {
              height: 30px;
              transform: scaleY(0.8);
              padding: 0 20px 0 11px;
              color: rgba(0,0,0,0.65);
            }
          }
          .code-hinter {
            min-height: 30px;
            transform: scaleY(0.8);
          }
        }
      }
      .color {
        .ant-input-affix-wrapper {
          flex: 1;
        }
        .m-colorPicker {
          right: 6px;
          top: 4px;
        }
      }
    }
    // border
    .border-style {
      .radius {
        .radius-top {
          display: flex;
          align-items: center;
          & > span {
            width: 40px;
          }
        }
        .ant-input-affix-wrapper {
          width: 50px;
          margin-left: 4px;
          .ant-input {
            width: 50px;
            height: 30px;
            transform: scaleY(0.8);
            padding: 0 20px 0 3px;
            color: rgba(0,0,0,0.65);
          }
          .ant-input-suffix {
            right: 6px;
          }
        }
        .radius-bottom {
          & > div {
            margin-left: 60px;
          }
        }
      }
      .border-bt {
        .left-content {
          position: relative;
          width: 120px;
          height: 80px;
          .top {
            position: absolute;
            top: 0;
            left: 28px;
          }
          .left {
            position: absolute;
            top: 30px;
            left: 0px;
          }
          .bottom {
            position: absolute;
            top: 60px;
            left: 28px;
          }
          .right {
            position: absolute;
            top: 30px;
            left: 56px;
          }
          .all {
            position: absolute;
            top: 30px;
            left: 28px;
          }
          .active svg {
            background: #f0fff0;
            fill: #52BF63 !important;
          }
        }
        .right-content {
          margin-left: 12px;
          & > div > span {
            margin-right: 8px;
          }
          .ant-input-affix-wrapper {
            flex: 1;
          }
          .ant-input {
            height: 30px;
            transform: scaleY(0.8);
            padding: 0 20px 0 3px;
            color: rgba(0,0,0,0.65);
          }
          .ant-input-suffix {
            right: 6px;
          }
          .m-colorPicker {
            right: 6px;
            top: 7px;
            bottom: 7px;
          }
        }
      }
      .radio-icon {
        display: flex;
        .ant-radio-button-wrapper {
          border: 0;
          color: rgba(0, 0, 0, 0.65);
          height: 16px;
          padding: 0;
          line-height: 16px;
          &::before {
            display: none;
          }
          &:not(:last-child) {
            margin-right: 4px;
          }
          &:hover {
            background: #f0fff0;
            svg {
              fill: @primary-color;
            }
          }
        }
        .ant-radio-button-wrapper-checked {
          background: #f0fff0;
          color: @primary-color;
          box-shadow: none;
          svg {
            background: #f0fff0;
            fill: @primary-color !important;
          }
        }
      }
    }
    // position
    .position {
      .radio-icon {
        display: flex;
        .ant-radio-button-wrapper {
          border: 0;
          color: rgba(0, 0, 0, 0.65);
          height: 16px;
          padding: 0;
          line-height: 16px;
          margin-right: 2px;
          &::before {
            display: none;
          }
          &:hover {
            background: #f0fff0;
            svg {
              fill: @primary-color;
            }
          }
        }
        .ant-radio-button-wrapper-checked {
          background: #f0fff0;
          color: @primary-color;
          box-shadow: none;
          svg {
            background: #f0fff0;
            fill: @primary-color !important;
          }
        }
      }
      .content {
        & > span {
          width: 50px;
        }
        & > div {
          flex: 1;
          .ant-input {
            height: 24px;
            padding: 0 20px 0 3px;
            color: rgba(0,0,0,0.65);
          }
          .position-preview {
            position: relative;
            width: 160px;
            height: 76px;
            background: #EEEFF2;
            padding: 4px 5px;
            margin: 8px 0 4px;
            .ant-input {
              padding: 0;
              z-index: 1;
              position: absolute;
              background-color: transparent;
              text-align: center;
              font-weight: 500;
              color: rgba(0,0,0,0.6500);
              outline: 0;
              border: 0;
              &:focus {
                box-shadow: none !important;
              }
            }
            .preview-top {
              position: absolute;
              top: 4px;
              left: 4px;
              width: 152px;
              height: 0;
              border-top: 24px solid #CECECE;
              border-left: 37px solid transparent;
              border-right: 37px solid transparent;
              cursor: pointer;
              &:hover {
                border-top: 24px solid #B8B8B8;
              }
              .ant-input {
                top: -24px;
                height: 24px;
              }
            }
            .preview-bottom {
              position: absolute;
              bottom: 4px;
              left: 4px;
              width: 152px;
              height: 0;
              border-bottom: 24px solid #CECECE ;
              border-left: 37px solid transparent;
              border-right: 37px solid transparent;
              cursor: pointer;
              &:hover {
                border-bottom: 24px solid #B8B8B8;
              }
              .ant-input {
                bottom: -24px;
                height: 24px;
              }
            }
            .preview-right {
              position: absolute;
              top: 4px;
              right: 4px;
              width: 0;
              height: 68px;
              border-right: 37px solid #DADADA;
              border-top: 24px solid transparent;
              border-bottom: 24px solid transparent;
              cursor: pointer;
              &:hover {
                border-right: 37px solid #C3C3C3;
              }
              .ant-input {
                right: -37px;
                width: 37px;
                height: 100%;
              }
            }
            .preview-left {
              position: absolute;
              top: 4px;
              left: 4px;
              width: 0;
              height: 68px;
              border-left: 37px solid #DADADA;
              border-top: 24px solid transparent;
              border-bottom: 24px solid transparent;
              cursor: pointer;
              &:hover {
                border-left: 37px solid #C3C3C3;
              }
              .ant-input {
                left: -37px;
                width: 37px;
                height: 100%;
              }
            }
          }
          .relative-index {
            .relative-to {
              position: relative;
              height: 52px;
              margin-left: -10px;
              transform: scale(.8);
              & > div {
                width: 108px;
                height: 30px;
                line-height: 30px;
                background: #FFFFFF;
                border: 1px solid rgba(0,0,0,0.15);
                padding-left: 32px;
                color: rgba(0,0,0,0.65);
                border-radius: 2px;
                svg {
                  position: absolute;
                  top: 7px;
                  left: 8px;
                }
              }
              .title {
                position: absolute;
                left: 32px;
                bottom: 0;
              }
            }
            .z-index {
              .ant-input {
                height: 30px;
                padding: 0 20px 0 8px;
              }
              .title {
                left: 8px;
              }
            }
          }
          .radio-icon {
            margin-top: 8px;
          }
        }
      }
      .float {
        .btn {
          height: 24px;
          line-height: 24px;
          background: #F7F7F7;
          border-radius: 3px;
          text-align: center;
          color: rgba(0,0,0,0.65);
          svg {
            margin-left: 4px;
          }
        }
        .float-clear {
          & > div > span {
            width: 50px;
          }
          & > div > div {
            flex: 1;
          }
          .ant-radio-button-wrapper {
            height: 24px;
            line-height: 24px;
            padding: 0 6px;
          }
          .float-style .ant-radio-button-wrapper {
            padding: 0 13px;
          }
        }
      }
    }
  }
}
