From b7fb4cfa233e2edff95daf3dc2a58fee612ef031 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Tue, 26 Jan 2021 20:27:35 -0500 Subject: [PATCH] style.css: Add side-scroll to block displays Without this, my-old-man is a bit awkward on mobile, given the long make snippet which causes the regular content to be side-scrollable too. This patch should make the regular content not be scrollable and only the block displays overflow. --- style.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/style.css b/style.css index bece2b4..9c85051 100644 --- a/style.css +++ b/style.css @@ -41,6 +41,11 @@ table.head { margin-bottom: 3em; } /* hide the "miscellaneous" section bit -- too big on mobile */ td.head-vol { visibility: hidden; } +/* scrollbars on the block-display content */ +.Bd > pre { + overflow-x: auto; +} + /* defaults from mandoc(1)'s inlined CSS */ table.head, table.foot { width: 100%; } td.head-rtitle, td.foot-os { text-align: right; } -- libgit2 1.1.1