.cm-editor-setter {
  // 编辑器基础样式
  .cm-editor {
    outline: none !important;

    &.cm-focused {
      border-color: #40a9ff;
    }
  }

  // 滚动区域样式
  .cm-scroller {
    border-radius: 4px;
    outline: none !important;
  }

  // 行号和缩进线样式
  .cm-lineNumbers {
    color: #999;
    background-color: #f5f5f5;
    border-right: 1px solid #e8e8e8;
  }

  .cm-gutters {
    min-height: 201px !important;
  }

  .cm-gutterElement {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 0 !important;
  }

  // 行样式
  .cm-line {
    padding: 0 10px !important;
  }

  // 当前行高亮
  .cm-activeLine {
    background-color: #bee0fd;
  }

  // 选中文本样式
  .cm-selectionBackground {
    background-color: #b3d4fc;
  }

  // 光标样式
  .cm-cursor {
    border-left: 1px solid #000;
  }

  // 代码折叠样式
  .cm-foldGutter {
    width: 20px;
    text-align: center;

    .cm-activeLineGutter {
      background-color: #fff !important;
    }

    span[title='Fold line'] {
      display: inline-block;
      width: 20px;
      height: 20px;
      text-align: center;
      transform: translateY(-5px);
    }
  }

  // 聚焦状态
  .cm-focused {
    outline: none !important;
  }
}
