summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2026-09-14 11:03:21 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2026-09-14 12:55:34 -0400
commit56adb721f244d26f1f416b57634a00601f7eddf0 (patch)
treedd653ecb0c6624102ae5c72e74d86a771b47c986 /src
parentsearch cgi: follow the search database's attribute and element (diff)
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 <div class="table"> around a <table class="table">, column widths in a <colgroup>, <thead>/<tbody>, scope on the header cells, and alignment by class). (assisted by Claude-Code)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sisudoc/spine_search.d27
1 files changed, 27 insertions, 0 deletions
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;