use css for help overlay, css cleanup

This commit is contained in:
Andrew Dolgov 2011-11-21 16:10:24 +04:00
parent 620c22aada
commit 56d7e94353
15 changed files with 5 additions and 75 deletions

View file

@ -394,16 +394,6 @@ function make_timestamp() {
} }
function closeErrorBox() {
if (Element.visible("errorBoxShadow")) {
Element.hide("dialog_overlay");
Element.hide("errorBoxShadow");
}
return false;
}
function closeInfoBox(cleanup) { function closeInfoBox(cleanup) {
try { try {
dialog = dijit.byId("infoBox"); dialog = dijit.byId("infoBox");

View file

@ -5979,18 +5979,6 @@
} }
} }
function rounded_table_start($classname, $header = " ") {
print "<table width='100%' class='$classname' cellspacing='0' cellpadding='0'>";
print "<tr><td class='c1'>&nbsp;</td><td class='top'>$header</td><td class='c2'>&nbsp;</td></tr>";
print "<tr><td class='left'>&nbsp;</td><td class='content'>";
}
function rounded_table_end($footer = "&nbsp;") {
print "</td><td class='right'>&nbsp;</td></tr>";
print "<tr><td class='c4'>&nbsp;</td><td class='bottom'>$footer</td><td class='c3'>&nbsp;</td></tr>";
print "</table>";
}
function feed_has_icon($id) { function feed_has_icon($id) {
return is_file(ICONS_DIR . "/$id.ico") && filesize(ICONS_DIR . "/$id.ico") > 0; return is_file(ICONS_DIR . "/$id.ico") && filesize(ICONS_DIR . "/$id.ico") > 0;
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 B

View file

@ -1049,7 +1049,7 @@ function pref_hotkey_handler(e) {
if ((keycode == 191 || keychar == '?') && shift_key) { // ? if ((keycode == 191 || keychar == '?') && shift_key) { // ?
if (!Element.visible("hotkey_help_overlay")) { if (!Element.visible("hotkey_help_overlay")) {
//Element.show("hotkey_help_overlay"); //Element.show("hotkey_help_overlay");
Effect.Appear("hotkey_help_overlay", {duration : 0.3}); Effect.Appear("hotkey_help_overlay", {duration : 0.3, to: 0.9});
} else { } else {
Element.hide("hotkey_help_overlay"); Element.hide("hotkey_help_overlay");
} }

View file

@ -72,9 +72,7 @@
</div> </div>
<div id="hotkey_help_overlay" style="display : none" onclick="Element.hide(this)"> <div id="hotkey_help_overlay" style="display : none" onclick="Element.hide(this)">
<?php rounded_table_start("hho"); ?>
<?php include "help/4.php" ?> <?php include "help/4.php" ?>
<?php rounded_table_end(); ?>
</div> </div>
<img id="piggie" src="images/piggie.png" style="display : none" alt="piggie"/> <img id="piggie" src="images/piggie.png" style="display : none" alt="piggie"/>

View file

@ -749,16 +749,6 @@ div.browserFeedInfo div.detailsPart {
border-width : 0px; border-width : 0px;
} }
#dialog_overlay {
left : 0;
top : 0;
height : 100%;
width : 100%;
z-index : 4;
position : absolute;
background-image : url("images/shadow_white.png");
}
#overlay { #overlay {
background : white; background : white;
left : 0; left : 0;
@ -1040,6 +1030,9 @@ div#hotkey_help_overlay {
z-index : 999; z-index : 999;
color : white; color : white;
font-size : 15px; font-size : 15px;
background : black;
border-radius : 30px;
padding : 10px;
} }
div#hotkey_help_overlay h1 { div#hotkey_help_overlay h1 {
@ -1091,43 +1084,6 @@ div#hotkey_help_overlay h2 {
color : #88b0f0; color : #88b0f0;
} }
div#hotkey_help_overlay table.hho td.c1 {
height : 30px;
width : 30px;
background : url("images/c1.png");
background-repeat : no-repeat;
}
div#hotkey_help_overlay table.hho td.c2 {
height : 30px;
width : 30px;
background : url("images/c2.png");
background-repeat : no-repeat;
}
div#hotkey_help_overlay table.hho td.c3 {
height : 30px;
width : 30px;
background : url("images/c3.png");
background-repeat : no-repeat;
}
div#hotkey_help_overlay table.hho td.c4 {
height : 30px;
width : 30px;
background : url("images/c4.png");
background-repeat : no-repeat;
}
div#hotkey_help_overlay table.hho td.top,
div#hotkey_help_overlay table.hho td.left,
div#hotkey_help_overlay table.hho td.right,
div#hotkey_help_overlay table.hho td.bottom,
div#hotkey_help_overlay table.hho td.content {
background : url("images/shadow_dark.png");
}
div#hotkey_help_overlay table.hho td.top, div#hotkey_help_overlay table.hho td.top,
div#hotkey_help_overlay table.hho td.bottom { div#hotkey_help_overlay table.hho td.bottom {
text-align : center; text-align : center;

View file

@ -695,7 +695,7 @@ function hotkey_handler(e) {
if ((keycode == 191 || keychar == '?') && shift_key) { // ? if ((keycode == 191 || keychar == '?') && shift_key) { // ?
if (!Element.visible("hotkey_help_overlay")) { if (!Element.visible("hotkey_help_overlay")) {
Effect.Appear("hotkey_help_overlay", {duration : 0.3}); Effect.Appear("hotkey_help_overlay", {duration : 0.3, to : 0.9});
} else { } else {
Element.hide("hotkey_help_overlay"); Element.hide("hotkey_help_overlay");
} }

View file

@ -90,9 +90,7 @@
</div> </div>
<div id="hotkey_help_overlay" style="display : none" onclick="Element.hide(this)"> <div id="hotkey_help_overlay" style="display : none" onclick="Element.hide(this)">
<?php rounded_table_start("hho"); ?>
<?php include "help/3.php" ?> <?php include "help/3.php" ?>
<?php rounded_table_end(); ?>
</div> </div>
<div id="notify" class="notify"><span id="notify_body">&nbsp;</span></div> <div id="notify" class="notify"><span id="notify_body">&nbsp;</span></div>