This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/comdev-people.git


The following commit(s) were added to refs/heads/main by this push:
     new 95b0e25  Fix up CSS so only direct children are adjusted
95b0e25 is described below

commit 95b0e254308a6b24f1a45d8504bbaacbb41a0db5
Author: Sebb <[email protected]>
AuthorDate: Tue Jul 1 12:16:10 2025 +0100

    Fix up CSS so only direct children are adjusted
---
 html/css/keys.css | 7 +++++++
 tools/pgp.lua     | 8 +-------
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/html/css/keys.css b/html/css/keys.css
new file mode 100644
index 0000000..0cce9a8
--- /dev/null
+++ b/html/css/keys.css
@@ -0,0 +1,7 @@
+/* aligh columns */
+tr > :nth-child(1) {text-align: right;}
+tr > :nth-child(2) {text-align: center;}
+tr > :nth-child(3) {text-align: left;}
+/* font for table body */
+tbody > tr > :nth-child(1) {font-family: monospace;}
+tbody > tr > :nth-child(2) {font-family: monospace;}
diff --git a/tools/pgp.lua b/tools/pgp.lua
index ab04f36..57ce841 100644
--- a/tools/pgp.lua
+++ b/tools/pgp.lua
@@ -228,13 +228,7 @@ local f = 
io.open("/var/www/html/keys/committer/index.html", "w")
 f:write([[
 <html>
 <head><title>ASF PGP Keys</title>
-  <style>
-    tr :nth-child(1) {text-align: right;}
-    tr :nth-child(2) {text-align: center;}
-    tr :nth-child(3) {text-align: left;}
-    tbody > tr :nth-child(1) {font-family: monospace;}
-    tbody > tr :nth-child(2) {font-family: monospace;}
-  </style>
+<link rel="stylesheet" type="text/css" href="../../css/keys.css">
 </head>
 <body>
 <h3>committer signatures:</h3>

Reply via email to