mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 12:11:16 -05:00
Make it possible to customize post highlight colour with css
This commit is contained in:
parent
8a96c4c0f6
commit
73e4d866d2
2 changed files with 7 additions and 2 deletions
|
@ -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 a new issue