File tree 1 file changed +5
-4
lines changed
src/vs/editor/common/modes/supports
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -397,12 +397,13 @@ export class ThemeTrieElement {
397
397
398
398
export function generateTokensCSSForColorMap ( colorMap : Color [ ] ) : string {
399
399
let rules : string [ ] = [ ] ;
400
+ const editorParentClass = ".monaco-editor" ;
400
401
for ( let i = 1 , len = colorMap . length ; i < len ; i ++ ) {
401
402
let color = colorMap [ i ] ;
402
- rules [ i ] = `.mtk${ i } { color: ${ color } ; }` ;
403
+ rules [ i ] = `${ editorParentClass } .mtk${ i } { color: ${ color } ; }` ;
403
404
}
404
- rules . push ( ' .mtki { font-style: italic; }' ) ;
405
- rules . push ( ' .mtkb { font-weight: bold; }' ) ;
406
- rules . push ( ' .mtku { text-decoration: underline; text-underline-position: under; }' ) ;
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; }` ) ;
407
408
return rules . join ( '\n' ) ;
408
409
}
You can’t perform that action at this time.
0 commit comments