Browse Source

Better diff colors

Volodymyr Tkach 2 years ago
parent
commit
4964cd858b
1 changed files with 19 additions and 2 deletions
  1. 19 2
      gogs/public/css/dark-gogs.dev.css

+ 19 - 2
gogs/public/css/dark-gogs.dev.css

@@ -597,12 +597,12 @@ span.ui.basic.yellow.label {
 }
 
 .tag-code.nl-0.ol-0>.lines-code>pre>code {
-	color: #0d1117 !important;
+	color: #fff !important;
 }
 
 .repository .diff-file-box .code-diff tbody tr.tag-code td,
 .tag-code {
-	background-color: #454545 !important;
+	background-color: #31363b !important;
 }
 
 .repository .diff-file-box .code-diff tbody tr .removed-code {
@@ -1116,3 +1116,20 @@ label[for=org_name] {
 .ui.table tr td {
 	border-top: 1px solid rgb(50, 56, 62);
 }
+
+.repository .diff-file-box .file-body.file-code .lines-num-old,
+.repository .diff-file-box .code-diff .lines-num {
+	border-right: 1px solid #4b4b4b;
+}
+
+.repository .diff-file-box .code-diff tbody tr.tag-code td {
+	border-color: #4b4b4b !important;
+}
+
+.repository .diff-file-box .code-diff tbody tr.del-code td {
+	border-color: #6d3030 !important;
+}
+
+.repository .diff-file-box .code-diff tbody tr.add-code td {
+	border-color: #4f6d30 !important;
+}