fix(csp): remove all inline styles, scripts, and event handlers for strict CSP compliance

Replace ~50 inline style="" attributes with CSS classes, move 3 inline
<script> blocks to external JS files, replace all inline event handlers
(onclick, onerror) with addEventListener, and remove createElement('style')
from icons.js. All changes support the strict CSP policy (style-src 'self';
script-src 'self') without weakening it.
This commit is contained in:
Jared Wolff
2026-03-05 16:18:30 -05:00
parent f2d35ca792
commit c08926b817
28 changed files with 397 additions and 212 deletions
+11
View File
@@ -126,6 +126,9 @@
cursor: not-allowed;
}
.auth-subtitle { margin: 20px 0; color: #6b7280; font-size: 14px; }
.auth-action-wrap { margin-top: 20px; }
/* SSO / OIDC button */
.auth-button-oidc {
background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
@@ -140,6 +143,14 @@
box-shadow: 0 6px 20px rgba(45, 55, 72, 0.4);
}
.auth-button-sso {
background: #4f46e5;
box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.auth-button-sso:hover {
box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}
.auth-button-oidc i {
font-size: 14px;
}