[refactor] remove unused class from modal and shade module

This commit is contained in:
zombieFox 2019-07-28 14:03:47 +01:00
parent 2f68d8c5ec
commit 862e482ff0
5 changed files with 3 additions and 13 deletions

View File

@ -34,17 +34,13 @@
grid-template-rows: 1fr auto; grid-template-rows: 1fr auto;
justify-items: stretch; justify-items: stretch;
align-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 { .modal-wrapper .container {
max-width: 100%; max-width: 100%;
} }
.is-transition-end .modal-wrapper {
transition: opacity var(--layout-transition-speed-fast) ease-in-out;
}
.modal-body { .modal-body {
border-radius: var(--theme-radius) var(--theme-radius) 0 0; border-radius: var(--theme-radius) var(--theme-radius) 0 0;
padding: 2em; padding: 2em;

View File

@ -115,9 +115,6 @@ var modal = (function() {
if (event.propertyName === "opacity" && getComputedStyle(this).opacity == 0) { if (event.propertyName === "opacity" && getComputedStyle(this).opacity == 0) {
this.parentElement.removeChild(this); this.parentElement.removeChild(this);
}; };
if (event.propertyName === "opacity" && getComputedStyle(this).opacity == 1) {
helper.addClass(this, "is-transition-end");
};
}.bind(modal), false); }.bind(modal), false);
actionButton.addEventListener("click", function(event) { actionButton.addEventListener("click", function(event) {
if (options.successAction) { if (options.successAction) {

View File

@ -80,9 +80,6 @@ var shade = (function() {
if (event.propertyName === "opacity" && getComputedStyle(this).opacity == 0) { if (event.propertyName === "opacity" && getComputedStyle(this).opacity == 0) {
this.parentElement.removeChild(this); this.parentElement.removeChild(this);
}; };
if (event.propertyName === "opacity" && getComputedStyle(this).opacity == 1) {
helper.addClass(this, "is-transition-end");
};
}.bind(shade), false); }.bind(shade), false);
shade.addEventListener("click", function() { shade.addEventListener("click", function() {
if (options.action) { if (options.action) {

View File

@ -1,6 +1,6 @@
var version = (function() { var version = (function() {
var current = "3.61.3"; var current = "3.62.0";
var compare = function(a, b) { var compare = function(a, b) {
var pa = a.split("."); var pa = a.split(".");

View File

@ -2,7 +2,7 @@
"name": "nightTab", "name": "nightTab",
"short_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.", "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, "manifest_version": 2,
"chrome_url_overrides": { "chrome_url_overrides": {
"newtab": "index.html" "newtab": "index.html"