mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Make it possible to customize post highlight colour with css
This commit is contained in:
@@ -413,9 +413,11 @@ Discourse.TopicView.reopenClass({
|
||||
|
||||
$contents.data("orig-color", origColor);
|
||||
$contents
|
||||
.css({ backgroundColor: "#ffffcc" })
|
||||
.addClass('highlighted')
|
||||
.stop()
|
||||
.animate({ backgroundColor: origColor }, 2500);
|
||||
.animate({ backgroundColor: origColor }, 2500, 'swing', function(){
|
||||
$contents.removeClass('highlighted');
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -563,6 +563,9 @@
|
||||
margin: 0 0 5px 0;
|
||||
}
|
||||
}
|
||||
&.highlighted {
|
||||
background-color: $highlight;
|
||||
}
|
||||
}
|
||||
.contents.bottom-round {
|
||||
overflow: hidden;
|
||||
|
||||
Reference in New Issue
Block a user