UNPKG

webgme-codeeditor

Version:

Code Editor Visualizer for webgme using CodeMirror

178 lines (162 loc) 4.01 kB
/** * This file is for any css that you may want for this visualizer. * * Ideally, you would use the scss file also provided in this directory * and then generate this file automatically from that. However, you can * simply write css if you prefer */ /** * @author kecso / https://github.com/kecso */ /** * @author kecso / https://github.com/kecso */ div.code-editor-dialog { width: 100%; height: 100%; } div.code-editor-dialog .compare-container { flex: 1; height: 50%; width: 100%; } div.code-editor-dialog .title-container { position: relative; width: 100%; height: auto; } div.code-editor-dialog .title-container .diff-title { display: inline-block; width: 47%; } div.code-editor-dialog .title-container .diff-title.title-divider { width: 6%; } div.code-editor-dialog .title-container .diff-title.saved-title { position: absolute; } div.code-editor-dialog .compare-container .codemirror-compare { width: 100%; height: 100%; } div.code-editor-dialog .compare-container .codemirror-compare .CodeMirror-merge { width: 100%; height: 100%; } div.code-editor-dialog .compare-container .codemirror-compare .CodeMirror-merge .CodeMirror-merge-pane { height: 100%; } div.code-editor-dialog .compare-container .codemirror-compare .CodeMirror-merge .CodeMirror-merge-pane .CodeMirror { width: 100%; height: 100%; } div.code-editor-dialog .compare-container .codemirror-compare .CodeMirror-merge .CodeMirror-merge-pane .CodeMirror .other-client:hover { border-left-width: 8px !important; margin-left: -4px !important; margin-right: -4px !important; cursor: default; } div.code-editor-dialog .compare-container .codemirror-compare.not-comparing { flex: 1; } div.code-editor-dialog .compare-container .codemirror-compare.not-comparing .CodeMirror-merge-pane { width: 100%; height: 100%; } div.code-editor-dialog .compare-container .codemirror-compare.not-comparing .CodeMirror-merge-pane.CodeMirror-merge-pane-rightmost { display: none; } div.code-editor-dialog .compare-container .codemirror-compare.not-comparing .CodeMirror-merge-gap { height: 100%; display: none; } div.code-editor-dialog .codeeditor-header form label { font-weight: lighter; } div.code-editor-dialog .codeeditor-header { height: auto; } #codeEditorHandle { width: 0.5%; height:100%; } #codeEditorLeft, #codeEditorRight { float:left; height:100%; padding: 0; display:flex; flex-direction: column; } #codeEditorControls { height: auto; display: table; padding: 5px; } .codeEditorToggle { padding: 5px; display: table-row; } .codeEditorToggle span { display: table-cell; } .codeEditorToggle input { display: table-cell; } .codeEditorSelector { padding: 5px; display: table-row; } .codeEditorSelector select { display: table-cell; width: 100%; } .codeEditorSelector span { display: table-cell; } #codeEditorScroll { flex: 1; overflow: auto; border-style: solid; border-color: lightgrey; border-width: 1px; } .code-editor-details { border: 1px solid #E1E1E1; border-radius: 5px; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); color: #363636; margin: 5px; padding: 1%; } .code-editor-details[open] {background: #E1E1E1;} .code-editor-summary { border-radius: 5px; cursor: pointer; font-size: 1.3em; font-weight: bold; margin: 0; padding: 8px 0; position: relative; width: 100%; } .code-editor-summary:hover, .code-editor-details[open] summary { background: #E1E1E1; } .code-editor-summary::-webkit-details-marker {display: none} .code-editor-summary:before { border-radius: 5px; content: "+"; color: #363636; display: block; float: left; font-size: 1.3em; font-weight: bold; margin: -2px 10px 0 10px; padding: 0; text-align: center; width: 20px; } .code-editor-details[open] summary:before { content: "-"; }