Commit de63de18 authored by Annabel Dunstone's avatar Annabel Dunstone

Update diff colors and icons

parent c80c1da7
...@@ -160,14 +160,12 @@ $gl-btn-active-gradient: inset 0 0 4px $gl-btn-active-background; ...@@ -160,14 +160,12 @@ $gl-btn-active-gradient: inset 0 0 4px $gl-btn-active-background;
*/ */
$added: #63c363; $added: #63c363;
$deleted: #f77; $deleted: #f77;
$line-added: #ebfdf0; $line-added: #ecfdf0;
$line-added-dark: #a6f3a6; $line-added-dark: #c7f0d2;
$line-removed: #ffecec; $line-removed: #fbe9eb;
$line-removed-dark: #f8cbcb; $line-removed-dark: #fac5cd;
$line-number-old: #fdd; $line-number-old: #f9d7dc;
$line-number-old-border: #f1c0c0; $line-number-new: #ddfbe6;
$line-number-new: #dbffdb;
$line-number-new-border: #c1e9c1;
$match-line: #fafafa; $match-line: #fafafa;
/* /*
* Fonts * Fonts
......
...@@ -24,12 +24,12 @@ ...@@ -24,12 +24,12 @@
.diff-line-num { .diff-line-num {
&.old { &.old {
background-color: $line-number-old; background-color: $line-number-old;
border-color: $line-number-old-border; border-color: $line-removed-dark;
} }
&.new { &.new {
background-color: $line-number-new; background-color: $line-number-new;
border-color: $line-number-new-border; border-color: $line-added-dark;
} }
} }
......
...@@ -212,6 +212,21 @@ ul.notes { ...@@ -212,6 +212,21 @@ ul.notes {
top: 0; top: 0;
font-size: 16px; font-size: 16px;
} }
.js-note-delete {
&:hover {
@extend .cgray;
&.danger { @extend .cred; }
}
}
.js-note-edit {
i {
&:hover {
color: $gl-link-color;
}
}
}
} }
.discussion-toggle-button { .discussion-toggle-button {
......
...@@ -69,7 +69,8 @@ module NotesHelper ...@@ -69,7 +69,8 @@ module NotesHelper
line_type: line_type line_type: line_type
} }
text_field_tag 'reply-field', nil, placeholder: 'Reply...', text_field_tag 'reply-field', nil,
placeholder: 'Reply...',
class: 'form-control note-reply-field js-discussion-reply-button', class: 'form-control note-reply-field js-discussion-reply-button',
data: data data: data
end end
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
.file-actions.hidden-xs .file-actions.hidden-xs
- if blob_text_viewable?(blob) - if blob_text_viewable?(blob)
= link_to '#', class: 'js-toggle-diff-comments btn active has-tooltip', title: "Toggle comments for this file" do = link_to '#', class: 'js-toggle-diff-comments btn active has-tooltip', title: "Toggle comments for this file" do
= icon('comments') = icon('comment')
\ \
- if editable_diff?(diff_file) - if editable_diff?(diff_file)
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
%span.note-role %span.note-role
= access = access
= link_to '#', title: 'Edit comment', class: 'note-action-button js-note-edit' do = link_to '#', title: 'Edit comment', class: 'note-action-button js-note-edit' do
= icon('pencil-square-o') = icon('pencil')
= link_to namespace_project_note_path(note.project.namespace, note.project, note), title: 'Remove comment', method: :delete, data: { confirm: 'Are you sure you want to remove this comment?' }, remote: true, class: 'note-action-button js-note-delete' do = link_to namespace_project_note_path(note.project.namespace, note.project, note), title: 'Remove comment', method: :delete, data: { confirm: 'Are you sure you want to remove this comment?' }, remote: true, class: 'note-action-button js-note-delete danger' do
= icon('trash-o') = icon('trash-o')
.note-body{class: note_editable?(note) ? 'js-task-list-container' : ''} .note-body{class: note_editable?(note) ? 'js-task-list-container' : ''}
.note-text .note-text
......
...@@ -210,7 +210,7 @@ describe 'Comments', feature: true do ...@@ -210,7 +210,7 @@ describe 'Comments', feature: true do
is_expected.to have_content('Another comment on line 10') is_expected.to have_content('Another comment on line 10')
is_expected.to have_css('.notes_holder') is_expected.to have_css('.notes_holder')
is_expected.to have_css('.notes_holder .note', count: 1) is_expected.to have_css('.notes_holder .note', count: 1)
is_expected.to have_button('Reply') is_expected.to have_css('.note-reply-field')
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment