Skip to content

The Unified and Autonomous Development Platform

Minor css improvements

Robin Shen8749cc80ea9f
diff --git a/readme.md b/readme.md
index fa35080b42..473f736a87 100644
--- a/readme.md
+++ b/readme.md
@@ -102,7 +102,7 @@ OneDev tracks your cursor in edit window and scrolls the preview window as neces
## Project Hierarchy to Facilitate Setting Inheritance
-Organization is idea for public service. However for self-hosted internal use, we feel that a hierarchical structure is more practical to organize projects. Child projects can inherit settings from parent project and can selectively override some of them if necessary. This reduces a lot of overhead to manage a lot of projects in the company.
+Organization is ideal for public service. However for self-hosted internal use, we feel that a hierarchical structure is more practical to organize projects. Child projects can inherit settings from parent project and can selectively override some of them if necessary. This reduces a lot of overhead to manage a lot of projects in the company.
----
diff --git a/server-core/src/main/java/io/onedev/server/web/asset/codemirror/theme/eclipse.css b/server-core/src/main/java/io/onedev/server/web/asset/codemirror/theme/eclipse.css
index e76f499bc5..12f7beed41 100644
--- a/server-core/src/main/java/io/onedev/server/web/asset/codemirror/theme/eclipse.css
+++ b/server-core/src/main/java/io/onedev/server/web/asset/codemirror/theme/eclipse.css
@@ -47,7 +47,7 @@
.dark-mode .cm-s-eclipse.CodeMirror {background: var(--dark-mode-dark); color: #e9e9e9;}
.dark-mode .cm-s-eclipse .CodeMirror-cursor {border-left: 1px solid #bebebe;}
.dark-mode .CodeMirror-activeline-background {background: var(--gray-dark);}
-.dark-mode .cm-s-eclipse div.CodeMirror-selected {background: #1e496c}
+.dark-mode .cm-s-eclipse div.CodeMirror-selected {background: #1e496c !important;}
.dark-mode .cm-s-eclipse .CodeMirror-gutters {background: var(--dark-mode-dark); border-right: 1px solid var(--dark-mode-lighter-dark); color: #606366}
.dark-mode .cm-s-eclipse span.cm-builtin {color: #A9B7C6;}
-.dark-mode .cm-s-eclipse .CodeMirror-matchingbracket {background-color: #3b514d; color: yellow !important;}
+.dark-mode .cm-s-eclipse .CodeMirror-matchingbracket {background-color: #3b514d; color: var(--light) !important;}
diff --git a/server-core/src/main/java/io/onedev/server/web/component/diff/blob/text/text-diff.css b/server-core/src/main/java/io/onedev/server/web/component/diff/blob/text/text-diff.css
index ac2f404782..70811f0da6 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/diff/blob/text/text-diff.css
+++ b/server-core/src/main/java/io/onedev/server/web/component/diff/blob/text/text-diff.css
@@ -283,3 +283,6 @@
margin-left: 1rem;
}
+.dark-mode ::selection {
+ background-color: #1e496c;
+}