1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-12 01:50:48 +01:00

CSS hover instead of javascript mouseover. Need to use important because the dark/light text determined by IDToRGB is added inline and takes priority over stylesheets.

This commit is contained in:
fatchan 2016-06-01 19:51:21 +10:00 committed by czaks
parent cdd963e79e
commit 04f42b3802
2 changed files with 3 additions and 7 deletions

View File

@ -50,12 +50,6 @@ if (active_page == 'thread' || active_page == 'index') {
"border-radius": "8px",
"color": ft
});
$(el).mouseover(function() {
$(this).css('color', '#800000'); // how about a CSS :hover rule instead?
}).mouseout(function() {
$(this).css('color', ft);
});
}
$(".poster_id").each(function(k, v){

View File

@ -913,7 +913,9 @@ pre {
.poster_id {
cursor: pointer;
}
.poster_id:hover {
color: #800000!important;
}
.poster_id::before {
content: " ID: ";
}