From 8567e9bb2b2756a3394587447f946f8575b574dc Mon Sep 17 00:00:00 2001 From: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com> Date: Tue, 24 Feb 2026 23:16:00 -0500 Subject: [PATCH] Improve mobile table and heading styles in docs --- docs/stylesheets/extra.css | 58 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index a91d2ea5..b5985be3 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -160,6 +160,22 @@ color: var(--md-default-fg-color--light); } +.md-typeset h1 { + font-weight: 700; + letter-spacing: -0.02em; +} + +.md-typeset h2 { + font-weight: 600; + border-bottom: 1px solid var(--md-border-color); + padding-bottom: 0.3em; +} + +.md-typeset h3, +.md-typeset h4 { + font-weight: 600; +} + .md-typeset table { display: table; width: 100%; @@ -178,6 +194,48 @@ min-width: 250px; } +@media screen and (max-width: 76.25em) { + .md-typeset__table { + display: block; + overflow-x: auto; + -webkit-overflow-scrolling: touch; + } + + .md-typeset__table > table { + display: table; + min-width: 100%; + } + + .md-typeset__table thead th { + position: sticky; + top: 0; + background-color: var(--md-typeset-table-header-bg); + z-index: 1; + } + + .md-typeset table { + display: inline-table; + width: auto; + min-width: 100%; + } + + .md-typeset table td, + .md-typeset table th { + max-width: none; + padding: 0.5em 0.75em; + } + + .md-typeset table th:first-child, + .md-typeset table td:first-child { + width: auto; + min-width: auto; + } + + .md-typeset table code { + word-break: break-all; + } +} + .md-grid { max-width: 1400px; }