Muhammad Hamza
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
7 additions and
4 deletions
-
docs/_static/custom.js
-
docs/_static/style.css
|
|
@ -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' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -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, |
|
|
|