cvs: phpweb / style.css /include layout.inc
| From: | Colin Viebrock | Date: | Thu, 08 Mar 2001 23:45:11 +0000 |
| Subject: | cvs: phpweb / style.css /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-4311@lists.php.net to get a copy of this message | ||
cmv Thu Mar 8 15:45:11 2001 EDT
Modified files:
/phpweb style.css
/phpweb/include layout.inc
Log:
My attempt to use relative font sizes instead of absolute pixel heights.
Let me know what it looks like on various browser/OS configurations (specifically,
I'd like to know how it compares on NS under Linux, and on a Mac)
Index: phpweb/style.css
diff -u phpweb/style.css:1.3 phpweb/style.css:1.4
--- phpweb/style.css:1.3 Thu Mar 8 07:10:05 2001
+++ phpweb/style.css Thu Mar 8 15:45:10 2001
@@ -1,6 +1,6 @@
body, td, th {
font-family: arial,helvetica,sans-serif;
- font-size: 13px;
+ font-size: 95%;
}
em {
@@ -9,80 +9,74 @@
}
.newsDate {
- font-size: 10px;
+ font-size: 85%;
font-style: italic;
color: #6666cc;
}
pre,code {
font-family: "andale mono", "monotype.com", "courier new",
monospace;
- font-size: 12px;
+ font-size: 90%;
}
h1 {
font-family: arial,helvetica,sans-serif;
- font-size: 18px;
+ font-size: 140%;
font-weight: bold;
color: #000066;
}
h2 {
font-family: arial,helvetica,sans-serif;
- font-size: 16px;
+ font-size: 125%;
font-weight: bold;
color: #000066;
}
h3 {
font-family: arial,helvetica,sans-serif;
- font-size: 14px;
+ font-size: 110%;
font-weight: bold;
color: #000066;
}
small {
font-family: arial,helvetica,sans-serif;
- font-size: 11px;
+ font-size: 75%;
}
a.small {
font-family: arial,helvetica,sans-serif;
- font-size: 11px;
+ font-size: 75%;
text-decoration: none;
}
.tableTitle {
font-family: arial,helvetica,sans-serif;
- font-size: 13px;
font-weight: bold;
}
.tableExtras {
font-family: arial,helvetica,sans-serif;
- font-size: 11px;
+ font-size: 85%;
color: #FFFFFF;
}
input {
font-family: arial,helvetica,sans-serif;
- font-size: 13px;
}
textarea {
font-family: "andale mono", "monotype.com", "courier new",
monospace;
- font-size: 13px;
}
input.small, select.small {
font-family: arial,helvetica,sans-serif;
- font-size: 11px;
+ font-size: 75%;
}
textarea.small {
font-family: "andale mono", "monotype.com", "courier new",
monospace;
- font-size: 11px;
+ font-size: 75%;
}
-
-// manual stuff
-
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.10 phpweb/include/layout.inc:1.11
--- phpweb/include/layout.inc:1.10 Thu Mar 8 14:33:21 2001
+++ phpweb/include/layout.inc Thu Mar 8 15:45:11 2001
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.10 2001/03/08 22:33:21 jimw Exp $ */
+/* $Id: layout.inc,v 1.11 2001/03/08 23:45:11 cmv Exp $ */
# spacer()
@@ -231,9 +231,10 @@
<tr bgcolor="#666699">
<form method="POST" action="/search.php">
<td align="right" valign="top" colspan="2"><FONT
COLOR="#ffffff">
- <small>
-search for <INPUT CLASS="small" TYPE="text" NAME="pattern"
VALUE="<? echo htmlspecialchars($prevsearch) ?>" SIZE="30">
-in the <SELECT NAME="show" CLASS="small">
+ <small>search for</small>
+<INPUT CLASS="small" TYPE="text" NAME="pattern" VALUE="<?
echo htmlspecialchars($prevsearch) ?>" SIZE="30">
+<small>in the</small>
+<SELECT NAME="show" CLASS="small">
<OPTION VALUE="quickref" SELECTED>function list
<OPTION VALUE="nosource">whole site
<OPTION VALUE="manual">online documentation
@@ -244,7 +245,6 @@
</SELECT>
<? echo make_submit('small_submit_white.gif', 'search', 'bottom');
?> <br>
- </small>
</font></td>
</form>
</tr>
@@ -296,7 +296,7 @@
<table border="0" cellspacing="0" cellpadding="0"
width="100%">
<tr bgcolor="#333366"><td><?php
spacer(1,1);?><br></td></tr>
<tr bgcolor="#9999cc">
- <form method="GET" action="/mirrors.php" onsubmit="return
gotomirror(this)">
+ <form method="GET" action="/mirrors.php" onsubmit="return
gotomirror(this);">
<td align="right" valign="bottom">
<script language="javascript">
<!--
@@ -317,7 +317,7 @@
echo delim();
print_link('/mirrors.php', 'mirror sites:', false,
'class="small"');
echo " <select class=\"small\" name=\"country\"
onchange=\"gotomirror(this.form)\">\n";
- echo "<option value=-1>--\n";
+ echo "<option value=\"-1\">--\n";
while (list($url,$mirror) = each($MIRRORS)) {
if ($mirror[4] == 1) { /* only list full mirrors here */
echo "<option value=\"$url\">".$COUNTRIES[$mirror[0]]."
($mirror[1])\n";