]> git.wh0rd.org - tt-rss.git/commitdiff
digest: layout tweaks
authorAndrew Dolgov <fox@bah.org.ru>
Sun, 12 Sep 2010 16:13:20 +0000 (20:13 +0400)
committerAndrew Dolgov <fox@bah.org.ru>
Sun, 12 Sep 2010 16:13:20 +0000 (20:13 +0400)
digest.css
digest.js

index cfee28bcf1930fc888eb8c9b5425cc022bb57c31..4d50b4c451d7add1f0dcae237162aa50b4e0aa2d 100644 (file)
@@ -191,6 +191,7 @@ a:hover {
        height : 16px;
        vertical-align : middle;
        margin-right : 5px;
+       float : left;
 }
 
 #headlines ul#headlines-content {
@@ -209,6 +210,8 @@ a:hover {
 #headlines ul#headlines-content a.title {
        font-weight : bold;
        font-size : 16px;
+       display : block;
+       padding-left : 21px;
 }
 
 #headlines ul#headlines-content div.excerpt {
index 4183d70c5e1cf71cc29ee73312d8d90b213181d9..2bf7779c86acae9fb104f604ce5a41049b59bb2c 100644 (file)
--- a/digest.js
+++ b/digest.js
@@ -118,6 +118,11 @@ function zoom(elem, article_id) {
                                if (transport.responseXML) {
                                        var article = transport.responseXML.getElementsByTagName('article')[0];
                                        elem.innerHTML = article.firstChild.nodeValue;
+
+                                       new Effect.BlindDown(elem, {duration : 0.5});
+
+                                       elem.onclick = false;
+                                       elem.style.cursor = "auto";
                                } else {
                                        elem.innerHTML = __("Error: unable to load article.");
                                }
@@ -341,10 +346,11 @@ function add_headline_entry(article, feed, no_effects) {
 
                var tmp_html = "<li id=\"A-"+article.id+"\" "+style+">" + 
                        icon_part +
+
                        "<div class='digest-check'>" +
-                       mark_part +
-                       publ_part +
-                       "<img title='" + __("Mark as read") + "' onclick=\"view("+article.id+", true)\" src='images/digest_checkbox.png'>" +
+                               mark_part +
+                               publ_part +
+                               "<img title='" + __("Mark as read") + "' onclick=\"view("+article.id+", true)\" src='images/digest_checkbox.png'>" +
                        "</div>" + 
                        "<a target=\"_blank\" href=\""+article.link+"\""+
                                "onclick=\"return view("+article.id+")\" class='title'>" +