From 862e482ff003f27979b0100e32c7806b2e8ce67c Mon Sep 17 00:00:00 2001 From: zombieFox Date: Sun, 28 Jul 2019 14:03:47 +0100 Subject: [PATCH] [refactor] remove unused class from modal and shade module --- src/css/modal.css | 6 +----- src/js/modal.js | 3 --- src/js/shade.js | 3 --- src/js/version.js | 2 +- src/manifest.json | 2 +- 5 files changed, 3 insertions(+), 13 deletions(-) diff --git a/src/css/modal.css b/src/css/modal.css index 5aab15c6..161260b2 100755 --- a/src/css/modal.css +++ b/src/css/modal.css @@ -34,17 +34,13 @@ grid-template-rows: 1fr auto; justify-items: stretch; align-items: stretch; - transition: opacity var(--layout-transition-speed-fast); + transition: opacity var(--layout-transition-speed-fast) ease-in-out; } .modal-wrapper .container { max-width: 100%; } -.is-transition-end .modal-wrapper { - transition: opacity var(--layout-transition-speed-fast) ease-in-out; -} - .modal-body { border-radius: var(--theme-radius) var(--theme-radius) 0 0; padding: 2em; diff --git a/src/js/modal.js b/src/js/modal.js index 57ccd9ce..3e36a5a0 100644 --- a/src/js/modal.js +++ b/src/js/modal.js @@ -115,9 +115,6 @@ var modal = (function() { if (event.propertyName === "opacity" && getComputedStyle(this).opacity == 0) { this.parentElement.removeChild(this); }; - if (event.propertyName === "opacity" && getComputedStyle(this).opacity == 1) { - helper.addClass(this, "is-transition-end"); - }; }.bind(modal), false); actionButton.addEventListener("click", function(event) { if (options.successAction) { diff --git a/src/js/shade.js b/src/js/shade.js index 39d55665..8f5f1f30 100644 --- a/src/js/shade.js +++ b/src/js/shade.js @@ -80,9 +80,6 @@ var shade = (function() { if (event.propertyName === "opacity" && getComputedStyle(this).opacity == 0) { this.parentElement.removeChild(this); }; - if (event.propertyName === "opacity" && getComputedStyle(this).opacity == 1) { - helper.addClass(this, "is-transition-end"); - }; }.bind(shade), false); shade.addEventListener("click", function() { if (options.action) { diff --git a/src/js/version.js b/src/js/version.js index a51e452b..4e9f25f3 100644 --- a/src/js/version.js +++ b/src/js/version.js @@ -1,6 +1,6 @@ var version = (function() { - var current = "3.61.3"; + var current = "3.62.0"; var compare = function(a, b) { var pa = a.split("."); diff --git a/src/manifest.json b/src/manifest.json index 8b2c071c..76adcb1d 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,7 +2,7 @@ "name": "nightTab", "short_name": "nightTab", "description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.", - "version": "3.61.3", + "version": "3.62.0", "manifest_version": 2, "chrome_url_overrides": { "newtab": "index.html"