mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 16:24:55 +00:00
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.data("orig-color", origColor);
|
||||||
$contents
|
$contents
|
||||||
.css({ backgroundColor: "#ffffcc" })
|
.addClass('highlighted')
|
||||||
.stop()
|
.stop()
|
||||||
.animate({ backgroundColor: origColor }, 2500);
|
.animate({ backgroundColor: origColor }, 2500, 'swing', function(){
|
||||||
|
$contents.removeClass('highlighted');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -563,6 +563,9 @@
|
|||||||
margin: 0 0 5px 0;
|
margin: 0 0 5px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
&.highlighted {
|
||||||
|
background-color: $highlight;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.contents.bottom-round {
|
.contents.bottom-round {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user