]> git.wh0rd.org Git - tt-rss.git/commitdiff
more notice css tweaks
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 18 Apr 2013 18:27:05 +0000 (22:27 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 18 Apr 2013 18:27:05 +0000 (22:27 +0400)
classes/handler/public.php
include/functions.php
install/index.php
tt-rss.css
utility.css

index 79ed9d0aed74331cfd583b6d8a57cc9ecbfa7068..3b373edf536737693da2cba1da647f0ccc8f8828 100644 (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")."\">
index e0c102b38943226fb04c088ac35ac66ad119ac36..0908bf8d38c34ec6488b454c053ad7b03593dc55 100644 (file)
        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) {
index 9cbab20f1fc7dda9298f56d1209ffb07c4cca673..416765e8f7caceedede06dc7fb9164631045445e 100644 (file)
        }
 
        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) {
index 8bf5913265e60d99f398cf84d6ac9066311f605d..454e2ffd165bda274dc8f9ea34a899342da13b73 100644 (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 {
index d4b6d0a02ad466e37c27b74c48e6f3660d3fc905..50a54e154e0661e4eca5c67e858f7722b987be0a 100644 (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;
 }