Skip to content

Commit

Permalink
more notice css tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Dolgov committed Apr 18, 2013
1 parent 6a1f424 commit 3c20046
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion classes/handler/public.php
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ function confirmOP() {

} 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")."\">
Expand Down
6 changes: 3 additions & 3 deletions include/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2925,19 +2925,19 @@ function render_login_form() {
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) {
Expand Down
5 changes: 3 additions & 2 deletions install/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,13 @@ function sanity_check($db_type) {
}

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) {
Expand Down
5 changes: 5 additions & 0 deletions tt-rss.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions utility.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3c20046

Please sign in to comment.