File size: 3,508 Bytes
ffc33c7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
:root{
--bg: #ffffff;
--card: #fbfbfb;
--text: #0b0b0b;
--muted: #6b6b6b;
--border: #e6e6e6;
--accent: #0a0a0a;
--primary-size: 56px;
--gap: 16px;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
body.theme-dark {
--bg: #000000;
--card: #0a0a0a;
--text: #efefef;
--muted: #bfbfbf;
--border: #1a1a1a;
--accent: #ffffff;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}
.app{display:flex;flex-direction:column;min-height:100vh;padding-bottom:calc(var(--primary-size) + 20px)}
.topbar{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--border);background:transparent}
.brand{font-family:DOTO, Inter, sans-serif;font-weight:700;font-size:22px}
.icon-btn{background:none;border:0;color:var(--muted);font-size:16px;padding:8px;border-radius:8px}
.main{padding:18px}
.upload-card{background:var(--card);border-radius:16px;padding:18px;display:flex;flex-direction:column;align-items:center;gap:12px;min-height:42vh}
.placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;cursor:pointer}
.placeholder-gif{max-width:220px;width:48%;border-radius:10px}
.placeholder-text{text-align:center;color:var(--muted)}
.file-input{position:absolute;opacity:0;pointer-events:none}
.preview{width:100%;display:flex;gap:12px}
.preview-thumb{width:88px;height:88px;background:#eee;border-radius:12px;background-size:cover;background-position:center}
.preview-right{flex:1;display:flex;flex-direction:column;gap:6px}
.filename{font-weight:700}
.filesize{color:var(--muted);font-size:13px}
.progress-wrap{margin-top:auto}
progress{width:100%;height:8px;border-radius:8px}
.progress-text{font-size:12px;color:var(--muted);margin-top:6px}
.history{margin-top:18px}
.history-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.history-list{display:flex;flex-direction:row;gap:8px;overflow:auto;padding-bottom:8px}
.history-item{min-width:160px;padding:10px;background:var(--card);border-radius:12px;border:1px solid var(--border);display:flex;gap:8px;align-items:center}
.history-thumb{width:44px;height:44px;border-radius:8px;background:#ddd}
.history-meta{flex:1;display:flex;flex-direction:column}
.link-btn{background:none;border:0;color:var(--accent);cursor:pointer}
.sticky-footer{position:fixed;left:0;right:0;bottom:0;padding:10px 16px;background:linear-gradient(0deg, rgba(0,0,0,0.04), transparent);display:flex;justify-content:space-between;align-items:center;gap:8px}
.big-btn{height:56px;padding:0 18px;border-radius:16px;border:0;background:var(--accent);color:var(--bg);font-weight:700}
.small-btn{height:48px;padding:0 12px;border-radius:12px;border:1px solid var(--border);background:var(--card)}
.modal{position:fixed;inset:0;background:rgba(0,0,0,0.45);display:flex;align-items:center;justify-content:center}
.modal-card{width:92%;max-width:420px;background:var(--card);border-radius:12px;padding:16px}
.modal-card header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.curl pre{background:#111;padding:12px;color:#fff;border-radius:8px;overflow:auto}
.dev .muted{color:var(--muted);font-size:12px}
@media (prefers-color-scheme: dark){
body:not(.theme-dark){ /* keep user's explicit theme under control; default is light in CSS */
}
}
|