Skip to content

Commit

Permalink
Merge pull request #97 from andreynering/gitea/diff-colors
Browse files Browse the repository at this point in the history
CSS: Stronger colors for diffs
  • Loading branch information
lunny authored Nov 7, 2016
2 parents be5607e + ef5fc3c commit 1b962ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 28 deletions.
12 changes: 2 additions & 10 deletions public/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -1989,25 +1989,17 @@ footer .ui.language .menu {
.repository .diff-file-box .code-diff tbody tr.tag-code td.halfwidth {
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 pre {
background-color: #ffecec !important;
background-color: #ffe0e0 !important;
border-color: #f1c0c0 !important;
}
.repository .diff-file-box .code-diff tbody tr.del-code td.halfwidth {
width: 50%;
}
.repository .diff-file-box .code-diff tbody tr.add-code td,
.repository .diff-file-box .code-diff tbody tr.add-code pre {
background-color: #eaffea !important;
background-color: #d6fcd6 !important;
border-color: #c1e9c1 !important;
}
.repository .diff-file-box .code-diff tbody tr.add-code td.halfwidth {
Expand Down
20 changes: 2 additions & 18 deletions public/less/_repository.less
Original file line number Diff line number Diff line change
Expand Up @@ -920,39 +920,23 @@
// }
// }
&.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 {
background-color: #ffecec !important;
background-color: #ffe0e0 !important;
border-color: #f1c0c0 !important;
}

td.halfwidth {
width: 50%;
}
// td.selected-line, td.selected-line pre {
// background-color: #ffffdd !important;
// }
}
&.add-code {
td, pre {
background-color: #eaffea !important;
background-color: #d6fcd6 !important;
border-color: #c1e9c1 !important;
}
td.halfwidth {
width: 50%;
}
// td.selected-line, td.selected-line pre {
// background-color: #ffffdd !important;
// }
}

.removed-code {
Expand Down

0 comments on commit 1b962ba

Please sign in to comment.