Change font sizes from fixed ##px to percentages

This commit is contained in:
Xkeeper 2020-10-25 22:52:16 -07:00
parent 454a566e2b
commit 05c8bfe560
No known key found for this signature in database
GPG Key ID: 397C04773ABE4045
4 changed files with 17 additions and 13 deletions

View File

@ -140,7 +140,7 @@
print "$header print "$header
<br> <br>
$tblstart $tblstart
$tccell1s><table width=100%><td class=fonts>$logmsg</td><td align=right class=fonts>$count[u] registered users<br>Latest registered user: $lastuserurl</table> $tccell1s><table width=100%><td>$logmsg</td><td align=right>$count[u] registered users<br>Latest registered user: $lastuserurl</table>
$blist<tr> $blist<tr>
$tccell2s>$count[t] threads and $count[p] posts in the board | $statsblip<tr> $tccell2s>$count[t] threads and $count[p] posts in the board | $statsblip<tr>
$tccell1s>$numonline user".($numonline!=1?'s':'')." currently online$onlineusers$guestcount $tccell1s>$numonline user".($numonline!=1?'s':'')." currently online$onlineusers$guestcount
@ -233,7 +233,7 @@
} }
if ($m) if ($m)
$modlist="$smallfont(moderated by: $modlist)</font>"; $modlist="(moderated by: $modlist)";
$namelink = getuserlink($forum, array('id'=>'uid')); $namelink = getuserlink($forum, array('id'=>'uid'));
if($forum['numposts']){ if($forum['numposts']){
@ -282,4 +282,4 @@
$tblstart$forumlist$tblend$footer"; $tblstart$forumlist$tblend$footer";
printtimedif($startingtime); printtimedif($startingtime);
} }

View File

@ -1484,7 +1484,7 @@ function printtimedif($timestart){
//print "<br>{$smallfont} Page rendered in {$tseconds} seconds.</font><br>"; //print "<br>{$smallfont} Page rendered in {$tseconds} seconds.</font><br>";
print "<br> print "<br>
{$smallfont}{$queries} database queries". (($cache > 0) ? ", {$cache} query cache hits" : "") .".</font> {$queries} database queries". (($cache > 0) ? ", {$cache} query cache hits" : "") .".</font>
<table cellpadding=0 border=0 cellspacing=0 class='fonts'> <table cellpadding=0 border=0 cellspacing=0 class='fonts'>
<tr><td align=right>Query execution time:&nbsp;</td><td>{$qseconds} seconds</td></tr> <tr><td align=right>Query execution time:&nbsp;</td><td>{$qseconds} seconds</td></tr>
<tr><td align=right>Script execution time:&nbsp;</td><td>{$sseconds} seconds</td></tr> <tr><td align=right>Script execution time:&nbsp;</td><td>{$sseconds} seconds</td></tr>

View File

@ -95,17 +95,20 @@
a:hover { color: #$linkcolor4; } a:hover { color: #$linkcolor4; }
body { body {
color: #$textcolor; color: #$textcolor;
font:13px $font; font: 83% $font;
background: #$bgcolor$bgimage; background: #$bgcolor$bgimage;
} }
div.lastpost { font: 10px $font2 !important; white-space: nowrap; } table {
div.lastpost:first-line { font: 13px $font !important; } font-size: 100%;
}
div.lastpost { font: 80% $font2 !important; white-space: nowrap; }
div.lastpost:first-line { font: 120% $font !important; }
.sparkline { display: none; } .sparkline { display: none; }
.font {font:13px $font} .font {font:100% $font}
.fonth {font:13px $font;color:$tableheadtext} /* is this even used? */ .fonth {font:100% $font;color:$tableheadtext} /* is this even used? */
.fonts {font:10px $font2} .fonts {font:75% $font2}
.fontt {font:10px $font3} .fontt {font:75% $font3}
.tdbg1 {background:#$tablebg1} .tdbg1 {background:#$tablebg1}
.tdbg2 {background:#$tablebg2} .tdbg2 {background:#$tablebg2}
.tdbgc {background:#$categorybg} .tdbgc {background:#$categorybg}
@ -510,7 +513,6 @@
<img src=images/poweredbyacmlm.gif> <img src=images/poweredbyacmlm.gif>
</td> </td>
<td> <td>
{$smallfont}
Acmlmboard - <a href='https://github.com/Xkeeper0/jul'>". (file_exists('version.txt') ? file_get_contents("version.txt") : shell_exec("git log --format='commit %h [%ad]' --date='short' -n 1")) ."</a> Acmlmboard - <a href='https://github.com/Xkeeper0/jul'>". (file_exists('version.txt') ? file_get_contents("version.txt") : shell_exec("git log --format='commit %h [%ad]' --date='short' -n 1")) ."</a>
<br>&copy;2000-". date("Y") ." Acmlm, Xkeeper, Inuyasha, et al. <br>&copy;2000-". date("Y") ." Acmlm, Xkeeper, Inuyasha, et al.
</font> </font>

View File

@ -46,6 +46,8 @@
if($isadmin) if($isadmin)
print '<br>Admin cruft: <a href=online.php'. ($sort ? '?sort=1&' : '?') ."time=$time>Sort by ".($sort == 'IP' ? 'date' : 'IP') ."</a>"; print '<br>Admin cruft: <a href=online.php'. ($sort ? '?sort=1&' : '?') ."time=$time>Sort by ".($sort == 'IP' ? 'date' : 'IP') ."</a>";
print " </font>";
// Logged in users // Logged in users
$posters = $sql->query("SELECT id,posts,name,sex,powerlevel,aka,lastactivity,lastip,lastposttime,lasturl,birthday FROM users WHERE lastactivity>".(ctime()-$time).' ORDER BY '.($sort=='IP'&&$isadmin?'lastip':'lastactivity DESC')); $posters = $sql->query("SELECT id,posts,name,sex,powerlevel,aka,lastactivity,lastip,lastposttime,lasturl,birthday FROM users WHERE lastactivity>".(ctime()-$time).' ORDER BY '.($sort=='IP'&&$isadmin?'lastip':'lastactivity DESC'));
@ -151,7 +153,7 @@
print "</td>$tccell1$marker> print "</td>$tccell1$marker>
<a href=ipsearch.php?ip=$guest[ip]>$guest[ip]</a>$smallfont <a href=ipsearch.php?ip=$guest[ip]>$guest[ip]</a>$smallfont
<br>[$ipban<a href=http://google.com/search?q=$guest[ip]>G</a>-<a href=http://en.wikipedia.org/wiki/User:$guest[ip]>W</a>-<a href=http://$guest[ip]/>H</a>]</a></font>"; <br>[$ipban<a href=http://google.com/search?q=$guest[ip]>G</a>-<a href=http://en.wikipedia.org/wiki/User:$guest[ip]>W</a>-<a href=http://$guest[ip]/>H</a>]</a></font>";
print "</tr>"; print "</tr>";
} }