From 1b81184187c6a028c0c91d65f6ef080d2cf7a9ba Mon Sep 17 00:00:00 2001 From: squid Date: Thu, 12 Nov 2026 18:45:58 +0100 Subject: [PATCH] fix: show the RSS icon and the W3C badges on one line at the same height - move the RSS icon inside the badges paragraph - scale every footer icon to 32 px high - lay the badges out in a flex row --- build.py | 2 +- static/style.css | 9 ++++++--- templates/badges.html | 5 +++-- templates/feed.html | 4 +--- templates/footer.html | 1 - 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/build.py b/build.py index c1f33e6..c51cafb 100644 --- a/build.py +++ b/build.py @@ -322,9 +322,9 @@ def build(): ctx["content"] = render(p["body"].strip("\n") + "\n", ctx, name) lead = p.get("lead", "back") ctx["lead"] = render(tpl["lead-" + lead], ctx, f"templates/lead-{lead}.html") + ctx["feed"] = render(tpl["feed"], ctx, "templates/feed.html") ctx["badges"] = render(tpl["badges"], dict(ctx, doc_q=ctx["doc_url"].replace(":", "%3A").replace("/", "%2F")), "templates/badges.html") - ctx["feed"] = render(tpl["feed"], ctx, "templates/feed.html") ctx["header"] = render(tpl["header"], ctx, "templates/header.html") ctx["footer"] = render(tpl["footer"], ctx, "templates/footer.html") rel = p["path"].lstrip("/") diff --git a/static/style.css b/static/style.css index a2b8320..1ce5120 100644 --- a/static/style.css +++ b/static/style.css @@ -106,8 +106,11 @@ code { height: auto; } -svg { - vertical-align: middle; +.badges { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: .5em; } @media print { @@ -119,7 +122,7 @@ svg { --link: #000; } - header, .badges, .feed { + header, .badges { display: none; } diff --git a/templates/badges.html b/templates/badges.html index 2802b66..7e39575 100644 --- a/templates/badges.html +++ b/templates/badges.html @@ -1,4 +1,5 @@

-Valid HTML5 -Valid CSS +{{feed}} +Valid HTML5 +Valid CSS

diff --git a/templates/feed.html b/templates/feed.html index 12f04b3..4428eff 100644 --- a/templates/feed.html +++ b/templates/feed.html @@ -1,3 +1 @@ -

- -

+ diff --git a/templates/footer.html b/templates/footer.html index c772da0..d859060 100644 --- a/templates/footer.html +++ b/templates/footer.html @@ -3,6 +3,5 @@

{{nojs}}

-{{feed}} {{badges}}