Files
silent-send/src/popup/popup.css
T
Claude 1995208941 feat: v0.3.0 — multiple entries per field, README setup guide
Identity fields now support multiple entries per type:
- Add unlimited names (first, last, middle, nickname), emails,
  usernames, hostnames, and phone numbers per profile
- "+ Add" button on each section, "x" to remove rows
- Names have a type selector (1st/Last/Mid/Nick)

README now includes:
- First-time setup walkthrough (step by step)
- Icon color legend (gray/black/blue/red)
- Keyboard shortcuts table
- Note that extension does nothing until configured

Also bumps version to 0.3.0 for Firefox re-signing.

https://claude.ai/code/session_01Dvgwe7XMoSxnWXkih8p1Cw
2026-03-26 03:08:46 +00:00

650 lines
9.4 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 400px;
min-height: 300px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 13px;
color: #1a1a1a;
background: #fff;
}
.container {
display: flex;
flex-direction: column;
min-height: 300px;
}
/* Header */
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
border-bottom: 1px solid #e5e7eb;
}
.header-left {
display: flex;
align-items: center;
gap: 8px;
}
.header-right {
display: flex;
align-items: center;
gap: 8px;
}
.title {
font-size: 15px;
font-weight: 600;
color: #111;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #10b981;
transition: background 0.2s;
}
.status-dot.disabled {
background: #6b7280;
}
.status-dot.off-site {
background: #f59e0b;
}
/* Toggle */
.toggle {
position: relative;
display: inline-block;
width: 36px;
height: 20px;
}
.toggle input { display: none; }
.toggle-slider {
position: absolute;
inset: 0;
background: #d1d5db;
border-radius: 20px;
cursor: pointer;
transition: 0.2s;
}
.toggle-slider::before {
content: '';
position: absolute;
width: 16px;
height: 16px;
left: 2px;
bottom: 2px;
background: #fff;
border-radius: 50%;
transition: 0.2s;
}
.toggle input:checked + .toggle-slider {
background: #10b981;
}
.toggle input:checked + .toggle-slider::before {
transform: translateX(16px);
}
/* Button styles */
.btn-icon {
background: none;
border: 1px solid #e5e7eb;
border-radius: 6px;
padding: 4px 6px;
cursor: pointer;
color: #6b7280;
display: flex;
align-items: center;
transition: all 0.15s;
}
.btn-icon:hover {
background: #f3f4f6;
color: #111;
}
.btn-icon.active {
background: #eff6ff;
border-color: #3b82f6;
color: #3b82f6;
}
.btn {
padding: 6px 14px;
border: none;
border-radius: 6px;
font-size: 12px;
font-weight: 500;
cursor: pointer;
transition: all 0.15s;
}
.btn-primary {
background: #111;
color: #fff;
}
.btn-primary:hover {
background: #333;
}
.btn-text {
background: none;
border: none;
color: #6b7280;
cursor: pointer;
font-size: 12px;
}
.btn-text:hover {
color: #111;
}
/* Tabs */
.tabs {
display: flex;
border-bottom: 1px solid #e5e7eb;
padding: 0 16px;
}
.tab {
background: none;
border: none;
padding: 8px 16px;
font-size: 12px;
font-weight: 500;
color: #6b7280;
cursor: pointer;
border-bottom: 2px solid transparent;
transition: all 0.15s;
}
.tab:hover { color: #111; }
.tab.active {
color: #111;
border-bottom-color: #111;
}
.tab-content {
display: none;
padding: 12px 16px;
flex: 1;
overflow-y: auto;
max-height: 350px;
}
.tab-content.active { display: block; }
/* Inputs */
.input-row {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
}
.input-row.secondary {
margin-bottom: 0;
}
.input {
flex: 1;
padding: 7px 10px;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 12px;
outline: none;
transition: border-color 0.15s;
}
.input:focus {
border-color: #111;
}
.select {
padding: 6px 8px;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 12px;
outline: none;
background: #fff;
}
.arrow {
color: #9ca3af;
font-size: 16px;
flex-shrink: 0;
}
.checkbox-label {
display: flex;
align-items: center;
gap: 4px;
font-size: 11px;
color: #6b7280;
white-space: nowrap;
}
/* First-run banner */
.first-run-banner {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 10px 16px;
background: #fef2f2;
border-bottom: 1px solid #fecaca;
}
.first-run-icon {
width: 22px;
height: 22px;
border-radius: 50%;
background: #dc2626;
color: #fff;
font-size: 14px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.first-run-text {
font-size: 12px;
color: #991b1b;
line-height: 1.4;
}
.first-run-text strong {
font-weight: 600;
}
/* Profile bar */
.profile-bar {
display: flex;
align-items: center;
gap: 4px;
margin-bottom: 8px;
}
.profile-bar .select {
font-weight: 500;
}
.profile-bar .btn-icon {
width: 28px;
height: 28px;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
}
/* Identity tab */
.id-section {
margin-bottom: 12px;
padding-bottom: 10px;
border-bottom: 1px solid #f3f4f6;
}
.id-section:last-of-type {
border-bottom: none;
margin-bottom: 4px;
}
.id-label-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 6px;
}
.id-label {
font-size: 11px;
font-weight: 600;
color: #374151;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.btn-add {
background: none;
border: 1px solid #d1d5db;
border-radius: 4px;
padding: 2px 8px;
font-size: 10px;
font-weight: 500;
color: #6b7280;
cursor: pointer;
}
.btn-add:hover { background: #f3f4f6; color: #111; }
.id-entry-row {
display: flex;
align-items: center;
gap: 4px;
margin-bottom: 3px;
}
.id-entry-row .input-sm { flex: 1; }
.id-entry-row .btn-remove {
background: none;
border: none;
color: #d1d5db;
cursor: pointer;
font-size: 16px;
padding: 0 2px;
line-height: 1;
}
.id-entry-row .btn-remove:hover { color: #dc2626; }
.id-type-label {
font-size: 9px;
color: #9ca3af;
text-transform: uppercase;
min-width: 28px;
text-align: center;
}
.id-row {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 4px;
}
.input-sm {
padding: 5px 8px;
font-size: 12px;
}
.id-hint {
font-size: 10px;
color: #9ca3af;
margin-top: 2px;
font-style: italic;
}
/* Mapping list */
.add-mapping {
padding-bottom: 12px;
border-bottom: 1px solid #f3f4f6;
margin-bottom: 8px;
}
.mapping-list {
display: flex;
flex-direction: column;
gap: 4px;
}
.mapping-item {
display: flex;
align-items: center;
gap: 8px;
padding: 8px;
border-radius: 6px;
background: #f9fafb;
transition: background 0.15s;
}
.mapping-item:hover {
background: #f3f4f6;
}
.mapping-values {
flex: 1;
min-width: 0;
}
.mapping-real {
font-weight: 500;
color: #dc2626;
font-size: 12px;
text-decoration: line-through;
opacity: 0.7;
}
.mapping-sub {
font-weight: 500;
color: #059669;
font-size: 12px;
}
.mapping-category {
font-size: 10px;
color: #9ca3af;
background: #f3f4f6;
padding: 2px 6px;
border-radius: 4px;
text-transform: uppercase;
}
.mapping-actions {
display: flex;
gap: 4px;
}
.mapping-actions button {
background: none;
border: none;
cursor: pointer;
color: #9ca3af;
font-size: 14px;
padding: 2px 4px;
border-radius: 4px;
}
.mapping-actions button:hover {
background: #e5e7eb;
color: #111;
}
/* Activity */
.activity-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.badge {
font-size: 11px;
color: #6b7280;
background: #f3f4f6;
padding: 3px 8px;
border-radius: 10px;
}
.activity-list {
display: flex;
flex-direction: column;
gap: 4px;
}
.activity-item {
display: flex;
align-items: flex-start;
gap: 8px;
padding: 6px 8px;
border-radius: 6px;
background: #f9fafb;
font-size: 12px;
}
.activity-time {
color: #9ca3af;
font-size: 11px;
white-space: nowrap;
}
.activity-detail {
flex: 1;
}
.activity-original {
color: #dc2626;
text-decoration: line-through;
}
.activity-replaced {
color: #059669;
}
/* Test tab mode toggle */
.test-mode-toggle {
display: flex;
background: #f3f4f6;
border-radius: 6px;
padding: 2px;
margin-bottom: 10px;
}
.test-mode-btn {
flex: 1;
padding: 6px 0;
border: none;
border-radius: 4px;
font-size: 11px;
font-weight: 500;
cursor: pointer;
background: transparent;
color: #6b7280;
transition: all 0.15s;
}
.test-mode-btn.active {
background: #fff;
color: #111;
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.test-identity-status {
margin-top: 8px;
padding: 6px 10px;
background: #fef3c7;
border-radius: 6px;
font-size: 11px;
color: #92400e;
display: none;
}
.test-identity-status.visible {
display: block;
}
/* Test tab */
.help-text {
font-size: 12px;
color: #6b7280;
margin-bottom: 8px;
}
.textarea {
width: 100%;
padding: 8px 10px;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 12px;
font-family: inherit;
resize: vertical;
outline: none;
}
.textarea:focus {
border-color: #111;
}
.diff-view {
margin-top: 10px;
padding: 10px;
background: #f9fafb;
border-radius: 6px;
border: 1px solid #e5e7eb;
}
.diff-label {
font-size: 11px;
font-weight: 600;
color: #6b7280;
margin-bottom: 6px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.diff-output {
font-size: 12px;
line-height: 1.6;
word-break: break-word;
min-height: 20px;
color: #374151;
}
.diff-output .sub-highlight {
background: #dcfce7;
color: #059669;
padding: 1px 4px;
border-radius: 3px;
font-weight: 500;
}
.diff-stats {
margin-top: 6px;
font-size: 11px;
color: #6b7280;
}
/* Empty state */
.empty-state {
text-align: center;
color: #9ca3af;
padding: 24px 0;
font-size: 12px;
}
/* Footer */
.footer {
padding: 8px 16px;
border-top: 1px solid #e5e7eb;
text-align: center;
}
.privacy-note {
font-size: 10px;
color: #9ca3af;
line-height: 1.4;
margin-bottom: 6px;
padding: 0 4px;
}
.footer a {
font-size: 11px;
color: #6b7280;
text-decoration: none;
}
.footer a:hover {
color: #111;
}