From 56adb721f244d26f1f416b57634a00601f7eddf0 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 14 Sep 2026 11:03:21 -0400 Subject: update stylesheet for current table markup The stylesheet gains the rules that reproduce what the attributes did, so a table in a search result renders as it did before. (Tables written into the search database lost their obsolete presentational attributes: no summary, width, border, cellpadding or align, a
around a , column widths in a , /, scope on the header cells, and alignment by class). (assisted by Claude-Code) --- flake.lock | 14 +++++++------- org/spine_search_cgi.org | 27 +++++++++++++++++++++++++++ src/sisudoc/spine_search.d | 27 +++++++++++++++++++++++++++ 3 files changed, 61 insertions(+), 7 deletions(-) diff --git a/flake.lock b/flake.lock index e65d1da..2f412df 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1782978903, - "narHash": "sha256-bG1LAS3YehMzp4RSXw99o3yMEO/Ktb0Tx29RCtEU0Tk=", + "lastModified": 1789264731, + "narHash": "sha256-llGJbC0CcU8DfROr6mZjRJgMLQd/SKwfpzxJH/2lHO4=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "d33369954a67ae3322177dc9a3d564092912120c", + "rev": "02f5696b0e6097e589076d886b317b83ff0437d7", "type": "github" }, "original": { @@ -29,11 +29,11 @@ ] }, "locked": { - "lastModified": 1775877366, - "narHash": "sha256-W33lhJ9+/KEl1xoGKw/BYHIZpuqjLpDHjlue2CVQrcM=", + "lastModified": 1788134589, + "narHash": "sha256-XoZzRMjJQZbjp5ncIXryoMtbOp2Go3rRx4iH3LFuj9w=", "ref": "refs/heads/main", - "rev": "40ccbcf2cf53b1fd1476e7ced6b70c29d491d464", - "revCount": 30, + "rev": "b11aed87ac5cabc40c01e46b372f035d1a8d6d57", + "revCount": 32, "type": "git", "url": "git://git.sisudoc.org/package/dlang-nix-overlays-and-flake" }, diff --git a/org/spine_search_cgi.org b/org/spine_search_cgi.org index aadce48..c4cabe5 100644 --- a/org/spine_search_cgi.org +++ b/org/spine_search_cgi.org @@ -2063,6 +2063,33 @@ code { background-color : #555555; color : #DDDDDD; } +div.table { + margin : 1em 0; + overflow-x : auto; +} +table.table { + display : table; + width : 95%%; + margin : 0 auto; + border-collapse : collapse; + background-color : inherit; +} +table.table th, table.table td { + padding : 2px; + vertical-align : top; +} +table.table th { + font-weight : bold; +} +th.left, td.left { + text-align : left; +} +th.right, td.right { + text-align : right; +} +p.tablenote { + margin : 0.5em 0 0 0; +} pre { width : auto; display : block; diff --git a/src/sisudoc/spine_search.d b/src/sisudoc/spine_search.d index bb78fa6..92500aa 100755 --- a/src/sisudoc/spine_search.d +++ b/src/sisudoc/spine_search.d @@ -1218,6 +1218,33 @@ void spine_cgi_search_function(Cgi cgi) { background-color : #555555; color : #DDDDDD; } + div.table { + margin : 1em 0; + overflow-x : auto; + } + table.table { + display : table; + width : 95%%; + margin : 0 auto; + border-collapse : collapse; + background-color : inherit; + } + table.table th, table.table td { + padding : 2px; + vertical-align : top; + } + table.table th { + font-weight : bold; + } + th.left, td.left { + text-align : left; + } + th.right, td.right { + text-align : right; + } + p.tablenote { + margin : 0.5em 0 0 0; + } pre { width : auto; display : block; -- cgit v1.2.3