aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/less/_review.less
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-04-01 00:19:53 +0200
committerGitHub <noreply@github.com>2021-03-31 18:19:53 -0400
commitaee5ef00519cd199992bb7dc02b4fa22a392869e (patch)
treed578e2b5735257bef4c40da37692b9c81ae331ec /web_src/less/_review.less
parent8d9f191195eaafd6b697683cd5f8c89c3f6e7cf6 (diff)
downloadgitea-aee5ef00519cd199992bb7dc02b4fa22a392869e.tar.gz
gitea-aee5ef00519cd199992bb7dc02b4fa22a392869e.zip
Diff box fixes (#15214)
- Fix misaligned "Show Outdated" buttons via flexbox - Add hover effect to "Show Outdated" buttons - Remove overreaching margin from selector .diff-file-box and handle cases individually. Fixes: https://github.com/go-gitea/gitea/issues/15097 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'web_src/less/_review.less')
-rw-r--r--web_src/less/_review.less12
1 files changed, 8 insertions, 4 deletions
diff --git a/web_src/less/_review.less b/web_src/less/_review.less
index 059e3d0ff5..f6f5df20a2 100644
--- a/web_src/less/_review.less
+++ b/web_src/less/_review.less
@@ -35,11 +35,15 @@
&:not(.top) {
margin-bottom: .5em;
}
+}
+
+.show-outdated,
+.hide-outdated {
+ display: block !important;
+ user-select: none !important;
- .show-outdated,
- .hide-outdated {
- display: block;
- margin-left: auto;
+ &:hover {
+ text-decoration: underline;
}
}