Make it possible to customize post highlight colour with css
This commit is contained in:
parent
8a96c4c0f6
commit
73e4d866d2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue