Fix post highlighting.

This commit is contained in:
Vikhyat Korrapati 2014-03-28 14:35:19 +05:30
parent e23e92647e
commit 49298ec327
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 we're meant to highlight a post
if ((highlightNumber > 1) && (highlightNumber === postNumber)) { if ((highlightNumber > 1) && (highlightNumber === postNumber)) {
this.set('controller.highlightOnInsert', null); this.set('controller.highlightOnInsert', null);
var $contents = $('.topic-body .contents', $post), var $contents = $('.topic-body', $post),
origColor = $contents.data('orig-color') || $contents.css('backgroundColor'); origColor = $contents.data('orig-color') || $contents.css('backgroundColor');
$contents.data("orig-color", origColor); $contents.data("orig-color", origColor);

View File

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