Skip to content

Commit ed0fd3c

Browse files
authored
Fix microsoft#165410. No css variables defined at root. (microsoft#165519)
1 parent 452e028 commit ed0fd3c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/vs/workbench/contrib/notebook/browser/media/notebook.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@
125125
.monaco-workbench .notebookOverlay .output {
126126
position: absolute;
127127
height: 0px;
128-
font-size: var(--notebook-cell-output-font-size);
129128
user-select: text;
130129
-webkit-user-select: text;
131130
cursor: auto;

src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditorD
557557
insertToolbarPosition,
558558
insertToolbarAlignment,
559559
fontSize,
560+
outputFontSize,
560561
focusIndicatorLeftMargin,
561562
focusIndicatorGap
562563
} = this._notebookOptions.getLayoutConfiguration();
@@ -571,9 +572,8 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditorD
571572
const fontFamily = this._generateFontFamily();
572573

573574
styleSheets.push(`
574-
:root {
575-
--notebook-cell-output-font-size: ${fontSize}px;
576-
--notebook-cell-output-font-family: ${fontFamily};
575+
.notebook-editor {
576+
--notebook-cell-output-font-size: ${outputFontSize}px;
577577
--notebook-cell-input-preview-font-size: ${fontSize}px;
578578
--notebook-cell-input-preview-font-family: ${fontFamily};
579579
}

0 commit comments

Comments
 (0)