pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/templates templates: "Modernize" markup. Add some CSS...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/86cf62f06c62
branches:  trunk
changeset: 447517:86cf62f06c62
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Feb 21 10:15:24 2021 +0000

description:
templates: "Modernize" markup.  Add some CSS based on the NetBSD CSS.

Verified in Netsurf, lynx, Firefox 78.

diffstat:

 templates/README.all      |  14 ++++++++------
 templates/README.category |  12 +++++++-----
 templates/README.pkg      |  25 ++++++++++++-------------
 templates/README.top      |  12 +++++++-----
 templates/main.css        |  35 +++++++++++++++++++++++++++++++++++
 5 files changed, 69 insertions(+), 29 deletions(-)

diffs (189 lines):

diff -r e4b43bf5e45a -r 86cf62f06c62 templates/README.all
--- a/templates/README.all      Sun Feb 21 10:08:08 2021 +0000
+++ b/templates/README.all      Sun Feb 21 10:15:24 2021 +0000
@@ -1,13 +1,15 @@
-<!-- $NetBSD: README.all,v 1.6 2007/10/09 19:19:15 martti Exp $ -->
-<html>
+<!-- $NetBSD: README.all,v 1.7 2021/02/21 10:15:24 nia Exp $ -->
+<!doctype html>
+<html lang="en">
 <head>
+<meta charset="utf-8">
+<link href="templates/main.css" rel="stylesheet">
 <title>All NetBSD Packages</title>
 </head>
-<body bgcolor="#ffffff">
+<body>
 
 <a href="http://www.mckusick.com/beastie/mainpage/copyright.html";>
-<img align="right" src="templates/pkg-daemon.gif" alt="Daemon Power"
-       width="147" height="121" border="0">
+<img src="templates/pkg-daemon.gif" alt="Daemon Power" id="logo">
 </a>
 <h1>The NetBSD Packages Collection</h1>
 
@@ -21,7 +23,7 @@
 
 <hr noshade>
 <table>
-<tr><th align="left">Package <th align="left">Category <th align="left"> Package description
+<tr><th>Package <th>Category <th>Package description
 %%PKGS%%
 </table>
 
diff -r e4b43bf5e45a -r 86cf62f06c62 templates/README.category
--- a/templates/README.category Sun Feb 21 10:08:08 2021 +0000
+++ b/templates/README.category Sun Feb 21 10:15:24 2021 +0000
@@ -1,13 +1,15 @@
-<!-- $NetBSD: README.category,v 1.10 2001/01/16 02:37:47 hubertf Exp $ -->
-<html>
+<!-- $NetBSD: README.category,v 1.11 2021/02/21 10:15:24 nia Exp $ -->
+<!doctype html>
+<html lang="en">
 <head>
+<meta charset="utf-8">
+<link href="templates/main.css" rel="stylesheet">
 <title>The NetBSD Packages Collection: %%CATEGORY%%</title>
 </head>
-<body bgcolor="#ffffff">
+<body>
 
 <a href="http://www.mckusick.com/beastie/mainpage/copyright.html";>
-<img align="right" src="../templates/pkg-daemon.gif" alt="Daemon Power"
-       width="147" height="121" border="0">
+<img src="../templates/pkg-daemon.gif" alt="Daemon Power" id="logo">
 </a>
 <h1>The NetBSD Packages Collection: <i>%%CATEGORY%%</i></h1>
 
diff -r e4b43bf5e45a -r 86cf62f06c62 templates/README.pkg
--- a/templates/README.pkg      Sun Feb 21 10:08:08 2021 +0000
+++ b/templates/README.pkg      Sun Feb 21 10:15:24 2021 +0000
@@ -1,14 +1,15 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<!-- $NetBSD: README.pkg,v 1.30 2021/02/18 10:47:25 nia Exp $ -->
-<html>
+<!-- $NetBSD: README.pkg,v 1.31 2021/02/21 10:15:24 nia Exp $ -->
+<!doctype html>
+<html lang="en">
 <head>
