summaryrefslogtreecommitdiff
path: root/pycco_resources/__init__.py
diff options
context:
space:
mode:
authorNeya <dsignr@users.noreply.github.com>2019-10-07 16:25:08 +0800
committerGitHub <noreply@github.com>2019-10-07 16:25:08 +0800
commit827b6d75a04c95d2dead519b61133090eb1e717e (patch)
tree00a74dacc7fbd2b619c280585f407c98cf7a65f9 /pycco_resources/__init__.py
parentb1a6997fe6895f9ddad0f22d61ac6588bc7d1d24 (diff)
downloadpycco-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.
Diffstat (limited to 'pycco_resources/__init__.py')
-rw-r--r--pycco_resources/__init__.py1
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;