diff options
| author | Josh <[email protected]> | 2020-06-28 17:42:14 +1000 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-12-18 21:18:54 -0500 |
| commit | 369da72f2fa46e7cd5dd647f79c0c6202bd4d57c (patch) | |
| tree | 23b6b4b561ab4638dec1bba90069587e734dce55 /docs/_static | |
| parent | Refactor CSS to use a colour palette and make light theme greyer. (diff) | |
| download | discord.py-369da72f2fa46e7cd5dd647f79c0c6202bd4d57c.tar.xz discord.py-369da72f2fa46e7cd5dd647f79c0c6202bd4d57c.zip | |
Fix sidebar scrolling on mobile
Diffstat (limited to 'docs/_static')
| -rw-r--r-- | docs/_static/style.css | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/_static/style.css b/docs/_static/style.css index 7f70997b..85fbabe6 100644 --- a/docs/_static/style.css +++ b/docs/_static/style.css @@ -300,6 +300,9 @@ aside { background-color: var(--mobile-nav-background); color: var(--mobile-nav-text); z-index: 2; + max-height: 100vh; + overflow-y: auto; + overscroll-behavior-y: contain; } aside h3 { @@ -318,7 +321,7 @@ aside h3 { } .sidebar-toggle { - display: initial !important; + display: unset !important; } #sidebar { @@ -987,6 +990,9 @@ div.code-block-caption { position: initial; background-color: var(--nav-background); color: var(--nav-text); + max-height: unset; + overflow-y: unset; + overscroll-behavior-y: unset; } aside h3 { |