web: fixes for dark background; make button text normal size

This commit is contained in:
David Anderson 2017-08-20 01:39:39 -07:00
parent dfe7261cda
commit 0a94ab9d30
3 changed files with 3 additions and 3 deletions

View File

@ -588,7 +588,7 @@ function show_post(
$url = "pm.php?action=new&userid=".$user->id;
$name = $user->name;
show_button($url, tra("Send message"), tra("Send %1 a private message",$name));
show_button_small($url, tra("Send message"), tra("Send %1 a private message",$name));
echo '<br>'.tra("Joined: %1", gmdate('j M y', $user->create_time)), "<br>";
if (!isset($user->nposts)) {

View File

@ -843,7 +843,7 @@ function button_text($url, $text, $desc=null, $class="btn-success btn-sm") {
if (!$desc) {
$desc = $text;
}
return sprintf(' <a href="%s" title="%s" class="btn %s"><span style="font-size:1.2em">%s</span></a>',
return sprintf(' <a href="%s" title="%s" class="btn %s">%s</a>',
$url, $desc, $class, $text
);
}

View File

@ -1,6 +1,6 @@
# fixes to dark-backround themes to increase legibility
body, navbar-text, panel {
body, navbar-text, panel, a:btn {
color:white;
}