Skip to content

Commit c89f8ff

Browse files
committed
small style change
1 parent 4f26685 commit c89f8ff

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/vs/editor/common/modes/supports/tokenization.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -397,13 +397,12 @@ export class ThemeTrieElement {
397397

398398
export function generateTokensCSSForColorMap(colorMap: Color[]): string {
399399
let rules: string[] = [];
400-
const editorParentClass = '.monaco-editor';
401400
for (let i = 1, len = colorMap.length; i < len; i++) {
402401
let color = colorMap[i];
403-
rules[i] = `${editorParentClass} .mtk${i} { color: ${color}; }`;
402+
rules[i] = `.monaco-editor .mtk${i} { color: ${color}; }`;
404403
}
405-
rules.push(`${editorParentClass} .mtki { font-style: italic; }`);
406-
rules.push(`${editorParentClass} .mtkb { font-weight: bold; }`);
407-
rules.push(`${editorParentClass} .mtku { text-decoration: underline; text-underline-position: under; }`);
404+
rules.push('.monaco-editor .mtki { font-style: italic; }');
405+
rules.push('.monaco-editor .mtkb { font-weight: bold; }');
406+
rules.push('.monaco-editor .mtku { text-decoration: underline; text-underline-position: under; }');
408407
return rules.join('\n');
409408
}

0 commit comments

Comments
 (0)