UI updates and remove CSP for plugins
This commit is contained in:
@@ -124,7 +124,7 @@ if (typeof anime !== "undefined") {
|
||||
form?.addEventListener("submit", async (e) => {
|
||||
e.preventDefault();
|
||||
errEl.textContent = "";
|
||||
successEl.style.display = "none";
|
||||
successEl.textContent = "";
|
||||
|
||||
if (newPass.value !== confirmPass.value) {
|
||||
errEl.textContent = "New passwords do not match";
|
||||
@@ -164,19 +164,14 @@ form?.addEventListener("submit", async (e) => {
|
||||
sessionStorage.removeItem("temp_user");
|
||||
|
||||
successEl.textContent = "Password changed successfully! Redirecting...";
|
||||
successEl.style.opacity = "0";
|
||||
successEl.style.display = "block";
|
||||
|
||||
if (typeof anime !== "undefined") {
|
||||
anime({
|
||||
targets: successEl,
|
||||
opacity: [0, 1],
|
||||
translateY: [-5, 0],
|
||||
duration: 400,
|
||||
easing: "easeOutQuad",
|
||||
});
|
||||
} else {
|
||||
successEl.style.opacity = "1";
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
|
||||
@@ -1478,21 +1478,74 @@ article.card[data-bookmarked="true"] {
|
||||
|
||||
.error {
|
||||
color: #ff9b9b;
|
||||
min-height: 18px;
|
||||
margin-top: 12px;
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
padding: 8px;
|
||||
padding: 0;
|
||||
border-radius: 8px;
|
||||
background: rgba(255, 99, 99, 0.1);
|
||||
border: 1px solid rgba(255, 99, 99, 0.2);
|
||||
background: transparent;
|
||||
border: 1px solid transparent;
|
||||
opacity: 0;
|
||||
transition:
|
||||
opacity 220ms ease,
|
||||
padding 220ms ease,
|
||||
background-color 220ms ease,
|
||||
border-color 220ms ease;
|
||||
}
|
||||
|
||||
.error:not(:empty) {
|
||||
opacity: 1;
|
||||
padding: 8px 10px;
|
||||
background: rgba(255, 99, 99, 0.1);
|
||||
border-color: rgba(255, 99, 99, 0.22);
|
||||
}
|
||||
|
||||
.success {
|
||||
color: #6ee7b7;
|
||||
margin-top: 12px;
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
padding: 0;
|
||||
border-radius: 8px;
|
||||
background: transparent;
|
||||
border: 1px solid transparent;
|
||||
opacity: 0;
|
||||
transition:
|
||||
opacity 220ms ease,
|
||||
padding 220ms ease,
|
||||
background-color 220ms ease,
|
||||
border-color 220ms ease;
|
||||
}
|
||||
|
||||
.success:not(:empty) {
|
||||
opacity: 1;
|
||||
padding: 8px 10px;
|
||||
background: rgba(16, 185, 129, 0.12);
|
||||
border-color: rgba(16, 185, 129, 0.28);
|
||||
}
|
||||
|
||||
.login-footer {
|
||||
margin-top: 18px;
|
||||
padding-top: 16px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.06);
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.login-footer a {
|
||||
color: #c4b8ff;
|
||||
text-decoration: none;
|
||||
border-bottom: 1px solid rgba(196, 184, 255, 0.25);
|
||||
transition: color 180ms ease, border-color 180ms ease;
|
||||
}
|
||||
|
||||
.login-footer a:hover {
|
||||
color: #e6dffe;
|
||||
border-bottom-color: rgba(230, 223, 254, 0.7);
|
||||
}
|
||||
|
||||
|
||||
.console-body {
|
||||
background:
|
||||
radial-gradient(120% 120% at 20% 20%, #102040 0%, transparent 45%),
|
||||
|
||||
Reference in New Issue
Block a user