summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-26 03:31:42 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-26 03:31:42 -0800
commitb51c2c81189c291c2af0fcd07a409731dbcb91ed (patch)
tree63a94dc7cec708dd5183842a9cd30e4b8b4b41ee /app/assets/stylesheets
parentc57180367c8a9e55beb378fc7d0fd3c1cc1497e5 (diff)
parent856d4088fbc7da5b5b583acc11ab674c4452b402 (diff)
downloadgitlab-ce-b51c2c81189c291c2af0fcd07a409731dbcb91ed.tar.gz
Merge pull request #5308 from Popl7/parallel-diffs-side-by-side
diff view on commit with parallel diff view
Diffstat (limited to 'app/assets/stylesheets')
-rw-r--r--app/assets/stylesheets/sections/commits.scss16
-rw-r--r--app/assets/stylesheets/sections/notes.scss9
2 files changed, 24 insertions, 1 deletions
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