style.less 2.45 KB
@import '~@qx/ui/src/style/variable.less';

.qx-formula-cm {
  .CodeMirror {
    height: auto;
    line-height: 24px;
  }
}

.cm-bg .CodeMirror {
  border: 1px solid #e7e6e6;
  background-color: #f9f9f9 !important;
}

.qx-copy-send-cm {
  height: 100%;

  .react-codemirror2 {
    height: 100%;

    .CodeMirror {
      height: auto;
      min-height: 80px;
      line-height: 24px;
    }
  }
}

.qx-field-setter__clear {
  position: absolute;
  bottom: 8px;
  right: 8px;
  color: #bcb9b9;
  font-size: 14px;
}

.CodeMirror-line {
  .CodeMirror-matchingbracket {
    outline: none !important;
    background: #ccc;
    border-radius: 2px;
    //padding: 0 1px 2px;
  }
}

body {
  .CodeMirror-hints.idea {
    background: #fff !important;
    border: 1px solid @N4;
    border-radius: 5px;
    width: 240px;
    .tree-node-high {
      color: @B8;
    }
    .tag {
      padding: 0 8px;
      border-radius: 4px;
      background-color: #e7efff;
      font-size: 14px;
      color: #1764ff;
      white-space: nowrap;
      margin-left: 10px;
    }
    .hint-line {
      padding: 5px 0;
      display: flex;
      justify-content: space-between;
      font-size: 13px;
      &_left {
        //overflow: hidden;
        //white-space: nowrap;
        //text-overflow: ellipsis;
        width: 50%;
        margin-right: 10px;
      }
      &_right {
        color: #7c7e86;
        width: 50%;
        overflow: hidden;
        text-align: right;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
    }
  }
  .CodeMirror-hints.idea .CodeMirror-hint-active {
    background: #f5f5f5 !important;
  }
  .CodeMirror-hints::-webkit-scrollbar {
    width: 10px; /* 设置滚动条宽度 */
    background-color: #fff;
    border-radius: 5px;
  }

  .CodeMirror-hints::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* 设置滚动条轨道背景色 */
    border-radius: 10px; /* 设置滚动条轨道的圆角 */
  }

  .CodeMirror-hints::-webkit-scrollbar-thumb {
    background-color: #ccc; /* 设置滚动条滑块颜色 */
    border-radius: 10px; /* 设置滚动条滑块的圆角 */
  }

  .CodeMirror-hints::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* 设置滚动条滑块的悬停颜色 */
  }
  .CodeMirror-placeholder {
    position: absolute;
    top: 5px;
    left: 5px;
    color: #bfbfbf;
  }
}

.CodeMirror-hint:hover {
  background: #f5f5f5 !important;
}

.CodeMirror-line {
  .bracket-mark {
    padding: 0 1px 2px;
    margin: 0 1px 0 0;
  }
}