提交 61abb99d 编写于 作者: M Martin Aeschlimann

[theme] remove css colors for cursor

上级 03548f53
......@@ -39,26 +39,6 @@
box-sizing: border-box;
}
.monaco-editor.vs .cursor {
background: black;
border-color: black;
color: white; /* opposite of black */
}
.monaco-editor.vs-dark .cursor {
background: #AEAFAD;
border-color: #AEAFAD;
color: #51504f; /* opposite of #AEAFAD */
}
.monaco-editor.hc-black .cursor {
background: #fff;
border-color: #fff;
color: #000; /* opposite of #fff */
}
.monaco-editor.hc-black .cursors-layer.has-selection .cursor {
border-left: 1px solid #000;
border-right: 1px solid #000;
}
@keyframes monaco-cursor-blink {
50% {
opacity: 0;
......
......@@ -334,5 +334,9 @@ registerThemingParticipant((theme, collector) => {
if (caret) {
let oppositeCaret = caret.opposite();
collector.addRule(`.monaco-editor.${theme.selector} .cursor { background-color: ${caret}; border-color: ${caret}; color: ${oppositeCaret}; }`);
if (theme.type === 'hc') {
collector.addRule(`.monaco-editor.${theme.selector} .cursors-layer.has-selection .cursor { border-left: 1px solid ${oppositeCaret}; border-right: 1px solid ${oppositeCaret}; }`);
}
}
});
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册