com web/news: Corrections completed for W3C validation: article.php group.php style.css
| From: | Ben Ramsey | Date: | Sat, 22 Jul 2017 00:39:09 +0000 |
| Subject: | com web/news: Corrections completed for W3C validation: article.php group.php style.css | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-26180@lists.php.net to get a copy of this message | ||
Commit: 11dec8bfc10e15eb2bba5e7fb0416cf1c0951973
Author: Arnaud Lemercier <arnaud@wixiweb.fr> Sat, 22 Jul 2017 02:39:09 +0200
Parents: 818cfd1b0e64d487e4592c132ce91a6a912eb45e
Branches: master
Link: http://git.php.net/?p=web/news.git;a=commitdiff;h=11dec8bfc10e15eb2bba5e7fb0416cf1c0951973
Log:
Corrections completed for W3C validation
Changed paths:
M article.php
M group.php
M style.css
Diff:
diff --git a/article.php b/article.php
index 1bd36e6..d34603c 100644
--- a/article.php
+++ b/article.php
@@ -147,7 +147,7 @@ function start_article($mail, $refsResolved) {
echo '<h1>'.format_subject($mail['headers']['subject'],
'utf-8')."</h1>\n";
echo " <blockquote>\n";
- echo ' <table class="standard" border="0" cellpadding="2"
cellspacing="2">' . "\n";
+ echo ' <table class="standard">' . "\n";
# from
echo ' <tr class="vcard">' . "\n";
echo ' <td class="headerlabel">From:</td>' . "\n";
@@ -165,7 +165,7 @@ function start_article($mail, $refsResolved) {
# references
if (!empty($refsResolved)) {
echo ' <td class="headerlabel">References:</td>' .
"\n";
- echo ' <td class="headervalue">';
+ echo ' <td class="headervalue" colspan="3">';
foreach ($refsResolved as $k => $ref) {
echo "<a href=\"/". urlencode($ref['group']) . '/' .
urlencode($ref['articleId']) ."\">".($k +
1)."</a> ";
}
@@ -174,7 +174,7 @@ function start_article($mail, $refsResolved) {
# groups
if (!empty($mail['headers']['newsgroups'])) {
echo ' <td class="headerlabel">Groups:</td>' .
"\n";
- echo ' <td class="headervalue">';
+ echo ' <td class="headervalue" colspan="3">';
$r = explode(",", rtrim($mail['headers']['newsgroups']));
while (list($k,$v) = each($r)) {
echo "<a
href=\"/".urlencode($v)."\">".htmlspecialchars($v)."</a> ";
@@ -194,7 +194,7 @@ function navbar($group, $current) {
$group = htmlspecialchars($group, ENT_QUOTES, "UTF-8");
- echo ' <table class="standard" border="0" cellpadding="2"
cellspacing="2">' . "\n";
+ echo ' <table class="standard">' . "\n";
echo ' <tr>' . "\n";
echo ' <th class="nav">';
diff --git a/group.php b/group.php
index ee482d1..2d3b182 100644
--- a/group.php
+++ b/group.php
@@ -109,8 +109,8 @@ foreach ($overview['articles'] as $articleNumber => $details) {
echo " <td><a href=\"/$group/$articleNumber\">";
echo format_subject($details['subject'], $charset);
echo "</a></td>\n";
- echo " <td vcard\">".format_author($details['author'],
$charset)."</td>\n";
- echo " <td class=\"align-center\"><tt>" .
format_date($details['date']) . "</tt></td>\n";
+ echo " <td
class=\"vcard\">".format_author($details['author'],
$charset)."</td>\n";
+ echo " <td class=\"align-center\"><span class='monospace
mod-small'>" . format_date($details['date']) .
"</span></td>\n";
echo " <td
class=\"align-right\">{$details['lines']}</td>\n";
echo " </tr>\n";
}
@@ -132,7 +132,7 @@ switch ($format) {
}
function navbar($g, $f, $l, $i) {
- echo ' <table class="standard" border="0" cellpadding="2"
cellspacing="2">' . "\n";
+ echo ' <table class="standard">' . "\n";
echo ' <tr>' . "\n";
echo ' <th class="nav">';
if ($i > $f) {
diff --git a/style.css b/style.css
index a3421e8..86b2da9 100644
--- a/style.css
+++ b/style.css
@@ -39,6 +39,12 @@ a:visited {
color: #F6F;
}
+.monospace{
+ font-family: "Fira Mono", monospace;
+}
+.monospace.mod-small{
+ font-size: 14px;
+}
th {
background: #CCC;
font-weight: bold;
@@ -313,11 +319,13 @@ table.standard {
border-style: hidden;
border:1px solid #d9d9d9;
width: 100%;
+ border-spacing:2px;
}
table.standard td,
table.standard th {
border: 1px solid #d9d9d9;
+ padding: 2px;
}
table.standard tr:nth-child(even) td {