File tree Expand file tree Collapse file tree
src/vs/editor/common/modes/supports Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -397,13 +397,12 @@ export class ThemeTrieElement {
397397
398398export 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}
You can’t perform that action at this time.
0 commit comments