From 943e8e8b15572558ddd46b75d440dceea5d46829 Mon Sep 17 00:00:00 2001 From: squid Date: Sun, 15 Nov 2026 17:26:58 +0100 Subject: [PATCH] chore(style): add font tokens, normalize hex case, fix .note order - --font-title and --font-body replace four repeated literal font stacks. - Hex colors normalized to uppercase (6 of 9 values already were). - .note moved next to blockquote, its closest relative; it was stranded after the @media print block for no reason. - The RSS badge's rect now uses fill: var(--accent) instead of a hardcoded #D9480F, so it already follows the print override (--accent becomes #000) instead of ignoring it. Verified: CSS and the three touched pages (en index, services, it servizi) pass the W3C Nu checker. --- static/style.css | 40 +++++++++++++++++++++------------------- templates/feed.html | 2 +- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/static/style.css b/static/style.css index 61a6c53..3b9c2ad 100644 --- a/static/style.css +++ b/static/style.css @@ -3,19 +3,21 @@ --surface: #F1EDE0; --border: #D9D3C2; --text: #111417; - --muted: #5b564a; + --muted: #5B564A; --accent: #D9480F; - --link: #b13a0b; + --link: #B13A0B; + --font-title: "Courier New", Courier, monospace; + --font-body: Arial, Helvetica, sans-serif; } @media (prefers-color-scheme: dark) { :root { --bg: #111417; - --surface: #1b1f23; - --border: #5b564a; + --surface: #1B1F23; + --border: #5B564A; --text: #F9F7ED; - --muted: #8a8473; - --link: #f0683a; + --muted: #8A8473; + --link: #F0683A; } } @@ -25,13 +27,13 @@ body { padding: 1em; background-color: var(--bg); color: var(--text); - font-family: Arial, Helvetica, sans-serif; + font-family: var(--font-body); line-height: 1.6; } h1, h2, h3 { margin: 2em 0 .5em; - font-family: "Courier New", Courier, monospace; + font-family: var(--font-title); font-weight: normal; line-height: 1.25; } @@ -75,10 +77,18 @@ blockquote { border-left: 4px solid var(--accent); } +.note { + margin: 1em 0; + padding: .5em 1em; + border-left: 4px solid var(--accent); + background-color: var(--surface); + line-height: 1.6; +} + code { background-color: var(--surface); color: var(--text); - font-family: "Courier New", Courier, monospace; + font-family: var(--font-title); font-size: .9375em; overflow-wrap: anywhere; } @@ -123,7 +133,7 @@ code { @media print { :root { - --bg: #fff; + --bg: #FFF; --border: #000; --text: #000; --muted: #000; @@ -144,14 +154,6 @@ code { } } -.note { - margin: 1em 0; - padding: .5em 1em; - border-left: 4px solid var(--accent); - background-color: var(--surface); - line-height: 1.6; -} - table { width: 100%; border-collapse: collapse; @@ -190,7 +192,7 @@ thead th { .data tbody th { padding-top: 1em; border-bottom: none; - font-family: "Courier New", Courier, monospace; + font-family: var(--font-title); } .data td { diff --git a/templates/feed.html b/templates/feed.html index 4428eff..a35ac74 100644 --- a/templates/feed.html +++ b/templates/feed.html @@ -1 +1 @@ - +