Jarvis-11's picture
plz add a feature of drag and drop tooo
a89434f verified
Raw
History Blame Contribute Delete
1.65 kB
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
}
.dropzone {
min-height: 200px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.dropzone.dz-drag-hover {
border-color: #8b5cf6;
background-color: rgba(139, 92, 246, 0.05);
}
.dz-preview {
margin: 0.5rem;
min-height: auto;
position: relative;
border-radius: 0.5rem;
overflow: hidden;
border: 1px solid #e5e7eb;
}
.dz-preview .dz-image {
width: 100%;
height: 160px;
display: flex;
align-items: center;
justify-content: center;
background: #f3f4f6;
}
.dz-preview .dz-image img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
.dz-preview .dz-details {
padding: 0.75rem;
font-size: 0.875rem;
color: #6b7280;
}
.dz-preview .dz-remove {
display: block;
text-align: center;
padding: 0.25rem 0.5rem;
color: #ef4444;
font-size: 0.75rem;
margin-top: 0.25rem;
}
.dz-preview .dz-remove:hover {
color: #dc2626;
text-decoration: underline;
}
.dropzone.dz-started .dz-message {
display: none;
}
.dz-preview {
margin: 0;
min-height: auto;
}
.dz-image {
border-radius: 8px;
width: 100%;
height: 100%;
}
.dz-details {
padding: 0.5em;
}
#result-container {
position: relative;
overflow: hidden;
}
.loading-spinner {
display: none;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 10;
}
.loading-spinner.active {
display: block;
}