@import "@tandem/uikit/scss";

.css-pretty-inspector {

  .property-preview {
    display: block;
    // background: trans;


    .body {
      padding: 1px;

      .box {
        background: hotpink;
        border: 4px solid white;
        min-width: 20px;
        min-height: 20px;
        opacity: 0.5;
        color: #333;
        & .box {
          background: limegreen;
        }
      }
    }

    &:hover {
      .card {
        display: block;
      }
    }
    .card {

      .body {
        background:white;
        width: 100%;
        height: 100%;
        z-index: 2;
      }

      display: none;
      background: #555;
      color: white;
      padding: $padding-s;
      border-radius: 4px;
      position: fixed;
      z-index: 9999;
      min-width: 100px;
      transform: translate(calc(-100% - 10px), calc(-50% + 11px));
      &::before {
        content: " ";
        display: block;
        width: 10px;
        height: 10px;
        background: #555;
        position: absolute;
        right: 0;
        top: 50%;
        z-index: -1;
        transform: translate(50%, -50%) rotate(45deg);
      }
    }
  }

  & .ion-trash-a {
    font-size: 0.9em;
    position: relative;
    top: -4px !important;
  }

    .td-html-padding-info {
      border-color: #87D37C;
    }

    .td-html-margin-info {
      border-color: #e67e22;
    }

  & .box-section {
    & .box-input {


      & input {
        border: none;
        background: transparent;
      }

      & label {
        box-sizing: border-box;
        @extend .dim;
        position: relative;
        line-height: $padding-l;
        display: inline-block;
        font-size: 0.7em;
      }

      & .box {
        cursor: pointer;

        & .inputs-section {
          min-width: 300px;
        }


        padding: $padding-l;
        position: relative;
        padding-top: 0;


        &.border {
          background: #F3EEA2;
          color: $default-font-color;
        }

        &.margin {
          background: #F9CEA9;
          color: $default-font-color;
        }

        &.padding {
          background: #B8EFB0;
          color: $default-font-color;
        }

        &.content {
          background: #C1DEF5;
          text-align: center;
          padding-top: $padding-l;
          color: $default-font-color;
        }

        &.focused {
          background: $sky-blue;
          color: $offset-white;
        }
      }

      .value {
        position: absolute;
        @extend .dim;
        font-size: 0.6em;
        &.left, &.right {
          top: 50%;
          transform: translateY(-50%);
        }

        &.left {
          left: $padding-r / 2;
        }
        &.right {
          right: $padding-r / 2;
        }

        &.top, &.bottom {
          left: 50%;
          transform: translateX(-50%);
        }

        &.top {
          top: $padding-r / 2;
        }

        &.bottom {
          bottom: $padding-r / 2;
        }
      }
    }
  }

  & .advanced-layout {
    min-width: 300px;
  }

  & .filters-section {
    & .filter-config-button {
      @extend .input;
      height: 22px;
      cursor: pointer;
      & i {
        top: -1px;
        left: -4px;
        position: relative; 
      }     
    }
  }

  & .advanced-typography {
    min-width: 250px;
  }


  & .fill-input {
    @extend .input;
    padding: 0;
    z-index: 2;
    display: inline-block;
    cursor: pointer;
    height: 23px;
    width: 100%;
  }

  & .bg-list {
    & li {
      width: 20%;
      display: inline-block;
      margin-right: 4px;
    }
  }
}
