Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some CSS improvements #1

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
050b5d6
Merge branch 'pull-request/8'
ramsey Jul 18, 2017
5254f27
New modern and responsive webdesign (like PHP.net website)
arnolem Jul 18, 2017
3c20617
New logo "PHP news" like "php doc", "php museum" or "php svn" websites
arnolem Jul 21, 2017
fd35fe2
add the php favicon
arnolem Jul 21, 2017
21c430f
Add the php.net navigation menu on the top
arnolem Jul 21, 2017
4d3325c
Rename "PHP news" to "PHP lists" on the logo
arnolem Jul 21, 2017
e4b1eed
just add an hover style on menu items
arnolem Jul 21, 2017
c4d44a6
Add a search input to header
arnolem Jul 21, 2017
02e7df9
Add a breadcrumbs bar on the homepage
arnolem Jul 21, 2017
124ffb6
Correct a misplaced tag
arnolem Jul 21, 2017
739060b
Change links colors and dissociate not-readed links
arnolem Jul 21, 2017
329a6bc
new homepage (without sidebar)
arnolem Jul 21, 2017
f0ede2d
New footer like php.net website
arnolem Jul 21, 2017
a45a566
Change the default website title to "PHP Mailing Lists (PHP News)"
arnolem Jul 21, 2017
95195cb
Add the mailing list name into H1 tag, change the meta title and add …
arnolem Jul 21, 2017
6035f03
Add a default charset to all format helpers
arnolem Jul 21, 2017
17972f4
Add a breadcrumps on article page
arnolem Jul 21, 2017
a72456f
Just define a dynamic copyright date
arnolem Jul 21, 2017
079606e
Add a simple responsive menu
arnolem Jul 22, 2017
818cfd1
Some adaptation for W3C validation
arnolem Jul 22, 2017
11dec8b
Corrections completed for W3C validation
arnolem Jul 22, 2017
533374c
Define "Fira Mono" as message font (<pre> tag)
arnolem Jul 22, 2017
f9d062f
fix a colspan only if article has no group or no refs
arnolem Jul 22, 2017
eb584dc
Merge branch 'pull-request/9'
ramsey Jul 22, 2017
4251bf4
Move favicon.ico to the web root
ramsey Jul 22, 2017
b980e41
Fix error message not being displayed with the new layout
machour Jul 22, 2017
d66b483
Make tables responsive and avoid breaking words in them
machour Jul 22, 2017
69569c6
Merge branch 'pull-request/11'
ramsey Jul 22, 2017
9c7d103
Remove credits from footer
ramsey Jul 22, 2017
c293ee1
Load the PHP SVG logo from official server to bypass the content-type…
arnolem Jul 23, 2017
b76d886
Merge pull request #1 from wixiweb/fix-logo-svg
arnolem Jul 23, 2017
c869a4d
delete unused style
arnolem Jul 23, 2017
0bee3e2
delete unused style
arnolem Jul 23, 2017
9bfc631
refomat style
arnolem Jul 23, 2017
41ccdfe
add a small margin on the right of the search box on small screen
arnolem Jul 23, 2017
54469ce
delete unused style
arnolem Jul 23, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Some adaptation for W3C validation
arnolem committed Jul 22, 2017
commit 818cfd1b0e64d487e4592c132ce91a6a912eb45e
8 changes: 4 additions & 4 deletions article.php
Original file line number Diff line number Diff line change
@@ -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" width="100%">' . "\n";
echo ' <table class="standard" border="0" cellpadding="2" cellspacing="2">' . "\n";
# from
echo ' <tr class="vcard">' . "\n";
echo ' <td class="headerlabel">From:</td>' . "\n";
@@ -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" width="100%">' . "\n";
echo ' <table class="standard" border="0" cellpadding="2" cellspacing="2">' . "\n";
echo ' <tr>' . "\n";
echo ' <th class="nav">';

@@ -205,8 +205,8 @@ function navbar($group, $current) {
}

