File tree Expand file tree Collapse file tree 3 files changed +31
-28
lines changed
Expand file tree Collapse file tree 3 files changed +31
-28
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ onMounted(async () => {
140140 : /* BELOW */ ` ` // reset
141141 }
142142 }
143+ nextTick (() => monaco .editor .remeasureFonts ())
143144})
144145 </script >
145146
@@ -148,3 +149,33 @@ onMounted(async () => {
148149 <div ref =" container" class =" absolute inset-0.5" />
149150 </div >
150151</template >
152+
153+ <style >
154+ div [widgetid = ' messageoverlay' ] {
155+ transform : translateY (calc (100% * (var (--slidev-slide-scale ) - 1 )));
156+ }
157+
158+ .slidev-monaco-container {
159+ position : relative ;
160+ margin : var (--slidev-code-margin );
161+ padding : var (--slidev-code-padding );
162+ line-height : var (--slidev-code-line-height );
163+ border-radius : var (--slidev-code-radius );
164+ background : var (--slidev-code-background );
165+ }
166+
167+ .slidev-monaco-container .monaco-editor {
168+ --monaco-monospace-font : var (--slidev-code-font-family );
169+ --vscode-editor-background : var (--slidev-code-background );
170+ --vscode-editorGutter-background : var (--slidev-code-background );
171+ }
172+
173+ /* * Revert styles */
174+ .slidev-monaco-container .monaco-editor a {
175+ border-bottom : none ;
176+ }
177+
178+ .slidev-monaco-container .monaco-editor a :hover {
179+ border-bottom : none ;
180+ }
181+ </style >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -603,7 +603,6 @@ defineProps<{ no: number | string }>()`)
603603 `import "${ resolveUrlOfClient ( 'styles/code.css' ) } "` ,
604604 `import "${ resolveUrlOfClient ( 'styles/katex.css' ) } "` ,
605605 `import "${ resolveUrlOfClient ( 'styles/transitions.css' ) } "` ,
606- `import "${ resolveUrlOfClient ( 'styles/monaco.css' ) } "` ,
607606 ]
608607
609608 for ( const root of roots ) {
You can’t perform that action at this time.
0 commit comments