Fix different font sizes in editor and code

Fixes #705
This commit is contained in:
eyenseo 2018-06-19 22:28:23 +02:00
parent 2a55ff62f3
commit b452d5e0c7
No known key found for this signature in database
GPG Key ID: 1EC7DBD255F55CC5
2 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,8 @@ window.editors = [];
showPrintMargin: false, showPrintMargin: false,
showLineNumbers: false, showLineNumbers: false,
showGutter: false, showGutter: false,
maxLines: Infinity maxLines: Infinity,
fontSize: "0.875em" // please adjust the font size of the code in general.styl
}); });
editor.$blockScrolling = Infinity; editor.$blockScrolling = Infinity;

View File

@ -11,7 +11,7 @@ body {
code { code {
font-family: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace; font-family: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace;
font-size: 0.875em; font-size: 0.875em; // please adjust the ace font size accordingly in editor.js
} }
.left { .left {