more notice css tweaks

This commit is contained in:
Andrew Dolgov 2013-04-18 22:27:05 +04:00
parent 6a1f424924
commit 3c200461f8
5 changed files with 16 additions and 6 deletions

View File

@ -929,7 +929,7 @@ class Handler_Public extends Handler {
} else {
print "<h2>" . "Tiny Tiny RSS database is up to date." . "</h2>";
print_notice("Tiny Tiny RSS database is up to date.");
print "<p><form method=\"GET\" action=\"index.php\">
<input type=\"submit\" value=\"".__("Return to Tiny Tiny RSS")."\">

View File

@ -2925,19 +2925,19 @@
function format_warning($msg, $id = "") {
global $link;
return "<div class=\"warning\" id=\"$id\">
<img src=\"images/sign_excl.svg\">$msg</div>";
<span><img src=\"images/sign_excl.svg\"></span><span>$msg</span></div>";
}
function format_notice($msg, $id = "") {
global $link;
return "<div class=\"notice\" id=\"$id\">
<img src=\"images/sign_info.svg\">$msg</div>";
<span><img src=\"images/sign_info.svg\"></span><span>$msg</span></div>";
}
function format_error($msg, $id = "") {
global $link;
return "<div class=\"error\" id=\"$id\">
<img src=\"images/sign_excl.svg\">$msg</div>";
<span><img src=\"images/sign_excl.svg\"></span><span>$msg</span></div>";
}
function print_notice($msg) {

View File

@ -80,12 +80,13 @@
}
function print_error($msg) {
print "<div class='error'><img src='../images/sign_excl.svg'> $msg</div>";
print "<div class='error'><span><img src='../images/sign_excl.svg'></span>
<span>$msg</span></div>";
}
function print_notice($msg) {
print "<div class=\"notice\">
<img src=\"../images/sign_info.svg\">$msg</div>";
<span><img src=\"../images/sign_info.svg\"></span><span>$msg</span></div>";
}
function db_connect($host, $user, $pass, $db, $type, $port) {

View File

@ -288,7 +288,12 @@ div.error {
div.warning img, div.notice img, div.error img {
margin-right : 4px;
vertical-align : middle;
}
div.warning span, div.notice span, div.error span {
display : table-cell;
vertical-align : middle;
}
ul.nomarks {

View File

@ -73,6 +73,10 @@ div.error {
div.warning img, div.notice img, div.error img {
margin-right : 4px;
vertical-align : middle;
}
div.warning span, div.notice span, div.error span {
display : table-cell;
vertical-align : middle;
}