HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/confeduphaar/backip-old-files/media/jdbuilder/scss/preview.scss
$width: 40px;

@mixin edit-btn($color) {
   display: none;
   position: absolute;
   z-index: 999;
   background-color: $color;
   outline: 0 !important;
   color: #fff;

   // width: $width;
   // height: $width;
   // border-radius: $width;
   // cursor: pointer;
   ~.element-border {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: 2px solid $color;
      z-index: 99;
      display: none;
   }

   &:hover {
      background-color: $color;

      ~.element-border {
         display: block;
      }
   }
}

.jdb-section {
   position: relative;

   >.jdb-settings {
      @include edit-btn(#84d155);
      top: 0;
      left: 0;
   }

   &:hover {
      >.jdb-settings {
         display: block;
      }
   }
}

.jdb-row {
   position: relative;

   >.jdb-settings {
      @include edit-btn(#dd506a);
      top: 0;
      right: 0;
   }

   &:hover {
      >.jdb-settings {
         display: block;
      }
   }
}

.jdb-column {
   position: relative;

   >.jdb-settings {
      @include edit-btn(#8E2DE2);
      top: 0;
      left: 50%;
      margin-left: -$width/2;
      margin-top: -$width/2;
   }

   &:hover {
      >.jdb-settings {
         display: block;
      }
   }
}

.jdb-element {
   position: relative;

   >.jdb-settings {
      @include edit-btn(#464ed2);
      top: 50%;
      left: 50%;
      margin-left: -$width/2;
      margin-top: -$width/2;
   }

   &:hover {
      >.jdb-settings {
         display: block;
      }
   }
}

.jdb-preview-guides {
   &:hover {
      outline: 2px dashed rgba(0, 0, 0, 0.2);
      outline-offset: -2px;
   }
}

.jd-edit-panel{
   width: 300px;
   padding: 20px 60px;
}