FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » scalable fonts -- header_1.inc hack  () 1 Vote
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
icon10.gif  scalable fonts -- header_1.inc hack [message #647] Thu, 21 February 2002 00:40
ironstorm is currently offline  ironstorm   Canada
Messages: 89
Registered: February 2002
Location: Toronto, Ontario, Canada
Karma:
Member

I'm a bit near sighted Shocked, so I did a quick search and replace in the default style to make the fonts scalable...

Specifcally,

replaced all
9px w/ xxx-small
10px w/ xx-small
11px w/ x-small
12px w/ small

So now, if I'm having trouble reading, I can do the font-scaling thing instead of the eye squinting thing. Grin

Quote:

<?php
/* a few varibles for layout and i.e compatibility */
$fud_reg_date_fmt = 'F Y';
$fud_table_cellspacing = '1';
$fud_table_cellpadding = '2';
$fud_table_border = '0';
$GLOBALS['fud_img_suffix'] = 'styles/default/';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<?php
echo '<title>'.$GLOBALS['FORUM_TITLE'].$GLOBALS['TITLE_EXTRA'].'</title >';
?>
<script language="JavaScript" src="lib.js"></script>
<style type="text/css">
body { /* Body Settings */
background-color: #FFFFFF;
}
.ForumBackground { /* Forum Background & Border Settings */
background-color:#FFFFFF;
border: #AEBDC4;
border-style: solid;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
}
a:link { /* Link Color */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: xx-small;
color: #006699;
text-decoration:underline;
}
a:hover { /* Link MouseOver color */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: xx-small;
color: #C23030;
text-decoration:underline;
}
a:visited { /* Visited Link Color */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: xx-small;
color: #006699;
text-decoration:underline;
}
text { /* Normal text */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: xx-small;
}
a.CatLink { /* Category Links */
font-size: small;
text-decoration: none;
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
}
.CatDesc { /* Category Description */
color: #000000;
font-size: x-small;
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
background-color: #cdd6d5;
}
.CatLockedName { /* Locked Category Mame */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: small;
font-weight: bold;
}
.GenText { /* General text settings */
color: #000000;
font-size: xx-small;
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
}
.GenLink { /* General link settings */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: x-small;
color: #000000;
}
.ErrorText { /* Error Message Settings */
color: #FF0000;
font-size: xx-small;
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-weight: bold;
}
.SmallText { /* Small Text Style */
color: #000000;
font-size: xxx-small;
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
}
.DateText { /* Date Text Style */
color: #000000;
font-size: xxx-small;
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
}
.TableHeading { /* Table Heading Style */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: small;
color: #FFB163;
font-weight: bold;
background-color: #1B7CAD;
}
a.TableHeading { /* Heading Link Color */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: xxx-small;
text-decoration: underline;
color: #EEEEEE;
}
a.TableHeading:hover { /* Heading Hover Link Color */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: xxx-small;
text-decoration: underline;
color: #DEE2E6;
}
a.TableHeading:visited { /* Visited Heading Link Color */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: xxx-small;
text-decoration: underline;
color: #C2CDD6;
}
.RowStyleA { /* 1st Alternating Table Row Style */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: xx-small;
background-color: #eeeeee;
}
.RowStyleB { /* 2nd Alternating Table Row Style */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: xx-small;
background-color: #dee2e6;
}
.RowStyleC { /*Currently Selected Row */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: xx-small;
background-color: #c2cdd6;
}
.MsgToolBar { /* Message Toolbar Style */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: xx-small;
background-color: #aad9fe;
}
.ContentTable { /* General Table settings */
background-color : #000000;
width : 100%;
border : 0px none;
padding : 0px none;
margin : 0px none;
border-spacing : 1px;
}
.PollTable { /* Poll Table settings */
background-color : #000000;
border : 0px none;
padding : 0px none;
margin : 0px none;
border-spacing : 1px;
}
.DialogTable { /* Dialog Table Settings */
background-color : #000000;
width : 50%;
border : 0px none;
padding : 0px none;
margin : 0px none;
border-spacing : 1px;
}
.PreviewTable { /* Message Preview Settings */
background-color : #000000;
width: 75%;
border: 0px none;
padding: 0px none;
margin: 0px none;
border-spacing: 1px;
}
.AnnonTable { /* Announcment Table Settings */
background-color: #000000;
width: 100%;
border: 0px none;
padding: 0px none;
margin: 0px none;
border-spacing: 1px;
}
.AnnText { /* Announcment Text Settings */
color: #000000;
font-size: xx-small;
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
background-color: #f5d300;
}
.AnnSubjText { /* Announcment Subject Settings */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-weight: bold;
font-size: xx-small;
}
.PagerLink { /* Pager Link Settings */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
color: #000000;
font-size: xx-small;
text-decoration: none;
}
.LevelText { /* User's rank/level style */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
color: #000000;
font-size: xx-small;
text-decoration: none;
}
.MsgSubText { /* Message Subject Style */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: xx-small;
font-weight: bold;
}
.MsgBodyText { /* Message Body Style */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: xx-small;
}
.FormattingToolsBG { /* Post Form's formatting tools color style */
background-color: #000000;
}
.FormattingToolsCLR { /* Post Form's formatting tools color style */
background-color: #FFFFFF;
}
.ToolTips { /* Help tool tips settings */
background-color: #ffffe6;
color: #000000;
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: xx-small;
}
.ToolTipLink { /* ToolTip Links */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
text-decoration: none;
}
.MiniTable { /* Tables with smallest possible width */
background-color : #000000;
border : 0px none;
padding : 0px none;
margin : 0px none;
border-spacing : 1px;
}
.quote { /* Style for message quotes */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
color: #444444;
background-color: #FAFAFA;
border: #c2cdd6;
border-style: solid;
border-left-width: 1px;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px
}
.dashed { /* Style for border around simply dialogs, ex. poll editor & list editor */
border: #1B7CAD;
border-left-width: 1px;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-style: dashed;
}
.admin_color { /* The color of the link for the admin on the logged in user's list */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: xx-small;
font-weight: bold;
color: #FF0000;
}
.mods_color { /* The color of the link for the moderator(s) on the logged in user's list */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: xx-small;
color: #00BB00;
font-weight: bold;
}
a.UserControlPanel { /* User Control Panel Links */
font-family: Tahoma, Verdana, Myriad Web, Syntax, sans-serif;
font-size: xx-small;
color: #006699;
text-decoration:none;
}
</style>
</head>
<body topmargin="2" leftmargin="2" marginheight="2" marginwidth="2">
<?php if( !$GLOBALS['PLAIN_FORM'] ) { ?>
<img src="blank.gif" height=2 width=1><? } ?>
<table width="100%" border="0" cellspacing="3" cellpadding="5"><tr><td class="ForumBackground">
<?php if( !$GLOBALS['PLAIN_FORM'] ) fud_use('usercp.inc'); ?>

[Updated on: Thu, 21 February 2002 00:40]

Report message to a moderator

[Message index]
 
Read Message icon10.gif
Next Topic: Private Forums Hack
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 03:14:14 GMT 2024

Total time taken to generate the page: 0.04608 seconds