echo ' </th>' . "\n";
echo ' <th align="center">' . "$group (#$current)</th>\n";
echo ' <th align="right" class="nav">';
echo ' <th class="align-center">' . "$group (#$current)</th>\n";
echo ' <th class="nav align-right">';
echo ' <a href="/' , $group , '/' , ($current+1) , '"><b>next &raquo;</b></a>';
echo ' </th>' . "\n";
echo ' </tr>' . "\n";
14 changes: 7 additions & 7 deletions group.php
Original file line number Diff line number Diff line change
@@ -66,9 +66,9 @@
echo '<section class="content">';
echo '<h1>'.htmlspecialchars($group, ENT_QUOTES, "UTF-8").'</h1>';
navbar($group, $overview['group']['low'], $overview['group']['high'], $overview['group']['start']);
echo ' <table class="standard" width="100%">' . "\n";
echo ' <table class="standard">' . "\n";
echo ' <tr>' . "\n";
echo ' <th>#</td>' . "\n";
echo ' <th>#</th>' . "\n";
echo ' <th>subject</th>' . "\n";
echo ' <th>author</th>' . "\n";
echo ' <th>date</th>' . "\n";
@@ -110,8 +110,8 @@
echo format_subject($details['subject'], $charset);
echo "</a></td>\n";
echo " <td vcard\">".format_author($details['author'], $charset)."</td>\n";
echo " <td align=\"center\"><tt>" . format_date($details['date']) . "</tt></td>\n";
echo " <td align=\"right\">{$details['lines']}</td>\n";
echo " <td class=\"align-center\"><tt>" . format_date($details['date']) . "</tt></td>\n";
echo " <td class=\"align-right\">{$details['lines']}</td>\n";
echo " </tr>\n";
}
}
@@ -132,7 +132,7 @@
}

function navbar($g, $f, $l, $i) {
echo ' <table class="standard" border="0" cellpadding="2" cellspacing="2" width="100%">' . "\n";
echo ' <table class="standard" border="0" cellpadding="2" cellspacing="2">' . "\n";
echo ' <tr>' . "\n";
echo ' <th class="nav">';
if ($i > $f) {
@@ -144,8 +144,8 @@ function navbar($g, $f, $l, $i) {
echo '</th>' . "\n";
$j = min($i + 20, $l);
$c = $l - $f + 1;
echo ' <th align="center">'.htmlspecialchars($g, ENT_QUOTES, "UTF-8")." ($i-$j of $c)</th>\n";
echo ' <th align="right" class="nav">';
echo ' <th class="align-center">'.htmlspecialchars($g, ENT_QUOTES, "UTF-8")." ($i-$j of $c)</th>\n";
echo ' <th class="nav align-right">';
if ($i+20 <= $l) {
$n = min($i + 20, $l - 19);
echo "<a href=\"/" . htmlspecialchars($g, ENT_QUOTES, "UTF-8") . "/start/$n\"><b>next &raquo;</b></a>";
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@
href="http://trainedmonkey.com/colobus/">colobus</a>.
</p>
</div>
<table class="standard" width="100%">
<table class="standard">
<tr>
<th>name</th>
<th>messages</th>
@@ -47,7 +47,7 @@
foreach ($groups as $group => $details) {
echo " <tr>\n";
echo " <td><a class=\"active{$details['status']}\" href=\"/$group\">$group</a></td>\n";
echo " <td align=\"right\">", $details['high']-$details['low']+1, "</td>\n";
echo " <td class=\"align-right\">", $details['high']-$details['low']+1, "</td>\n";
echo " <td>";
if ($details['status'] != 'n') {
echo "<a href=\"group.php?group=$group&amp;format=rss\">rss</a>";
7 changes: 7 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -352,6 +352,13 @@ table.standard th.subr {
text-align: right;
}

.align-right{
text-align: right;
}
.align-center{
text-align: center;
}

.menu-icon {
display: none;
background: #4F5B93;