Skip to content

Commit

Permalink
Improved codemirror style.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Aug 14, 2021
1 parent ffb83df commit afab138
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions static/css/codemirror.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
background-color: transparent;
position: absolute; left: 25px; top: 75px;
padding: 12px;
border: solid 1px transparent;
border: 0px;
border-radius: 5px;
line-height: 1.1em;
font-family: monospace;
Expand All @@ -18,7 +18,6 @@

.CodeMirror:hover {
background-color:rgba(0,0,0,.5);
border: solid 1px rgba(128,128,128,.4);
}

.CodeMirror-scroll {
Expand Down
4 changes: 2 additions & 2 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -796,8 +796,8 @@
isMaxHeight = ((resizer.currentHeight === resizer.maxHeight) || (resizer.currentHeight === resizer.minHeight));

resizer.isResizing = false;
resizer.maxWidth = window.innerWidth - 75;
resizer.maxHeight = window.innerHeight - 125;
resizer.maxWidth = window.innerWidth - 52;
resizer.maxHeight = window.innerHeight - 100;
if (isMaxWidth || (resizer.currentWidth > resizer.maxWidth)) {
resizer.currentWidth = resizer.maxWidth;
}
Expand Down

0 comments on commit afab138

Please sign in to comment.