summaryrefslogtreecommitdiffstats
path: root/public/less
diff options
context:
space:
mode:
authorManuel Kuhlmann <mkuhlmann@users.noreply.github.com>2017-01-05 02:07:43 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2017-01-05 09:07:43 +0800
commita5e07da8bedf5da47a4fec3dda6eaf2e54d69921 (patch)
treef833e5b61a3c19d820410f71840336b316090c75 /public/less
parentc5f0d4b1a0255a87a3f29f88e537701685822f61 (diff)
downloadgitea-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/less')
-rw-r--r--public/less/_repository.less50
1 files changed, 24 insertions, 26 deletions
diff --git a/public/less/_repository.less b/public/less/_repository.less
index 259aa26399..6a779a0867 100644
--- a/public/less/_repository.less
+++ b/public/less/_repository.less
@@ -902,44 +902,42 @@
}
tbody {
tr {
+ td.halfwidth {
+ width: 50%;
+ }
- &.tag-code {
- td, pre {
- background-color: #F0F0F0 !important;
- border-color: #D2CECE!important;
- padding-top: 4px;
- padding-bottom: 4px;
- }
- td.halfwidth {
- width: 50%;
- }
+ &.tag-code td, td.tag-code {
+ background-color: #F0F0F0 !important;
+ border-color: #D2CECE !important;
+ padding-top: 8px;
+ padding-bottom: 8px;
// td.selected-line, td.selected-line pre {
// background-color: #ffffdd !important;
// }
}
+
// &.same-code {
// td.selected-line, td.selected-line pre {
// background-color: #ffffdd !important;
// }
// }
- &.del-code {
- td, pre {
- background-color: #ffe0e0 !important;
- border-color: #f1c0c0 !important;
- }
- td.halfwidth {
- width: 50%;
- }
+ // 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;
}
- &.add-code {
- td, pre {
- background-color: #d6fcd6 !important;
- border-color: #c1e9c1 !important;
- }
- td.halfwidth {
- width: 50%;
- }
+
+ &.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 {