From ebc9156a155e5b44c11b4e930e16e24d04ac309d Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 3 Sep 2026 13:56:13 +0100 Subject: [PATCH] Style table fonts: monospace cells, sans-serif headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Table cell data (td) now uses a fixed-width stack (Consolas, SF Mono, Menlo, ...) at 0.92em so columns — especially numbers — align and scan cleanly; headers (th) use Arial/sans for clear contrast against the mono data. Applies to markdown and html_fragment tables via the shared base.css. Co-Authored-By: Claude Opus 4.8 --- static/themes/base.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/static/themes/base.css b/static/themes/base.css index 8294c84..6dbf937 100644 --- a/static/themes/base.css +++ b/static/themes/base.css @@ -36,6 +36,17 @@ td { text-align: left; } +/* Cell data in a fixed-width font so columns (esp. numbers) align and scan + cleanly; headers in a plain sans for contrast against the mono data. */ +td { + font-family: Consolas, "SF Mono", Menlo, Monaco, "Liberation Mono", monospace; + font-size: 0.92em; +} + +th { + font-family: Arial, Helvetica, sans-serif; +} + thead th { background: rgba(0, 0, 0, 0.05); font-weight: 600;