browser audio processing phase 1
This commit is contained in:
@@ -128,7 +128,7 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.upload-icon {
|
||||
.drop-zone .upload-icon {
|
||||
display: grid;
|
||||
width: 4rem;
|
||||
aspect-ratio: 1;
|
||||
@@ -140,6 +140,38 @@
|
||||
background: #4777c94d;
|
||||
}
|
||||
|
||||
.drop-zone .upload-icon__content { position: relative; z-index: 1; margin: 0; color: inherit; font-size: inherit; font-weight: 850; }
|
||||
.audio-upload--uploading .upload-icon,
|
||||
.audio-upload--processing .upload-icon,
|
||||
.audio-upload--success .upload-icon,
|
||||
.audio-upload--error .upload-icon { position: relative; width: 5.5rem; margin-bottom: .25rem; color: #fff; font-size: 1.25rem; box-shadow: 0 0 0 .35rem #334e8d70, 0 .6rem 2rem #101a3fa6; }
|
||||
.audio-upload--uploading .upload-icon { background: conic-gradient(#91baff var(--upload-progress, 0%), #334b82 0); }
|
||||
.audio-upload--processing .upload-icon { background: #405caa; }
|
||||
.audio-upload--processing .upload-icon::after { content: ""; position: absolute; inset: -.42rem; border: 3px solid #9fc5ff; border-right-color: transparent; border-radius: 50%; animation: spin 1.5s linear infinite; }
|
||||
.audio-upload--success .upload-icon { background: #147d6c; }
|
||||
.audio-upload--error .upload-icon { background: #9d385b; }
|
||||
.audio-upload--uploading .drop-zone,
|
||||
.audio-upload--processing .drop-zone { border-color: #7296d5; background: linear-gradient(135deg, #18284c, #242046); }
|
||||
.audio-upload--uploading .drop-zone strong,
|
||||
.audio-upload--processing .drop-zone strong,
|
||||
.audio-upload--uploading .drop-zone > span > span:not(.upload-icon),
|
||||
.audio-upload--processing .drop-zone > span > span:not(.upload-icon),
|
||||
.audio-upload--uploading .file-name,
|
||||
.audio-upload--processing .file-name { opacity: .35; }
|
||||
.audio-upload--uploading .drop-zone,
|
||||
.audio-upload--processing .drop-zone { cursor: default; }
|
||||
.audio-upload--uploading .drop-zone:hover,
|
||||
.audio-upload--processing .drop-zone:hover { transform: none; }
|
||||
.upload-cancel[hidden] { display: none; }
|
||||
#classification-results { scroll-margin-top: 1.5rem; }
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.audio-upload--processing .upload-icon::after { animation: none; }
|
||||
.audio-upload--uploading .drop-zone,
|
||||
.audio-upload--processing .drop-zone,
|
||||
.audio-upload--uploading .upload-icon,
|
||||
.audio-upload--processing .upload-icon { transition: none; }
|
||||
}
|
||||
|
||||
.drop-zone strong {
|
||||
display: block;
|
||||
font-size: 1.15rem;
|
||||
@@ -477,4 +509,3 @@
|
||||
transition-duration: .01ms !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,6 +58,12 @@
|
||||
background: var(--theme-surface-raised) !important;
|
||||
}
|
||||
|
||||
:root[data-theme="light"] .audio-upload--uploading .drop-zone,
|
||||
:root[data-theme="light"] .audio-upload--processing .drop-zone {
|
||||
border-color: #7296d5 !important;
|
||||
background: #e4ebff !important;
|
||||
}
|
||||
|
||||
:root[data-theme="light"] input,
|
||||
:root[data-theme="light"] select,
|
||||
:root[data-theme="light"] textarea,
|
||||
|
||||
Reference in New Issue
Block a user