aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/less
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-11-29 22:39:36 +0100
committerGitHub <noreply@github.com>2020-11-29 16:39:36 -0500
commite81edc02b9e93f625b9767386bbef6761f7bc291 (patch)
tree3fe3c4b12c92b70efce327d8e101c6a81263f089 /web_src/less
parentc4deb97ed105e923b922fae0ad8cc49327a13852 (diff)
downloadgitea-e81edc02b9e93f625b9767386bbef6761f7bc291.tar.gz
gitea-e81edc02b9e93f625b9767386bbef6761f7bc291.zip
Update JS dependencies and misc tweaks (#13741)
* Update JS dependencies and misc tweaks - Update all JS dependencies minus webpack - Adapt CodeMirrors styling to new CSS parent introduced by EasyMDE - Set eslint parser to latest and add new eslint 7.14 rule - Speed up npm install by disabling audit and fund checks - Move fomantic-ui to optional dependencies to further speed up npm - Enable syntax highlighting on GH for .eslintrc and .stylelintrc - Makefile cleanups * disable audit in npmrc * add missing dash Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'web_src/less')
-rw-r--r--web_src/less/_editor.less10
-rw-r--r--web_src/less/themes/theme-arc-green.less13
2 files changed, 9 insertions, 14 deletions
diff --git a/web_src/less/_editor.less b/web_src/less/_editor.less
index bb69960646..82a7153c7b 100644
--- a/web_src/less/_editor.less
+++ b/web_src/less/_editor.less
@@ -1,6 +1,13 @@
-.CodeMirror {
+.EasyMDEContainer .CodeMirror {
+ color: var(--color-input-text);
+ background-color: var(--color-input-background);
+ border-color: var(--color-secondary);
font: 14px var(--fonts-monospace);
+ .CodeMirror-cursor {
+ border-left: 1px solid var(--color-input-text);
+ }
+
&.cm-s-default {
border-radius: 3px;
padding: 0 !important;
@@ -27,6 +34,7 @@
.editor-toolbar {
opacity: 1 !important;
+ border-color: var(--color-secondary);
}
.editor-toolbar button:not(:hover) {
diff --git a/web_src/less/themes/theme-arc-green.less b/web_src/less/themes/theme-arc-green.less
index 49a86de99d..2d097a6553 100644
--- a/web_src/less/themes/theme-arc-green.less
+++ b/web_src/less/themes/theme-arc-green.less
@@ -1267,19 +1267,6 @@ a.blob-excerpt:hover {
/* code mirror dark theme */
.CodeMirror {
- color: #9daccc;
- background-color: #2e323e;
- border-color: var(--color-secondary);
- border-top: 0;
-
- div.CodeMirror-cursor {
- border-left: 1px solid var(--color-secondary-dark-6);
- }
-
- .CodeMirror-gutters {
- background-color: #2e323e;
- }
-
&.cm-s-default,
&.cm-s-paper {
.cm-property {