From d9b15fc17d6d7feb0119fb8c900a0ee4e6f09a3a Mon Sep 17 00:00:00 2001 From: Riyad Preukschas Date: Wed, 21 Nov 2012 23:18:12 +0100 Subject: [PATCH] Crop and rename the add diff note image --- app/assets/images/comment_add.png | Bin 781 -> 0 bytes app/assets/images/diff_note_add.png | Bin 0 -> 691 bytes app/assets/stylesheets/sections/notes.scss | 15 ++++++++------- 3 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 app/assets/images/comment_add.png create mode 100644 app/assets/images/diff_note_add.png diff --git a/app/assets/images/comment_add.png b/app/assets/images/comment_add.png deleted file mode 100644 index 836557a..0000000 Binary files a/app/assets/images/comment_add.png and /dev/null differ diff --git a/app/assets/images/diff_note_add.png b/app/assets/images/diff_note_add.png new file mode 100644 index 0000000..8ec15b7 Binary files /dev/null and b/app/assets/images/diff_note_add.png differ diff --git a/app/assets/stylesheets/sections/notes.scss b/app/assets/stylesheets/sections/notes.scss index a32ecf0..2535d9f 100644 --- a/app/assets/stylesheets/sections/notes.scss +++ b/app/assets/stylesheets/sections/notes.scss @@ -191,14 +191,14 @@ p.notify_controls span{ */ .diff_file tr.line_holder { .add-diff-note { - position:absolute; - margin-left:-70px; - margin-top:-10px; - z-index:10; - background: url("comment_add.png") no-repeat left 0; - width:32px; - height:32px; + background: url("diff_note_add.png") no-repeat left 0; + height: 22px; + margin-left: -65px; + position: absolute; + width: 22px; + z-index: 10; + // "hide" it by default opacity: 0.0; filter: alpha(opacity=0); @@ -208,6 +208,7 @@ p.notify_controls span{ } } + // "show" the icon also if we just hover somwhere over the line &:hover > td { background: $hover !important; -- libgit2 0.21.2