Files
silent-send/src/content/content.css
T
Claude c5239609c1 fix: ignore button now says 'ignore' instead of X icon
The X icon looked like a dismiss/close button (temporary). Changed to
a small 'IGNORE' text link that clearly communicates the action is
permanent — the value will never be flagged again.

https://claude.ai/code/session_01SWSwDfMVij53bCTNSCLMwn
2026-03-26 22:34:30 +00:00

371 lines
7.0 KiB
CSS

/* Silent Send - Content Script Styles */
/* Subtle indicator when input contains sensitive data that will be substituted */
.ss-has-sensitive {
box-shadow: inset 0 -2px 0 0 rgba(16, 185, 129, 0.3) !important;
}
/* Highlight class for substituted text (when highlights enabled) */
.ss-highlight {
background: rgba(16, 185, 129, 0.15);
border-bottom: 1.5px solid rgba(16, 185, 129, 0.5);
border-radius: 2px;
padding: 0 1px;
}
/* CSS Custom Highlight API styles — zero DOM changes */
/* Yellow highlight: fake values the AI received (non-reveal mode) */
::highlight(ss-substituted) {
background-color: rgba(250, 204, 21, 0.4);
color: inherit;
}
/* Terminal style: real data shown in reveal mode (dark bg, green text) */
::highlight(ss-revealed) {
background-color: rgba(0, 0, 0, 0.85);
color: #4ade80;
}
/* Fallback for browsers without Highlight API */
.ss-revealed {
background: rgba(0, 0, 0, 0.85);
color: #4ade80;
padding: 0 2px;
border-radius: 2px;
}
/* Auto-detect PPI warning banner */
.ss-autodetect-warning {
position: fixed;
top: 16px;
right: 16px;
max-width: 400px;
background: #1a1a1a;
color: #e5e7eb;
border: 1px solid #f59e0b;
border-radius: 10px;
padding: 12px 16px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 12px;
z-index: 999999;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
opacity: 0;
transform: translateY(-10px);
transition: opacity 0.2s, transform 0.2s;
pointer-events: none;
}
.ss-autodetect-warning.visible {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}
.ss-ad-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 8px;
margin-bottom: 8px;
color: #f59e0b;
font-size: 11px;
line-height: 1.4;
}
.ss-ad-close {
background: none;
border: none;
color: #6b7280;
font-size: 18px;
cursor: pointer;
padding: 0;
line-height: 1;
flex-shrink: 0;
}
.ss-ad-close:hover { color: #fff; }
.ss-ad-item {
display: flex;
align-items: center;
gap: 8px;
padding: 4px 0;
border-bottom: 1px solid #333;
}
.ss-ad-item:last-of-type { border-bottom: none; }
.ss-ad-type {
font-size: 10px;
font-weight: 600;
color: #f59e0b;
min-width: 70px;
text-transform: uppercase;
}
.ss-ad-value {
font-family: 'SF Mono', Monaco, monospace;
font-size: 11px;
color: #4ade80;
background: #0a0a0a;
padding: 2px 6px;
border-radius: 4px;
max-width: 180px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ss-ad-hint {
font-size: 10px;
color: #9ca3af;
flex: 1;
}
.ss-ad-more {
font-size: 10px;
color: #6b7280;
padding: 4px 0;
}
.ss-ad-footer {
margin-top: 8px;
font-size: 10px;
color: #6b7280;
font-style: italic;
}
/* Pre-send PPI warning (spellcheck-style, appears while typing) */
.ss-presend-warning {
position: fixed;
top: 16px;
right: 16px;
max-width: 420px;
background: #1a1a1a;
color: #e5e7eb;
border: 1px solid #f59e0b;
border-radius: 10px;
padding: 12px 16px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 12px;
z-index: 999999;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
opacity: 0;
transform: translateY(-10px);
transition: opacity 0.2s, transform 0.2s;
pointer-events: none;
}
.ss-presend-warning.visible {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}
.ss-ps-item {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 0;
border-bottom: 1px solid #333;
}
.ss-ps-item:last-of-type { border-bottom: none; }
.ss-ps-type {
font-size: 9px;
font-weight: 600;
color: #f59e0b;
min-width: 65px;
text-transform: uppercase;
}
.ss-ps-value {
font-family: 'SF Mono', Monaco, monospace;
font-size: 11px;
color: #4ade80;
background: #0a0a0a;
padding: 2px 6px;
border-radius: 4px;
max-width: 140px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ss-ps-hint {
font-size: 10px;
color: #9ca3af;
flex: 1;
}
.ss-ps-add {
background: none;
border: 1px solid #4ade80;
border-radius: 4px;
color: #4ade80;
font-size: 14px;
font-weight: bold;
width: 24px;
height: 24px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
padding: 0;
}
.ss-ps-add:hover { background: rgba(74, 222, 128, 0.15); }
.ss-ps-add:disabled { border-color: #333; cursor: default; }
.ss-ps-ignore {
background: none;
border: none;
color: #6b7280;
font-size: 9px;
cursor: pointer;
flex-shrink: 0;
padding: 2px 4px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.ss-ps-ignore:hover { color: #e5e7eb; text-decoration: underline; }
/* Floating reveal mode indicator */
.ss-reveal-badge {
position: fixed;
bottom: 16px;
right: 16px;
background: #1d4ed8;
color: #fff;
padding: 6px 14px;
border-radius: 20px;
font-size: 12px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-weight: 500;
z-index: 999999;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
pointer-events: none;
opacity: 0;
transform: translateY(10px);
transition: opacity 0.2s, transform 0.2s;
}
.ss-reveal-badge.visible {
opacity: 1;
transform: translateY(0);
}
/* Document scan preview overlay */
.ss-doc-preview {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.95);
max-width: 480px;
width: 90vw;
background: #1a1a1a;
color: #e5e7eb;
border: 1px solid #f59e0b;
border-radius: 12px;
padding: 16px 20px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 12px;
z-index: 9999999;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
opacity: 0;
pointer-events: none;
transition: opacity 0.2s, transform 0.2s;
max-height: 70vh;
overflow-y: auto;
}
.ss-doc-preview.visible {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
pointer-events: auto;
}
.ss-dp-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.ss-dp-count {
font-size: 11px;
color: #f59e0b;
font-weight: 600;
}
.ss-dp-note {
font-size: 11px;
color: #9ca3af;
margin-bottom: 10px;
font-style: italic;
}
.ss-dp-items {
max-height: 200px;
overflow-y: auto;
margin-bottom: 12px;
}
.ss-dp-item {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 0;
border-bottom: 1px solid #333;
font-size: 11px;
}
.ss-dp-item:last-child { border-bottom: none; }
.ss-dp-orig {
color: #f87171;
background: #1f1f1f;
padding: 2px 5px;
border-radius: 3px;
}
.ss-dp-repl {
color: #4ade80;
background: #1f1f1f;
padding: 2px 5px;
border-radius: 3px;
}
.ss-dp-actions {
display: flex;
gap: 8px;
}
.ss-dp-btn {
flex: 1;
padding: 8px 12px;
border: none;
border-radius: 6px;
font-size: 12px;
font-weight: 500;
cursor: pointer;
}
.ss-dp-confirm {
background: #10b981;
color: #fff;
}
.ss-dp-confirm:hover { background: #059669; }
.ss-dp-cancel {
background: #374151;
color: #e5e7eb;
}
.ss-dp-cancel:hover { background: #4b5563; }