]> git.wh0rd.org - nano-editor.git/commitdiff
move header & footer padding to CSS
authorMike Frysinger <vapier@gmail.com>
Wed, 19 Aug 2026 12:51:31 +0000 (19:51 +0700)
committerMike Frysinger <vapier@gmail.com>
Wed, 19 Aug 2026 12:51:31 +0000 (19:51 +0700)
This makes sure the padding is consistent across pages without explicit
HTML markup (<br> elements).

bottom.php
contact.php
docs.php
download.php
git.php
history.php
news.php
state.php
style.css
top.php
who.php

index 2e7539d75fdd4d94c254c4f95b460a651bdbd23c..317a3475d139959ae1c64f6e688db1d80968065f 100644 (file)
@@ -1,5 +1,4 @@
-<br>
-<table border=0 width="100%">
+<table id="footer" border=0 width="100%">
 <tr><td>
 
 <hr>
index e695b4cdce2cc661e1d6e246b0a46fe49a3d4b3d..0b29b92c9b896b9460b8b286f302ddaa7d27f4b1 100644 (file)
@@ -1,6 +1,5 @@
 <?php $title="Reporting bugs";  include "top.php"; ?>
 
-<br>
 <center><b>Reporting Bugs</b></center>
 
 <blockquote>Please use nano's pages on Savannah for:
index c04710c1ee63259c4ebebd96a6fd90877a605a0d..6895faa722f64892bcacdec0ea39d88f13aa3a39 100644 (file)
--- a/docs.php
+++ b/docs.php
@@ -1,6 +1,5 @@
 <?php $title="Documentation";  include "top.php"; ?>
 
-<br>
 <center><b>Documentation</b></center>
 <br>
 
index 212e1e031a6065467f568c7fd2cf5843ea7b59a0..ace1f11f2ec3621c5ae70a87c5c93303d8b0a852 100644 (file)
@@ -1,6 +1,5 @@
 <?php $title="Downloads";  include "top.php"; ?>
 
-<br>
 <center><b>Downloading GNU nano</b></center>
 <br>
 
diff --git a/git.php b/git.php
index f4dc75b894f26c717e807ca62504399f466b9b6b..90f738c22a909687ea96d99bfdb7c84787eb0986 100644 (file)
--- a/git.php
+++ b/git.php
@@ -1,6 +1,5 @@
 <?php $title="Source code";  include "top.php"; ?>
 
-<br>
 <center><b>Source Code</b></center>
 
 <blockquote>
index 91c0a7f82139fffe0f903981c2c3c9a15e3db4a5..af5109e23462be1421038cfc68fade7b15db5888 100644 (file)
@@ -1,6 +1,5 @@
 <?php $title="History";  include "top.php"; ?>
 
-<br>
 <center><b>History</b></center>
 <br>
 
index 0c87c1f9e6de8d109017e490064b1906114bbe6c..ff68d0732a5cb65fb8849f76f4dee63dafb0786d 100644 (file)
--- a/news.php
+++ b/news.php
@@ -1,6 +1,5 @@
 <?php $title="News";  include "top.php"; ?>
 
-<br>
 <center><b>News</b></center>
 
 <div id="news">
index 9709da89c99d5afd9b55e47032e8bb71f6b9416b..577451b0ce40f7d9d1a774ef88b723bbb4ad4ebe 100644 (file)
--- a/state.php
+++ b/state.php
@@ -1,6 +1,5 @@
 <?php $title="Current state";  include "top.php"; ?>
 
-<br>
 <center><b>Latest version in various distros</b></center>
 <br>
 <br>
index 0b08c2ad60c92c5439c2243e6a006c13c4f29bcc..8f2f2a57614a57fc5930ffd402aa08e404d23e5d 100644 (file)
--- a/style.css
+++ b/style.css
@@ -45,6 +45,14 @@ a:active {
        color: var(--nano-a-active-color);
 }
 
+#header {
+       margin-bottom: 1em;
+}
+
+#footer {
+       margin-top: 1em;
+}
+
 .inverted a {
        color: var(--nano-a-inverted-color);
 }
@@ -80,8 +88,8 @@ table {
 }
 
 table#homepage {
-       padding-top: 3em;
-       padding-bottom: 3em;
+       padding-top: 2em;
+       padding-bottom: 2em;
 }
 
 table#top td,
diff --git a/top.php b/top.php
index 658d443413a317431f658b3c121608c7af9dc214..4198db0c086ff3db23dd0536978f0f2bc1bb52fa 100644 (file)
--- a/top.php
+++ b/top.php
@@ -14,7 +14,7 @@
 
 <body>
 
-<table border=0 width="100%">
+<table id="header" border=0 width="100%">
 <tr><td>
 
 <table id="top" border=0 width="100%" class="inverted">
diff --git a/who.php b/who.php
index 7f4c264071b77ef78d02472a4e8d195edbcff02e..6244803fdf463b06d981bc9cdb9c62700b8a54dc 100644 (file)
--- a/who.php
+++ b/who.php
@@ -1,6 +1,5 @@
 <?php $title="Who's who";  include "top.php"; ?>
 
-<br>
 <center>
 <div><b>Original Author</b></div>
 <div class="who width-100">