mirror of
1
Fork 0

Merge pull request #97 from andreynering/gitea/diff-colors

CSS: Stronger colors for diffs
This commit is contained in:
Lunny Xiao 2016-11-07 20:39:20 +08:00 committed by GitHub
commit 1b962bac0b
2 changed files with 4 additions and 28 deletions

View File

@ -1989,17 +1989,9 @@ footer .ui.language .menu {
.repository .diff-file-box .code-diff tbody tr.tag-code td.halfwidth { .repository .diff-file-box .code-diff tbody tr.tag-code td.halfwidth {
width: 50%; width: 50%;
} }
.repository .diff-file-box .code-diff tbody tr.del-code td.add-code {
background-color: #eaffea !important;
border-color: #c1e9c1 !important;
}
.repository .diff-file-box .code-diff tbody tr.del-code td.add-code pre {
background-color: #eaffea !important;
border-color: #c1e9c1 !important;
}
.repository .diff-file-box .code-diff tbody tr.del-code td, .repository .diff-file-box .code-diff tbody tr.del-code td,
.repository .diff-file-box .code-diff tbody tr.del-code pre { .repository .diff-file-box .code-diff tbody tr.del-code pre {
background-color: #ffecec !important; background-color: #ffe0e0 !important;
border-color: #f1c0c0 !important; border-color: #f1c0c0 !important;
} }
.repository .diff-file-box .code-diff tbody tr.del-code td.halfwidth { .repository .diff-file-box .code-diff tbody tr.del-code td.halfwidth {
@ -2007,7 +1999,7 @@ footer .ui.language .menu {
} }
.repository .diff-file-box .code-diff tbody tr.add-code td, .repository .diff-file-box .code-diff tbody tr.add-code td,
.repository .diff-file-box .code-diff tbody tr.add-code pre { .repository .diff-file-box .code-diff tbody tr.add-code pre {
background-color: #eaffea !important; background-color: #d6fcd6 !important;
border-color: #c1e9c1 !important; border-color: #c1e9c1 !important;
} }
.repository .diff-file-box .code-diff tbody tr.add-code td.halfwidth { .repository .diff-file-box .code-diff tbody tr.add-code td.halfwidth {

View File

@ -920,39 +920,23 @@
// } // }
// } // }
&.del-code { &.del-code {
// Duplicate here to enforce add code color.
td.add-code {
background-color: #eaffea !important;
border-color: #c1e9c1 !important;
pre {
background-color: #eaffea !important;
border-color: #c1e9c1 !important;
}
}
td, pre { td, pre {
background-color: #ffecec !important; background-color: #ffe0e0 !important;
border-color: #f1c0c0 !important; border-color: #f1c0c0 !important;
} }
td.halfwidth { td.halfwidth {
width: 50%; width: 50%;
} }
// td.selected-line, td.selected-line pre {
// background-color: #ffffdd !important;
// }
} }
&.add-code { &.add-code {
td, pre { td, pre {
background-color: #eaffea !important; background-color: #d6fcd6 !important;
border-color: #c1e9c1 !important; border-color: #c1e9c1 !important;
} }
td.halfwidth { td.halfwidth {
width: 50%; width: 50%;
} }
// td.selected-line, td.selected-line pre {
// background-color: #ffffdd !important;
// }
} }
.removed-code { .removed-code {