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>
This commit is contained in:
silverwind 2021-04-01 00:19:53 +02:00 committed by GitHub
parent 8d9f191195
commit aee5ef0051
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 53 additions and 53 deletions

View file

@ -1107,15 +1107,6 @@
.segments {
box-shadow: none;
.show-outdated,
.hide-outdated {
display: block;
}
.label {
margin-left: 6px;
}
}
}
}
@ -1635,9 +1626,6 @@
}
.diff-file-box {
margin-top: 1rem;
margin-bottom: 1rem;
.header {
background-color: var(--color-box-header);
}

View file

@ -35,11 +35,15 @@
&:not(.top) {
margin-bottom: .5em;
}
}
.show-outdated,
.hide-outdated {
display: block;
margin-left: auto;
.show-outdated,
.hide-outdated {
display: block !important;
user-select: none !important;
&:hover {
text-decoration: underline;
}
}