[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;
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;

View File

@ -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) {

View File

@ -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) {

View File

@ -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(".");

View File

@ -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"