summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-09-23 21:31:56 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-09-23 21:31:56 +0300
commit66955bba386fcd3f7a2159b911f1fcc8dfbff45a (patch)
tree52d9a403642291cc9075851f7728c90ff4bb5d6e /app
parent6e328d5590ccb508c9e9c739a983b83b156d4cd5 (diff)
parent29a0d993b087742f017804e87d547d227602678f (diff)
downloadgitlab-ce-66955bba386fcd3f7a2159b911f1fcc8dfbff45a.tar.gz
Merge pull request #7795 from cirosantilli/factor-notes-css
Factor .add-diff-note active state.
Diffstat (limited to 'app')
-rw-r--r--app/assets/stylesheets/sections/notes.scss11
1 files changed, 7 insertions, 4 deletions
diff --git a/app/assets/stylesheets/sections/notes.scss b/app/assets/stylesheets/sections/notes.scss
index 50a24c2c4d8..d6a0ff3a735 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;
border: none;
@@ -157,8 +162,7 @@ ul.notes {
filter: alpha(opacity=0);
&:hover {
- opacity: 1.0;
- filter: alpha(opacity=100);
+ @include show-add-diff-note;
}
}
@@ -167,8 +171,7 @@ ul.notes {
background: $hover !important;
.add-diff-note {
- opacity: 1.0;
- filter: alpha(opacity=100);
+ @include show-add-diff-note;
}
}
}