Make it possible to customize post highlight colour with css

This commit is contained in:
Neil Lalonde 2013-08-15 16:17:37 -04:00
parent 8a96c4c0f6
commit 73e4d866d2
2 changed files with 7 additions and 2 deletions

View File

@ -413,9 +413,11 @@ Discourse.TopicView.reopenClass({
$contents.data("orig-color", origColor); $contents.data("orig-color", origColor);
$contents $contents
.css({ backgroundColor: "#ffffcc" }) .addClass('highlighted')
.stop() .stop()
.animate({ backgroundColor: origColor }, 2500); .animate({ backgroundColor: origColor }, 2500, 'swing', function(){
$contents.removeClass('highlighted');
});
} }
} }
}); });

View File

@ -563,6 +563,9 @@
margin: 0 0 5px 0; margin: 0 0 5px 0;
} }
} }
&.highlighted {
background-color: $highlight;
}
} }
.contents.bottom-round { .contents.bottom-round {
overflow: hidden; overflow: hidden;