mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
Fix unified diff view styling (#585)
Signed-off-by: Manuel Kuhlmann <manuel@mkuhlmann.org>
This commit is contained in:
parent
a5e07da8be
commit
eb9ce39bb7
3 changed files with 57 additions and 37 deletions
|
@ -922,24 +922,6 @@
|
|||
// }
|
||||
// }
|
||||
|
||||
// light gray for empty lines before / after commit
|
||||
&.add-code td:nth-child(1), &.add-code td:nth-child(2),
|
||||
&.del-code td:nth-child(3), &.del-code td:nth-child(4) {
|
||||
background-color: #fafafa;
|
||||
}
|
||||
|
||||
&.del-code td:nth-child(1), &.del-code td:nth-child(2),
|
||||
td.del-code {
|
||||
background-color: #ffe0e0 !important;
|
||||
border-color: #f1c0c0 !important;
|
||||
}
|
||||
|
||||
&.add-code td:nth-child(3), &.add-code td:nth-child(4),
|
||||
td.add-code{
|
||||
background-color: #d6fcd6 !important;
|
||||
border-color: #c1e9c1 !important;
|
||||
}
|
||||
|
||||
.removed-code {
|
||||
background-color: #ff9999;
|
||||
}
|
||||
|
@ -949,6 +931,36 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
.code-diff-unified tbody tr {
|
||||
&.del-code td {
|
||||
background-color: #ffe0e0 !important;
|
||||
border-color: #f1c0c0 !important;
|
||||
}
|
||||
|
||||
&.add-code td {
|
||||
background-color: #d6fcd6 !important;
|
||||
border-color: #c1e9c1 !important;
|
||||
}
|
||||
}
|
||||
.code-diff-split tbody tr {
|
||||
// light gray for empty lines before / after commit
|
||||
&.add-code td:nth-child(1), &.add-code td:nth-child(2),
|
||||
&.del-code td:nth-child(3), &.del-code td:nth-child(4) {
|
||||
background-color: #fafafa;
|
||||
}
|
||||
|
||||
&.del-code td:nth-child(1), &.del-code td:nth-child(2),
|
||||
td.del-code {
|
||||
background-color: #ffe0e0 !important;
|
||||
border-color: #f1c0c0 !important;
|
||||
}
|
||||
|
||||
&.add-code td:nth-child(3), &.add-code td:nth-child(4),
|
||||
td.add-code{
|
||||
background-color: #d6fcd6 !important;
|
||||
border-color: #c1e9c1 !important;
|
||||
}
|
||||
}
|
||||
&.file-content {
|
||||
img {
|
||||
max-width: 100%;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue