/* ===== Copyparty Content Tag — style.css ===== */ /* --- CSS Custom Properties (dark theme matching copyparty shell) --- */ :root { --bg: #1a1a2e; --surface: #24243e; --surface-elevated: #2c2c4a; --primary: #e85d04; --primary-hover: #f48c06; --danger: #d00000; --danger-hover: #ef4444; --text: #e0e0e0; --text-muted: #a0a0b0; --border: #3a3a5c; --focus-ring: #fca311; --success: #22c55e; --error: #ef4444; --radius: 6px; --shadow: 0 2px 8px rgba(0,0,0,.45); } /* --- Reset + Base --- */ *, *::before, *::after { box-sizing: border-box; } body { margin: 0; padding: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; font-size: 14px; } button { cursor: pointer; font-family: inherit; } input, select, textarea, button { font-size: inherit; } a { color: var(--primary); text-decoration: none; } a:hover { text-decoration: underline; } /* Screen-reader only utility */ .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; } /* Focus ring */ :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; } /* ===== Buttons ===== */ button, .btn { padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-elevated); color: var(--text); font-size: 0.9rem; transition: background .15s, border-color .15s; } button:hover, .btn:hover { border-color: var(--primary); } .btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); } .btn-primary:hover { background: var(--primary-hover); } .btn-secondary { background: transparent; color: var(--text-muted); } .btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); } .btn-danger:hover { background: var(--danger-hover); } .btn-icon { padding: 4px 20px; font-size: 1rem; } /* ===== Login View ===== */ #view-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; } .login-card { background: var(--surface); padding: 32px 36px; border-radius: 12px; box-shadow: var(--shadow); max-width: 420px; width: 90%; } .login-card h1 { text-align: center; margin-bottom: 24px; } .form-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 4px; } .form-group label { font-size: 0.85rem; color: var(--text-muted); } .form-group input, .form-group select { padding: 8px 12px; border-radius: var(--radius); background: var(--bg); color: var(--text); border: 1px solid var(--border); } .form-group input:focus, .form-group select:focus { border-color: var(--focus-ring); outline: none; box-shadow: 0 0 0 3px rgba(252,163,17,.2); } .login-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; } .status-message { text-align: center; margin-top: 14px; font-style: italic; min-height: 1.5em; } /* ===== App Header (shared Tagging + Gallery) ===== */ #app-header { display: flex; justify-content: space-between; align-items: center; height: 52px; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--border); } #cwd-display { text-align: center; flex: 1; font-weight: 600; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* ===== Tagging View ===== */ .tagging-bar { display: flex; justify-content: space-between; padding: 12px 24px; gap: 8px; } #tagging-grid, .image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; padding: 0 24px 16px; } #tagging-grid img, .image-grid img { width: 100%; border-radius: var(--radius); cursor: pointer; object-fit: cover; aspect-ratio: 1 / 1; transition: border-color .15s; border: 2px solid transparent; } #tagging-grid img:hover, .image-grid img:hover { border-color: var(--primary); } .tagging-grid .grid-item.active { border-color: var(--focus-ring) !important; } /* Viewer area */ .details-panel { padding: 16px; } .viewer { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40vh; background: #111; border-radius: var(--radius); overflow: hidden; } .viewer-viewport img, .viewer-viewport video { max-width: 90%; max-height: 70vh; object-fit: contain; } .viewer-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.6); color: #fff; border: none; font-size: 2rem; line-height: 1; padding: 8px 12px; z-index: 2; } .viewer-arrow:hover { background: rgba(0,0,0,.85); } .viewer-arrow--left { left: 4px; } .viewer-arrow--right { right: 4px; } /* Tag editor form */ .editor-form { padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin: 8px auto 0; } .editor-form .form-group input[disabled] { opacity: .5; } .tags-wrapper { position: relative; } /* Similarity hash readout */ .file-meta { display: flex; gap: 16px; flex-wrap: wrap; } .meta-label { font-size: 0.8rem; color: var(--text-muted); display: block; } .meta-value { font-family: Consolas, "Courier New", system-ui, monospace; font-size: 0.78rem; color: var(--text-muted); word-break: break-all; } /* Color swatches */ .color-swatches { display: flex; gap: 4px; } .swatch { width: 28px; height: 28px; border-radius: 3px; border: 1px solid var(--border); } /* ===== Gallery View ===== */ .gallery-bar { padding: 12px 24px; display: flex; align-items: center; gap: 12px; } .gallery-controls { display: flex; gap: 16px; align-items: last baseline; margin: 16px 24px 0; } /* Gallery grid — album sections stacked vertically */ #gallery-grid { display: flex; flex-direction: column; gap: 24px; padding: 0 0 16px; } .album-section h3 { margin: 0 24px 8px; font-size: 1rem; color: var(--text-muted); border-bottom: 1px solid var(--border); padding-bottom: 4px; } /* Grid + sidebar layout */ .gallery-content { display: flex; gap: 16px; padding: 0 24px 24px; min-height: 0; } .gallery-content > .image-grid { flex: 1 1 auto; min-width: 0; } .sidebar { flex: 0 0 280px; min-width: 0; position: sticky; top: 0; align-self: flex-start; } @media (max-width: 680px) { .gallery-controls { flex-wrap: wrap; } .gallery-content { flex-direction: column; } .sidebar { flex-basis: auto; position: static; width: 100%; } }