summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-10-07 16:33:45 +0400
committerAndrew Dolgov <[email protected]>2009-10-07 16:33:45 +0400
commitde85cac2d61c1ee9f6299cfea0b5766404289366 (patch)
tree755e12a73bb21ada62c70dc8b424b35b377b3f19
parent1638fc4e13e1d71eceb1deefe983c7f48d47b8a1 (diff)
infoBox display tweaks
-rw-r--r--functions.js27
-rw-r--r--images/shadow_dark.pngbin141 -> 2761 bytes
-rw-r--r--modules/popup-dialog.php2
-rw-r--r--tt-rss.css12
4 files changed, 19 insertions, 22 deletions
diff --git a/functions.js b/functions.js
index 02417db79..93592b1bb 100644
--- a/functions.js
+++ b/functions.js
@@ -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 */
diff --git a/images/shadow_dark.png b/images/shadow_dark.png
index 3a26b2a5c..a300e9492 100644
--- a/images/shadow_dark.png
+++ b/images/shadow_dark.png
Binary files differ
diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php
index 2ba0740c4..b173e64f6 100644
--- a/modules/popup-dialog.php
+++ b/modules/popup-dialog.php
@@ -149,7 +149,7 @@
$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\">";
diff --git a/tt-rss.css b/tt-rss.css
index 021af11d8..2d4f2c23a 100644
--- a/tt-rss.css
+++ b/tt-rss.css
@@ -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;