1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-28 01:00:13 +02:00

Move code fontsize to CSS custom variable.

Console fontsize is also now controlled by settings.
This commit is contained in:
Kushagra Gour
2018-10-21 23:01:03 +05:30
parent fc94b9946f
commit 915974d082
4 changed files with 9 additions and 20 deletions

View File

@@ -286,11 +286,10 @@ export default class ContentWrap extends Component {
]).then(() => this.setPreviewContent(true));
}
applyCodemirrorSettings(prefs) {
/* if (window.consoleEl) {
window.consoleEl.querySelector(
'.CodeMirror'
).style.fontSize = `${parseInt(prefs.fontSize, 10)}px`;
} */
document.documentElement.style.setProperty(
'--code-font-size',
`${parseInt(prefs.fontSize, 10)}px`
);
// Replace correct css file in LINK tags's href
if (prefs.editorTheme) {