From 0ac4ace2e660c2487f540ad3ebceb4d1540555bf Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Tue, 14 Nov 2023 11:26:23 -0500
Subject: [PATCH] move table padding to css

This largely renders the same.  Not exactly, but close enough, and
makes it simpler to keep the settings in a single place -- CSS.  It
also renders better on mobile.
---
 bottom.php  |  4 ++--
 history.php | 12 ++++++------
 index.php   |  2 +-
 news.php    |  2 +-
 style.css   | 10 ++++++++++
 top.php     |  4 ++--
 who.php     | 10 +++++-----
 7 files changed, 27 insertions(+), 17 deletions(-)

diff --git a/bottom.php b/bottom.php
index ca5a788..c4f8b53 100644
--- a/bottom.php
+++ b/bottom.php
@@ -1,10 +1,10 @@
 <br>
-<table border=0 cellspacing=0 width="100%">
+<table border=0 width="100%">
 <tr><td>
 
 <hr>
 
-<table border=0 cellspacing=0 width="100%">
+<table border=0 width="100%">
 <tr>
 <td width="1%" class="inverted"><b><tt>^G</tt></b></td>
 <td width="22%"><tt>&nbsp;<a href="download.php">Get Nano</a></tt></td>
diff --git a/history.php b/history.php
index a3cc8fe..91c0a7f 100644
--- a/history.php
+++ b/history.php
@@ -8,7 +8,7 @@
 <blockquote><br>
 Improvements made in version 2.6:<br>
 
-<table border=0 cellspacing=0 width="100%"><tr><td>
+<table border=0 width="100%"><tr><td>
 
 <ul>
 <li>Trailing whitespace can be snipped from justified paragraphs.</li>
@@ -29,7 +29,7 @@ Improvements made in version 2.6:<br>
 <blockquote><br>
 Improvements made in version 2.4:<br>
 
-<table border=0 cellspacing=0 width="100%"><tr><td>
+<table border=0 width="100%"><tr><td>
 
 <ul>
 <li>The ability to give different colors to title bar, status bar and help lines.</li>
@@ -50,7 +50,7 @@ Improvements made in version 2.4:<br>
 <blockquote><br>
 Improvements made in version 2.2:<br>
 
-<table border=0 cellspacing=0 width="100%"><tr><td>
+<table border=0 width="100%"><tr><td>
 
 <ul>
 <li>Customizable key bindings.</li>
@@ -75,7 +75,7 @@ Improvements made in version 2.2:<br>
 <blockquote><br>
 Improvements made in version 2.0:<br>
 
-<table border=0 cellspacing=0 width="100%"><tr><td>
+<table border=0 width="100%"><tr><td>
 
 <ul>
 <li>UTF-8 support.</li>
@@ -102,7 +102,7 @@ Improvements made in version 2.0:<br>
 <blockquote><br>
 Improvements made in version 1.2:<br>
 
-<table border=0 cellspacing=0 width="100%"><tr><td>
+<table border=0 width="100%"><tr><td>
 
 <ul>
 <li>More Pico compatible by default.</li>
@@ -133,7 +133,7 @@ Improvements made in version 1.2:<br>
 <blockquote><br>
 Version 1.0 had the following features:<br>
 
-<table border=0 cellspacing=0 width="100%"><tr><td>
+<table border=0 width="100%"><tr><td>
 
 <ul>
 <li>Autoconf support.</li>
diff --git a/index.php b/index.php
index 68069e6..cc81b5b 100644
--- a/index.php
+++ b/index.php
@@ -1,6 +1,6 @@
 <?php $title="Text editor";  $mainpage="true";  include "top.php"; ?>
 
-<table border=0 cellspacing=40 width="100%">
+<table id="homepage" width="100%">
 <tr>
 <td>
 <center>
diff --git a/news.php b/news.php
index fed4b4b..911f25b 100644
--- a/news.php
+++ b/news.php
@@ -1,6 +1,6 @@
 <?php $title="News";  include "top.php"; ?>
 
-<table border=0 cellspacing=0 width="100%">
+<table border=0 width="100%">
 <tr>
 <td>
 <br><br>
diff --git a/style.css b/style.css
index e9dcf1f..3f1cb37 100644
--- a/style.css
+++ b/style.css
@@ -58,3 +58,13 @@ a:active {
 	width: 45%;
 	padding: 5%;
 }
+
+table {
+	border-spacing: 0px;
+	border-collapse: separate;
+}
+
+table#homepage {
+	padding-top: 3em;
+	padding-bottom: 3em;
+}
diff --git a/top.php b/top.php
index 8f613e1..b88341b 100644
--- a/top.php
+++ b/top.php
@@ -14,10 +14,10 @@
 
 <body>
 
-<table border=0 cellspacing=0 width="100%">
+<table border=0 width="100%">
 <tr><td>
 
-<table border=0 cellspacing=0 width="100%" class="inverted">
+<table border=0 width="100%" class="inverted">
 <tr>
 
 <td>
diff --git a/who.php b/who.php
index f51234e..5a07377 100644
--- a/who.php
+++ b/who.php
@@ -3,7 +3,7 @@
 <br><br>
 <center><b>Original Author</b></center>
 
-<table border=0 cellspacing=0 width="100%">
+<table border=0 width="100%">
 <tr>
 <td><center>Chris Allegretta</center></td>
 </tr>
@@ -12,7 +12,7 @@
 <br><br>
 <center><b>Current Maintainer</b></center>
 
-<table border=0 cellspacing=0 width="100%">
+<table border=0 width="100%">
 <tr>
 <td><center>Benno Schulenberg</center></td>
 </tr>
@@ -21,7 +21,7 @@
 <br><br>
 <center><b>Former Maintainers</b></center>
 
-<table align="center" border=0 cellspacing=0 width="60%">
+<table align="center" border=0 width="60%">
 <tr align="center">
 <td><center>David Lawrence Ramsey</center></td>
 <td><center>Chris Allegretta</center></td>
@@ -31,7 +31,7 @@
 <br><br>
 <center><b>Early Co-Developers</b></center>
 
-<table align="center" border=0 cellspacing=0 width="80%">
+<table align="center" border=0 width="80%">
 <tr align="center">
 <td><center>Jordi Mallach</center></td>
 <td><center>David Benbennick</center></td>
@@ -47,7 +47,7 @@
 <br><br>
 <center><b>Contributors of Code and Fixes</b></center>
 
-<table border=0 cellspacing=0 width="100%">
+<table border=0 width="100%">
 <tr align="center">
 <td>Ken Tyler</td>
 <td>Sven Guckes</td>
-- 
2.39.5