diff options
| author | Pradyun Gedam <pradyunsg@gmail.com> | 2020-02-10 21:56:17 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-10 16:26:17 +0000 |
| commit | c8ac1ed900e1c936cecf832372596fc9ed22d5a7 (patch) | |
| tree | 923646cc5b78945e36ef054f1f7040caf7881386 /docs/_static | |
| parent | aba720c51c185048ea39b33b653bf66b16bb9d56 (diff) | |
| download | virtualenv-c8ac1ed900e1c936cecf832372596fc9ed22d5a7.tar.gz | |
Documentation theme updates (#1548)
* Revert to default width and padding
* Make tables wider than the content
* Tweak whitespace on the release history page
* Tweak inline code snippets
* add changelog
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* fine-tune
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
Diffstat (limited to 'docs/_static')
| -rw-r--r-- | docs/_static/custom.css | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/docs/_static/custom.css b/docs/_static/custom.css index 07c1755..d941353 100644 --- a/docs/_static/custom.css +++ b/docs/_static/custom.css @@ -1,5 +1,4 @@ .wy-nav-content { - max-width: 51.5em; padding: 1em; } @@ -7,16 +6,16 @@ margin-bottom: 6px; } -/* override table width restrictions */ +/* Allow table content to wrap around */ .wy-table-responsive table th, .wy-table-responsive table td { - /* !important prevents the common CSS stylesheets from - overriding this as on RTD they are loaded after this stylesheet */ + /* !important because RTD has conflicting stylesheets */ white-space: normal !important; - padding: 6px !important; + padding: 8px 6px !important; } -.wy-table-responsive { - overflow: visible !important; +.wy-table-responsive table { + width: calc(100% + 3em); + margin-left: 20px !important; } .rst-content table.docutils td ol { @@ -35,10 +34,7 @@ div[class*="highlight-"] { margin-bottom: 12px; } -table { - margin-left: 20px !important; -} - +/* Tweak whitespace on the release history page */ #release-history p { margin-bottom: 0; margin-top: 0; @@ -60,6 +56,8 @@ table { margin-bottom: 12px; } +/* Reduce whitespace on the inline-code snippets and add softer corners */ .rst-content code { - padding: 2px; + padding: 2px 3px; + border-radius: 3px; } |
