From 2317ffaae70ec345add4eb90c4f79d74ca831e8b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 20 Nov 2005 11:02:36 +0100 Subject: [PATCH] infobox shadow --- backend.php | 4 ++-- images/shadow.png | Bin 0 -> 91 bytes prefs.js | 24 ++++++++++++++++++------ tt-rss.css | 43 +++++++++++++++++++++++++------------------ 4 files changed, 45 insertions(+), 26 deletions(-) create mode 100644 images/shadow.png diff --git a/backend.php b/backend.php index 9f328bf4..cd05898f 100644 --- a/backend.php +++ b/backend.php @@ -1011,7 +1011,7 @@ FROM ttrss_feeds WHERE owner_uid = '".$_SESSION["uid"]."' ORDER by title"); - print "
PLACEHOLDER
"; + print "
PLACEHOLDER
"; print "

"; print " @@ -1978,7 +1978,7 @@ ttrss_users ORDER by login"); - print "
PLACEHOLDER
"; + print "
PLACEHOLDER
"; print "

"; diff --git a/images/shadow.png b/images/shadow.png new file mode 100644 index 0000000000000000000000000000000000000000..e4ce11d31b7f342120f1ae68ec9e4998cd6e7b28 GIT binary patch literal 91 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx1|;Q0k8}bl&H|6fVg?4j!ywFfJby(BP>|Qt i#WAE}PI5v*f(J7LLpDRY<%%Sbb_P#ZKbLh*2~7a!{S!+7 literal 0 HcmV?d00001 diff --git a/prefs.js b/prefs.js index 0207fcea..4f3786fc 100644 --- a/prefs.js +++ b/prefs.js @@ -120,11 +120,17 @@ function userlist_callback() { } function infobox_callback() { - var container = document.getElementById('infoBox'); if (xmlhttp.readyState == 4) { - if (container) { - container.innerHTML=xmlhttp.responseText; - container.style.display = "block"; + var box = document.getElementById('infoBox'); + var shadow = document.getElementById('infoBoxShadow'); + + if (box) { + box.innerHTML=xmlhttp.responseText; + if (shadow) { + shadow.style.display = "block"; + } else { + box.style.display = "block"; + } } } } @@ -1121,6 +1127,12 @@ function dispOptionHelp(event, sender) { } */ function closeInfoBox() { - var d = document.getElementById('infoBox'); - d.style.display = "none"; + var box = document.getElementById('infoBox'); + var shadow = document.getElementById('infoBoxShadow'); + + if (shadow) { + shadow.style.display = "none"; + } else if (box) { + box.style.display = "none"; + } } diff --git a/tt-rss.css b/tt-rss.css index 5b50b6f7..0e919c10 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -425,15 +425,38 @@ div.helpResponse { border : 1px solid #f0f0f0; } +#infoBox { + border : 1px solid #c0c0c0; + padding-bottom : 10px; + font-size : small; + position : relative; + bottom : 2px; + right : 2px; + background-color : white; +} + +#infoBoxShadow { + background-image : url("images/shadow.png"); + position : absolute; + margin-left : 30%; + width : 30%; + z-index : 3; + display : none; +} + div.infoBoxContents { background-image : url("images/vgrad_light_rev2.png"); background-position : top left; background-repeat : repeat-x; padding : 5px; - margin-bottom : 10px; - border : 1px solid #f0f0f0; + margin-bottom : 5px; +} + +div.infoBoxContents td { + font-size : small; } + div.helpResponse h1, div.infoBoxContents h1 { border-width : 0px 0px 1px 0px; border-style : solid; @@ -581,22 +604,6 @@ table.innerLoginForm td { padding : 3px 3px 5px 3px; } -#infoBox { - position : absolute; - margin-left : 30%; - background-color : white; - width : 30%; - z-index : 3; - border : 1px solid #c0c0c0; - padding-bottom : 10px; - display : none; - font-size : small; -} - -div.infoBoxContents td { - font-size : small; -} - div.small, p.small { font-size : x-small; } -- 2.39.5