aboutsummaryrefslogtreecommitdiff
path: root/docs/_static/style.css
diff options
context:
space:
mode:
authorJosh <[email protected]>2021-01-12 17:34:54 +1000
committerGitHub <[email protected]>2021-01-12 02:34:54 -0500
commitf78f1355050721324997a80aae6e4ad05d6f131d (patch)
tree67196a7fa508785b39fd5ae88bad0a809f58e7e8 /docs/_static/style.css
parent[commands] Correct ChannelNotFound docstring (diff)
downloaddiscord.py-f78f1355050721324997a80aae6e4ad05d6f131d.tar.xz
discord.py-f78f1355050721324997a80aae6e4ad05d6f131d.zip
[matrix] Add scroll to top button
Diffstat (limited to 'docs/_static/style.css')
-rw-r--r--docs/_static/style.css33
1 files changed, 33 insertions, 0 deletions
diff --git a/docs/_static/style.css b/docs/_static/style.css
index c9385bbf..96d5ab0a 100644
--- a/docs/_static/style.css
+++ b/docs/_static/style.css
@@ -97,6 +97,8 @@ Historically however, thanks to:
--rtd-ad-background: var(--grey-2);
--rtd-ad-main-text: var(--grey-6);
--rtd-ad-small-text: var(--grey-4);
+ --rtd-version-background: #272525;
+ --rtd-version-main-text: #fcfcfc;
--attribute-table-title: var(--grey-6);
--attribute-table-entry-border: var(--grey-3);
--attribute-table-entry-text: var(--grey-5);
@@ -576,6 +578,37 @@ div.modal input {
cursor: pointer;
}
+/* scroll to top button */
+
+#to-top {
+ position: fixed;
+ bottom: 50px;
+ right: 20px;
+
+ cursor: pointer;
+}
+
+#to-top.is-rtd {
+ bottom: 90px;
+}
+
+#to-top > span {
+ display: block;
+
+ width: auto;
+ height: 30px;
+ padding: 0 6px;
+
+ background-color: var(--rtd-version-background);
+ color: var(--rtd-version-main-text);
+}
+
+#to-top span {
+ line-height: 30px;
+ font-size: 90%;
+ text-align: center;
+}
+
/* copy button */
.relative-copy {