Files
qihuo/modules/web/static/css/records.css
T
dekun e5a586f903 Restructure into modules/ with single-process CTP and config/ layout.
Move business code under modules/, env template to config/, PM2 single qihuo process, and _legacy shims for old imports.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-01 14:42:16 +08:00

441 lines
11 KiB
CSS

/* Copyright (c) 2025-2026 马建军. All rights reserved.
* 交易记录与复盘 — 手机/平板简洁列表 + 详情弹窗
*/
.records-page .records-mobile-list {
display: none;
}
.records-page .records-desktop-only {
display: block;
}
.records-mobile-item {
display: block;
width: 100%;
text-align: left;
border: 1px solid var(--card-border);
border-radius: 12px;
background: var(--card-inner);
padding: .75rem .85rem;
margin-bottom: .55rem;
cursor: pointer;
color: inherit;
font: inherit;
transition: border-color .2s, box-shadow .2s;
}
.records-mobile-item:hover,
.records-mobile-item:focus-visible {
border-color: var(--accent);
box-shadow: 0 0 0 1px rgba(56, 189, 248, .2);
outline: none;
}
.records-mobile-item-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: .5rem;
margin-bottom: .35rem;
}
.records-mobile-symbol {
font-size: .92rem;
font-weight: 600;
color: var(--text-title);
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.records-mobile-item-meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: .35rem .5rem;
font-size: .72rem;
color: var(--text-muted);
margin-bottom: .3rem;
}
.records-mobile-item-foot {
display: flex;
align-items: center;
justify-content: space-between;
gap: .5rem;
}
.records-mobile-pnl {
font-size: .88rem;
font-weight: 600;
}
.records-mobile-pnl.is-profit { color: var(--profit); }
.records-mobile-pnl.is-loss { color: var(--loss); }
.records-mobile-pnl.is-flat { color: var(--text-muted); }
.records-mobile-chevron {
font-size: .72rem;
color: var(--accent);
white-space: nowrap;
}
.records-mobile-empty {
padding: 1.25rem .5rem;
text-align: center;
color: var(--text-muted);
font-size: .85rem;
}
.records-page .trade-switch-label.records-desktop-only {
display: flex;
}
.records-page .records-verify-toggle {
display: flex;
align-items: center;
gap: .45rem;
margin-bottom: .75rem;
font-size: .82rem;
color: var(--text-muted);
cursor: pointer;
}
.records-page .records-verify-toggle input {
flex-shrink: 0;
}
.records-trade-card .records-src-badge {
margin-left: .25rem;
font-size: .65rem;
}
.records-trade-card .records-verified-inline {
margin-left: .25rem;
}
.records-trade-card .btn-records-action,
.records-trade-table-wrap .btn-records-action {
background: #1f3a5a;
color: #8fc8ff;
border: none;
border-radius: 6px;
padding: .3rem .55rem;
font-size: .72rem;
text-decoration: none;
cursor: pointer;
white-space: nowrap;
}
.records-trade-card .btn-records-action:disabled,
.records-trade-table-wrap .btn-records-action:disabled {
opacity: .45;
cursor: not-allowed;
}
.records-trade-card .btn-records-del,
.records-trade-table-wrap .btn-records-del {
background: rgba(239, 68, 68, .15);
color: var(--loss);
border: none;
border-radius: 6px;
padding: .3rem .55rem;
font-size: .72rem;
text-decoration: none;
cursor: pointer;
white-space: nowrap;
}
.records-trade-card .records-trade-actions,
.records-trade-table-wrap .records-trade-actions {
min-width: 15.5rem;
}
#trade-detail-modal .records-detail-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: .55rem .75rem;
margin-bottom: 1rem;
}
#trade-detail-modal .records-detail-item label {
display: block;
font-size: .68rem;
color: var(--text-muted);
margin-bottom: .12rem;
}
#trade-detail-modal .records-detail-item div {
font-size: .84rem;
color: var(--text-primary);
line-height: 1.35;
word-break: break-word;
}
#trade-detail-modal .records-detail-item.wide {
grid-column: 1 / -1;
}
#trade-detail-modal .records-detail-actions {
display: flex;
flex-wrap: wrap;
gap: .45rem;
padding-top: .75rem;
border-top: 1px solid var(--table-border);
}
#trade-detail-modal .records-detail-actions a,
#trade-detail-modal .records-detail-actions button {
font-size: .78rem;
padding: .45rem .7rem;
border-radius: 8px;
text-decoration: none;
border: none;
cursor: pointer;
}
.records-review-mobile .records-mobile-item.is-emotion {
border-color: rgba(239, 68, 68, .35);
}
/* 交易记录简洁行(对齐数据看板平仓记录) */
.records-trade-row {
border: 1px solid var(--card-border);
border-radius: 12px;
background: var(--card-inner);
padding: .75rem .85rem;
margin-bottom: .55rem;
color: inherit;
transition: border-color .2s, box-shadow .2s;
}
.records-trade-main {
min-width: 0;
}
.records-trade-head {
margin-bottom: .3rem;
}
.records-trade-title {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: .3rem .4rem;
min-width: 0;
}
.records-trade-code {
font-size: .84rem;
}
.records-verified-badge {
font-size: .62rem;
}
.records-trade-summary {
font-size: .78rem;
color: var(--text-muted);
line-height: 1.45;
}
.records-trade-verify-form {
display: inline-flex;
margin: 0;
}
.records-trade-row-actions {
min-width: 0;
}
.records-trade-row-actions .btn-link {
background: transparent;
color: var(--accent);
}
.records-trade-phone-foot {
display: flex;
justify-content: flex-end;
margin-top: .35rem;
}
.records-phone-only,
.records-tablet-only {
display: none;
}
/* 平板交易记录表格(对齐数据看板平仓记录) */
.records-trade-table-wrap {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.records-trade-table-wrap .dashboard-table {
width: 100%;
border-collapse: collapse;
font-size: .82rem;
}
.records-trade-table-wrap .dashboard-table th,
.records-trade-table-wrap .dashboard-table td {
padding: .45rem .55rem;
border-bottom: 1px solid var(--table-border);
text-align: left;
white-space: nowrap;
font-variant-numeric: tabular-nums;
vertical-align: middle;
}
.records-trade-table-wrap .dashboard-table tbody tr:last-child td {
border-bottom: none;
}
.records-trade-table-wrap .dash-symbol-ex {
font-weight: 400;
font-size: .78rem;
}
.records-trade-table-wrap .dash-main-badge {
font-size: .68rem;
vertical-align: middle;
}
.records-trade-table-wrap .dashboard-table .badge.dir-long,
.records-trade-table-wrap .dashboard-table .badge.dir-short {
font-size: .72rem;
}
.records-trade-table-wrap .dashboard-table .badge.dir-long {
background: var(--profit-bg);
color: var(--profit);
}
.records-trade-table-wrap .dashboard-table .badge.dir-short {
background: var(--loss-bg);
color: var(--loss);
}
.records-trade-table-wrap .pnl-pos {
color: var(--profit);
font-weight: 600;
}
.records-trade-table-wrap .pnl-neg {
color: var(--loss);
font-weight: 600;
}
.records-trade-table-wrap .trade-actions {
min-width: 17rem;
}
html:is([data-mobile="1"], .layout-phone) .records-trade-row,
html:is([data-layout="phone"], .layout-phone) .records-trade-row {
cursor: pointer;
}
html:is([data-mobile="1"], .layout-phone) .records-trade-row:hover,
html:is([data-layout="phone"], .layout-phone) .records-trade-row:hover {
border-color: var(--accent);
box-shadow: 0 0 0 1px rgba(56, 189, 248, .2);
}
html:is([data-mobile="1"], .layout-phone) .records-page .records-phone-only,
html:is([data-layout="phone"], .layout-phone) .records-page .records-phone-only,
html:is([data-mobile="1"], .layout-phone) .records-page .records-review-mobile,
html:is([data-layout="phone"], .layout-phone) .records-page .records-review-mobile {
display: block;
}
html:is([data-layout="tablet"], .layout-tablet) .records-page .records-tablet-only {
display: block;
}
html:is([data-layout="tablet"], .layout-tablet) .records-page .records-review-mobile {
display: block;
}
html:is([data-mobile="1"], .layout-phone) .records-page .records-desktop-only,
html:is([data-layout="phone"], .layout-phone) .records-page .records-desktop-only,
html:is([data-layout="tablet"], .layout-tablet) .records-page .records-desktop-only {
display: none !important;
}
html:is([data-mobile="1"], .layout-phone) .records-page .records-verify-toggle,
html:is([data-layout="phone"], .layout-phone) .records-page .records-verify-toggle {
display: flex;
}
html:is([data-mobile="1"], .layout-phone) .records-page .records-trade-card .card-body,
html:is([data-layout="phone"], .layout-phone) .records-page .records-trade-card .card-body {
padding: 0;
}
html:is([data-layout="tablet"], .layout-tablet) .records-page .records-trade-card .card-body {
padding: 0 .75rem .35rem;
}
html:is([data-layout="tablet"], .layout-tablet) .records-trade-table-wrap .dashboard-table {
font-size: .78rem;
}
html:is([data-layout="tablet"], .layout-tablet) .records-trade-table-wrap .dashboard-table th,
html:is([data-layout="tablet"], .layout-tablet) .records-trade-table-wrap .dashboard-table td {
padding: .4rem .45rem;
}
html:is([data-layout="tablet"], .layout-tablet) .records-trade-table-wrap .trade-actions {
min-width: 15.5rem;
}
html:is([data-layout="tablet"], .layout-tablet) .records-trade-table-wrap .trade-actions a,
html:is([data-layout="tablet"], .layout-tablet) .records-trade-table-wrap .trade-actions button {
font-size: .68rem;
padding: .28rem .45rem;
}
html:is([data-mobile="1"], .layout-phone) .records-page .records-equity-card #equity-curve-chart,
html:is([data-layout="phone"], .layout-phone) .records-page .records-equity-card #equity-curve-chart {
min-height: 180px;
}
html:is([data-mobile="1"], .layout-phone) .records-page .preset-tabs,
html:is([data-layout="phone"], .layout-phone) .records-page .preset-tabs {
flex-wrap: wrap;
gap: .35rem;
}
html:is([data-mobile="1"], .layout-phone) .records-page .preset-tabs a,
html:is([data-layout="phone"], .layout-phone) .records-page .preset-tabs a {
flex: 1;
text-align: center;
min-width: 0;
padding: .45rem .35rem;
font-size: .75rem;
}
html:is([data-layout="tablet"], .layout-tablet) .records-page .preset-tabs a {
flex: 1;
text-align: center;
min-width: 0;
padding: .45rem .35rem;
font-size: .75rem;
}
html:is([data-layout="tablet"], .layout-tablet) #review-modal .review-detail-headers,
html:is([data-layout="tablet"], .layout-tablet) #review-modal .review-detail-values,
html:is([data-mobile="1"], .layout-phone) #review-modal .review-detail-headers,
html:is([data-mobile="1"], .layout-phone) #review-modal .review-detail-values,
html:is([data-layout="phone"], .layout-phone) #review-modal .review-detail-headers,
html:is([data-layout="phone"], .layout-phone) #review-modal .review-detail-values {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (pointer: coarse) and (max-width: 600px) {
.records-page .records-phone-only,
.records-page .records-review-mobile { display: block; }
.records-page .records-desktop-only { display: none !important; }
}