diff options
author | Gary Wang <git@blumia.net> | 2023-10-08 18:07:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-08 10:07:55 +0000 |
commit | abe8fe352711601fbcd24bf4505f7e0b81a93c5d (patch) | |
tree | 88838415d5ea2109d127f880e6d451d6ce4ba11f /web_src | |
parent | 551dc8bb4ddcf784362d735cc78305e2e413d43f (diff) | |
download | gitea-abe8fe352711601fbcd24bf4505f7e0b81a93c5d.tar.gz gitea-abe8fe352711601fbcd24bf4505f7e0b81a93c5d.zip |
Add hover background to wiki list page (#27507)
This patch adds a hover background for the wiki row in wiki list page,
which make its behavior more close to repo's file list page.
This patch also make the wiki-git-entry visible on the row is hovered
instead of the cel, so users won't be confused since the 'grid' is not
visible from the web page.
After the patch: (when the wiki named 'Home' is hovered)
![image](https://github.com/go-gitea/gitea/assets/10095765/f6c67c41-ad54-4ce4-a3b1-8c7551396ce0)
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/css/repo/wiki.css | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web_src/css/repo/wiki.css b/web_src/css/repo/wiki.css index c0a2c0ddb8..84af37fa22 100644 --- a/web_src/css/repo/wiki.css +++ b/web_src/css/repo/wiki.css @@ -1,9 +1,13 @@ +.repository.wiki .wiki-pages-list tr:hover { + background-color: var(--color-hover); +} + .repository.wiki .wiki-pages-list .wiki-git-entry { margin-left: 10px; display: none; } -.repository.wiki .wiki-pages-list td:hover .wiki-git-entry { +.repository.wiki .wiki-pages-list tr:hover .wiki-git-entry { display: inline-block; } |