From 856d4088fbc7da5b5b583acc11ab674c4452b402 Mon Sep 17 00:00:00 2001 From: Steven Thonus Date: Wed, 9 Oct 2013 22:22:37 +0200 Subject: diff view on commit with parallel diff view TODO: fix comment forms to respect left and right columns --- app/assets/stylesheets/sections/commits.scss | 16 +++++++++++++++- app/assets/stylesheets/sections/notes.scss | 9 +++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) (limited to 'app/assets/stylesheets') diff --git a/app/assets/stylesheets/sections/commits.scss b/app/assets/stylesheets/sections/commits.scss index 769e95d591b..81f7ace66bf 100644 --- a/app/assets/stylesheets/sections/commits.scss +++ b/app/assets/stylesheets/sections/commits.scss @@ -70,7 +70,7 @@ font-size: 12px; } } - .old_line, .new_line { + .old_line, .new_line, .diff_line { margin: 0px; padding: 0px; border: none; @@ -92,6 +92,15 @@ text-decoration: underline; } } + &.new { + background: #CFD; + } + &.old { + background: #FDD; + } + } + .diff_line { + padding: 0; } .line_holder { &.old .old_line, @@ -122,6 +131,11 @@ color: #ccc; background: #fafafa; } + &.parallel { + display: table-cell; + overflow: hidden; + width: 50%; + } } } .image { diff --git a/app/assets/stylesheets/sections/notes.scss b/app/assets/stylesheets/sections/notes.scss index 94b9ca3b181..fc84d157755 100644 --- a/app/assets/stylesheets/sections/notes.scss +++ b/app/assets/stylesheets/sections/notes.scss @@ -131,6 +131,11 @@ ul.notes { text-align: center; padding: 10px 0; } + &.notes_line2 { + text-align: center; + padding: 10px 0; + border-left: 1px solid #ddd !important; + } &.notes_content { background-color: $white; border-width: 1px 0; @@ -358,3 +363,7 @@ ul.notes { .js-note-attachment-delete { display: none; } + +.parallel-comment { + padding: 6px; +} \ No newline at end of file -- cgit v1.2.1