/* CodeMirror基础样式 */
.CodeMirror {
    font-family: monospace;
    height: 300px;
    color: black;
    direction: ltr;
}

/* 行号样式 */
.CodeMirror-linenumbers {
    padding: 0 3px 0 5px;
    min-width: 20px;
    text-align: right;
    color: #999;
    white-space: nowrap;
}

.CodeMirror-gutters {
    border-right: 1px solid #ddd;
    background-color: #f7f7f7;
    white-space: nowrap;
}

/* 光标样式 */
.CodeMirror-cursor {
    border-left: 1px solid black;
    border-right: none;
    width: 0;
}

/* 选中文本样式 */
.CodeMirror-selected {
    background: #d9d9d9;
}

/* 激活行样式 */
.CodeMirror-focused .CodeMirror-activeline-background {
    background: #e8f2ff;
}