From 8bc2f685f640b2f0951d9d791598dbdc24fce04d Mon Sep 17 00:00:00 2001 From: Dave Shawley Date: Sun, 17 Apr 2016 09:01:08 -0400 Subject: [PATCH] More CSS refinement. This commit fixes the weird wrapping that happens with long class and function names. I was originally going to address this in a PR against sphinx before I figured out the specific CSS that cleans things up. --- docs/static/custom.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/static/custom.css b/docs/static/custom.css index 2bdb450..59fb5ed 100644 --- a/docs/static/custom.css +++ b/docs/static/custom.css @@ -19,3 +19,14 @@ div.document {width: 90%;} @media screen and (min-width: 1000px) { div.bodywrapper {margin-left: default;} } +/* hanging indent for class names + * would use "text-indent: 2em hanging" if it were supported everywhere + */ +dl.class > dt, dl.function > dt { + text-indent: -4em; + padding-left: 4em; +} +/* add some space to wrap nicely */ +span.sig-paren::after { + content: " "; +}