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:
parent
8d9f191195
commit
aee5ef0051
5 changed files with 53 additions and 53 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue