stock/new/static/styles.css
2025-08-15 12:19:07 +02:00

29 lines
1.9 KiB
CSS

/* static/styles.css */
:root { --bg:#0f1115; --panel:#171a21; --text:#e7e9ee; --muted:#9aa3b2; --buy:#1fbf75; --sell:#ff4d4f; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font:14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial; }
header { display:flex; justify-content:space-between; align-items:center; padding:16px 20px; background:var(--panel); border-bottom:1px solid #242a36; }
h1 { margin:0; font-size:18px; }
.meta { display:flex; gap:12px; align-items:center; color:var(--muted); }
button { background:#2a3242; color:var(--text); border:1px solid #2f3749; padding:6px 10px; border-radius:6px; cursor:pointer; }
main { padding:16px 20px; }
.cards { display:grid; grid-template-columns:repeat(4, minmax(160px, 1fr)); gap:12px; margin-bottom:14px; }
.card { background:var(--panel); border:1px solid #242a36; border-radius:10px; padding:12px; }
.card-title { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px; }
.card-value { font-size:20px; font-weight:600; }
section { margin-top:18px; }
table { width:100%; border-collapse:separate; border-spacing:0; background:var(--panel); border:1px solid #242a36; border-radius:10px; overflow:hidden; }
thead th { text-align:left; color:var(--muted); font-weight:600; padding:10px 12px; background:#141821; }
tbody td { padding:9px 12px; border-top:1px solid #202637; }
td.BUY, .BUY { color:var(--buy); font-weight:600; }
td.SELL, .SELL { color:var(--sell); font-weight:600; }
td.HOLD, .HOLD { color:#c8cbd2; }
/* PnL kolory */
.pnl-positive { color: var(--buy); font-weight: 600; }
.pnl-negative { color: var(--sell); font-weight: 600; }
.BUY { color: var(--buy); font-weight: 600; }
.SELL { color: var(--sell); font-weight: 600; }
.HOLD { color: #c8cbd2; }
.chart-wrap { background: var(--panel); border:1px solid #242a36; border-radius:10px; padding:10px; margin-bottom:16px; }