Various RTD related fixes.

This commit is contained in:
Rapptz
2020-06-25 03:57:58 -04:00
parent 8d635b765d
commit 1253a372d9
3 changed files with 30 additions and 6 deletions

View File

@ -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);