remove old bloat

This commit is contained in:
zipfriis
2026-03-29 07:41:08 +02:00
parent 0790afa1f9
commit 760bc46fb0
5 changed files with 687 additions and 657 deletions
+226 -1
View File
@@ -1150,4 +1150,229 @@ nav .section-label {
.cards {
grid-template-columns: 1fr;
}
}
}
/* ── Trades accordion ── */
.trades-section {
margin-top: 2.5rem;
}
.trades-toggle {
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
background: none;
border: none;
border-top: 1px solid var(--border, #2a2a3a);
border-bottom: 1px solid var(--border, #2a2a3a);
width: 100%;
padding: 0.85rem 0;
color: inherit;
font-family: 'DM Mono', monospace;
font-size: 0.75rem;
letter-spacing: 0.07em;
text-align: left;
user-select: none;
}
.trades-toggle:hover .toggle-label {
color: var(--accent, #f59e0b);
}
.toggle-label {
color: var(--muted, #475569);
transition: color 0.15s;
}
.toggle-label span {
color: var(--accent, #f59e0b);
}
.toggle-icon {
color: var(--muted, #475569);
font-size: 1rem;
transition: transform 0.25s ease;
line-height: 1;
}
.trades-toggle[aria-expanded="true"] .toggle-icon {
transform: rotate(180deg);
}
.trades-body {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows 0.3s ease;
}
.trades-body.open {
grid-template-rows: 1fr;
}
.trades-inner {
overflow: hidden;
}
.trades-filter {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
padding: 1rem 0 0.75rem;
}
.filter-btn {
background: none;
border: 1px solid var(--border, #2a2a3a);
border-radius: 4px;
color: var(--muted, #475569);
font-family: 'DM Mono', monospace;
font-size: 0.7rem;
letter-spacing: 0.06em;
padding: 3px 10px;
cursor: pointer;
transition: all 0.15s;
}
.filter-btn:hover,
.filter-btn.active {
border-color: var(--accent, #f59e0b);
color: var(--accent, #f59e0b);
background: rgba(245,158,11,0.06);
}
.trades-table-wrap {
overflow-x: auto;
padding-bottom: 1.5rem;
}
.trades-table {
width: 100%;
border-collapse: collapse;
font-size: 0.78rem;
}
.trades-table thead tr {
border-bottom: 1px solid var(--border, #2a2a3a);
}
.trades-table th {
color: var(--muted, #475569);
font-weight: 400;
letter-spacing: 0.07em;
font-size: 0.68rem;
padding: 0.5rem 0.75rem;
text-align: left;
white-space: nowrap;
}
.trades-table td {
padding: 0.65rem 0.75rem;
border-bottom: 1px solid rgba(42,42,58,0.5);
white-space: nowrap;
color: var(--text, #e2e8f0);
}
.trades-table tbody tr:last-child td {
border-bottom: none;
}
.trades-table tbody tr:hover td {
background: rgba(255,255,255,0.02);
}
.trades-table tr.hidden-row {
display: none;
}
.dir-buy { color: #4ade80; }
.dir-sell { color: #f87171; }
.pnl-pos { color: #4ade80; }
.pnl-neg { color: #f87171; }
.pnl-zero{ color: var(--muted, #475569); }
.trade-code {
display: inline-block;
padding: 1px 6px;
border-radius: 3px;
font-size: 0.65rem;
background: rgba(42,42,58,0.8);
color: var(--muted, #475569);
letter-spacing: 0.05em;
}
.trade-ticker {
font-weight: 500;
color: #f1f5f9;
}
.trades-count {
color: var(--muted, #475569);
font-size: 0.68rem;
padding: 0 0 0.5rem;
}
/* ── Live price styles ── */
.price-cell {
position: relative;
}
.price-val {
transition: color 0.4s;
}
.price-val.loading {
color: var(--muted, #475569);
}
.price-val.flash-up {
color: #4ade80;
}
.price-val.flash-down {
color: #f87171;
}
.price-status {
display: inline-flex;
align-items: center;
gap: 0.4rem;
font-size: 0.68rem;
color: var(--muted, #475569);
margin-left: 0.5rem;
vertical-align: middle;
}
.price-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--muted, #475569);
display: inline-block;
}
.price-dot.live { background: #4ade80; box-shadow: 0 0 4px #4ade80; }
.price-dot.error { background: #f87171; }
.price-dot.loading {
background: #f59e0b;
animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.3; }
}
.refresh-btn {
background: none;
border: 1px solid var(--border, #2a2a3a);
border-radius: 4px;
color: var(--muted, #475569);
font-family: 'DM Mono', monospace;
font-size: 0.68rem;
padding: 2px 8px;
cursor: pointer;
letter-spacing: 0.05em;
transition: all 0.15s;
}
.refresh-btn:hover {
border-color: var(--accent, #f59e0b);
color: var(--accent, #f59e0b);
}
.section-header-row {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 0.6rem;
}