From 4a15bcf2bdeb980780269b65ec53a21f4faff124 Mon Sep 17 00:00:00 2001 From: shylinux Date: Wed, 6 Jan 2021 11:15:42 +0800 Subject: [PATCH] opt color --- index.css | 1 - plugin/local/code/inner.css | 7 +++++++ plugin/local/code/vimer.js | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/index.css b/index.css index 29ae9109..04fc7642 100644 --- a/index.css +++ b/index.css @@ -295,7 +295,6 @@ body.white fieldset.Action fieldset.plugin legend:hover { } body.white fieldset.plugin table { - /* background-color:white; */ color:black; } body.white fieldset.plugin table tr { diff --git a/plugin/local/code/inner.css b/plugin/local/code/inner.css index 83b0edb3..7ed60585 100644 --- a/plugin/local/code/inner.css +++ b/plugin/local/code/inner.css @@ -19,12 +19,16 @@ fieldset.editor { fieldset.editor>div.output { background-color:#173d40ab; } +fieldset.editor>div.output>table>tr { + background-color:#99CCFF00; +} fieldset.editor>div.output>table>tr:hover { background-color:#99CCFF00; } fieldset.editor>div.output>table>tr>td { padding:0; overflow:auto; vertical-align:top; + background-color:#99CCFF00; } fieldset.editor>div.output>table>tr>td:hover { background-color:#99CCFF00; @@ -43,6 +47,9 @@ fieldset.editor>div.output div.profile { fieldset.editor>div.output table.content { font-size:16px; font-family:monospace; } +fieldset.editor>div.output table.content tr { + background-color:#99CCFF00; +} fieldset.editor>div.output table.content tr.select td.line { background-color:red; border:solid 1px yellow; diff --git a/plugin/local/code/vimer.js b/plugin/local/code/vimer.js index 79668a65..10eb86db 100644 --- a/plugin/local/code/vimer.js +++ b/plugin/local/code/vimer.js @@ -293,11 +293,11 @@ Volcanos("onkeymap", {help: "键盘交互", list: ["command", "normal", "insert" selectLine: function(can, line, item) { can.page.Modify(can, can.ui.editor, {className: "editor "+can.mode, value: item.innerText, style: { - height: item.offsetHeight, width: item.offsetWidth, + height: item.offsetHeight, width: can.Conf("width")-180, left: item.offsetLeft, top: item.offsetTop, }}) can.page.Modify(can, can.ui.command, {className: "command "+can.mode, value: item.innerText, style: { - height: item.offsetHeight, width: item.offsetWidth, + height: item.offsetHeight, width: can.Conf("width")-180, left: item.offsetLeft, top: item.offsetTop + can.ui.profile.offsetHeight-100, }}) },