summaryrefslogtreecommitdiffstats
path: root/web_src/css/repository.css
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-05-03 05:15:52 +0200
committerGitHub <noreply@github.com>2023-05-02 23:15:52 -0400
commit3ae997614ad4125d0ef40a528157dba01522c8e0 (patch)
tree6a6b06cf1fbd7a7cae4a981674d7eb59072ea47b /web_src/css/repository.css
parent3362620ee327d48cd9ef80ec6382b84773eb1b34 (diff)
downloadgitea-3ae997614ad4125d0ef40a528157dba01522c8e0.tar.gz
gitea-3ae997614ad4125d0ef40a528157dba01522c8e0.zip
Enhance stylelint rule config, remove dead CSS (#24472)
Make this stylelint rule match on more properties. The dead CSS relates to the navbar, which currently has classes: ``` ui top secondary stackable main menu following bar light ``` Which means `.following.bar .top.menu` can never match, so remove this dead CSS as well as inactive `z-index` and `left` on it. Commits table striping becomes more visible on dark theme, but I don't think it's worth introducing a new color until https://github.com/go-gitea/gitea/pull/24423 is ready, which would have to remove it again: <img width="668" alt="Screenshot 2023-05-01 at 18 41 49" src="https://user-images.githubusercontent.com/115237/235489873-6b272899-1d78-443a-872c-ee7731c269f9.png"> <img width="680" alt="Screenshot 2023-05-01 at 18 41 41" src="https://user-images.githubusercontent.com/115237/235489878-1b9468af-c74f-48a6-a469-9eba57cfcb4d.png">
Diffstat (limited to 'web_src/css/repository.css')
-rw-r--r--web_src/css/repository.css2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/css/repository.css b/web_src/css/repository.css
index 32ff51c920..5b32fbb95e 100644
--- a/web_src/css/repository.css
+++ b/web_src/css/repository.css
@@ -1359,7 +1359,7 @@
}
.repository #commits-table.ui.basic.striped.table tbody tr:nth-child(2n) {
- background-color: rgba(0, 0, 0, 0.02) !important;
+ background-color: var(--color-light) !important;
}
.repository #commits-table td.sha .sha.label,