From 59900f126f063c73217c7e8282fbcf378c5602b4 Mon Sep 17 00:00:00 2001 From: Giorgio Gilestro Date: Wed, 27 May 2026 19:22:35 +0200 Subject: [PATCH] css: drop dead selectors (.app-footer, #submit-btn, .form-row, .pf-restore) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The .app-footer rule was kept "for /api/health" but the health page doesn't reference it. #submit-btn and .form-row were leftovers from the removed upload page. .pf-restore had a class attribute in portfolio.js but no CSS rule — dropped the class attribute too. Also removed the @media (prefers-color-scheme: dark) block — the dashboard JS always sets data-theme so the media query was unreachable. Co-Authored-By: Claude Opus 4.7 --- app/static/css/cassandra.css | 46 +----------------------------------- app/static/js/portfolio.js | 2 +- 2 files changed, 2 insertions(+), 46 deletions(-) diff --git a/app/static/css/cassandra.css b/app/static/css/cassandra.css index c44a848..fdc8729 100644 --- a/app/static/css/cassandra.css +++ b/app/static/css/cassandra.css @@ -197,18 +197,6 @@ a:hover { text-decoration: underline; } } #news-panel { grid-area: news; } -/* Legacy footer rules — kept for the /api/health page which still uses - the old class via the standalone HTML template. */ -.app-footer { - border-top: 1px solid var(--border); - padding: 8px 18px; - background: var(--surface); - font-size: 11px; - color: var(--muted); - display: flex; - gap: 16px; - flex-wrap: wrap; -} /* Sticky bottom markets bar — uses the same .mkt chip styling as the old dashboard header, extended with each market's headline index. */ @@ -1313,33 +1301,6 @@ details[open] .pf-analysis__head-left::before { content: "▾ "; } .dz__hint a { color: var(--accent); } .dz__filename { margin-top: 10px; color: var(--accent); font-size: 12px; font-family: var(--font-mono); min-height: 1em; } -.form-row { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 12px; padding: 6px 0; } -.form-row label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; } -.form-row input[type="text"], .form-row select { - background: var(--bg); - border: 1px solid var(--border); - color: var(--text); - font-family: var(--font-mono); - font-size: 12px; - padding: 6px 8px; - outline: none; -} -.form-row input[type="text"]:focus, .form-row select:focus { border-color: var(--accent); } - -#submit-btn { - margin-top: 14px; - background: transparent; - border: 1px solid var(--accent); - color: var(--accent); - font-family: var(--font-mono); - font-size: 11px; - padding: 8px 18px; - text-transform: uppercase; - letter-spacing: 0.1em; - cursor: pointer; -} -#submit-btn:hover:not(:disabled) { background: var(--accent); color: var(--bg); } -#submit-btn:disabled { opacity: 0.4; cursor: not-allowed; } .result { margin-top: 20px; @@ -2118,12 +2079,7 @@ a.btn-secondary:hover { color: var(--accent); border-color: var(--accent); } box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 217, 255, 0.20); } -@media (prefers-color-scheme: dark) { - .shot { - box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55), - 0 2px 8px rgba(0, 0, 0, 0.35); - } -} + .shot img { display: block; width: 100%; diff --git a/app/static/js/portfolio.js b/app/static/js/portfolio.js index bae774d..ac2c175 100644 --- a/app/static/js/portfolio.js +++ b/app/static/js/portfolio.js @@ -220,7 +220,7 @@ ? new Date(status.updated_at).toISOString().replace('T', ' ').slice(0, 16) + ' UTC' : '—'; mount.innerHTML = - '
' + + '
' + '
▸ Restore from cloud
' + '
' + 'A synced portfolio is available for this account (last synced ' +