[theme] remove css colors for cursor

This commit is contained in:
Martin Aeschlimann
2017-03-21 23:14:51 +01:00
parent 03548f5350
commit 61abb99dcb
2 changed files with 4 additions and 20 deletions

View File

@@ -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;

View File

@@ -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}; }`);
}
}
});