+
+
+
+
+
Add Library
JavaScript
Note: You can load external scripts from following domains: localhost, https://ajax.googleapis.com, https://code.jquery.com, https://cdnjs.cloudflare.com, https://unpkg.com, https://maxcdn.com, https://cdn77.com, https://maxcdn.bootstrapcdn.com, https://cdn.jsdelivr.net/, https://rawgit.com, https://wzrd.in
@@ -268,6 +273,11 @@
+
+
+
+
+
Atomic CSS Settings
Configure Atomizer settings. Read more about available settings.
@@ -278,6 +288,11 @@
+
+
+
+
+
Web Maker v2.9.1
Made with 💖 & 🙌 by Kushagra Gour
@@ -371,6 +386,11 @@
+
+
+
+
+
Settings
Indentation
@@ -583,6 +603,10 @@
+
+
+
+
diff --git a/src/script.js b/src/script.js
index 54c2bda..e66f5b3 100644
--- a/src/script.js
+++ b/src/script.js
@@ -1913,6 +1913,11 @@ globalConsoleContainerEl
trackEvent('ui', 'cssSettingsBtnClick');
};
+ scope.onModalCloseBtnClick = function(e) {
+ closeAllOverlays();
+ e.preventDefault();
+ };
+
function init() {
var lastCode;
@@ -2140,10 +2145,10 @@ globalConsoleContainerEl
});
window.addEventListener('click', function(e) {
- if (
- typeof e.target.className === 'string' &&
- e.target.className.indexOf('modal-overlay') !== -1
- ) {
+ if (typeof e.target.className !== 'string') {
+ return;
+ }
+ if (e.target.className.indexOf('modal-overlay') !== -1) {
closeAllOverlays();
}
});
diff --git a/src/style.css b/src/style.css
index aacafa2..ce1042a 100644
--- a/src/style.css
+++ b/src/style.css
@@ -438,6 +438,20 @@ body > #demo-frame {
margin-left: -45vw;
}
}
+.modal__close-btn {
+ position: absolute;
+ right: 10px;
+ top: 10px;
+ opacity: 0.3;
+transition: 0.25s ease;
+}
+.modal__close-btn > svg {
+ fill: black;
+ width:30px; height:30px;
+}
+.modal__close-btn:hover {
+ opacity: 0.7;
+}
.modal__content {
background: #fdfdfd;
color: #444;