1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-22 05:29:34 +01:00

Fix post-hover highlighting by adding a .post-hover class. Implement it in style.css.

The rest of our styles are going to be updated next.
This commit is contained in:
Marcin Łabanowski 2013-01-02 11:11:48 +01:00
parent 8f59227125
commit 0f2d9a0a77
2 changed files with 5 additions and 2 deletions

View File

@ -35,7 +35,7 @@ onready(function(){
$post.offset().top <= $(window).scrollTop() + $(window).height()
) {
// post is in view
$post.attr('style', 'border-style: none dashed dashed none; background: ' + $post.css('border-right-color'));
$post.addClass('post-hover');
} else {
var $newPost = $post.clone();
$newPost.find('span.mentioned').remove();
@ -84,7 +84,7 @@ onready(function(){
if(!$post)
return;
$post.attr('style', '');
$post.removeClass('post-hover');
if($post.hasClass('hidden'))
$post.css('display', 'none');
$('.post-hover').remove();

View File

@ -210,6 +210,9 @@ div.post.reply {
border-color: #B7C5D9;
display: inline-block;
}
div.post.post-hover {
background-color: #b7c5d9;
}
span.trip {
color: #228854;
}