Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
180 changes: 140 additions & 40 deletions popup/approve.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@
*/

body {
width: 380px;
min-height: 0;
width: 100%;
min-height: 100vh;
}

.approve {
display: flex;
flex-direction: column;
padding: 16px 16px 14px;
min-height: 100vh;
}

.approve-body {
flex: 1 0 auto;
padding: 16px 16px 10px;
}

/* ---- Header ---- */
Expand Down Expand Up @@ -65,18 +70,18 @@ body {
}

.origin-eyebrow {
font-size: 10.5px;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-faint);
letter-spacing: 0.05em;
color: var(--text-muted);
margin-bottom: 6px;
}

.origin-badge {
display: block;
font-family: var(--mono);
font-size: 14px;
font-size: 13.5px;
font-weight: 600;
line-height: 1.4;
color: var(--text);
Expand Down Expand Up @@ -115,54 +120,144 @@ body {

/* ---- Preview ---- */
.preview-wrap {
margin-bottom: 12px;
margin-bottom: 10px;
}

.preview-label {
font-size: 10.5px;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-faint);
letter-spacing: 0.05em;
color: var(--text-muted);
margin-bottom: 6px;
}

.summary-list {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 8px 11px;
margin-bottom: 8px;
}

.summary-row {
display: flex;
flex-direction: column;
gap: 2px;
padding: 5px 0;
border-top: 1px solid var(--border);
}

.summary-row:first-child {
border-top: none;
padding-top: 0;
}

.summary-row:last-child {
padding-bottom: 0;
}

.summary-row dt {
font-size: 10.5px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--text-muted);
}

.summary-row dd {
font-size: 12.5px;
color: var(--text);
overflow-wrap: anywhere;
white-space: pre-wrap;
max-height: 84px;
overflow-y: auto;
}

.summary-row dd.mono {
font-family: var(--mono);
font-size: 11.5px;
}

.raw-details {
font-size: 12px;
color: var(--text-muted);
}

.raw-details summary {
cursor: pointer;
font-weight: 600;
padding: 3px 0;
color: var(--text-muted);
}

.raw-details summary:focus-visible {
outline: none;
box-shadow: 0 0 0 3px var(--accent-ring);
border-radius: 4px;
}

.event-preview {
margin-top: 6px;
background: var(--surface-inset);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 11px 12px;
padding: 10px 11px;
font-family: var(--mono);
font-size: 11.5px;
line-height: 1.5;
color: var(--text-muted);
max-height: 150px;
max-height: 140px;
overflow: auto;
white-space: pre;
word-break: normal;
tab-size: 2;
}

/* ---- Trust warning ---- */
.trust-note {
/* ---- Sticky footer ---- */
.approve-footer {
position: sticky;
bottom: 0;
padding: 12px 16px 14px;
background: var(--bg);
border-top: 1px solid var(--border);
}

/* ---- Trust option ---- */
.trust-toggle {
display: flex;
align-items: flex-start;
gap: 8px;
font-size: 11.5px;
line-height: 1.45;
color: var(--warn);
margin-bottom: 14px;
gap: 9px;
padding: 9px 11px;
background: var(--warn-soft);
border: 1px solid var(--warn-border);
margin-bottom: 12px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
cursor: pointer;
}

.trust-note svg {
.trust-toggle input {
margin-top: 2px;
accent-color: var(--accent);
width: 15px;
height: 15px;
flex: none;
margin-top: 1px;
cursor: pointer;
}

.trust-toggle-copy {
display: flex;
flex-direction: column;
gap: 2px;
font-size: 11.5px;
line-height: 1.4;
color: var(--text-muted);
}

.trust-toggle-copy strong {
font-size: 12.5px;
font-weight: 600;
color: var(--text);
}

/* ---- Buttons ---- */
Expand All @@ -176,7 +271,7 @@ body {
margin-bottom: 0;
}

/* Deny = safe default: solid, visually settled, autofocused. */
/* Deny = safe default: visually settled, autofocused. */
.btn-deny {
background: var(--surface);
color: var(--text);
Expand All @@ -192,40 +287,40 @@ body {
box-shadow: 0 0 0 3px var(--accent-ring);
}

/* Approve = deliberate: outlined danger-tone, not pre-focused. */
/* Approve = deliberate trust-blue primary, unlocked after brief grace delay. */
.btn-approve {
background: transparent;
color: var(--danger);
border: 1.5px solid var(--danger-border);
background: var(--accent-solid);
color: #fff;
border: 1px solid transparent;
box-shadow: var(--shadow-sm);
}

.btn-approve:hover {
background: var(--danger-soft);
border-color: var(--danger);
.btn-approve:hover:not([disabled]) {
background: var(--accent-solid-hover);
}

.btn-approve:focus-visible {
outline: none;
box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
box-shadow: 0 0 0 3px var(--accent-ring);
}

/* ---- Countdown ---- */
.countdown {
margin-top: 12px;
margin-top: 10px;
}

.countdown-text {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
gap: 4px;
font-size: 11px;
color: var(--text-muted);
margin-bottom: 7px;
margin-bottom: 6px;
}

.countdown-text strong {
color: var(--text-muted);
color: var(--text);
font-variant-numeric: tabular-nums;
font-weight: 700;
}
Expand All @@ -240,13 +335,18 @@ body {
.timeout-bar-inner {
height: 100%;
width: 100%;
background: var(--text-faint);
background: var(--text-muted);
border-radius: 999px;
transform-origin: left center;
/* Width is driven from JS for an accurate, synced countdown. */
transition: background 0.4s ease;
transition: width 0.25s linear, background 0.3s ease;
}

.timeout-bar-inner.urgent {
background: var(--danger);
}

@media (prefers-reduced-motion: reduce) {
.timeout-bar-inner {
transition: none;
}
}
Loading
Loading