From 7cb270a0a27a59176eca6df5852d4575e019d6cf Mon Sep 17 00:00:00 2001 From: mattpass Date: Sun, 25 Jul 2021 11:34:54 +0100 Subject: [PATCH] editor.css added, some styles moved --- assets/css/editor.css | 15 +++++++++++++++ assets/js/icecoder.js | 2 +- editor.php | 16 ++++------------ 3 files changed, 20 insertions(+), 13 deletions(-) create mode 100644 assets/css/editor.css diff --git a/assets/css/editor.css b/assets/css/editor.css new file mode 100644 index 0000000..09e3191 --- /dev/null +++ b/assets/css/editor.css @@ -0,0 +1,15 @@ +.dataMessage {display: none; margin: 32px 43px 0 43px; padding: 10px; width: 500px; font-family: arial; font-size: 10px; color: #ddd; background: #333} + +.dataItemsContainer {margin: 20px 43px 32px 43px; font-family: arial; font-size: 10px; color: #ddd} +.dataItems {float: left; line-height: 14px} +.dataItems span {line-height: 21px} + +.heading {color: #888} +.diffGreen {background: #0b0 !important; color: #000 !important} +.diffRed {background: #800 !important; color: #fff !important} +.diffGrey {background: #444 !important; color: #fff !important} +.diffGreyLighter {background: #888 !important; color: #1d1d1b !important} +.diffNone {background: ''; color: ''} + +.resultsBar {position: absolute; display: none; width: 12px; height: 100%; top: 0; right: 0; overflow: hidden; pointer-events: none; z-index: 2} +.resultsBar .rBlock {position: absolute; display: block; width: 12px; background: rgba(128,128,128,0.3)} \ No newline at end of file diff --git a/assets/js/icecoder.js b/assets/js/icecoder.js index 562d901..46807a1 100644 --- a/assets/js/icecoder.js +++ b/assets/js/icecoder.js @@ -3115,7 +3115,7 @@ var ICEcoder = { if (0.5 <= avgBlockH) { // Add the DOM elem into our rBlocks string if (true === haveMatch) { - rBlocks += '
'; + rBlocks += '
'; } } }); diff --git a/editor.php b/editor.php index fddb85a..417ba43 100644 --- a/editor.php +++ b/editor.php @@ -84,26 +84,18 @@ if (false !== array_search($ICEcoder["theme"], ["base16-light", "chrome-devtools .CodeMirror-foldgutter-folded {background: #800; color: #ddd} .CodeMirror-foldgutter-folded:after {position: relative; top: -4px} h2 {color: rgba(0,198,255,0.7)} -.heading {color: #888} .cm-s-diff {left: 50%} -.diffGreen {background: #0b0 !important; color: #000 !important} -.diffRed {background: #800 !important; color: #fff !important} -.diffGrey {background: #444 !important; color: #fff !important} -.diffGreyLighter {background: #888 !important; color: #1d1d1b !important} -.diffNone {} -.info {font-size: 10px; color: rgba(0,198,255,0.7); cursor: help} -.dataItems {float: left; line-height: 14px} -.dataItems span {line-height: 21px} + - +
-
+


@@ -294,7 +286,7 @@ function createNewCMInstanceEvents(num, pane) { } - +