summaryrefslogtreecommitdiffhomepage
path: root/org
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 /org
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 'org')
-rw-r--r--org/spine_search_cgi.org27
1 files changed, 27 insertions, 0 deletions
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;