From aabf57636f5abf5b5de5f6069a0d7d42f7aa6fac Mon Sep 17 00:00:00 2001 From: Sin-Kang Date: Fri, 30 Oct 2026 01:47:05 +0900 Subject: [PATCH] fix(docs): stabilize home table initialization geometry --- docs/stylesheets/extra.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 8a516fa..9acd66a 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -91,3 +91,19 @@ body[data-md-color-scheme="slate"] .hero-atmosphere > [aria-hidden="true"].hero- display: none; } } + +/* Keep the home module table box stable while Material adds its scroll wrappers. + * The wrapper contributes .5em at the article font size (.4rem), and a bare + * table has a different following-heading margin. Match only that initial box; + * these selectors stop matching after wrapping, leaving its final layout alone. + */ +@media screen { + .md-typeset:has(> h1#ssrf-guard) > table:not([class]) { + min-width: min-content; + margin-bottom: .4rem; + } + + .md-typeset:has(> h1#ssrf-guard) > table:not([class]) + h2 { + margin-top: 1.6em; + } +}