+<meta charset="utf-8">
+<link href="templates/main.css" rel="stylesheet">
 <title>The NetBSD Packages Collection: %%PORT%%</title>
 </head>
-<body bgcolor="#ffffff">
+<body>
 
 <a href="http://www.mckusick.com/beastie/mainpage/copyright.html";>
-<img align="right" src="../../templates/pkg-daemon.gif" alt="Daemon Power"
-       width="147" height="121" border="0">
+<img src="../../templates/pkg-daemon.gif" alt="Daemon Power" id="logo">
 </a>
 <h1>The NetBSD Packages Collection: <i>%%PORT%%</i></h1>
 
@@ -20,7 +21,7 @@
 
 <p>Please read the file "<a href="DESCR">DESCR</a>" for a
 longer description, or browse the package's
-<A HREF="http://cvsweb.NetBSD.org/bsdweb.cgi/pkgsrc/%%PORT%%/";>history</A>.
+<a href="http://cvsweb.NetBSD.org/bsdweb.cgi/pkgsrc/%%PORT%%/";>history</a>.
 </p>
 
 %%HOMEPAGE%%
@@ -40,30 +41,28 @@
 reported with
 <a href="http://www.NetBSD.org/support/send-pr.html";>send-pr.</a></p>
 
-<P>
+<p>
 The following security vulnerabilities are known for %%PORT%%
 %%VULDATE%%
 :
-<UL>
+<ul>
 %%VULNERABILITIES%%
-</UL>
+</ul>
 The <a href="../../pkgtools/pkg_install/README.html">pkg_admin audit</a>
 command locates any installed package which has been mentioned in
 security advisories as having vulnerabilities.
 Please note the vulnerabilities database might not be fully accurate,
 and not every bug is exploitable with every configuration.
-</P>
+</p>
 
 
 <p>
 This package requires the following package(s) to build:
 %%BUILD_DEPENDS%%
-.
 </p>
 <p>
 This package requires the following package(s) to run:
 %%RUN_DEPENDS%%
-.
 </p>
 
 <p>
diff -r e4b43bf5e45a -r 86cf62f06c62 templates/README.top
--- a/templates/README.top      Sun Feb 21 10:08:08 2021 +0000
+++ b/templates/README.top      Sun Feb 21 10:15:24 2021 +0000
@@ -1,13 +1,15 @@
-<!-- $NetBSD: README.top,v 1.18 2021/02/19 17:49:06 nia Exp $ -->
-<html>
+<!-- $NetBSD: README.top,v 1.19 2021/02/21 10:15:24 nia Exp $ -->
+<!doctype html>
+<html lang="en">
 <head>
+<meta charset="utf-8">
+<link href="templates/main.css" rel="stylesheet">
 <title>The NetBSD Packages Collection</title>
 </head>
-<body bgcolor="#ffffff">
+<body>
 
 <a href="http://www.mckusick.com/beastie/mainpage/copyright.html";>
-<img align="right" src="templates/pkg-daemon.gif" alt="Daemon Power"
-       width="147" height="121" border="0">
+<img src="templates/pkg-daemon.gif" alt="Daemon Power" id="logo">
 </a>
 <h1>The NetBSD Packages Collection</h1>
 
diff -r e4b43bf5e45a -r 86cf62f06c62 templates/main.css
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/main.css        Sun Feb 21 10:15:24 2021 +0000
@@ -0,0 +1,35 @@
+/* $NetBSD: main.css,v 1.1 2021/02/21 10:15:24 nia Exp $ */
+
+body {
+       font-family: sans-serif;
+       background-color: #fff;
+       color: #000;
+}
+
+a:link {
+       color: #d43900;
+       text-decoration: none;
+}
+
+a:hover {
+       text-decoration: underline;
+}
+
+a:visited {
+       color: #844;
+       text-decoration: none;
+}
+
+a:visited:hover {
+       text-decoration: underline;
+}
+
+th {
+       text-align: left;
+       font-weight: bold;
+}
+
+#logo {
+       float: right;
+       border: 0;
+}



Home | Main Index | Thread Index | Old Index