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
<br>
$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>
$tccell2s>$count[t] threads and $count[p] posts in the board | $statsblip<tr>
$tccell1s>$numonline user".($numonline!=1?'s':'')." currently online$onlineusers$guestcount
@ -233,7 +233,7 @@
}
if ($m)
$modlist="$smallfont(moderated by: $modlist)</font>";
$modlist="(moderated by: $modlist)";
$namelink = getuserlink($forum, array('id'=>'uid'));
if($forum['numposts']){

View File

@ -1484,7 +1484,7 @@ function printtimedif($timestart){
//print "<br>{$smallfont} Page rendered in {$tseconds} seconds.</font><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'>
<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>

View File

@ -95,17 +95,20 @@
a:hover { color: #$linkcolor4; }
body {
color: #$textcolor;
font:13px $font;
font: 83% $font;
background: #$bgcolor$bgimage;
}
div.lastpost { font: 10px $font2 !important; white-space: nowrap; }
div.lastpost:first-line { font: 13px $font !important; }
table {
font-size: 100%;
}
div.lastpost { font: 80% $font2 !important; white-space: nowrap; }
div.lastpost:first-line { font: 120% $font !important; }
.sparkline { display: none; }
.font {font:13px $font}
.fonth {font:13px $font;color:$tableheadtext} /* is this even used? */
.fonts {font:10px $font2}
.fontt {font:10px $font3}
.font {font:100% $font}
.fonth {font:100% $font;color:$tableheadtext} /* is this even used? */
.fonts {font:75% $font2}
.fontt {font:75% $font3}
.tdbg1 {background:#$tablebg1}
.tdbg2 {background:#$tablebg2}
.tdbgc {background:#$categorybg}
@ -510,7 +513,6 @@
<img src=images/poweredbyacmlm.gif>
</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>
<br>&copy;2000-". date("Y") ." Acmlm, Xkeeper, Inuyasha, et al.
</font>

View File

@ -46,6 +46,8 @@
if($isadmin)
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
$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'));