Redact: collapsible advanced settings, download TXT/DOCX/copy
- Wrap Mode/Region/Entities/Officials/Output/Exempt/Aliases in a <details> toggle so the form opens clean with only engine + input visible - After redaction: Copy, Download .txt, Download .docx buttons appear below the redacted output (all four languages translated) - New api/redact-download.php: returns plain text or a minimal valid DOCX built from scratch with ZipArchive (no external dependencies) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1470,3 +1470,71 @@ p {
|
||||
accent-color: var(--teal);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* ─── Advanced settings panel (Redact tool) ───────────────────────────────── */
|
||||
|
||||
.advanced-panel {
|
||||
border-top: 1px solid var(--line);
|
||||
margin-top: 0.6rem;
|
||||
}
|
||||
|
||||
.advanced-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
padding: 0.55rem 0;
|
||||
font-size: 0.82rem;
|
||||
font-weight: 500;
|
||||
color: var(--teal);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.advanced-toggle::-webkit-details-marker { display: none; }
|
||||
|
||||
.advanced-toggle::before {
|
||||
content: '▸';
|
||||
font-size: 0.7rem;
|
||||
transition: transform 0.18s ease;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.advanced-panel[open] .advanced-toggle::before {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
.advanced-panel[open] .advanced-toggle {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
/* ─── Redact download buttons ─────────────────────────────────────────────── */
|
||||
|
||||
.redact-downloads {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.redact-dl-btn {
|
||||
padding: 0.38rem 0.9rem;
|
||||
border-radius: 6px;
|
||||
font-size: 0.82rem;
|
||||
font-weight: 500;
|
||||
background: var(--soft-teal);
|
||||
color: var(--teal-dark);
|
||||
border: 1px solid rgba(15, 118, 110, 0.2);
|
||||
cursor: pointer;
|
||||
transition: background 0.15s, border-color 0.15s;
|
||||
}
|
||||
|
||||
.redact-dl-btn:hover {
|
||||
background: #d0ede9;
|
||||
border-color: var(--teal);
|
||||
}
|
||||
|
||||
.redact-dl-btn:disabled {
|
||||
opacity: 0.55;
|
||||
cursor: progress;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user