aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Hamza <[email protected]>2020-08-29 17:19:49 -0700
committerGitHub <[email protected]>2020-08-29 20:19:49 -0400
commit597f7e30b8bb27e0d781b12f319fe379544e2531 (patch)
tree0bc7fcf630bff5cc4c1033dada22e9d8f1366277
parentFix tooltips in settings and make strings translatable (diff)
downloaddiscord.py-597f7e30b8bb27e0d781b12f319fe379544e2531.tar.xz
discord.py-597f7e30b8bb27e0d781b12f319fe379544e2531.zip
[matrix] Update model styles
-rw-r--r--docs/_static/custom.js4
-rw-r--r--docs/_static/style.css7
2 files changed, 7 insertions, 4 deletions
diff --git a/docs/_static/custom.js b/docs/_static/custom.js
index 6e5c4ff5..95d1539b 100644
--- a/docs/_static/custom.js
+++ b/docs/_static/custom.js
@@ -13,7 +13,7 @@ class Modal {
close() {
activeModal = null;
- this.element.hidden = true;
+ this.element.style.display = 'none'
}
open() {
@@ -21,7 +21,7 @@ class Modal {
activeModal.close();
}
activeModal = this;
- this.element.hidden = false;
+ this.element.style.display = 'flex'
}
}
diff --git a/docs/_static/style.css b/docs/_static/style.css
index b32e5464..1b549b46 100644
--- a/docs/_static/style.css
+++ b/docs/_static/style.css
@@ -510,6 +510,7 @@ div.modal {
overflow: hidden;
background-color: rgba(0,0,0,0.4);
cursor: pointer;
+ display: none;
}
div.modal-content {
@@ -517,10 +518,11 @@ div.modal-content {
box-shadow: 0 2px 8px rgba(0,0,0,0.54);
padding: 24px;
border-radius: 4px;
- margin: 20% auto;
- width: 40%;
+ max-width: 40%;
min-width: 350px;
cursor: initial;
+ flex: 1;
+ margin: auto;
}
div.modal-content > span.close {
@@ -529,6 +531,7 @@ div.modal-content > span.close {
font-weight: bold;
-moz-user-select: none;
-webkit-user-select: none;
+ cursor: pointer;
}
div.modal-content > span.close:hover,