From 29a0d993b087742f017804e87d547d227602678f Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Fri, 19 Sep 2014 16:16:45 +0200 Subject: Factor .add-diff-note active state. --- app/assets/stylesheets/sections/notes.scss | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/sections/notes.scss b/app/assets/stylesheets/sections/notes.scss index 8df25f53762..1796331fe62 100644 --- a/app/assets/stylesheets/sections/notes.scss +++ b/app/assets/stylesheets/sections/notes.scss @@ -143,6 +143,11 @@ ul.notes { */ .diff-file tr.line_holder { + @mixin show-add-diff-note { + filter: alpha(opacity=100); + opacity: 1.0; + } + .add-diff-note { background: image-url("diff_note_add.png") no-repeat left 0; height: 22px; @@ -156,8 +161,7 @@ ul.notes { filter: alpha(opacity=0); &:hover { - opacity: 1.0; - filter: alpha(opacity=100); + @include show-add-diff-note; } } @@ -166,8 +170,7 @@ ul.notes { background: $hover !important; .add-diff-note { - opacity: 1.0; - filter: alpha(opacity=100); + @include show-add-diff-note; } } } -- cgit v1.2.1