// Define variables to override default ones
@import "variables";

@import "node_modules/spectre.css/src/mixins";
@import "node_modules/spectre.css/src/base";
@import "node_modules/spectre.css/src/utilities";

// Layout
@import "node_modules/spectre.css/src/layout";
@import "node_modules/spectre.css/src/navbar";

// Import only the needed components
@import "node_modules/spectre.css/src/buttons";
@import "node_modules/spectre.css/src/forms";
@import "node_modules/spectre.css/src/tabs";
@import "node_modules/spectre.css/src/tooltips";
@import "node_modules/spectre.css/src/toasts";

html,
body,
.app {
  height: 100%;
}
html {
  font-size: 18px;
}
body {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  padding: 0;
  margin: 0;
}

// input[type="text"],
// input[type="date"],
// textarea {
//   @extend .form-input;
//   @extend .input-sm;
// }
input[type="color"] {
  cursor: pointer;
  width: 24px;
  vertical-align: middle;
  border: none;
  &::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
  }
  &::-webkit-color-swatch-wrapper {
    padding: 1px;
    border-radius: 4px;
    border: 1px solid $primary-color;
  }
}
// select {
//   @extend .form-select;
//   @extend .select-sm;
// }
.layer {
  &:hover {
    outline: 1px solid #ddd !important;
  }
}
// .edit-viewport {
.edit-viewport  .g-active {
    outline: 1px solid #2196f3 !important;
    &:hover {
      outline: 1px solid #2196f3 !important;
    }
    &::after {
      content: attr(data-title) !important;
      background: #2196f3;
      color: #fff;
      position: absolute;
      top: 0;
      right: 0;
      padding: 0 5px;
      font-size: 14px !important;
      border-radius: 0 0 0 4px;
      visibility: visible !important;
    }
  }
// }


.CodeMirror{
  height: auto!important;
}



.xpe_scale {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2500;
  /*overflow: hidden;*/
  transition: all 0.5s ease-in 0.1s;

  .scale_x {
    position: absolute;
    left: 0;
    z-index: 2500;
    width: 100%;
    height: 18px;
    background: url("./assets/scale_x.png") repeat-x;

    .scale_item {
      top: 1px;
    }
  }
  .scale_y {
    position: absolute;
    top: 0;
    z-index: 2500;
    width: 18px;
    height: 100%;
    background: url("./assets/scale_y.png") repeat-y;

    .scale_item {
      width: 8px;
      left: 3px;
      word-wrap: break-word;
    }
  }
  .scale_item {
    position: absolute;
    font: 10px/1 Arial, sans-serif;
    color: #333;
    cursor: default;
  }

  .toolTip {
    position: absolute;
    display: none;
    margin: 15px;
  }

  .guides_x {
    position: absolute;
    top: 0;
    z-index: 2500;
    height: 1px;
    background: #4affff;
    cursor: row-resize;

    &:hover {
      .toolTip {
        display: inline-block;
      }
    }

    &:after {
      content: " ";
      position: absolute;
      z-index: -1;
      top: -1px;
      right: 0;
      bottom: 0;
      left: 0;
      height: 3px;
      background: transparent;
    }
  }
  .guides_y {
    position: absolute;
    left: 0;
    z-index: 2500;
    width: 1px;
    background: #4affff;
    cursor: col-resize;

    &:hover {
      .toolTip {
        display: inline-block;
      }
    }

    &:after {
      content: " ";
      position: absolute;
      z-index: -1;
      top: 0;
      right: 0;
      bottom: 0;
      left: -1px;
      height: 3px;
      background: transparent;
    }
  }
}
