From 827b6d75a04c95d2dead519b61133090eb1e717e Mon Sep 17 00:00:00 2001 From: Neya Date: Mon, 7 Oct 2019 16:25:08 +0800 Subject: Add scrolling behaviour to overflowing `pre` When a `pre` tag contains lengthy single line content, it masks the actual code in the generated HTML documentation. This simple fix make the horizontal content scrollable instead of overflowing into the code area. --- pycco_resources/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pycco_resources/__init__.py b/pycco_resources/__init__.py index 08767b7..d992f4c 100644 --- a/pycco_resources/__init__.py +++ b/pycco_resources/__init__.py @@ -86,6 +86,7 @@ div.docs { .docs pre { margin: 15px 0 15px; padding-left: 15px; + overflow-y: scroll; } .docs p tt, .docs p code { background: #f8f8ff; -- cgit v1.2.1