Improve light theme contrast on options positions panel.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-11 15:09:02 +08:00
parent 6f6545ce52
commit 04fd84757c
3 changed files with 86 additions and 2 deletions
+84
View File
@@ -4083,6 +4083,90 @@ html[data-theme="light"] .pos-pnl-loss {
font-weight: 600 !important;
}
/* 期权持仓 · 亮色主题对比度 */
html[data-theme="light"] .options-page-wrap .opt-pos-card .pos-label,
html[data-theme="light"] .options-page-wrap .opt-pos-card .pos-meta,
html[data-theme="light"] .options-page-wrap .opt-pos-card .pos-meta-item {
color: #334155 !important;
}
html[data-theme="light"] .options-page-wrap .opt-pos-card .pos-meta-item::after {
color: #94a3b8 !important;
}
html[data-theme="light"] .options-page-wrap .opt-pos-card .pos-value {
color: #0f172a !important;
}
html[data-theme="light"] .options-page-wrap .opt-bid-plain {
color: #1e3a52 !important;
}
html[data-theme="light"] .options-page-wrap .opt-expiry-cd {
color: #004d6e !important;
}
html[data-theme="light"] .options-page-wrap .opt-expiry-cd--urgent {
color: #9a6200 !important;
}
html[data-theme="light"] .options-page-wrap .opt-expiry-cd--expired {
color: #64748b !important;
}
html[data-theme="light"] .options-page-wrap .opt-pos-tab:not(.active) {
color: #334155 !important;
border-color: #b8c8d8 !important;
background: #fff !important;
}
html[data-theme="light"] .options-page-wrap .options-pos-head h2,
html[data-theme="light"] .options-page-wrap .options-pos-card-wrap h2 {
color: #0f172a !important;
}
html[data-theme="light"] .options-page-wrap .opt-close-rule {
border: 1px solid #b8c8d8 !important;
background: #eef3f8 !important;
}
html[data-theme="light"] .options-page-wrap .opt-close-rule summary {
color: #0f172a !important;
background: #e2eaf2 !important;
}
html[data-theme="light"] .options-page-wrap .opt-close-rule summary::after {
background: rgba(0, 95, 140, 0.12) !important;
color: #004d6e !important;
}
html[data-theme="light"] .options-page-wrap .opt-close-rule[open] summary {
background: #dce6f0 !important;
border-bottom-color: #b8c8d8 !important;
}
html[data-theme="light"] .options-page-wrap .opt-close-rule-body {
color: #334155 !important;
}
html[data-theme="light"] .options-page-wrap .opt-close-rule-body p {
color: #1e293b !important;
}
html[data-theme="light"] .options-page-wrap .opt-close-rule-body li {
color: #334155 !important;
}
html[data-theme="light"] .options-page-wrap .opt-close-rule-body code {
color: #142232 !important;
background: #fff !important;
border: 1px solid #c8d4e0 !important;
}
html[data-theme="light"] .options-page-wrap .pos-empty {
color: #475569 !important;
}
html[data-theme="light"] .order-preview-profit {
color: #087a50 !important;
}