Browse Source

fix diff view, add screenshot

Lukas Fülling 8 months ago
parent
commit
21633263d8
6 changed files with 17 additions and 9 deletions
  1. 1 1
      README.md
  2. 8 4
      public/css/gogs.min.css
  3. 0 0
      public/css/gogs.min.css.map
  4. 4 0
      public/less/_admin.less
  5. 4 4
      public/less/_repository.less
  6. BIN
      screenshot.png

+ 1 - 1
README.md

@@ -2,7 +2,7 @@
 
 [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/gogs/gogs/Go?logo=github&style=for-the-badge)](https://github.com/gogs/gogs/actions?query=workflow%3AGo) [![Discord](https://img.shields.io/discord/382595433060499458.svg?style=for-the-badge&logo=discord)](https://discord.gg/9aqdHU7) [![Sourcegraph](https://img.shields.io/badge/view%20on-Sourcegraph-brightgreen.svg?style=for-the-badge&logo=sourcegraph)](https://sourcegraph.com/github.com/gogs/gogs)
 
-![Repository](https://gogs.io/img/screenshots/2.png)
+![Repository](screenshot.png)
 
 [简体中文](README_ZH.md)
 

+ 8 - 4
public/css/gogs.min.css

@@ -3738,7 +3738,7 @@ a:hover,
 .repository.file.list #file-content .plain-text {
   font-size: 14px;
   padding: 15px 15px 10px 15px;
-  font-family: Consolas;
+  font-family: "Fira Code", Consolas, monospace;
 }
 .repository.file.list #file-content .code-view * {
   font-size: 12px;
@@ -3755,7 +3755,7 @@ a:hover,
   vertical-align: top;
   text-align: right;
   color: #999;
-  background: #f5f5f5;
+  background: rgba(255, 255, 255, 0.2);
   width: 42px;
 }
 .repository.file.list #file-content .code-view .lines-num span {
@@ -3775,7 +3775,7 @@ a:hover,
 .repository.file.list #file-content .code-view .lines-code ol,
 .repository.file.list #file-content .code-view .lines-num .hljs,
 .repository.file.list #file-content .code-view .lines-code .hljs {
-  background-color: white;
+  background-color: transparent;
   margin: 0;
   padding: 0 !important;
 }
@@ -3795,7 +3795,7 @@ a:hover,
 .repository.file.list #file-content .code-view .lines-code ol li.active,
 .repository.file.list #file-content .code-view .lines-num .hljs li.active,
 .repository.file.list #file-content .code-view .lines-code .hljs li.active {
-  background: #ffffdd;
+  background: rgba(255, 255, 255, 0.1);
 }
 .repository.file.list .sidebar {
   padding-left: 0;
@@ -5399,6 +5399,10 @@ a:hover,
   padding: 0;
   font-size: 13px;
 }
+.admin .table.segment:nth-child(3) {
+  z-index: 300000000000 !important;
+  /* Prevent dropdown from being hidden */
+}
 .admin .table.segment:not(.striped) {
   padding-top: 5px;
 }

File diff suppressed because it is too large
+ 0 - 0
public/css/gogs.min.css.map


+ 4 - 0
public/less/_admin.less

@@ -6,6 +6,10 @@
     padding: 0;
     font-size: 13px;
 
+    &:nth-child(3) {
+      z-index: 300000000000 !important; /* Prevent dropdown from being hidden */
+    }
+
     &:not(.striped) {
       padding-top: 5px;
 

+ 4 - 4
public/less/_repository.less

@@ -481,7 +481,7 @@
       .plain-text {
         font-size: 14px;
         padding: 15px 15px 10px 15px;
-        font-family: Consolas;
+        font-family: "Fira Code", Consolas, monospace;
       }
 
       .code-view {
@@ -505,7 +505,7 @@
           vertical-align: top;
           text-align: right;
           color: #999;
-          background: #f5f5f5;
+          background: rgba(255,255,255,0.2);
           width: 42px;
 
           span {
@@ -524,7 +524,7 @@
           pre,
           ol,
           .hljs {
-            background-color: white;
+            background-color: transparent;
             margin: 0;
             padding: 0 !important;
 
@@ -534,7 +534,7 @@
               padding-left: 5px;
 
               &.active {
-                background: #ffffdd;
+                background: rgba(255,255,255,0.1);
               }
             }
           }

BIN
screenshot.png


Some files were not shown because too many files changed in this diff