提交 6519bee9 编写于 作者: M Martin Aeschlimann

[theme] css fix, dots left over

上级 a5f82bdc
...@@ -319,22 +319,22 @@ class WordHighlighterContribution implements editorCommon.IEditorContribution { ...@@ -319,22 +319,22 @@ class WordHighlighterContribution implements editorCommon.IEditorContribution {
registerThemingParticipant((theme, collector) => { registerThemingParticipant((theme, collector) => {
let selectionHighlight = theme.getColor(editorSelectionHighlight); let selectionHighlight = theme.getColor(editorSelectionHighlight);
if (selectionHighlight) { if (selectionHighlight) {
collector.addRule(`.monaco-editor. .focused .selectionHighlight { background-color: ${selectionHighlight}; }`); collector.addRule(`.monaco-editor .focused .selectionHighlight { background-color: ${selectionHighlight}; }`);
collector.addRule(`.monaco-editor. .selectionHighlight { background-color: ${selectionHighlight.transparent(0.5)}; }`); collector.addRule(`.monaco-editor .selectionHighlight { background-color: ${selectionHighlight.transparent(0.5)}; }`);
} }
let wordHighlight = theme.getColor(editorWordHighlight); let wordHighlight = theme.getColor(editorWordHighlight);
if (wordHighlight) { if (wordHighlight) {
collector.addRule(`.monaco-editor. .wordHighlight { background-color: ${wordHighlight}; }`); collector.addRule(`.monaco-editor .wordHighlight { background-color: ${wordHighlight}; }`);
} }
let wordHighlightStrong = theme.getColor(editorWordHighlightStrong); let wordHighlightStrong = theme.getColor(editorWordHighlightStrong);
if (wordHighlightStrong) { if (wordHighlightStrong) {
collector.addRule(`.monaco-editor. .wordHighlightStrong { background-color: ${wordHighlightStrong}; }`); collector.addRule(`.monaco-editor .wordHighlightStrong { background-color: ${wordHighlightStrong}; }`);
} }
let hcOutline = theme.getColor(activeContrastBorder); let hcOutline = theme.getColor(activeContrastBorder);
if (hcOutline) { if (hcOutline) {
collector.addRule(`.monaco-editor. .selectionHighlight { border: 1px dotted ${hcOutline}; box-sizing: border-box; }`); collector.addRule(`.monaco-editor .selectionHighlight { border: 1px dotted ${hcOutline}; box-sizing: border-box; }`);
collector.addRule(`.monaco-editor. .wordHighlight { border: 1px dashed ${hcOutline}; box-sizing: border-box; }`); collector.addRule(`.monaco-editor .wordHighlight { border: 1px dashed ${hcOutline}; box-sizing: border-box; }`);
collector.addRule(`.monaco-editor. .wordHighlightStrong { border: 1px dashed ${hcOutline}; box-sizing: border-box; }`); collector.addRule(`.monaco-editor .wordHighlightStrong { border: 1px dashed ${hcOutline}; box-sizing: border-box; }`);
} }
}); });
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册