]> git.wh0rd.org - nano-editor.git/commitdiff
move table padding to css
authorMike Frysinger <vapier@gentoo.org>
Tue, 14 Nov 2023 16:26:23 +0000 (11:26 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 14 Nov 2023 16:26:23 +0000 (11:26 -0500)
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
history.php
index.php
news.php
style.css
top.php
who.php

index ca5a788b554719d24690be9d4385cd38fae234ec..c4f8b5357ae93c94f49a8f9a22084a60b23512c7 100644 (file)
@@ -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>
index a3cc8fedd5adc01b49f9bd0423b7a5ab058659c1..91c0a7f82139fffe0f903981c2c3c9a15e3db4a5 100644 (file)
@@ -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>
index 68069e6a4f24a4b783719f441a31f6f500ebd79c..cc81b5b6a82aeac53778884ca116e4fac94c0181 100644 (file)
--- 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>
index fed4b4bbd14cbdfe7abafbeb74bda7773fe9f37b..911f25b5f3c95cb39258c3958552549006e6b93b 100644 (file)
--- 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>
index e9dcf1fd25db626c4fe5481b997ee2be6f891493..3f1cb37487879173c740ea51bcd7e5c69e805ce8 100644 (file)
--- 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 8f613e1663c82658023a5699ed49ce9cd8e294b5..b88341bac33be5446a1a7e6abbc7ceb13d852e98 100644 (file)
--- a/top.php
+++ b/top.php
 
 <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 f51234e1030723e59863614ef8c7ef5dd63b217b..5a07377af931c8f328d2c9a17e243dc6034f5a80 100644 (file)
--- 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>