diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2016-11-07 20:39:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-07 20:39:20 +0800 |
commit | 1b962bac0bb00d6ce2bfd29fdeb1f95301e17b98 (patch) | |
tree | ddb90e369a3743b1ce5da2c03be57b77c9085b12 | |
parent | be5607e510f410ac82247c3b4b8a4bc6504e7cee (diff) | |
parent | ef5fc3c9599b5247448f3c2106599aa5c6fd665c (diff) | |
download | gitea-1b962bac0bb00d6ce2bfd29fdeb1f95301e17b98.tar.gz gitea-1b962bac0bb00d6ce2bfd29fdeb1f95301e17b98.zip |
Merge pull request #97 from andreynering/gitea/diff-colors
CSS: Stronger colors for diffs
-rw-r--r-- | public/css/index.css | 12 | ||||
-rw-r--r-- | public/less/_repository.less | 20 |
2 files changed, 4 insertions, 28 deletions
diff --git a/public/css/index.css b/public/css/index.css index 99a57c78e0..91bea62694 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -1989,17 +1989,9 @@ 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 { @@ -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 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 { diff --git a/public/less/_repository.less b/public/less/_repository.less index 9f51ebc4fb..07274880fd 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -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 { |