upload-service/web/static/style.css

304 lines
5.3 KiB
CSS

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #0a0a0a;
--surface: #141414;
--border: #2a2a2a;
--text: #e0e0e0;
--text-dim: #888;
--accent: #3b82f6;
--accent-hover: #2563eb;
--success: #22c55e;
--error: #ef4444;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.container {
width: 100%;
max-width: 480px;
padding: 2rem;
}
h1 {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 0.25rem;
}
.subtitle {
color: var(--text-dim);
font-size: 0.875rem;
margin-bottom: 1.5rem;
}
.dropzone {
border: 2px dashed var(--border);
border-radius: 12px;
padding: 3rem 1.5rem;
text-align: center;
cursor: pointer;
transition: border-color 0.2s, background 0.2s;
}
.dropzone:hover, .dropzone.drag-over {
border-color: var(--accent);
background: rgba(59, 130, 246, 0.05);
}
.dropzone-content svg {
color: var(--text-dim);
margin-bottom: 1rem;
}
.dropzone-content p {
color: var(--text-dim);
font-size: 0.875rem;
}
.link {
color: var(--accent);
cursor: pointer;
text-decoration: underline;
}
.options {
margin-top: 1rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.option-group {
display: flex;
align-items: center;
gap: 0.75rem;
}
.option-group label {
font-size: 0.8125rem;
color: var(--text-dim);
width: 80px;
flex-shrink: 0;
}
.option-group select, .option-group input {
flex: 1;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 6px;
padding: 0.5rem 0.75rem;
color: var(--text);
font-size: 0.875rem;
}
.btn {
background: var(--accent);
color: #fff;
border: none;
border-radius: 6px;
padding: 0.625rem 1.25rem;
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: background 0.2s;
margin-top: 0.25rem;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-small { padding: 0.375rem 0.75rem; font-size: 0.8125rem; margin-top: 0; }
.progress-bar {
background: var(--surface);
border-radius: 4px;
height: 6px;
overflow: hidden;
margin: 0.5rem 0;
}
.progress-fill {
background: var(--accent);
height: 100%;
width: 0%;
border-radius: 4px;
transition: width 0.15s;
}
.progress-text {
font-size: 0.8125rem;
color: var(--text-dim);
text-align: right;
}
.file-name {
font-size: 0.875rem;
color: var(--text);
word-break: break-all;
}
.result {
margin-top: 1.5rem;
padding: 1rem;
background: var(--surface);
border-radius: 8px;
border: 1px solid var(--border);
}
.result-success p {
color: var(--success);
font-weight: 500;
margin-bottom: 0.75rem;
}
.result-url {
display: flex;
gap: 0.5rem;
}
.result-url input {
flex: 1;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 6px;
padding: 0.5rem 0.75rem;
color: var(--text);
font-size: 0.8125rem;
font-family: monospace;
}
.result-meta {
margin-top: 0.5rem;
font-size: 0.75rem;
color: var(--text-dim);
word-break: break-all;
}
.error {
margin-top: 1rem;
padding: 0.75rem 1rem;
background: rgba(239, 68, 68, 0.1);
border: 1px solid rgba(239, 68, 68, 0.3);
border-radius: 8px;
color: var(--error);
font-size: 0.875rem;
}
.auth-form {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.auth-form input {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 6px;
padding: 0.625rem 0.75rem;
color: var(--text);
font-size: 0.875rem;
}
footer {
margin-top: 2rem;
text-align: center;
}
footer a {
color: var(--text-dim);
font-size: 0.75rem;
text-decoration: none;
}
footer a:hover { color: var(--accent); }
.hidden { display: none !important; }
/* Download page */
.file-card {
margin-top: 0;
padding: 1.5rem;
background: var(--surface);
border-radius: 12px;
border: 1px solid var(--border);
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.file-preview {
text-align: center;
}
.thumbnail {
max-width: 100%;
max-height: 280px;
border-radius: 8px;
object-fit: contain;
background: var(--bg);
display: block;
margin: 0 auto;
}
.thumb-icon {
display: flex;
align-items: center;
justify-content: center;
height: 120px;
color: var(--text-dim);
background: var(--bg);
border-radius: 8px;
}
.file-title {
font-size: 1rem;
font-weight: 600;
word-break: break-all;
line-height: 1.4;
}
.file-meta {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.meta-row {
display: flex;
justify-content: space-between;
font-size: 0.8125rem;
}
.meta-label {
color: var(--text-dim);
}
.file-actions {
display: flex;
gap: 0.75rem;
}
.file-actions .btn {
flex: 1;
text-align: center;
text-decoration: none;
margin-top: 0;
}
.btn-secondary {
background: var(--border);
color: var(--text);
}
.btn-secondary:hover {
background: #3a3a3a;
}