diff options
| author | Josh <[email protected]> | 2020-06-27 15:16:37 +1000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-06-27 01:16:37 -0400 |
| commit | 2ef0695e8168a1636ceeaf4b6d354eedbc5fe862 (patch) | |
| tree | 77f50a1fac33467a2c046a9f100727bcce71c969 | |
| parent | Various RTD related fixes. (diff) | |
| download | discord.py-2ef0695e8168a1636ceeaf4b6d354eedbc5fe862.tar.xz discord.py-2ef0695e8168a1636ceeaf4b6d354eedbc5fe862.zip | |
[matrix] General Sidebar cleanup (#5061)
| -rw-r--r-- | docs/_static/style.css | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/docs/_static/style.css b/docs/_static/style.css index b4266464..fa2821ad 100644 --- a/docs/_static/style.css +++ b/docs/_static/style.css @@ -255,7 +255,7 @@ footer a { aside { grid-area: s; font-size: 14px; - line-height: 1.5em; + line-height: 1.75em; top: 0; position: -webkit-sticky; /* safari */ position: sticky; @@ -303,7 +303,7 @@ aside h3 { #sidebar ul { list-style: none; - margin: 1em 1em 2em 0; + margin: 1em 2em 2em 1em; padding: 0; } @@ -926,6 +926,7 @@ div.code-block-caption { top: 1em; height: calc(100vh - 1em); overflow-y: auto; + margin: 1em; } #sidebar a { @@ -933,11 +934,24 @@ div.code-block-caption { } .active { - background-color: var(--active-toc); + background-color: transparent; border-left: none; position: relative; } + .active::before { + content: ""; + display: inline-block; + background-color: var(--active-toc); + position: absolute; + top: 0; + bottom: 0; + right: 0; + width: calc(100% + 0.5em); + border-radius: 4px; + z-index: -1; + } + #sidebar a:hover { color: var(--nav-hover-text); } |