From: Andrew Dolgov Date: Fri, 22 Mar 2013 09:04:41 +0000 (+0400) Subject: add active class for unexpanded cdm X-Git-Tag: 1.7.5~20 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1da5179c5df7eed1fd14b4cee70dd2703679995c;p=tt-rss.git add active class for unexpanded cdm --- diff --git a/cdm.css b/cdm.css index db357bec..cb0a78f2 100644 --- a/cdm.css +++ b/cdm.css @@ -132,6 +132,10 @@ div.cdm.expanded.Unread.Selected div.cdmHeader, div.cdm.expanded.Selected div.cd background : #FFEA9E; } +div.cdm.active.Selected div.cdmHeader { + background : #FFEA9E; +} + div.cdm.expanded.even.Unread, div.cdm.expanded.odd.Unread { background : white; } @@ -165,6 +169,7 @@ div.cdmHeader span.author { font-size : 11px; } -div.cdm.expanded div.cdmHeader a.title { +div.cdm.expanded div.cdmHeader a.title, div.cdm.active div.cdmHeader a.title { font-size : 13px; } + diff --git a/js/viewfeed.js b/js/viewfeed.js index 0a65f3f3..e32d3a99 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -1392,6 +1392,7 @@ function cdmExpandArticle(id) { Element.hide(elem); Element.show("CEXC-" + getActiveArticleId()); Element.hide(collapse); + $("RROW-" + getActiveArticleId()).removeClassName("active"); } setActiveArticleId(id); @@ -1413,6 +1414,7 @@ function cdmExpandArticle(id) { Element.show(elem); Element.hide("CEXC-" + id); Element.show(collapse); + $("RROW-" + id).addClassName("active"); } var new_offset = $("RROW-" + id).offsetTop;