fix broken highlighting of high-scored rows
This commit is contained in:
parent
04a8c2065f
commit
4b7ebe93a8
|
@ -377,9 +377,9 @@ class Feeds extends Handler_Protected {
|
||||||
title=\"$score\">";
|
title=\"$score\">";
|
||||||
|
|
||||||
if ($score > 500) {
|
if ($score > 500) {
|
||||||
$hlc_suffix = "H";
|
$hlc_suffix = "high";
|
||||||
} else if ($score < -100) {
|
} else if ($score < -100) {
|
||||||
$hlc_suffix = "L";
|
$hlc_suffix = "low";
|
||||||
} else {
|
} else {
|
||||||
$hlc_suffix = "";
|
$hlc_suffix = "";
|
||||||
}
|
}
|
||||||
|
@ -448,8 +448,8 @@ class Feeds extends Handler_Protected {
|
||||||
$reply['content'] .= "</div>";
|
$reply['content'] .= "</div>";
|
||||||
|
|
||||||
$reply['content'] .= "<div onclick='return hlClicked(event, $id)'
|
$reply['content'] .= "<div onclick='return hlClicked(event, $id)'
|
||||||
class=\"hlTitle\"><span class='hlContent$hlc_suffix'>";
|
class=\"hlTitle\"><span class='hlContent $hlc_suffix'>";
|
||||||
$reply['content'] .= "<a id=\"RTITLE-$id\" class=\"title\"
|
$reply['content'] .= "<a id=\"RTITLE-$id\" class=\"title $hlc_suffix\"
|
||||||
href=\"" . htmlspecialchars($line["link"]) . "\"
|
href=\"" . htmlspecialchars($line["link"]) . "\"
|
||||||
onclick=\"\">" .
|
onclick=\"\">" .
|
||||||
truncate_string($line["title"], 200);
|
truncate_string($line["title"], 200);
|
||||||
|
@ -539,7 +539,7 @@ class Feeds extends Handler_Protected {
|
||||||
|
|
||||||
$expanded_class = $expand_cdm ? "expanded" : "expandable";
|
$expanded_class = $expand_cdm ? "expanded" : "expandable";
|
||||||
|
|
||||||
$reply['content'] .= "<div class=\"cdm $expanded_class $class\"
|
$reply['content'] .= "<div class=\"cdm $hlc_suffix $expanded_class $class\"
|
||||||
id=\"RROW-$id\" $mouseover_attrs>";
|
id=\"RROW-$id\" $mouseover_attrs>";
|
||||||
|
|
||||||
$reply['content'] .= "<div class=\"cdmHeader\" style=\"$row_background\">";
|
$reply['content'] .= "<div class=\"cdmHeader\" style=\"$row_background\">";
|
||||||
|
@ -556,8 +556,8 @@ class Feeds extends Handler_Protected {
|
||||||
|
|
||||||
$reply['content'] .= "<span id=\"RTITLE-$id\"
|
$reply['content'] .= "<span id=\"RTITLE-$id\"
|
||||||
onclick=\"return cdmClicked(event, $id);\"
|
onclick=\"return cdmClicked(event, $id);\"
|
||||||
class=\"titleWrap$hlc_suffix\">
|
class=\"titleWrap $hlc_suffix\">
|
||||||
<a class=\"title\"
|
<a class=\"title $hlc_suffix\"
|
||||||
target=\"_blank\" href=\"".
|
target=\"_blank\" href=\"".
|
||||||
htmlspecialchars($line["link"])."\">".
|
htmlspecialchars($line["link"])."\">".
|
||||||
$line["title"] .
|
$line["title"] .
|
||||||
|
|
19
css/cdm.css
19
css/cdm.css
|
@ -265,3 +265,22 @@ div#floatingTitle span.author,
|
||||||
div#floatingTitle img.tinyFeedIcon {
|
div#floatingTitle img.tinyFeedIcon {
|
||||||
display : none;
|
display : none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cdm.high .cdmHeader a.title.high, .cdm.high .cdmHeader .cdmExcerpt,
|
||||||
|
.cdm.high .cdmHeader span.author {
|
||||||
|
color : #00aa00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cdm.Unread.high .cdmHeader a.title.high, .cdm.Unread.high .cdmHeader .cdmExcerpt,
|
||||||
|
.cdm.Unread.high .cdmHeader span.author {
|
||||||
|
color : #00dd00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cdm .cdmHeader a.title.low, .cdm.low .cdmHeader .cdmExcerpt,
|
||||||
|
.cdm.Unread .cdmHeader a.title.low, .cdm.Unread.low .cdmHeader .cdmExcerpt,
|
||||||
|
.cdm.low .cdmHeader span.author {
|
||||||
|
color : #909090;
|
||||||
|
text-decoration : line-through;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -606,20 +606,15 @@ div#headlines-frame.wide .hlTitle {
|
||||||
white-space : normal;
|
white-space : normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hlContentH a, .hlContentH span {
|
.hl a.title.high, span.hlContent.high .contentPreview {
|
||||||
color : #00cc00;
|
color : #00aa00;
|
||||||
|
}
|
||||||
|
.hl.Unread a.title.high, .hl.Unread span.hlContent.high .contentPreview {
|
||||||
|
color : #00dd00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hlContentL a, .hlContentL span {
|
.hl a.title.low, span.hlContent.low .contentPreview,
|
||||||
color : #909090;
|
.hl.Unread a.title.low, .hl.Unread span.hlContent.low .contentPreview {
|
||||||
text-decoration : line-through;
|
|
||||||
}
|
|
||||||
|
|
||||||
span.titleWrapH, span.titleWrapH a {
|
|
||||||
color : #00cc00;
|
|
||||||
}
|
|
||||||
|
|
||||||
span.titleWrapL, span.titleWrapL a {
|
|
||||||
color : #909090;
|
color : #909090;
|
||||||
text-decoration : line-through;
|
text-decoration : line-through;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue