From de85cac2d61c1ee9f6299cfea0b5766404289366 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 7 Oct 2009 16:33:45 +0400 Subject: [PATCH] infoBox display tweaks --- functions.js | 27 +++++++++++---------------- images/shadow_dark.png | Bin 141 -> 2761 bytes modules/popup-dialog.php | 2 +- tt-rss.css | 12 +++++++----- 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("infoBoxShadow"); - Element.hide(shadow); - - if (cleanup) box.innerHTML = " "; + if (cleanup) $("infoBoxShadow").innerHTML = " "; 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 3a26b2a5c4bf7613bb373921a74a6fd504b9d2bf..a300e9492b1371f6e8d79ae3d1f2ddd17c4092ae 100644 GIT binary patch delta 2732 zcmV;d3RCrs0m&7RB!2{FK}|sb0I`n?{9y$E018rRLqkwWLqi}?a&Km7Y-IodcmbW3 zcTiN>5{J*dcXA-jFa!xh&N&T9as~;KMPZm3UtJ?nK)OWgnr%s>lzJFC00E%xQUyupQ0FWUN z3B!Ecnb9$^Ong6p0TJMU1psVLPFB!T?{I*cpO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X1hFNr02x~j*iaple-G06OY5VsMwhkhP6Ar&S znmDF8HaR|Z(sSZDHGepbJ8L?#o$H)O7c&w4IA(#^mv z)$N$uOLud3p?jPAtcQcgT95Odh^LQdv1h-RoL7WbmDeM0P48syX76bq8=o~k=Y6rh z0lvF@hy7IjIDU|YssbJd8U_jjyMo{#|9_y}K@XPbEDHh&>1p()`bJD6S1o=NmetVx{acyRV{o^xHfd$?0PXI>d^GRZlqEa_>o zbMo%wsT7x#@{|{R4}KN@RjO}lZR%`VaN3cyFX>U~tr>)jgp5-HIYFABCsQqRW#(X( zQC4BrXtqQ4-t1{%fbeh*l(RgiQ$$C9ruxMC;w|E_+<(Qn)w%ETBJ)nJlwB!U*|*AY zRne-+)!wVWUxQi0S<{`bk-ss2Y^~ecx^>XH#C6^4wbmD`pV;8D;pj%v#uy;sYv z%WLdbR%%!7to&G&Qgyr9y}GqVrKYH6c0YIj&;i#2Ew!q(CAA+8@(3@je$mr3qqdkpwjg3tzO{L9nv$%Qc zSlqE2KY0Go*<#XC*UD%uIS!7Ck3ah{;m12C0#0?;g1r zeSh&*PiRm7rGQIUE_+|T*z4AN?uzr3(^nm?p1Q`m)^XkTdV8NuU)wJ>zqIw+_O}n% z4RqeHztJ`5G zz&B{tdg7Jv)t5iEzgBvEp+RHdWMTW6B$lZxy-8q?;3=9lxN#5=*4F5rJ!QSPQC--wnn6j66`ns~;VC5GU u=h={77XVbo>*?Yc!f`!0AtB)gKLf)Nh64u-r&j_c7(8A5T-G@yGywpN0Ufgd 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 "
".__('Search')."
"; + print "
".__('Look for')."
"; print "
"; 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;