diff options
| author | Jens Reidel <[email protected]> | 2020-05-25 19:54:06 +0200 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-12-18 21:18:50 -0500 |
| commit | e3ffe22129dc5240694efcaf38f22484c8916c78 (patch) | |
| tree | bef26fd3b2a74510916bf330c36e316e8726b755 /docs | |
| parent | Bump Sphinx to 3.0.3 (diff) | |
| download | discord.py-e3ffe22129dc5240694efcaf38f22484c8916c78.tar.xz discord.py-e3ffe22129dc5240694efcaf38f22484c8916c78.zip | |
Add fixed header links, fix some parts of mobile UI
Dynamic content width equal to old one if on 1080p
Fix mobile view
Disable fixed header on mobile
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/_static/style.css | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/docs/_static/style.css b/docs/_static/style.css index d371518c..059197d6 100644 --- a/docs/_static/style.css +++ b/docs/_static/style.css @@ -22,8 +22,8 @@ p { } div.document { - margin: 10px auto 0 auto; - max-width: 1200px; /* page width */ + margin: 46px auto 0 auto; + max-width: 62.5%; /* page width */ } div.body { @@ -60,7 +60,17 @@ div.footer a { div.related { padding: 10px 10px; - width: auto; + width: 100%; + position: fixed; + top: 0; +} + +div.related li.right:nth-of-type(1) { + padding-right: 13px; +} + +.py-attribute-table { + flex-wrap: wrap; } div.sphinxsidebar { @@ -526,10 +536,14 @@ div.code-block-caption { } @media screen and (max-width: 870px) { + div.related { + position: relative; + } div.document { + margin: 10px 0 0 0; width: auto; - margin: 0; + max-width: none; } div.documentwrapper { @@ -542,7 +556,7 @@ div.code-block-caption { div.body { min-height: 0; - padding: 0 20px 30px 20px; + padding: 0 0 30px 10px; } div.footer { @@ -562,6 +576,10 @@ div.code-block-caption { color: #fff; } + table.docutils td { + word-break: break-all; + } + div.sphinxsidebar { background-color: #333; color: #fff; |