Tweaking speed, removing TODOs
This commit is contained in:
parent
2cbc35b20d
commit
aca0140471
|
@ -15,6 +15,7 @@
|
||||||
--toggle-margin-right: 5px;
|
--toggle-margin-right: 5px;
|
||||||
|
|
||||||
--speed-fast: .1s;
|
--speed-fast: .1s;
|
||||||
|
--speed-moderate: .2s;
|
||||||
--speed-slow: .3s;
|
--speed-slow: .3s;
|
||||||
|
|
||||||
--spacer-tiny: 2px;
|
--spacer-tiny: 2px;
|
||||||
|
@ -202,7 +203,7 @@ button:not(.delete):active > svg {
|
||||||
|
|
||||||
#toggle:active {
|
#toggle:active {
|
||||||
background-color: var(--button-state-disabled-bg);
|
background-color: var(--button-state-disabled-bg);
|
||||||
} /*TODO is this redundant? */
|
}
|
||||||
|
|
||||||
#toggle.is-on {
|
#toggle.is-on {
|
||||||
background-color: var(--button-state-enabled-bg);
|
background-color: var(--button-state-enabled-bg);
|
||||||
|
@ -215,7 +216,7 @@ button:not(.delete):active > svg {
|
||||||
|
|
||||||
#toggle.is-on:active {
|
#toggle.is-on:active {
|
||||||
background-color: var(--button-state-enabled-bg);
|
background-color: var(--button-state-enabled-bg);
|
||||||
} /*TODO same deal as above */
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -517,11 +518,13 @@ button:not(.delete):active > svg {
|
||||||
}
|
}
|
||||||
|
|
||||||
.reveal-slow {
|
.reveal-slow {
|
||||||
transition:
|
transition: all var(--speed-slow) ease-out !important;
|
||||||
all var(--speed-slow) ease-out !important;
|
}
|
||||||
|
|
||||||
|
.reveal-moderate {
|
||||||
|
transition: all var(--speed-moderate) ease-out !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reveal-fast {
|
.reveal-fast {
|
||||||
transition:
|
transition: all var(--speed-fast) ease-out !important;
|
||||||
all var(--speed-fast) ease-out !important;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,6 @@ function init() {
|
||||||
document.querySelector("#restore").addEventListener("click", restore);
|
document.querySelector("#restore").addEventListener("click", restore);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*TODO except browser like about*/
|
|
||||||
/* Loads and displays information about the current domain */
|
/* Loads and displays information about the current domain */
|
||||||
function loadDomain() {
|
function loadDomain() {
|
||||||
let tabs = browser.tabs.query({ active: true, currentWindow: true });
|
let tabs = browser.tabs.query({ active: true, currentWindow: true });
|
||||||
|
@ -160,7 +159,7 @@ function saveAlso() {
|
||||||
/* Creates the HTML for a new also replacement */
|
/* Creates the HTML for a new also replacement */
|
||||||
function createLi(index) {
|
function createLi(index) {
|
||||||
const li = document.createElement("li");
|
const li = document.createElement("li");
|
||||||
li.classList.add("reveal-slow");
|
li.classList.add("reveal-moderate");
|
||||||
|
|
||||||
const lhs = document.createElement("input");
|
const lhs = document.createElement("input");
|
||||||
lhs.type = "text";
|
lhs.type = "text";
|
||||||
|
|
Loading…
Reference in New Issue