From 96f3aea23a53fdb28883c0c515bf9278352b2604 Mon Sep 17 00:00:00 2001 From: Gk0Wk Date: Thu, 26 Aug 2021 20:43:35 +0800 Subject: [PATCH] Fix a problem that may cause the hint list to be coverd by tiddler. --- README.md | 4 +--- README_en.md | 4 +--- src/style.css | 5 +++++ src/style.min.css | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index cb6846b..9c42d47 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,6 @@ Adds Syntax Highlighting for TiddlyWiki5 tiddlers (`text/vnd.tiddlywiki`) to the --- -[TOC] - ## 插件说明 增加 [CodeMirror](http://codemirror.net) 对TiddlyWiki5语法高亮的支持,所有MIME类型留空或者为`text/vnd.tiddlywiki`的tiddler都会有高亮。同时支持像`VSCode`那样在打字时实时进行代码补全提示(目前仅实现了WikiLink补全),且**不需要**用`Ctrl+Space`激活。 @@ -18,7 +16,7 @@ Adds Syntax Highlighting for TiddlyWiki5 tiddlers (`text/vnd.tiddlywiki`) to the ## 安装&编译 -请首先安装最新版CodeMirror主插件和CodeMirror XML子插件(不然会报错)。 +请首先安装最新版`CodeMirror`主插件、`CodeMirror Mode XML`子插件和`CodeMirror Autocomplete`子插件(不然会报错)。 直接去[Release](https://github.com/Gk0Wk/CodeMirror-Mode-TiddlyWiki5/releases)下载`CodeMirrorModeTiddlyWiki5-X.X.X.json`,然后将其拖拽到你的TiddlyWiki中,或者在TiddlyWiki中导入之。 diff --git a/README_en.md b/README_en.md index 463225f..a773b96 100644 --- a/README_en.md +++ b/README_en.md @@ -8,8 +8,6 @@ Adds Syntax Highlighting for TiddlyWiki5 tiddlers (`text/vnd.tiddlywiki`) to the --- -[TOC] - ## Plugin description Add [CodeMirror](http://codemirror.net) support for TiddlyWiki5 syntax highlighting, all tiddlers with MIME type left blank or `text/vnd.tiddlywiki` will be highlighted. Also supports real-time code completion hints like `VSCode` while typing (currently only WikiLink completion is implemented) and **no need** to activate with `Ctrl+Space`. @@ -18,7 +16,7 @@ Plugin is still under development, if you have any suggestions or bugs, please d ## Installation & Compilation -First install the latest version of CodeMirror main plugin and CodeMirror XML sub-plugin (otherwise it will report an error). +First install the latest version of `CodeMirror` main plugin, `CodeMirror Mode XML` sub-plugin and `CodeMirror Autocomplete` sub-plugin (otherwise it will report an error). Go directly to [Release](https://github.com/Gk0Wk/CodeMirror-Mode-TiddlyWiki5/releases) and download `CodeMirrorModeTiddlyWiki5-X.X.X.json`, then drag and drop it into your TiddlyWiki, or import it in TiddlyWiki. diff --git a/src/style.css b/src/style.css index fde5bf7..53090ac 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,8 @@ +.CodeMirror-hints { + /* 以免提示框被压在tiddler下面 */ + z-index: 999999999999 !important; +} + span.cm-underlined { text-decoration-line: underline; } diff --git a/src/style.min.css b/src/style.min.css index 885529f..e43606e 100644 --- a/src/style.min.css +++ b/src/style.min.css @@ -1 +1 @@ -span.cm-underlined{text-decoration-line:underline}span.cm-superscript{vertical-align:super;font-size:.7em;line-height:.1em}span.cm-subscript{font-size:.7em;line-height:.5}span.cm-quote{font-style:italic;padding-left:.6em;border-left:#444 solid .2em}span.cm-h1{font-weight:700;font-size:1.383em;line-height:1.802em}span.cm-h2{font-weight:600;font-size:1.296em;line-height:1.602em}span.cm-h3{font-weight:500;font-size:1.215em;line-height:1.424em}span.cm-h4{font-weight:400;font-size:1.138em;line-height:1.266em}span.cm-h5{font-weight:400;font-size:1.067em;line-height:1.125em}span.cm-h6{font-weight:400}span.link{font-weight:600}span.cm-internallink{text-decoration:none} \ No newline at end of file +.CodeMirror-hints{z-index:999999999999!important}span.cm-underlined{text-decoration-line:underline}span.cm-superscript{vertical-align:super;font-size:.7em;line-height:.1em}span.cm-subscript{font-size:.7em;line-height:.5}span.cm-quote{font-style:italic;padding-left:.6em;border-left:#444 solid .2em}span.cm-h1{font-weight:700;font-size:1.383em;line-height:1.802em}span.cm-h2{font-weight:600;font-size:1.296em;line-height:1.602em}span.cm-h3{font-weight:500;font-size:1.215em;line-height:1.424em}span.cm-h4{font-weight:400;font-size:1.138em;line-height:1.266em}span.cm-h5{font-weight:400;font-size:1.067em;line-height:1.125em}span.cm-h6{font-weight:400}span.link{font-weight:600}span.cm-internallink{text-decoration:none} \ No newline at end of file