aboutsummaryrefslogtreecommitdiff
path: root/docs/_static/style.css
diff options
context:
space:
mode:
authorJosh <[email protected]>2020-05-27 16:22:21 +1000
committerRapptz <[email protected]>2020-12-18 21:18:50 -0500
commit8be9ef38db66a6d63447c1d22884eccc9c019cc6 (patch)
tree966f830acb3435b76c336ca2fcd00c9d9bf5514c /docs/_static/style.css
parent[matrix] Refactor docs JS (diff)
downloaddiscord.py-8be9ef38db66a6d63447c1d22884eccc9c019cc6.tar.xz
discord.py-8be9ef38db66a6d63447c1d22884eccc9c019cc6.zip
[matrix] Create settings modal
* Create settings modal * Fix issue with spacing after settings button * Fix issue with modal background on mobile devices * Add close button to modal * Add tooltip to close button * Support closing modal with escape key * Add missing semicolon to keydown event listener
Diffstat (limited to 'docs/_static/style.css')
-rw-r--r--docs/_static/style.css41
1 files changed, 38 insertions, 3 deletions
diff --git a/docs/_static/style.css b/docs/_static/style.css
index 059197d6..3cd20d06 100644
--- a/docs/_static/style.css
+++ b/docs/_static/style.css
@@ -1,7 +1,5 @@
/* this stuff uses a couple of themes as a base with some custom stuff added
-
In particular thanks to:
-
- Alabaster for being a good base
- Which thanks Flask + KR theme
- Sphinx Readable Theme
@@ -58,6 +56,43 @@ div.footer a {
text-decoration: underline;
}
+div.modal {
+ position: fixed;
+ z-index: 1;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ overflow: auto;
+ background-color: rgba(0,0,0,0.4);
+ cursor: pointer;
+}
+
+div.modal-content {
+ background-color: #ffffff;
+ box-shadow: 0 2px 8px rgba(0,0,0,0.54);
+ padding: 24px;
+ border-radius: 4px;
+ margin: 20% auto;
+ width: 40%;
+ cursor: initial;
+}
+
+div.modal-content > span.close {
+ color: #888;
+ float: right;
+ font-size: 24px;
+ font-weight: bold;
+ cursor: pointer;
+ -moz-user-select: none;
+ -webkit-user-select: none;
+}
+
+div.modal-content > span.close:hover,
+div.modal-content > span.close:focus {
+ color: #444;
+}
+
div.related {
padding: 10px 10px;
width: 100%;
@@ -617,4 +652,4 @@ div.code-block-caption {
background-color: transparent;
border-left: none;
}
-}
+} \ No newline at end of file