Skip to content

Commit

Permalink
Merge pull request #710 from Eyenseo/master
Browse files Browse the repository at this point in the history
Fix different font sizes in editor and code
  • Loading branch information
mattico authored Jul 24, 2018
2 parents 7c8dd50 + b452d5e commit b88abb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/theme/playpen_editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ window.editors = [];
showPrintMargin: false,
showLineNumbers: false,
showGutter: false,
maxLines: Infinity
maxLines: Infinity,
fontSize: "0.875em" // please adjust the font size of the code in general.styl
});

editor.$blockScrolling = Infinity;
Expand Down
2 changes: 1 addition & 1 deletion src/theme/stylus/general.styl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ body {

code {
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 {
Expand Down

0 comments on commit b88abb1

Please sign in to comment.