Analytics consent banner redesign: compact corner card with title, privacy link and equal-weight Accept/Decline; v2.33.0

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 5.5 committed 2026-10-13 08:01:33 -04:00
1 parent e82e8222f8
commit ee707fad10
4 files changed
+52 -37

No files matched your search

+44 -31
View File
@@ -6705,48 +6705,61 @@ a.study-track-card:hover {
.consent-banner {
position: fixed;
left: 1rem;
right: 1rem;
bottom: 1rem;
left: 1.25rem;
bottom: 1.25rem;
width: min(380px, calc(100vw - 2.5rem));
z-index: 220;
background: rgba(10, 10, 8, 0.96);
border: 1px solid rgba(201, 168, 76, 0.45);
border-radius: 12px;
padding: 0.9rem 1rem;
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
background: rgba(14, 14, 11, 0.97);
border: 1px solid rgba(201, 168, 76, 0.4);
border-radius: 14px;
padding: 1.1rem 1.2rem 1.15rem;
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
font-family: var(--brand-font-body);
}
.consent-banner p {
margin: 0;
color: var(--brand-warm-white);
font-family: var(--brand-font-body);
font-size: 0.92rem;
.consent-banner p { margin: 0; }
.consent-title {
font-family: var(--brand-font-heading);
font-size: 1.15rem;
color: #e8d9b5;
margin-bottom: 0.4rem !important;
}
.consent-text {
color: var(--brand-muted);
font-size: 0.88rem;
line-height: 1.5;
}
.consent-more { margin-top: 0.4rem !important; font-size: 0.82rem; }
.consent-more a { color: var(--brand-gold); text-underline-offset: 3px; }
.consent-actions {
margin-top: 0.75rem;
display: flex;
margin-top: 0.9rem;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.6rem;
}
.consent-actions .btn-primary,
.consent-actions .btn-secondary {
font-size: 1rem;
padding: 0.75rem 1.4rem;
min-width: 140px;
justify-content: center;
/* Equal weight on both choices: same size, same shape, only the fill differs */
.consent-btn {
font-family: var(--brand-font-body);
font-size: 0.92rem;
font-weight: 600;
letter-spacing: 0.04em;
padding: 0.65rem 1rem;
border-radius: 999px;
border: 1px solid var(--brand-gold);
cursor: pointer;
transition: background 0.2s, color 0.2s;
}
.consent-btn--accept { background: var(--brand-gold); color: var(--brand-black); }
.consent-btn--decline { background: transparent; color: var(--brand-gold); }
.consent-btn:hover { background: rgba(201, 168, 76, 0.85); color: var(--brand-black); }
.consent-actions .btn-secondary {
color: var(--brand-gold);
border-color: rgba(201, 168, 76, 0.55);
background: transparent;
}
.consent-actions .btn-secondary:hover {
color: var(--brand-black);
background: var(--brand-gold);
border-color: var(--brand-gold);
@media (max-width: 520px) {
.consent-banner { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; padding: 1rem; }
}
.admin-form {