diff options
| author | Rapptz <[email protected]> | 2020-06-25 03:57:58 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-12-18 21:18:53 -0500 |
| commit | 1253a372d964a7cd3647002d987acbcd3d273a4f (patch) | |
| tree | 59cd29efb52746ab3a117af23b0cadb69695500f /docs/_static | |
| parent | Set colours for active sidebar elements (diff) | |
| download | discord.py-1253a372d964a7cd3647002d987acbcd3d273a4f.tar.xz discord.py-1253a372d964a7cd3647002d987acbcd3d273a4f.zip | |
Various RTD related fixes.
Diffstat (limited to 'docs/_static')
| -rw-r--r-- | docs/_static/style.css | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/_static/style.css b/docs/_static/style.css index b55443da..b4266464 100644 --- a/docs/_static/style.css +++ b/docs/_static/style.css @@ -74,6 +74,9 @@ Historically however, thanks to: --active-toc: #dbdbdb; --scrollbar: rgba(0,0,0,0.2); --scrollbar-hover: rgba(0,0,0,0.4); + --rtd-ad-border: #bfbfbf; + --rtd-ad-background: #eeeeee; + --rtd-ad-text-rgb: 64, 64, 64; } :root[data-font="sans"] { @@ -124,6 +127,9 @@ Historically however, thanks to: --active-toc: #212121; --scrollbar: rgba(0,0,0,0.5); --scrollbar-hover: rgba(0,0,0,0.7); + --rtd-ad-border: #333333; + --rtd-ad-background: #404040; + --rtd-ad-text-rgb: 221, 221, 221; } img[src$="snake_dark.svg"] { @@ -844,6 +850,21 @@ section#welcome-to-discord-py > h1 { display: none; } +/* make the RTD ad look a little less jarring */ + +.ethical-fixedfooter { + background-color: var(--rtd-ad-background) !important; + border-top: 1px solid var(--rtd-ad-border) !important; +} + +.ethical-fixedfooter a { + color: rgb(var(--rtd-ad-text-rgb)) !important; +} + +.ethical-callout a { + color: rgba(var(--rtd-ad-text-rgb), 0.7) !important; +} + .active { background-color: var(--mobile-active-toc); border-left: 5px solid var(--mobile-active-toc); |