diff --git a/themes/pmahomme/css/codemirror.css.php b/themes/pmahomme/css/codemirror.css.php index 6a3fe36d64..98d850e4d9 100644 --- a/themes/pmahomme/css/codemirror.css.php +++ b/themes/pmahomme/css/codemirror.css.php @@ -113,6 +113,9 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;} color: black; font-family: monospace; height: em; + resize: vertical; + max-height: 600px; + min-height: 75px; } #inline_editor_outer .CodeMirror { @@ -122,11 +125,10 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;} .CodeMirror-scroll { /* 30px is the magic margin used to hide the element's real scrollbars */ /* See overflow: hidden in .CodeMirror */ - margin-bottom: -30px; margin-right: -30px; - padding-bottom: 30px; padding-right: 30px; - height: 100%; + height: 85% !important; outline: none; /* Prevent dragging from highlighting the element */ - position: relative; + resize: none; + overflow-y: auto; } .CodeMirror-sizer { position: relative; @@ -144,6 +146,7 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;} right: 0; top: 0; overflow-x: hidden; overflow-y: scroll; + display:none !important; } .CodeMirror-hscrollbar { bottom: 0; left: 0; @@ -161,6 +164,7 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;} position: absolute; left: 0; top: 0; padding-bottom: 30px; z-index: 3; + height: 100% !important; } .CodeMirror-gutter { white-space: normal;