css: drop dead selectors (.app-footer, #submit-btn, .form-row, .pf-restore)
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 <noreply@anthropic.com>
This commit is contained in:
parent
e807e58629
commit
59900f126f
2 changed files with 2 additions and 46 deletions
|
|
@ -197,18 +197,6 @@ a:hover { text-decoration: underline; }
|
||||||
}
|
}
|
||||||
#news-panel { grid-area: news; }
|
#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
|
/* Sticky bottom markets bar — uses the same .mkt chip styling as the
|
||||||
old dashboard header, extended with each market's headline index. */
|
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__hint a { color: var(--accent); }
|
||||||
.dz__filename { margin-top: 10px; color: var(--accent); font-size: 12px; font-family: var(--font-mono); min-height: 1em; }
|
.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 {
|
.result {
|
||||||
margin-top: 20px;
|
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),
|
box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65),
|
||||||
0 0 0 1px rgba(0, 217, 255, 0.20);
|
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 {
|
.shot img {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
||||||
|
|
@ -220,7 +220,7 @@
|
||||||
? new Date(status.updated_at).toISOString().replace('T', ' ').slice(0, 16) + ' UTC'
|
? new Date(status.updated_at).toISOString().replace('T', ' ').slice(0, 16) + ' UTC'
|
||||||
: '—';
|
: '—';
|
||||||
mount.innerHTML =
|
mount.innerHTML =
|
||||||
'<div class="pf-restore" style="padding:16px;">' +
|
'<div style="padding:16px;">' +
|
||||||
'<div class="result__head">▸ Restore from cloud</div>' +
|
'<div class="result__head">▸ Restore from cloud</div>' +
|
||||||
'<div class="result__row" style="margin-bottom:12px;">' +
|
'<div class="result__row" style="margin-bottom:12px;">' +
|
||||||
'A synced portfolio is available for this account (last synced ' +
|
'A synced portfolio is available for this account (last synced ' +
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue