tweak notice/warning/etc display

This commit is contained in:
Andrew Dolgov 2013-04-18 16:18:20 +04:00
parent bbffc43e4f
commit 6d9426feae
3 changed files with 5 additions and 5 deletions

View File

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

View File

@ -287,8 +287,8 @@ div.error {
div.warning img, div.notice img, div.error img { div.warning img, div.notice img, div.error img {
margin-right : 4px; margin-right : 4px;
float : left;
vertical-align : middle; vertical-align : middle;
display : table-cell;
} }
ul.nomarks { ul.nomarks {

View File

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