Compare commits
1 Commits
a20812ec29
...
3cfc437599
| Author | SHA1 | Date | |
|---|---|---|---|
| 3cfc437599 |
@@ -479,10 +479,17 @@ h1 {
|
||||
|
||||
[data-tab-content] {
|
||||
display: none;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
[data-tab-content].active {
|
||||
display: block;
|
||||
animation: tabFadeIn 0.25s ease-out forwards;
|
||||
}
|
||||
|
||||
@keyframes tabFadeIn {
|
||||
from { opacity: 0; transform: translateY(6px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
@@ -1162,7 +1169,7 @@ button:disabled {
|
||||
border-right: 2px solid var(--text-muted);
|
||||
border-bottom: 2px solid var(--text-muted);
|
||||
transform: rotate(-45deg);
|
||||
transition: transform 0.2s;
|
||||
transition: transform 0.3s ease;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@@ -1177,6 +1184,12 @@ button:disabled {
|
||||
.settings-section-content {
|
||||
padding: 0 1rem 1rem;
|
||||
overflow-x: auto;
|
||||
animation: settingsExpand 0.3s ease-out;
|
||||
}
|
||||
|
||||
@keyframes settingsExpand {
|
||||
from { opacity: 0; transform: translateY(-8px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.settings-section-description {
|
||||
@@ -1660,6 +1673,11 @@ dialog {
|
||||
width: 90%;
|
||||
margin: auto;
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
|
||||
animation: dialogIn 0.25s ease-out;
|
||||
}
|
||||
|
||||
dialog.dialog-closing {
|
||||
animation: dialogOut 0.2s ease-in forwards;
|
||||
}
|
||||
|
||||
/* Ensure dialogs are hidden until explicitly opened */
|
||||
@@ -1669,6 +1687,31 @@ dialog:not([open]) {
|
||||
|
||||
dialog::backdrop {
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
animation: backdropIn 0.25s ease-out;
|
||||
}
|
||||
|
||||
dialog.dialog-closing::backdrop {
|
||||
animation: backdropOut 0.2s ease-in forwards;
|
||||
}
|
||||
|
||||
@keyframes dialogIn {
|
||||
from { opacity: 0; transform: scale(0.9) translateY(10px); }
|
||||
to { opacity: 1; transform: scale(1) translateY(0); }
|
||||
}
|
||||
|
||||
@keyframes dialogOut {
|
||||
from { opacity: 1; transform: scale(1) translateY(0); }
|
||||
to { opacity: 0; transform: scale(0.9) translateY(10px); }
|
||||
}
|
||||
|
||||
@keyframes backdropIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
@keyframes backdropOut {
|
||||
from { opacity: 1; }
|
||||
to { opacity: 0; }
|
||||
}
|
||||
|
||||
.confirm-dialog {
|
||||
@@ -2582,6 +2625,8 @@ footer .separator {
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
animation: itemFadeIn 0.3s ease-out backwards;
|
||||
animation-delay: calc(var(--item-index, 0) * 20ms);
|
||||
}
|
||||
|
||||
.browser-list-item:hover {
|
||||
@@ -2709,6 +2754,13 @@ footer .separator {
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
position: relative;
|
||||
animation: itemFadeIn 0.3s ease-out backwards;
|
||||
animation-delay: calc(var(--item-index, 0) * 30ms);
|
||||
}
|
||||
|
||||
@keyframes itemFadeIn {
|
||||
from { opacity: 0; transform: translateY(8px) scale(0.97); }
|
||||
to { opacity: 1; transform: translateY(0) scale(1); }
|
||||
}
|
||||
|
||||
.browser-item:hover {
|
||||
@@ -3113,6 +3165,11 @@ footer .separator {
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
transition: transform 0.3s ease;
|
||||
animation: bannerSlideIn 0.4s ease-out;
|
||||
}
|
||||
|
||||
.connection-banner:not(.hidden) {
|
||||
animation: bannerSlideIn 0.4s ease-out, bannerPulse 2s ease-in-out 0.4s 2;
|
||||
}
|
||||
|
||||
.connection-banner.hidden {
|
||||
@@ -3120,6 +3177,16 @@ footer .separator {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@keyframes bannerSlideIn {
|
||||
from { transform: translateY(-100%); }
|
||||
to { transform: translateY(0); }
|
||||
}
|
||||
|
||||
@keyframes bannerPulse {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.7; }
|
||||
}
|
||||
|
||||
.connection-banner-btn {
|
||||
padding: 4px 14px;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
@@ -3237,3 +3304,12 @@ body.mini-player-visible footer {
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
}
|
||||
|
||||
/* Accessibility: reduce motion for users who prefer it */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -250,9 +250,10 @@ function renderBrowserList(items, container) {
|
||||
return;
|
||||
}
|
||||
|
||||
items.forEach(item => {
|
||||
items.forEach((item, idx) => {
|
||||
const row = document.createElement('div');
|
||||
row.className = 'browser-list-item';
|
||||
row.style.setProperty('--item-index', Math.min(idx, 20));
|
||||
row.dataset.name = item.name;
|
||||
row.dataset.type = item.type;
|
||||
|
||||
@@ -343,9 +344,10 @@ function renderBrowserGrid(items, container) {
|
||||
return;
|
||||
}
|
||||
|
||||
items.forEach(item => {
|
||||
items.forEach((item, idx) => {
|
||||
const div = document.createElement('div');
|
||||
div.className = 'browser-item';
|
||||
div.style.setProperty('--item-index', Math.min(idx, 20));
|
||||
div.dataset.name = item.name;
|
||||
div.dataset.type = item.type;
|
||||
|
||||
@@ -870,7 +872,7 @@ function showManageFoldersDialog() {
|
||||
}
|
||||
|
||||
function closeFolderDialog() {
|
||||
document.getElementById('folderDialog').close();
|
||||
closeDialog(document.getElementById('folderDialog'));
|
||||
}
|
||||
|
||||
async function saveFolder(event) {
|
||||
|
||||
@@ -124,7 +124,7 @@ async function closeCallbackDialog() {
|
||||
|
||||
const dialog = document.getElementById('callbackDialog');
|
||||
callbackFormDirty = false;
|
||||
dialog.close();
|
||||
closeDialog(dialog);
|
||||
document.body.classList.remove('dialog-open');
|
||||
}
|
||||
|
||||
|
||||
@@ -331,6 +331,14 @@ function showToast(message, type = 'success') {
|
||||
}, TOAST_DURATION_MS);
|
||||
}
|
||||
|
||||
function closeDialog(dialog) {
|
||||
dialog.classList.add('dialog-closing');
|
||||
dialog.addEventListener('animationend', () => {
|
||||
dialog.classList.remove('dialog-closing');
|
||||
dialog.close();
|
||||
}, { once: true });
|
||||
}
|
||||
|
||||
function showConfirm(message) {
|
||||
return new Promise((resolve) => {
|
||||
const dialog = document.getElementById('confirmDialog');
|
||||
@@ -344,7 +352,7 @@ function showConfirm(message) {
|
||||
btnCancel.removeEventListener('click', onCancel);
|
||||
btnConfirm.removeEventListener('click', onConfirm);
|
||||
dialog.removeEventListener('close', onClose);
|
||||
dialog.close();
|
||||
closeDialog(dialog);
|
||||
}
|
||||
|
||||
function onCancel() { cleanup(); resolve(false); }
|
||||
|
||||
@@ -329,7 +329,7 @@ async function closeLinkDialog() {
|
||||
|
||||
const dialog = document.getElementById('linkDialog');
|
||||
linkFormDirty = false;
|
||||
dialog.close();
|
||||
closeDialog(dialog);
|
||||
document.body.classList.remove('dialog-open');
|
||||
}
|
||||
|
||||
|
||||
@@ -283,7 +283,7 @@ async function closeScriptDialog() {
|
||||
|
||||
const dialog = document.getElementById('scriptDialog');
|
||||
scriptFormDirty = false;
|
||||
dialog.close();
|
||||
closeDialog(dialog);
|
||||
document.body.classList.remove('dialog-open');
|
||||
}
|
||||
|
||||
@@ -375,7 +375,7 @@ async function deleteScriptConfirm(scriptName) {
|
||||
|
||||
function closeExecutionDialog() {
|
||||
const dialog = document.getElementById('executionDialog');
|
||||
dialog.close();
|
||||
closeDialog(dialog);
|
||||
document.body.classList.remove('dialog-open');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user