diff options
author | Manuel Kuhlmann <mkuhlmann@users.noreply.github.com> | 2017-01-05 02:07:43 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-05 09:07:43 +0800 |
commit | a5e07da8bedf5da47a4fec3dda6eaf2e54d69921 (patch) | |
tree | f833e5b61a3c19d820410f71840336b316090c75 /public/css | |
parent | c5f0d4b1a0255a87a3f29f88e537701685822f61 (diff) | |
download | gitea-a5e07da8bedf5da47a4fec3dda6eaf2e54d69921.tar.gz gitea-a5e07da8bedf5da47a4fec3dda6eaf2e54d69921.zip |
Fix diff split view coloring (#553) (#584)
Signed-off-by: Manuel Kuhlmann <manuel@mkuhlmann.org>
Diffstat (limited to 'public/css')
-rw-r--r-- | public/css/index.css | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/public/css/index.css b/public/css/index.css index d64c71ca2a..cbf0280fce 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -1982,32 +1982,34 @@ footer .ui.language .menu { border-right: 1px solid #d4d4d5; padding: 0 5px; } +.repository .diff-file-box .code-diff tbody tr td.halfwidth { + width: 50%; +} .repository .diff-file-box .code-diff tbody tr.tag-code td, -.repository .diff-file-box .code-diff tbody tr.tag-code pre { +.repository .diff-file-box .code-diff tbody tr td.tag-code { background-color: #F0F0F0 !important; - border-color: #D2CECE!important; - padding-top: 4px; - padding-bottom: 4px; + border-color: #D2CECE !important; + padding-top: 8px; + padding-bottom: 8px; } -.repository .diff-file-box .code-diff tbody tr.tag-code td.halfwidth { - width: 50%; +.repository .diff-file-box .code-diff tbody tr.add-code td:nth-child(1), +.repository .diff-file-box .code-diff tbody tr.add-code td:nth-child(2), +.repository .diff-file-box .code-diff tbody tr.del-code td:nth-child(3), +.repository .diff-file-box .code-diff tbody tr.del-code td:nth-child(4) { + background-color: #fafafa; } -.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 td:nth-child(1), +.repository .diff-file-box .code-diff tbody tr.del-code td:nth-child(2), +.repository .diff-file-box .code-diff tbody tr td.del-code { 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 { +.repository .diff-file-box .code-diff tbody tr.add-code td:nth-child(3), +.repository .diff-file-box .code-diff tbody tr.add-code td:nth-child(4), +.repository .diff-file-box .code-diff tbody tr td.add-code { background-color: #d6fcd6 !important; border-color: #c1e9c1 !important; } -.repository .diff-file-box .code-diff tbody tr.add-code td.halfwidth { - width: 50%; -} .repository .diff-file-box .code-diff tbody tr .removed-code { background-color: #ff9999; } |