Update diff colors and icons
This commit is contained in:
parent
c80c1da780
commit
de63de18d7
|
|
@ -160,14 +160,12 @@ $gl-btn-active-gradient: inset 0 0 4px $gl-btn-active-background;
|
|||
*/
|
||||
$added: #63c363;
|
||||
$deleted: #f77;
|
||||
$line-added: #ebfdf0;
|
||||
$line-added-dark: #a6f3a6;
|
||||
$line-removed: #ffecec;
|
||||
$line-removed-dark: #f8cbcb;
|
||||
$line-number-old: #fdd;
|
||||
$line-number-old-border: #f1c0c0;
|
||||
$line-number-new: #dbffdb;
|
||||
$line-number-new-border: #c1e9c1;
|
||||
$line-added: #ecfdf0;
|
||||
$line-added-dark: #c7f0d2;
|
||||
$line-removed: #fbe9eb;
|
||||
$line-removed-dark: #fac5cd;
|
||||
$line-number-old: #f9d7dc;
|
||||
$line-number-new: #ddfbe6;
|
||||
$match-line: #fafafa;
|
||||
/*
|
||||
* Fonts
|
||||
|
|
|
|||
|
|
@ -24,12 +24,12 @@
|
|||
.diff-line-num {
|
||||
&.old {
|
||||
background-color: $line-number-old;
|
||||
border-color: $line-number-old-border;
|
||||
border-color: $line-removed-dark;
|
||||
}
|
||||
|
||||
&.new {
|
||||
background-color: $line-number-new;
|
||||
border-color: $line-number-new-border;
|
||||
border-color: $line-added-dark;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -212,6 +212,21 @@ ul.notes {
|
|||
top: 0;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.js-note-delete {
|
||||
&:hover {
|
||||
@extend .cgray;
|
||||
&.danger { @extend .cred; }
|
||||
}
|
||||
}
|
||||
|
||||
.js-note-edit {
|
||||
i {
|
||||
&:hover {
|
||||
color: $gl-link-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.discussion-toggle-button {
|
||||
|
|
|
|||
|
|
@ -69,7 +69,8 @@ module NotesHelper
|
|||
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',
|
||||
data: data
|
||||
end
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
.file-actions.hidden-xs
|
||||
- if blob_text_viewable?(blob)
|
||||
= 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)
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@
|
|||
%span.note-role
|
||||
= access
|
||||
= link_to '#', title: 'Edit comment', class: 'note-action-button js-note-edit' do
|
||||
= icon('pencil-square-o')
|
||||
= 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
|
||||
= 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 danger' do
|
||||
= icon('trash-o')
|
||||
.note-body{class: note_editable?(note) ? 'js-task-list-container' : ''}
|
||||
.note-text
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ describe 'Comments', feature: true do
|
|||
is_expected.to have_content('Another comment on line 10')
|
||||
is_expected.to have_css('.notes_holder')
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue