Merge pull request #2201 from vikhyat/fix-post-highlight

Fix post highlighting
This commit is contained in:
Régis Hanol 2014-03-28 15:07:49 +01:00
commit 93b3cc1e15
2 changed files with 6 additions and 8 deletions

View File

@ -209,7 +209,7 @@ Discourse.PostView = Discourse.GroupedView.extend(Ember.Evented, {
// If we're meant to highlight a post
if ((highlightNumber > 1) && (highlightNumber === postNumber)) {
this.set('controller.highlightOnInsert', null);
var $contents = $('.topic-body .contents', $post),
var $contents = $('.topic-body', $post),
origColor = $contents.data('orig-color') || $contents.css('backgroundColor');
$contents.data("orig-color", origColor);

View File

@ -596,8 +596,7 @@ iframe {
.moderator {
.topic-body {
background-color: $highlight_background_color;
border-bottom: 10px solid $highlight_background_color;
background-color: $highlight_background_color;
}
}
@ -762,8 +761,8 @@ blockquote { /* solo quotes */
float: left;
position: relative;
padding: 10px 0 15px 0;
.highlighted {
background-color: $emphasis_background_color !important;
&.highlighted {
background-color: $emphasis_background_color;
}
img, svg {
max-width: 100%;
@ -771,9 +770,8 @@ blockquote { /* solo quotes */
}
.bottom-round.contents.regular {
-webkit-transition: background-color .25s linear;
transition: background-color .25s linear;
-webkit-transition: background-color .25s linear;
transition: background-color .25s linear;
}
.posts-wrapper {