From a0fd70c3e6518b0e8867f61da9def3344d697109 Mon Sep 17 00:00:00 2001 From: Eric Schneider <37347760+eric-schneider@users.noreply.github.com> Date: Wed, 18 Nov 2026 15:25:17 -0600 Subject: [PATCH] Add margins around top-level tables docs-ui's table margin rule only matches a table whose parent sits inside .doc. On a page without sections, a table is a direct child of article.doc, so neither the table nor the block after it gets the 24 px top margin that other tables get. In production, 215 such tables on 138 pages sit flush against the block above, and 198 follow the page title at 16 px (F01). Add the two selectors from upstream's 64fc443 in antora-ui-default, "add margin top to tables that are direct children of article.doc", so these tables get the same spacing as all others. --- src/css/asciidoc/doc.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/css/asciidoc/doc.css b/src/css/asciidoc/doc.css index e9fed258..eeeb31eb 100644 --- a/src/css/asciidoc/doc.css +++ b/src/css/asciidoc/doc.css @@ -262,6 +262,8 @@ overflow-x: auto; } + .doc > table.tableblock, + .doc > table.tableblock + *, .doc .tablecontainer, .doc .tablecontainer + *, .doc :not(.tablecontainer) > table.tableblock,