diff options
author | Neya <dsignr@users.noreply.github.com> | 2019-10-07 16:25:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-07 16:25:08 +0800 |
commit | 827b6d75a04c95d2dead519b61133090eb1e717e (patch) | |
tree | 00a74dacc7fbd2b619c280585f407c98cf7a65f9 | |
parent | b1a6997fe6895f9ddad0f22d61ac6588bc7d1d24 (diff) | |
download | pycco-827b6d75a04c95d2dead519b61133090eb1e717e.tar.gz |
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.
-rw-r--r-- | pycco_resources/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
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; |