Преглед изворни кода

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.

pull/47/head^2
fatchan czaks пре 8 година
родитељ
комит
04f42b3802
2 измењених фајлова са 3 додато и 7 уклоњено
  1. +0
    -6
      js/id_colors.js
  2. +3
    -1
      stylesheets/style.css

+ 0
- 6
js/id_colors.js Прегледај датотеку

@@ -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){


+ 3
- 1
stylesheets/style.css Прегледај датотеку

@@ -913,7 +913,9 @@ pre {
.poster_id {
cursor: pointer;
}

.poster_id:hover {
color: #800000!important;
}
.poster_id::before {
content: " ID: ";
}


Loading…
Откажи
Сачувај