Files
Binance_Altcoin_Monitor/web/style.css
T
2026-05-26 10:45:27 +08:00

530 lines
8.4 KiB
CSS

:root {
--bg: #0f1419;
--panel: #1a2332;
--border: #2d3a4f;
--text: #e7ecf3;
--muted: #8b9cb3;
--accent: #f0b90b;
--up: #0ecb81;
--down: #f6465d;
--tag-vol: #3d5afe;
--tag-chg: #ff6d00;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: "Segoe UI", system-ui, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.5;
padding: 1.5rem;
max-width: 1380px;
margin-inline: auto;
}
header h1 {
margin: 0 0 0.25rem;
font-size: 1.5rem;
}
.subtitle {
color: var(--muted);
margin: 0 0 0.75rem;
font-size: 0.9rem;
}
.main-nav {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 1.25rem;
padding-bottom: 0.75rem;
border-bottom: 1px solid var(--border);
}
.nav-item {
background: transparent;
color: var(--muted);
border: 1px solid var(--border);
padding: 0.45rem 1rem;
border-radius: 8px;
cursor: pointer;
font-size: 0.9rem;
font-weight: 500;
}
.nav-item:hover {
color: var(--text);
border-color: var(--accent);
}
.nav-item.active {
background: rgba(240, 185, 11, 0.15);
color: var(--accent);
border-color: var(--accent);
font-weight: 600;
}
.view-panel {
display: none;
}
.view-panel.active {
display: block;
}
.stats-desc {
padding: 0 1.25rem 0.75rem;
color: var(--muted);
font-size: 0.85rem;
margin: 0;
}
#stats-table-wrap table {
font-size: 0.82rem;
}
#stats-table-wrap th,
#stats-table-wrap td {
white-space: nowrap;
}
.panel {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 10px;
margin-bottom: 1.5rem;
overflow: hidden;
}
.panel-head {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0.75rem 1.5rem;
padding: 1rem 1.25rem;
border-bottom: 1px solid var(--border);
}
.panel-head h2 {
margin: 0;
font-size: 1.1rem;
}
.live {
font-size: 0.75rem;
color: var(--accent);
font-weight: normal;
}
.period {
color: var(--muted);
font-size: 0.85rem;
}
.updated {
color: var(--muted);
font-size: 0.8rem;
}
.table-wrap {
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
font-size: 0.9rem;
}
th,
td {
padding: 0.65rem 1rem;
text-align: left;
border-bottom: 1px solid var(--border);
}
th {
color: var(--muted);
font-weight: 600;
font-size: 0.8rem;
}
th.sortable {
cursor: pointer;
user-select: none;
white-space: nowrap;
}
th.sortable:hover {
color: var(--text);
}
th.sortable::after {
content: " ⇅";
font-size: 0.7rem;
opacity: 0.35;
}
th.sorted-asc::after {
content: " ↑";
opacity: 1;
color: var(--accent);
}
th.sorted-desc::after {
content: " ↓";
opacity: 1;
color: var(--accent);
}
.panel-actions {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
margin-left: auto;
}
.btn-secondary {
background: transparent;
color: var(--text);
border: 1px solid var(--border);
padding: 0.35rem 0.75rem;
border-radius: 6px;
cursor: pointer;
font-size: 0.8rem;
font-weight: 500;
}
.btn-secondary:hover {
border-color: var(--accent);
color: var(--accent);
}
tr:hover td {
background: rgba(255, 255, 255, 0.03);
}
.rank {
color: var(--accent);
font-weight: 600;
}
.pct-up {
color: var(--up);
}
.pct-down {
color: var(--down);
}
.tag {
display: inline-block;
padding: 0.15rem 0.45rem;
border-radius: 4px;
font-size: 0.72rem;
margin-right: 0.35rem;
}
.tag-vol {
background: rgba(61, 90, 254, 0.25);
color: #8fa8ff;
}
.tag-chg {
background: rgba(255, 109, 0, 0.25);
color: #ffb74d;
}
.row-highlight td {
background: rgba(240, 185, 11, 0.06);
}
footer {
display: flex;
align-items: center;
gap: 1rem;
color: var(--muted);
font-size: 0.85rem;
}
button {
background: var(--accent);
color: #000;
border: none;
padding: 0.5rem 1rem;
border-radius: 6px;
cursor: pointer;
font-weight: 600;
}
button:hover {
filter: brightness(1.05);
}
.loading {
color: var(--muted);
padding: 1rem;
}
.error {
color: var(--down);
}
.symbol-cell {
white-space: nowrap;
min-width: 88px;
}
.chart-col {
min-width: 400px;
color: var(--muted);
font-size: 0.8rem;
}
.chart-cell {
padding: 0.35rem 0.5rem !important;
vertical-align: middle;
}
.mini-chart {
position: relative;
width: 380px;
height: 100px;
cursor: zoom-in;
border-radius: 6px;
overflow: hidden;
border: 1px solid var(--border);
background: #0d1118;
}
.mini-chart canvas {
display: block;
}
.chart-status {
position: absolute;
right: 4px;
bottom: 2px;
font-size: 0.65rem;
color: var(--muted);
pointer-events: none;
}
.chart-modal {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.72);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.chart-modal.hidden {
display: none;
}
.chart-modal-inner {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 12px;
padding: 1.25rem 1.5rem 1.5rem;
max-width: 96vw;
max-height: 96vh;
overflow: auto;
}
.chart-modal-inner:fullscreen {
width: 100vw;
height: 100vh;
max-width: none;
max-height: none;
border-radius: 0;
display: flex;
flex-direction: column;
}
.chart-modal-inner:fullscreen .chart-modal-canvas-wrap {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.stats-table .stats-total-vol {
font-weight: 600;
white-space: nowrap;
}
.muted {
color: var(--muted);
}
.wecom-preview-panel {
margin-top: 0.5rem;
padding: 1rem;
background: #121a26;
border: 1px solid var(--border);
border-radius: 10px;
}
.wecom-preview-meta-line {
margin: 0 0 0.75rem;
font-size: 0.85rem;
color: var(--muted);
}
.wecom-compact-line {
margin: 0;
font-size: 0.84rem;
line-height: 1.6;
color: var(--text);
}
.wecom-compact-line strong {
margin: 0 0.15rem;
color: var(--accent);
}
.wecom-preview-cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 0.75rem;
margin-top: 0.75rem;
}
.wecom-card {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 8px;
padding: 0.65rem 0.75rem;
}
.wecom-card-head {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.5rem;
padding-bottom: 0.4rem;
border-bottom: 1px solid var(--border);
}
.wecom-seq {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 1.5rem;
height: 1.5rem;
border-radius: 4px;
background: var(--accent);
color: #0d1118;
font-size: 0.75rem;
font-weight: 700;
}
.wecom-symbol {
font-size: 1rem;
}
.wecom-day {
display: grid;
grid-template-columns: 2.5rem 2.5rem 1fr auto auto;
gap: 0.35rem 0.5rem;
align-items: center;
font-size: 0.82rem;
padding: 0.2rem 0;
}
.wecom-day-label {
color: var(--muted);
}
.wecom-fr {
color: var(--muted);
font-size: 0.78rem;
}
.push-status {
margin-left: 1rem;
font-size: 0.85rem;
color: var(--accent);
}
.chart-modal-inner h3 {
margin: 0 0 0.25rem;
font-size: 1.15rem;
}
.chart-modal-hint {
margin: 0 0 0.75rem;
font-size: 0.8rem;
color: var(--muted);
}
.chart-modal-canvas-wrap {
overflow: auto;
border-radius: 8px;
border: 1px solid var(--border);
background: #0d1118;
}
.chart-modal-close {
float: right;
background: transparent;
border: none;
color: var(--text);
font-size: 1.5rem;
cursor: pointer;
line-height: 1;
}
#chart-modal-canvas,
#funding-modal-canvas {
display: block;
background: #0d1118;
}
.funding-col {
min-width: 220px;
color: var(--muted);
font-size: 0.8rem;
}
.funding-cell {
vertical-align: middle;
padding: 0.4rem 0.5rem !important;
}
.funding-cell-inner {
display: flex;
flex-direction: column;
gap: 4px;
align-items: flex-start;
}
.funding-rate-label {
font-size: 0.82rem;
font-weight: 600;
white-space: nowrap;
}
.mini-funding-chart {
width: 200px;
height: 56px;
cursor: zoom-in;
border: 1px solid var(--border);
border-radius: 4px;
overflow: hidden;
background: #0d1118;
}
.mini-funding-chart canvas {
display: block;
}