]> git.wh0rd.org Git - tt-rss.git/commitdiff
infoBox display tweaks
authorAndrew Dolgov <fox@bah.org.ru>
Wed, 7 Oct 2009 12:33:45 +0000 (16:33 +0400)
committerAndrew Dolgov <fox@bah.org.ru>
Wed, 7 Oct 2009 12:33:45 +0000 (16:33 +0400)
functions.js
images/shadow_dark.png
modules/popup-dialog.php
tt-rss.css

index 02417db792193f6fef4db12e791880df4e2fc9bf..93592b1bbda860a60c23523af6bb14ceea0b8a6b 100644 (file)
@@ -1290,13 +1290,9 @@ function closeInfoBox(cleanup) {
 
        if (Element.visible("infoBoxShadow")) {
                Element.hide("dialog_overlay");
-       
-               var shadow = $('infoBoxShadow');
-               var box = $('infoBoxShadow');
-
-               Element.hide(shadow);
+               Element.hide("infoBoxShadow");
 
-               if (cleanup) box.innerHTML = "&nbsp;";
+               if (cleanup) $("infoBoxShadow").innerHTML = "&nbsp;";
 
                enableHotkeys();
        }
@@ -1342,20 +1338,19 @@ function infobox_callback2(transport) {
 
                debug("infobox_callback2");
 
-               if (!getInitParam("infobox_disable_overlay")) {
-                       Element.show("dialog_overlay");
-               }
-
                var box = $('infoBox');
-               var shadow = $('infoBoxShadow');
+               
                if (box) {                      
 
-                       box.innerHTML=transport.responseText;                   
-                       if (shadow) {
-                               shadow.style.display = "block";
-                       } else {
-                               box.style.display = "block";                            
+                       if (!getInitParam("infobox_disable_overlay")) {
+                               Element.show("dialog_overlay");
                        }
+
+                       box.innerHTML=transport.responseText;                   
+                       Element.show("infoBoxShadow");
+                       //Effect.SlideDown("infoBoxShadow", {duration : 1.0});
+
+
                }
 
                /* FIXME this needs to be moved out somewhere */
index 3a26b2a5c4bf7613bb373921a74a6fd504b9d2bf..a300e9492b1371f6e8d79ae3d1f2ddd17c4092ae 100644 (file)
Binary files a/images/shadow_dark.png and b/images/shadow_dark.png differ
index 2ba0740c404c9887f5d435809066ceccc0b11bcf..b173e64f6e96f0da5b8c9859c8ad4c416d47c58d 100644 (file)
                        $active_feed_id = sprintf("%d", $params[0]);
                        $is_cat = $params[1] == "true";
 
-                       print "<div class=\"dlgSec\">".__('Search')."</div>";
+                       print "<div class=\"dlgSec\">".__('Look for')."</div>";
 
                        print "<div class=\"dlgSecCont\">";
 
index 021af11d89b4c383124ca0b51f3fa6f964a0fa85..2d4f2c23a5aac196902454a1779e4132575e943a 100644 (file)
@@ -582,14 +582,15 @@ div.helpResponse {
 }
 
 #infoBoxTitle {
-       border-width : 1px 1px 1px 1px;
+       border-width : 0px 0px 1px 0px;
        border-style : solid;
-       border-color : #99d67a;
+       border-color : #659a4c;
        background-color : #99d67a;
        padding : 4px 2px 4px 10px;
        color : white;
        font-weight : bold;
-       font-size : 12px;
+       font-size : 16px;
+       text-shadow : #659a4c 0px 1px 0px;
 }
 
 /* shadow stuff from http://www.sixapart.com/pronet/articles/ydsf_-_robust_c.html */
@@ -597,12 +598,13 @@ div.helpResponse {
 #infoBox {     
        border-width : 1px 1px 1px 1px;
        border-style : solid;
-       border-color : #99d67a;
+       border-color : #659a4c;
        background-color : #f8fcf5;
        position: relative;
        overflow : hidden;
        left : -4px;
        top : -4px;
+       
 }
 
 div#errorBox {
@@ -649,7 +651,7 @@ html>body #infoBox, html>body #errorBox {
        background-image : url("images/shadow.png");
        background-position : bottom right;
        left : 25%;
-       top : 70px;
+       top : 50px;
        width : 50%;
        position : absolute;
        min-width : 600px;